/* 공부근육 타이머 v1.0.0 · PULSE LAB 색감 A(검정 · 코발트 · 라임) · 시안 v0.11 기준 */
:root {
  --ink: #030407; --ink2: #2E3238; --muted: #6B7079; --faint: #A0A4AB; --line: #E6E6E3;
  --surf: #F6F6F4; --bg: #FFFFFF; --cob: #1558C9; --cob-t: #EAF0FB; --lime: #D4FF24; --warn: #D2452D;
  --room: #EDEAE6;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --nav-h: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cob); outline-offset: 2px; }

.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }
.wm { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ink); white-space: nowrap; }
.wm i { width: 6px; height: 6px; border-radius: 3px; background: var(--cob); }

/* ── 틀 ── */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.top-in { height: 60px; display: flex; align-items: center; gap: 14px; max-width: 1280px; margin: 0 auto; }
.top h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.top .sep { width: 1px; height: 16px; background: var(--line); }
.top .grow { flex: 1; }
.topnav { display: none; gap: 26px; margin-right: 8px; }
.topnav a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.topnav a.on { color: var(--ink); font-weight: 600; }
.me-btn { border: 0; background: none; padding: 0; border-radius: 50%; display: block; }
.me-btn img { width: 36px; height: 36px; border-radius: 50%; display: block; background: var(--surf); }
.login-btn { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.demo-band { background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
.demo-band b { color: var(--lime); font-weight: 600; }

.main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.botnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bg); border-top: 1px solid var(--line); }
.botnav a { position: relative; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-decoration: none; }
.botnav a.on { color: var(--ink); font-weight: 600; }
.botnav a.on::before { content: ""; position: absolute; top: -1px; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--ink); }

/* ── 단추 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.cob { background: var(--cob); border-color: var(--cob); color: #fff; }
.btn.limeb { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.sm { height: 40px; font-size: 14px; border-radius: 10px; padding: 0 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #EFEFEC; }
.seg button, .seg a { height: 28px; padding: 0 12px; display: flex; align-items: center; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg .on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(3,4,7,.08); }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { flex-shrink: 0; padding: 0 0 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; color: var(--muted); }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.lbl { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag-ex { display: inline-flex; align-items: center; height: 14px; padding: 0 5px; border-radius: 7px; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 700; }

/* ── 가상 공부방 ── */
.room-wrap { position: relative; background: var(--room); overflow: hidden; }
.room-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; }
.room-scroll::-webkit-scrollbar { display: none; }
.room-scroll.drag { cursor: grabbing; }
.stage { position: relative; }
.stage > img.bg { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.stage .spr { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.stage .hot { position: absolute; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.0); }
.stage .hot::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: rgba(21,88,201,.0); transition: background .15s; }
.room-wrap.pick .stage .hot.free::after, .stage .hot.free:hover::after { background: rgba(21,88,201,.38); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.room-wrap.pick .stage .hot.exfree::after, .stage .hot.exfree:hover::after { background: rgba(160,200,0,.55); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.stage .ring { position: absolute; border-radius: 50%; box-sizing: border-box; pointer-events: none; }
.stage .ring.desk { border: 2px solid var(--cob); background: rgba(21,88,201,.2); }
.stage .ring.ex { border: 2px dashed #9DBA00; background: rgba(212,255,36,.25); }
.stage .ring.mine { border: 2px solid var(--ink); background: rgba(3,4,7,.12); }
.chip { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 3px; border-radius: 10px; border: 0;
  background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(3,4,7,.14); white-space: nowrap; font-size: 11px; font-weight: 500; color: var(--ink); z-index: 2; }
.chip .t { font-family: var(--mono); color: var(--muted); }
.chip.dark { background: rgba(3,4,7,.86); color: #fff; }
.chip.dark .t { color: #C9CCD1; }
.chip.me { box-shadow: 0 0 0 1.5px var(--cob), 0 1px 3px rgba(3,4,7,.14); }
.chip.rest { color: var(--muted); }
.chip.target { height: 22px; padding: 0 9px; background: var(--cob); color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(21,88,201,.35); pointer-events: none; z-index: 3; }
.chip.target.ex { background: var(--ink); color: var(--lime); }
.chip.anat { transform: translate(-50%, 0); height: 24px; padding: 0 10px 0 8px; border-radius: 12px; gap: 5px; background: #fff; box-shadow: 0 0 0 1.5px var(--cob), 0 2px 6px rgba(3,4,7,.14);
  color: var(--cob); font-weight: 600; text-decoration: none; }
.extok { position: absolute; transform: translate(-50%, -100%); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lime), 0 4px 10px rgba(3,4,7,.25); pointer-events: none; }
.room-ov { position: absolute; z-index: 5; }
.room-count { right: 12px; top: 12px; height: 28px; padding: 0 11px; border-radius: 14px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); font-size: 12px; color: var(--ink2); }
.room-count b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.room-king { left: 12px; bottom: 12px; max-width: calc(100% - 110px); height: 30px; padding: 0 12px 0 5px; border-radius: 15px; background: rgba(3,4,7,.86); color: #fff; display: flex; align-items: center; gap: 8px; font-size: 12px; overflow: hidden; white-space: nowrap; }
.room-king .badge { height: 20px; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 11px; }
.room-king .t { font-family: var(--mono); color: #C9CCD1; }
.minimap { right: 12px; bottom: 12px; width: 72px; height: 48px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(3,4,7,.25); cursor: pointer; }
.minimap img { width: 72px; height: 48px; display: block; filter: saturate(.6) brightness(.85); }
.minimap i { position: absolute; top: 0; height: 100%; box-sizing: border-box; border: 1.5px solid #fff; border-radius: 4px; background: rgba(255,255,255,.18); }
.room-empty { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.92); font-size: 13px; color: var(--ink2); text-align: center; pointer-events: none; }

.room-page { display: flex; flex-direction: column; }
.room-head { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
.room-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.room-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.room-head .grow { flex: 1; min-width: 0; }
.room-side { padding-top: 14px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.pick-info .k { font-size: 12px; font-weight: 600; color: var(--cob); }
.pick-info h3 { margin: 4px 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.pick-info p { margin: 0; font-size: 13px; color: var(--muted); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acts .wide { grid-column: 1 / -1; }
.hint { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.mycard { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mycard img { width: 44px; height: 44px; border-radius: 50%; background: var(--surf); }
.mycard .grow { flex: 1; min-width: 0; }
.mycard b { display: block; font-size: 15px; }
.mycard span { font-size: 13px; color: var(--muted); }
.howto { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; color: var(--ink2); }
.howto-h { margin: 6px 0 0; font-size: 14px; font-weight: 600; }

/* 사람 카드(방에서 누르면) */
.pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(3,4,7,.36); }
.pop-card { width: 100%; max-width: 440px; background: var(--bg); border-radius: 20px 20px 0 0; padding: 20px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  max-height: 92vh; overflow-y: auto; }
.pop-card h3 { margin: 0; font-size: 18px; font-weight: 700; }
.person { display: flex; gap: 14px; align-items: center; }
.person img { width: 56px; height: 56px; border-radius: 50%; background: var(--surf); }
.person .grow { flex: 1; min-width: 0; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* 시작 고르기 */
.sheet h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.sheet .sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.grp { margin: 0 0 14px; }
.grp > .lbl { display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; white-space: nowrap; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.fld { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.fld:focus { outline: 2px solid var(--cob); outline-offset: -1px; border-color: transparent; }
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.moods button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 12px; }
.moods button.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-weight: 600; }
.sheet .row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 18px; }
.err { margin: 8px 0 0; font-size: 13px; color: var(--warn); }

/* ── 공부 중 / 운동 중 ── */
.focus { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; align-items: center; max-width: 520px; margin: 0 auto; padding-top: 8px; padding-bottom: 24px; }
.focus-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.focus-bar .st { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.focus-bar .st i { width: 6px; height: 6px; border-radius: 3px; background: var(--cob); }
.focus-bar .st.off i { background: var(--warn); }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.wake { border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 0; }
.wake.on { color: var(--ink); }
.f-subj { margin: 18px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; text-align: center; }
.f-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.f-meta .bar { width: 1px; height: 12px; background: var(--line); }
.ring-box { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 26px 0 18px; }
.ring-box svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.ring-box .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ring-box .big { font-family: var(--mono); font-size: clamp(40px, 13vw, 54px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; }
.ring-box .lbl2 { font-size: 13px; color: var(--muted); }
.ring-box .sets { font-size: 14px; color: var(--muted); }
.ring-box .sets b { color: var(--ink); font-weight: 600; }
.f-note { margin: 0 0 22px; font-size: 15px; color: var(--ink2); text-align: center; }
.f-acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-card { width: 100%; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; text-decoration: none; }
.f-card .grow { flex: 1; min-width: 0; }
.f-card .k { font-size: 12px; font-weight: 600; color: var(--cob); }
.f-card b { display: block; margin: 2px 0; font-size: 15px; }
.f-card span { font-size: 13px; color: var(--muted); }
.f-warn { width: 100%; margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.f-foot { width: 100%; margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.f-foot b { color: var(--ink); }
.faces { display: flex; }
.faces img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); background: var(--surf); }
.faces img + img { margin-left: -8px; }
.focus.wo .f-subj::after { content: "운동"; margin-left: 8px; vertical-align: 5px; display: inline-flex; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 0; }

/* 세트 완료 */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,4,7,.5); }
.modal-card { width: 100%; max-width: 360px; background: var(--bg); border-radius: 20px; padding: 26px 22px 20px; text-align: center; }
.modal-card .badge { margin-bottom: 12px; }
.modal-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.modal-card p { margin: 0 0 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── 내 기록 ── */
.page { padding-top: 18px; padding-bottom: 24px; }
.page h2.pt { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.page .pd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-h h3 { margin: 0; font-size: 16px; font-weight: 700; }
.big-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-t .mono { font-size: 48px; line-height: 1.1; letter-spacing: -0.04em; }
.big-t span { font-size: 14px; color: var(--muted); }
.big-t span b { color: var(--ink); font-weight: 600; }
.big-t span.mono { color: var(--ink); }
.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bars .r { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bars .r span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .tr { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bars .tr i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.setsbar { display: grid; gap: 4px; margin-top: 12px; }
.setsbar i { height: 4px; border-radius: 2px; background: var(--line); }
.setsbar i.on { background: var(--ink); }
.moodrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; }
.moodrow span { display: inline-flex; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--surf); font-size: 13px; }
.streak { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.streak i { aspect-ratio: 1; border-radius: 3px; background: #EFEFEC; }
.streak i.l1 { background: #C9D9F3; } .streak i.l2 { background: #6E9BE3; } .streak i.l3 { background: var(--cob); } .streak i.l4 { background: #0D3A86; }
.streak i.today { box-shadow: 0 0 0 1.5px var(--ink); }
.warn { color: var(--warn); font-size: 13px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 56px; border-bottom: 1px solid var(--line); }
.rank li.me { background: var(--cob-t); border-radius: 10px; border-bottom-color: transparent; margin: 0 -10px; padding: 0 10px; }
.rank .n { font-family: var(--mono); color: var(--cob); }
.rank img { width: 36px; height: 36px; border-radius: 50%; background: var(--surf); }
.rank .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .tm { font-family: var(--mono); }
.empty { padding: 28px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* 목록 보기 */
.sum { margin-top: 12px; padding: 18px; border-radius: 16px; background: var(--surf); }
.sum .sec-h { margin-bottom: 8px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--line); }
.plist img { width: 40px; height: 40px; border-radius: 50%; background: var(--surf); flex-shrink: 0; }
.plist .grow { flex: 1; min-width: 0; }
.plist b { display: block; font-size: 15px; font-weight: 600; }
.plist .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.plist .t { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 15px; }

/* 꾸미기 */
.avgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.avgrid button { position: relative; padding: 0; border: 0; background: var(--surf); border-radius: 16px; aspect-ratio: 1; overflow: hidden; }
.avgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avgrid button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cob); }
.avgrid button.on::after { content: ""; position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 9px; background: var(--cob) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label.lbl { font-size: 13px; color: var(--ink2); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; }
.stepper button { width: 44px; height: 42px; border: 0; background: var(--surf); font-size: 18px; }
.stepper span { min-width: 72px; text-align: center; font-size: 15px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.links a, .links button { color: var(--muted); background: none; border: 0; padding: 0; font-size: 13px; text-decoration: underline; }
.danger { color: var(--warn) !important; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(3,4,7,.25); }

/* ── 넓은 화면(PC) ── */
@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .botnav { display: none; }
  .topnav { display: flex; }
  .room-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px max(32px, env(safe-area-inset-right, 0px)) 32px max(32px, env(safe-area-inset-left, 0px)); align-items: start; }
  .room-page .room-head { display: none; }
  .room-page .room-wrap { border-radius: 16px; }
  .room-page .room-side { padding: 0; }
  .page { max-width: 760px; margin: 0 auto; padding-top: 32px; }
  .pop { align-items: center; }
  .pop-card { border-radius: 20px; }
  .avgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .toast { bottom: 24px; }
}

/* v1.0.2 근육 유지 달력 · 왕 카드 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 2px; }
.cal-h.sun { color: var(--warn); }
.cal-d { position: relative; aspect-ratio: 1 / 0.92; border-radius: 8px; background: #EFEFEC; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; }
.cal-d b { font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink2); }
.cal-d small { font-family: var(--mono); font-size: 10px; line-height: 1.2; color: var(--ink2); letter-spacing: -0.03em; }
.cal-d.l1 { background: #C9D9F3; } .cal-d.l2 { background: #6E9BE3; } .cal-d.l3 { background: var(--cob); } .cal-d.l4 { background: #0D3A86; }
.cal-d.l2 b, .cal-d.l2 small, .cal-d.l3 b, .cal-d.l3 small, .cal-d.l4 b, .cal-d.l4 small { color: #fff; }
.cal-d.today { box-shadow: 0 0 0 2px var(--ink); }
.cal-d.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.cal-d.fut b { color: var(--faint); font-weight: 400; }
.cal-d.out { opacity: .35; }
.cal-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink2); }
.king { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.king img { width: 44px; height: 44px; border-radius: 50%; background: #2E3238; }
.king .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.king b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.king .mono { font-size: 18px; color: var(--lime); }
.king .badge { background: var(--lime); color: var(--ink); }
@media (max-width: 380px) { .cal-d small { display: none; } }

/* v1.0.3 상태 메시지 */
.bubble { position: absolute; transform: translate(-50%, -100%); max-width: 180px; height: 18px; padding: 0 8px; border-radius: 9px; display: flex; align-items: center; z-index: 2; pointer-events: none;
  background: var(--lime); color: var(--ink); font-size: 10.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 3px rgba(3,4,7,.18); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; background: var(--lime); transform: rotate(45deg); }
.status-btn { display: block; max-width: 100%; margin-top: 4px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--cob); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-line { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surf); font-size: 14px; color: var(--ink2); }
.pick-n { margin: -2px 0 14px; } .pick-n b { color: var(--ink); }
.lv-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.lv-row img { width: 52px; height: 52px; border-radius: 50%; background: var(--surf); flex-shrink: 0; }
.lv-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.lv-bar i { display: block; height: 100%; background: var(--cob); }
