:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #1b1a17;
  --muted: #6d6a62;
  --line: #e6e1d6;
  --accent: #1b1a17;          /* 책 머리말의 검정 띠 */
  --tip: #fff3a3;             /* 책의 노란 박스 */
  --tip-line: #f0d94a;
  --primary: #c2410c;         /* 주강세 */
  --secondary: #d97706;       /* 부강세 */
  --weak: #a8a29e;            /* 약음 */
  --good: #15803d; --good-bg: #e8f5ec;
  --mid: #b45309; --mid-bg: #fdf1e2;
  --bad: #b91c1c; --bad-bg: #fbe9e9;
  --info-bg: #eef1f5;
  --env: rgba(27, 26, 23, .78);
  --pitch: #2563eb;
  --seg-a: #f1ede4; --seg-b: #f8f5ee; --hit-bg: #fde7d9;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151412; --surface: #1f1e1b; --ink: #f1eee7; --muted: #a39f95; --line: #34322d;
    --accent: #f1eee7; --tip: #3a3414; --tip-line: #6b5d17;
    --primary: #fb923c; --secondary: #fbbf24; --weak: #78716c;
    --good: #4ade80; --good-bg: #16301f; --mid: #fbbf24; --mid-bg: #33280f; --bad: #f87171; --bad-bg: #3a1a1a; --info-bg: #23262c;
    --env: rgba(241, 238, 231, .75); --pitch: #60a5fa;
    --seg-a: #26241f; --seg-b: #1f1e1b; --hit-bg: #3d2616;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16.5px; line-height: 1.7; word-break: keep-all;
}
#app { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; justify-content: center; }
.loading { padding: 40px; color: var(--muted); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .92em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.icon { padding: 6px 10px; }
.btn.small { font-size: .8em; }
.btn.tiny { padding: 1px 6px; font-size: .75em; }
.btn .count { opacity: .75; font-size: .88em; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }

/* 홈 */
.hero { padding: 48px 0 20px; }
.hero-kicker { display: inline-block; background: var(--accent); color: var(--bg); padding: 2px 10px; font-size: .85em; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); margin: 14px 0 8px; }
.hero-sub { color: var(--muted); margin: 0; }
.banner { background: var(--tip); border: 1px solid var(--tip-line); border-radius: var(--radius); padding: 12px 16px; font-size: .9em; margin: 8px 0 16px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 28px; }
.how div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.how b { font-size: 1.05em; }
.how span { color: var(--muted); font-size: .88em; }
.chapters { display: grid; gap: 12px; }
.chcard { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.chcard.soon { opacity: .55; }
.chcard.prologue { align-items: center; justify-content: space-between; text-decoration: none; color: inherit; border-left: 4px solid var(--tip-line, #e0b92e); }
.ch-num { font-size: 34px; font-weight: 800; line-height: 1; min-width: 36px; }
.ch-title { font-size: 1.15em; font-weight: 700; text-decoration: none; }
.ch-sub { color: var(--muted); font-size: .9em; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot { margin-top: 32px; color: var(--muted); font-size: .82em; }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 14px; align-items: center; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .92em; }
.topbar a { text-decoration: none; color: var(--muted); }
.topbar span:nth-child(2) { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .pos { color: var(--muted); }

/* 레슨 */
.lesson { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-top: 20px; }
.toc { position: sticky; top: 64px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .9em; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.toc a.on { background: var(--accent); color: var(--bg); }
.content { min-width: 0; }
.kicker { color: var(--muted); font-size: .85em; }
.content h2 { font-size: 1.8em; margin: 4px 0 18px; }
.content h3 { font-size: 1.2em; margin: 30px 0 8px; }
.note { color: var(--muted); font-size: .95em; padding-left: 4px; }
.tip { display: flex; gap: 12px; background: var(--tip); border: 1px solid var(--tip-line); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.tip .clock { font-size: 26px; line-height: 1; }
.practice-link { display: block; margin: 26px 0 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.pager .btn { white-space: normal; }

/* 강세 표시 (책의 ▼ – 표) */
.syls { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0 6px; }
.syl { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 4px 8px; border-radius: 10px; background: var(--seg-b); }
.syl .mark { font-size: .8em; height: 1.3em; }
.syl .stext { font-size: 1.25em; font-weight: 500; }
.syl .v { font-size: .9em; color: var(--muted); font-family: "Charis SIL", "Doulos SIL", "Lucida Grande", serif; }
.syl.s2 { background: var(--hit-bg); }
.syl.s2 .mark, .syl.s2 .stext, .s2 { color: var(--primary); }
.syl.s2 .stext { font-weight: 800; }
.syl.s1 .mark, .s1 { color: var(--secondary); }
.syl.s0 .mark, .s0 { color: var(--weak); }
.ipa { font-family: "Charis SIL", "Doulos SIL", "Lucida Grande", serif; color: var(--muted); }
.ko strong { color: var(--primary); }

.wordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 14px 0; }
.wordcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.wordcard.hypo { border-style: dashed; opacity: .85; margin: 12px 0; }
.hypo-label { font-size: .85em; color: var(--bad); }
.wc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.wc-word { font-weight: 800; font-size: 1.15em; }
.wc-play { display: flex; gap: 4px; }
.tag { display: inline-block; font-size: .72em; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: middle; color: var(--muted); }
.gloss { color: var(--muted); font-size: .85em; margin-left: 6px; }
.gloss.center { display: block; margin: 0; text-align: center; }
.wc-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.wc-note { font-size: .88em; color: var(--muted); margin: 8px 0 0; }

.sentence, .poem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; }
.sent-top, .poem-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sent-text { font-weight: 600; font-size: 1.05em; }
.poem-words { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pw { display: flex; flex-direction: column; align-items: center; }
.pw-marks { font-size: .75em; letter-spacing: 4px; height: 1.3em; }
.pw-text { font-weight: 600; }
.pw-v { font-size: .82em; font-family: "Charis SIL", "Lucida Grande", serif; }
.poem-foot { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.tr { color: var(--muted); font-size: .9em; }

.tablewrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: .92em; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { background: var(--seg-a); font-weight: 700; }

.vowelchart { margin: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.vc-grid { display: grid; grid-template-columns: 50px repeat(3, 1fr); gap: 6px; }
.vc-h { font-size: .8em; color: var(--muted); text-align: center; align-self: center; }
.vc-c { background: var(--seg-b); border-radius: 8px; min-height: 48px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.vc-c.back { background: var(--seg-a); }
.vc { font-family: "Charis SIL", "Lucida Grande", serif; font-size: 1.2em; padding: 0 6px; border-radius: 6px; }
.vc.tense { background: #fde7d9; color: #9a3412; }
.vc.lax { background: #e0ecfb; color: #1e40af; }
.vc-legend { font-size: .8em; color: var(--muted); margin-top: 8px; }
.vc-legend .vc { font-size: .9em; }

/* 연습 */
.drill { max-width: 640px; margin: 16px auto 0; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 14px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dot.good { background: var(--good); } .dot.mid { background: var(--mid); } .dot.low { background: var(--bad); }
.dot.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.context { text-align: center; color: var(--muted); font-size: .9em; }
.bigword { text-align: center; font-size: clamp(34px, 9vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.step { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.step-h { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.step-h .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: .8em; }
.step-h .best { margin-left: auto; font-weight: 500; font-size: .85em; color: var(--muted); }
.step .syls { justify-content: center; }
.guess { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.gbtn { font: inherit; font-size: 1.3em; font-weight: 600; padding: 10px 16px; min-width: 64px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.gbtn:hover { border-color: var(--primary); color: var(--primary); }
#skip { display: block; margin: 6px auto 0; }
.verdict { text-align: center; font-weight: 600; margin-bottom: 4px; }
.verdict.good { color: var(--good); } .verdict.bad { color: var(--bad); }
.listen { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.recarea { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.recbtn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 1.05em; padding: 14px 28px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; cursor: pointer; }
.recbtn .dotrec { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.recbtn.on { background: var(--bad); }
.recbtn.on .dotrec { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.meter { width: 220px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter div { height: 100%; width: 0; background: var(--good); transition: width .06s; }

.result { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.score { align-self: center; display: flex; align-items: baseline; gap: 2px; }
.score-n { font-size: 52px; font-weight: 800; line-height: 1; }
.score.good { color: var(--good); } .score.mid { color: var(--mid); } .score.low { color: var(--bad); }
.bars-h { font-weight: 600; font-size: .92em; }
.bars { display: flex; gap: 10px; justify-content: center; align-items: flex-end; margin-top: 6px; }
.bar { display: flex; flex-direction: column; align-items: center; width: 56px; }
.bar-t { font-size: .85em; }
.bar-col { width: 34px; height: 110px; background: var(--seg-b); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-fill { width: 100%; background: var(--weak); border-radius: 8px 8px 0 0; }
.bar.hit .bar-fill { background: var(--primary); }
.bar-s { font-weight: 600; margin-top: 4px; }
.bar-d { font-size: .72em; color: var(--muted); }
.parts { display: grid; gap: 2px; width: 44px; margin-top: 4px; }
.part { height: 5px; border-radius: 3px; background: var(--seg-a); overflow: hidden; }
.part i { display: block; height: 100%; border-radius: 3px; }
.part.dur i, .dur-l { background: #d97706; }
.part.loud i, .loud-l { background: var(--env); }
.part.pitch i, .pitch2-l { background: var(--pitch); }
.parts-legend { margin-top: 8px; text-align: center; line-height: 1.8; }
.nuc-l { background: var(--primary); height: 4px; }
.trend-l { background: none; border-top: 2px dashed var(--pitch); height: 0; opacity: .6; }
.env { width: 100%; height: 120px; border-radius: 10px; background: var(--seg-b); }
.env-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-left: 8px; }
.env-l { background: var(--env); } .pitch-l { background: var(--pitch); border-radius: 50%; width: 8px; height: 8px; } .hit-l { background: var(--hit-bg); border: 1px solid var(--primary); }
.msg { padding: 10px 14px; border-radius: 10px; font-size: .93em; }
.msg.good { background: var(--good-bg); } .msg.warn { background: var(--mid-bg); } .msg.bad { background: var(--bad-bg); } .msg.info { background: var(--info-bg); }
.row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 760px) {
  .lesson { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lesson > * { min-width: 0; }
  .toc { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .toc a { white-space: nowrap; }
  .how { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .chcard { padding: 14px; gap: 12px; }
}

/* 목소리 등록 */
.voicecard { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--tip); border: 1px solid var(--tip-line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 14px; }
.voicecard.done { background: var(--surface); border-color: var(--line); }
.voicecard > span:last-child { display: flex; flex-direction: column; }
.vc-icon { font-size: 26px; }
.vrows { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.vrow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.vbig { font-size: 34px; font-weight: 800; width: 48px; text-align: center; }
.vhint { flex: 1; font-size: .92em; }
.vowelmap { width: 100%; max-width: 420px; display: block; margin: 8px auto; }
.vm-bg { fill: var(--seg-b); stroke: var(--line); }
.vm-axis { font-size: 10px; fill: var(--muted); }
.vm-ref { fill: none; stroke-width: 2; stroke-dasharray: 3 3; }
.vm-a { stroke: #b45309; } .vm-ae { stroke: #2563eb; } .vm-eo { stroke: #7c3aed; }
.vm-reft { font-size: 14px; font-weight: 700; fill: var(--ink); }
.vm-pt.ok { fill: var(--good); } .vm-pt.bad { fill: var(--bad); }
.vm-ptt { font-size: 11px; font-weight: 600; fill: var(--ink); }
.bar-v { font-size: .75em; font-weight: 700; margin-top: 2px; }
.bar-v.ok { color: var(--good); } .bar-v.bad { color: var(--bad); }
.vm-wrap { margin-top: 4px; }

/* 로그인 */
.login .login-card { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.btn.google { justify-content: center; padding: 12px 18px; font-size: 1em; font-weight: 600; background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn.google:disabled { opacity: .6; cursor: default; }
.userbar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; font-size: .85em; color: var(--muted); padding-top: 12px; }

/* ── 선생님 화면 ─────────────────────────────────────── */
.teacher { max-width: 1040px; margin: 0 auto; padding-bottom: 48px; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.t-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; }
.t-stats b { font-size: 1.5em; font-variant-numeric: tabular-nums; }
.t-stats span { font-size: .82em; color: var(--muted); }
.t-table td, .t-table th { vertical-align: middle; }
.t-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.good { color: var(--good); } .mid { color: #b45309; } .low { color: var(--bad); }
.tbar { position: relative; width: 140px; height: 18px; background: var(--seg-a); border-radius: 9px; overflow: hidden; }
.tbar i { position: absolute; inset: 0 auto 0 0; background: var(--secondary, #fbbf24); opacity: .55; }
.tbar span { position: relative; font-size: .75em; padding-left: 8px; line-height: 18px; font-variant-numeric: tabular-nums; }
.t-drill { display: flex; align-items: center; gap: 8px; font-size: .85em; margin: 2px 0; flex-wrap: wrap; }
.t-drill .tbar { width: 110px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .88em; background: var(--surface); }
.t-chip b { margin-left: 4px; } .t-chip small { margin-left: 4px; color: var(--muted); }
.t-chip.low b { color: var(--bad); } .t-chip.mid b { color: #b45309; }
.teacher .ok { color: var(--good); } .teacher .bad { color: var(--bad); }
.userbar .linkbtn { text-decoration: none; }

/* ── 질문하기 ─────────────────────────────────────────── */
.ask-link { display: inline-block; margin-top: 14px; font-size: .92em; }
.result + .ask-link, .result ~ .ask-link { display: block; text-align: center; }
.badge { display: inline-block; background: var(--primary); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78em; margin-left: 2px; }
.askcard { margin-top: 10px; }
.qa-ask textarea, .qa-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--surface); color: var(--ink); resize: vertical; }
.qa-label { display: block; font-weight: 600; margin: 14px 0 6px; }
.qa-ctx { background: var(--seg-b); border-radius: 10px; padding: 10px 12px; margin: 10px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.qa-word { font-size: 1.25em; }
.qa-take { display: grid; gap: 4px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.qa-rec { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.qa-rec .levelbar { flex-basis: 100%; height: 4px; background: var(--seg-a); border-radius: 2px; overflow: hidden; }
.qa-rec .level { height: 100%; width: 0; background: var(--primary); }
.qa-card { margin: 12px 0; display: grid; gap: 6px; }
.qa-card.new { border-color: var(--primary); }
.qa-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qa-status { font-size: .78em; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--seg-a); }
.qa-status.answered { background: var(--good-bg); color: var(--good); }
.qa-card.new .qa-status { background: var(--primary); color: #fff; }
.qa-body { white-space: pre-wrap; margin: 4px 0; }
.qa-answer { border-left: 3px solid var(--good); padding: 6px 0 6px 12px; margin-top: 6px; display: grid; gap: 6px; }
.qa-answer-h { font-weight: 700; }
.qa-answer p { white-space: pre-wrap; margin: 0; }
.qa-form { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; display: grid; gap: 8px; }
.qa-tags .t-chip { cursor: pointer; font: inherit; font-size: .88em; color: var(--ink); }
.qa-tags .t-chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.qa-take-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
[hidden] { display: none !important; }

/* ── 정식 회원(잠긴 장·인증) ──────────────────────────── */
.chcard.locked { align-items: center; text-decoration: none; color: inherit; }
.chcard.locked .ch-body { flex: 1; }
.chcard.locked .ch-num, .chcard.locked .ch-title { opacity: .7; }
.unlock-banner { display: block; text-decoration: none; color: inherit; }
.unlock-banner:hover { border-color: var(--ink); }
.unlock-card { margin: 12px 0; display: grid; gap: 8px; }
.unlock-card h2, .unlock-card h3 { margin: 4px 0; }
.unlock-card p { margin: 0; }
.unlock-list { margin: 0; padding-left: 1.2em; }
.center-card { text-align: center; }
.lock-icon { font-size: 2.4em; line-height: 1; }
.unlock-file { display: inline-flex; width: fit-content; cursor: pointer; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; background: var(--seg-b); }
.unlock-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.unlock-file:focus-within { outline: 2px solid var(--primary); }
.unlock-prev { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }
.unlock-input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--surface); color: var(--ink); }
.plan { display: inline-block; font-size: .78em; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.plan.full { background: var(--good-bg); color: var(--good); }
.plan.free { background: var(--seg-a); color: var(--muted); }
.plan.hot { background: var(--mid-bg); color: var(--mid); }
.t-req { margin: 10px 0; display: grid; gap: 8px; }
.t-req-photo { max-width: 100%; max-height: 480px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }
.t-member { display: grid; gap: 8px; }
.t-filter { margin-bottom: 8px; }
.t-filter .t-chip { cursor: pointer; font: inherit; font-size: .88em; color: var(--ink); }
.t-filter .t-chip.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.unlock-card > .btn { justify-self: start; }
