/* 이어줌 — 디자인 시안(claude.ai 디자인 아티팩트)의 색·글꼴을 옮긴 공통 스타일 */
:root {
  --bg: #F4EFE7; --bg-pc: #F3F0EA; --surface: #FFFCF7; --ink: #1C2422; --muted: #4F5955; --faint: #5B635F;
  --line: #E3DBCF; --line2: #D8CFC1; --div: #EDE6DB; --sand: #EBE3D6;
  --pri: #1E5566; --pri-d: #143C48; --pri-t: #DCE8EA; --gold: #D9A441; --gold-ink: #2A1F0B;
  --warn: #9A4418; --warn-t: #F6E2D5; --ok: #17613F; --ok-t: #E1F2E9; --ok-s: #17794B;
  --amber: #6B4B0E; --amber-t: #F3E6C8; --alert: #B8521E;
  --side: #162126; --side-ink: #DDE5E3; --side-mut: #AFBDBA;
  --serif: Hahmlet, 'Noto Serif KR', serif;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--pri-d); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); font-weight: 600; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.col.g4 { gap: 4px; } .col.g16 { gap: 16px; } .col.g24 { gap: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼 */
.btn { height: 52px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover { border-color: var(--pri); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: var(--surface); }
.btn.pri:hover { background: var(--pri-d); }
.btn.light { background: var(--surface); color: var(--pri-d); border-color: var(--surface); }
.btn.danger { color: var(--warn); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.xs { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--faint); cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--pri); font-weight: 600; cursor: pointer; }

/* 카드·칩 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card.tight { padding: 14px 16px; }
.card.hero { position: relative; overflow: hidden; background: var(--pri); border-color: var(--pri); color: var(--bg); border-radius: 24px; padding: 22px; }
.card.hero::after { content: ''; position: absolute; right: -44px; top: -44px; width: 150px; height: 150px; border-radius: 50%; background: var(--gold); opacity: .18; pointer-events: none; }
.note { background: var(--sand); border-radius: 14px; padding: 14px; font-size: 13px; color: #3E4844; line-height: 1.55; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--div); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-t); color: var(--ok); }
.chip.warn { background: var(--warn-t); color: var(--warn); }
.chip.amber { background: var(--amber-t); color: var(--amber); }
.chip.pri { background: var(--pri-t); color: var(--pri-d); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }
.icon-circle { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--pri-t); color: var(--pri); display: inline-flex; align-items: center; justify-content: center; }
.divider { border: 0; border-top: 1px solid var(--div); margin: 0; }
.big { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--pri); line-height: 1.1; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--pri); border-radius: 3px; }

/* 입력 */
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fld input, .fld select, .fld textarea, input.in, select.in, textarea.in { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); font-weight: 400; font-size: 15px; }
.fld textarea, textarea.in { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.fld .hint { font-weight: 400; font-size: 12px; color: var(--faint); }
.fld input[readonly] { background: var(--div); color: var(--muted); cursor: default; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pri); flex-shrink: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }

/* 알림 토스트 */
#toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 99; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }

/* ── 학부모 모바일 */
.m-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 40px 20px 120px; display: flex; flex-direction: column; gap: 18px; word-break: keep-all; }
.m-wrap.no-tab { padding-bottom: 32px; }
.m-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; }
.m-head .t { text-align: center; font-size: 16px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 84px; padding: 8px 12px 24px; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 10; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--faint); }
.tabbar a[aria-current] { color: var(--pri); font-weight: 600; }
.tabbar .fab { width: 56px; height: 56px; margin-top: -32px; border-radius: 50%; border: 4px solid var(--surface); background: var(--pri); color: var(--surface); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px -8px rgba(20,60,72,.7); }
.tabbar .fab-label { color: var(--pri); font-weight: 600; }
@media (min-width: 560px) { .tabbar { left: 50%; transform: translateX(-50%); max-width: 480px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 84px; padding: 12px 20px; background: var(--bg); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 9; }
@media (min-width: 560px) { .sticky-cta { left: 50%; transform: translateX(-50%); max-width: 480px; } }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { height: 68px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 0; }
.day .dw { font-size: 12px; color: var(--muted); }
.day .dn { font-size: 17px; font-weight: 600; }
.day .dd { width: 5px; height: 5px; border-radius: 50%; background: var(--pri); }
.day .dd.none { background: transparent; }
.day[aria-pressed="true"] { background: var(--pri); border-color: var(--pri); color: var(--surface); }
.day[aria-pressed="true"] .dw { color: var(--surface); opacity: .85; }
.day[aria-pressed="true"] .dd { background: var(--gold); }
.day:disabled { border-style: dashed; background: transparent; color: #9A948A; cursor: default; }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.time { height: 56px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); font-family: var(--mono); font-size: 16px; font-weight: 500; cursor: pointer; }
.time[aria-pressed="true"] { border: 2px solid var(--pri); background: var(--pri-t); color: var(--pri-d); font-weight: 600; }
.scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.scale button, .yn button { height: 52px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); font-weight: 600; cursor: pointer; }
.scale button { font-family: var(--mono); font-size: 17px; }
.scale button[aria-pressed="true"] { background: var(--pri); color: var(--surface); border: 2px solid var(--pri); }
.yn button[aria-pressed="true"] { background: var(--pri-t); color: var(--pri-d); border: 2px solid var(--pri); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--div); }
.check-row:last-child { border-bottom: 0; }
.ok-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--ok-s); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.preview { position: relative; height: 220px; border-radius: 20px; background: #22292B; overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; }
.preview .tag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; color: #EEF3F1; background: rgba(0,0,0,.45); padding: 5px 9px; border-radius: 8px; }
.preview .tag.warn { color: #F4C98A; }
.pride-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pride-k { width: 36px; height: 36px; border-radius: 10px; background: var(--pri-t); color: var(--pri-d); font-family: var(--mono); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pride-n { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--faint); height: 100%; justify-content: flex-end; }
.bars span { width: 100%; max-width: 36px; border-radius: 6px 6px 3px 3px; background: var(--line2); }
.bars div:last-child span { background: var(--pri); }

/* 통화 화면 (학부모, 가로 우선) */
.call { position: fixed; inset: 0; background: #101517; color: #E8ECEA; display: flex; flex-direction: column; }
.call video.main { flex: 1; min-height: 0; width: 100%; object-fit: cover; background: #1B2427; }
.call .pip { position: absolute; top: 16px; right: 16px; width: 28vw; max-width: 200px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: #26343A; border: 2px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.call .pip video { width: 100%; height: 100%; object-fit: cover; }
.call .status { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.call .status span { font-size: 12px; font-weight: 600; background: rgba(0,0,0,.5); padding: 6px 10px; border-radius: 8px; }
.call .controls { display: flex; justify-content: center; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: #182024; }
.call .controls button { min-width: 72px; height: 56px; border-radius: 16px; border: 0; background: #26343A; color: #E8ECEA; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.call .controls button.end { background: #E0524A; color: #fff; }
.call .controls button[aria-pressed="true"] { background: #F6D3BD; color: #2E1405; }
.call .center-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px; color: #C9D1CE; pointer-events: none; }
/* 휴대폰을 가로로 돌리면(자동 회전 켜짐) 화상 앱처럼 영상을 넓게, 버튼은 오른쪽 세로줄로 */
@media (orientation: landscape) and (max-height: 520px) {
  .call { flex-direction: row; }
  .call video.main { width: auto; min-width: 0; }
  .call .controls { flex-direction: column; gap: 8px; padding: 10px calc(10px + env(safe-area-inset-right)) 10px 10px; }
  .call .controls button { min-width: 64px; height: 50px; }
  .call .pip { right: calc(100px + env(safe-area-inset-right)); width: 22vw; }
}

/* ── PC (전문가·관리자) */
.pc { display: flex; min-height: 100vh; background: var(--bg-pc); }
.side { width: 232px; flex-shrink: 0; background: var(--side); color: var(--side-ink); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; white-space: nowrap; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--bg); }
.side .brand svg { flex-shrink: 0; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side .grp { font-size: 11px; font-weight: 600; color: #8A9794; padding: 14px 12px 4px; letter-spacing: .04em; }
.side nav a { height: 42px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--side-mut); }
.side nav a:hover { color: var(--bg); background: rgba(255,255,255,.05); }
.side nav a[aria-current] { color: var(--bg); background: rgba(255,255,255,.08); font-weight: 600; }
.side nav a .n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #E58A4E; color: #2E1405; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid #26343A; }
.side .me button { margin-left: auto; background: none; border: 0; color: var(--side-mut); cursor: pointer; font-size: 12px; }
.main { flex: 1; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.main h1 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--pri-t); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat .v { font-family: var(--serif); font-size: 26px; font-weight: 700; white-space: nowrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--div); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.sel td { background: var(--pri-t); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--pri); border-color: var(--pri); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.split.r { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 1200px) {
  .split, .split.r { grid-template-columns: 1fr !important; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sched-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--div); }
.sched-item:last-child { border-bottom: 0; }
.cal { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 12px; }
.cal .h { text-align: center; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal .t { font-family: var(--mono); color: var(--faint); padding-top: 6px; }
.cal button { height: 44px; border-radius: 8px; border: 1px dashed var(--line2); background: transparent; font-size: 12px; cursor: pointer; text-align: left; padding: 4px 8px; overflow: hidden; line-height: 1.3; color: var(--faint); }
.cal button.open { border: 1px solid #9FC3CC; background: var(--pri-t); color: var(--pri-d); }
.cal button.booked { border: 0; background: var(--pri); color: var(--surface); }
.cal button.req { border: 1px solid var(--gold); background: var(--amber-t); color: var(--amber); }
.cal button.done { border: 0; background: var(--line); color: var(--muted); }
.cal button:disabled { cursor: default; opacity: .55; }
.cal button.booked:disabled, .cal button.done:disabled { opacity: 1; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }

/* 전문가 분석 미팅룸 (어두운 화면) */
.room { min-height: 100vh; background: #101517; color: #E8ECEA; display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.room .left { display: flex; flex-direction: column; padding: 20px; gap: 14px; min-width: 0; }
.room .topbar { display: flex; align-items: center; gap: 14px; }
.room .pill { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #1B2427; color: #9FB9BF; display: inline-flex; align-items: center; gap: 6px; }
.room .pill.rec { color: #F6C3A4; }
.room .pill.on { color: #3CC486; }
.room .video { position: relative; flex: 1; min-height: 360px; border-radius: 18px; background: #1B2427; overflow: hidden; }
.room .video video.main { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
/* 학부모가 휴대폰을 돌렸을 때 영상을 세워서 (크기는 expert.js 가 칸에 맞춰 넣음) */
.room .video video.main.turned { inset: auto; left: 50%; top: 50%; width: var(--vw); height: var(--vh); transform: translate(-50%, -50%) rotate(var(--r)); }
.room .video .self { position: absolute; right: 14px; bottom: 14px; width: 180px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #26343A; border: 1px solid #33444A; }
.room .video .self video { width: 100%; height: 100%; object-fit: cover; }
.room .video .msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9BA8A6; text-align: center; padding: 24px; }
.room .panel { background: #182024; border-left: 1px solid #26343A; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: 100vh; }
.room .box, .dash .box { background: #1B2427; border: 1px solid #26343A; border-radius: 14px; padding: 14px; }
.room .muted, .dash .muted { color: #9BA8A6; }
.room .btn, .dash .btn { background: #26343A; border-color: #33444A; color: #E8ECEA; }
.room .btn.pri { background: #5FB3C4; border-color: #5FB3C4; color: #0E2A31; }
.room .btn.end { background: #E0524A; border-color: #E0524A; color: #fff; }
.room .btn[aria-pressed="true"] { background: #F6D3BD; border-color: #F6D3BD; color: #2E1405; }
.room input.in, .room select.in { background: #101517; border-color: #33444A; color: #E8ECEA; height: 40px; }
.counter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.counter button { height: 64px; border-radius: 12px; border: 1px solid #33444A; background: #1B2427; color: #E8ECEA; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 12px; text-align: left; }
.counter button:hover { border-color: #5FB3C4; }
.counter button:active { background: #15343C; }
.counter .k { font-family: var(--mono); font-weight: 600; color: #9FD0DB; }
.counter .n { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.counter .n.goal { color: #3CC486; }
.counter .lbl { font-size: 13px; font-weight: 600; line-height: 1.2; }
.counter .lbl small { display: block; font-weight: 400; color: #9BA8A6; font-size: 11px; }
.counter.dont button { border-color: #4A3A32; }
.counter.dont .k { color: #F6C3A4; }
.counter.dont .n.over { color: #E58A4E; }
.timeline { position: relative; height: 26px; border-radius: 8px; background: #1B2427; }
.timeline i { position: absolute; top: 4px; width: 4px; height: 18px; border-radius: 2px; background: var(--gold); }
.room .kbd { font-family: var(--mono); font-size: 10px; color: #7E8E8B; }

/* ECBI 대시보드 (미팅룸 위 팝업) */
.dash { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid #33444A; border-radius: 18px; background: #141B1E; color: #E8ECEA; }
.dash::backdrop { background: rgba(5, 8, 9, .72); }
.dash-in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dash .kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; }
.dash .body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.dash .body > .col { gap: 12px; }
.dash .v { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.15; }
.dash .brief { background: #15343C; border-color: #1F4A55; }
.dash .focus { background: #2A211A; border: 1px solid #4A3A32; border-radius: 10px; padding: 10px 12px; line-height: 1.6; }
.dash .up { color: #E58A4E; font-weight: 600; }
.dash .down { color: #3CC486; font-weight: 600; }
.dash .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash svg { display: block; overflow: visible; }
.dash svg text { font-family: var(--sans); font-size: 11px; fill: #9BA8A6; paint-order: stroke; stroke: #1B2427; stroke-width: 3px; stroke-linejoin: round; }
.dash svg text.end { font-size: 13px; font-weight: 700; fill: #E8ECEA; }
.dash svg .hit { fill: transparent; }
.dash svg .hit:hover { fill: rgba(255, 255, 255, .05); }
.dash .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.hm { display: grid; gap: 2px 3px; align-items: center; justify-content: start; }
.hm .c { position: relative; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; }
.hm .c.p::after { content: ''; position: absolute; top: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
@media (max-width: 1000px) { .dash .kpi, .dash .body { grid-template-columns: 1fr; } }

/* 랜딩 */
.land { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.land header { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.land .intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0 72px; }
.land .intro h1 { font-family: var(--serif); font-size: 52px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.land .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.land section { padding: 48px 0; border-top: 1px solid var(--line); }
.land h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 20px; }
.land footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* 스토리 랜딩 (story.html) */
.story { word-break: keep-all; }
.story .intro h1 { font-size: 44px; text-wrap: balance; }
.story h2 { text-wrap: balance; }
.story .lead { font-size: 17px; line-height: 1.75; margin: 0; }
.short { position: relative; margin: 0; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; justify-self: center; border-radius: 24px; overflow: hidden; background: var(--pri); color: var(--surface); display: flex; align-items: flex-end; }
.short::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--gold); opacity: .2; }
.short figcaption { position: relative; padding: 28px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.5; }
.short figcaption small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: #CFE3E6; }
.short iframe { width: 100%; height: 100%; border: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; align-items: center; }
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pains .check { padding: 18px; font-size: 16px; align-items: center; }
.pains .check:has(input:checked) { border-color: var(--pri); background: var(--pri-t); }
.chapters { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 32px; max-width: 780px; }
.chapters li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
.chapters li > * { grid-column: 2; }
.chapters .n { grid-column: 1; grid-row: 1 / span 2; font-family: var(--mono); font-weight: 600; color: var(--pri); padding-top: 4px; }
.chapters h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.chapters p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.ba .card { display: flex; flex-direction: column; gap: 6px; }
.ba .was { font-size: 14px; color: var(--faint); }
.ba .was::before { content: '전 · '; }
.ba .now { font-weight: 600; color: var(--pri-d); }
.ba .now::before { content: '지금 · '; }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.cta-band { align-items: center; text-align: center; padding: 48px 24px; }
.m-cta { display: none; }

/* 무료 체크리스트 결과지 (check.html) */
.meter { position: relative; height: 8px; margin: 8px 0 2px; border-radius: 4px; background: var(--line); }
.meter > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--pri); }
.meter > i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--warn); }
.result-status.warn { background: var(--warn-t); border-color: #EBC4AC; }
.result-status.amber { background: var(--amber-t); border-color: #E6D29E; }
.result-status.ok { background: var(--ok-t); border-color: #BFE0CD; }
.area { display: grid; grid-template-columns: 112px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 14px; }
.area .bar > span { background: var(--line2); }
.area.top { font-weight: 600; color: var(--pri-d); }
.area.top .bar > span { background: var(--pri); }
.locked { position: relative; }
.locked > .blurred { display: flex; flex-direction: column; gap: 18px; filter: blur(5px); opacity: .85; user-select: none; }
.locked > .gate { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 150px; background: linear-gradient(rgba(244, 239, 231, 0) 35%, var(--bg) 96%); }
.locked > .gate .card { width: min(100%, 360px); text-align: center; box-shadow: 0 16px 36px -18px rgba(20, 60, 72, .5); }
.btn.kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.btn.kakao:hover { border-color: #E5CE00; color: #191919; }

@media (max-width: 900px) {
  .land .intro { grid-template-columns: 1fr; padding-top: 16px; }
  .land .intro h1 { font-size: 36px; }
  .land .steps, .grid3, .grid4 { grid-template-columns: 1fr; }
  .land { padding: 0 16px; }
  .story { padding-bottom: 88px; }
  .story .intro h1 { font-size: 30px; }
  .two, .pains, .ba, .stats { grid-template-columns: 1fr; }
  .chapters li { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; }
  .m-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); z-index: 9; }
  .split, .room { grid-template-columns: 1fr; }
  .pc { flex-direction: column; }
  .side { width: auto; height: auto; position: static; gap: 12px; padding: 12px; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side .grp { display: none; }
  .main { padding: 20px 16px; }
  .room .panel { max-height: none; }
}
