:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #6b6f76;
  --line: #e4e2dc;
  --ink: #1b1d21;
  --ink-text: #ffffff;
  --aws: #c2710c;
  --net: #0f8a6c;
  --eks: #2563eb;
  --istio: #7c3aed;
  --k8s: #0e7490;
  --linux: #57606a;
  --delivery: #be185d;
  --sre: #4d7c0f;
  --awsops: #9a3412;
  --ok: #15803d;
  --ok-bg: #e9f6ee;
  --no: #b91c1c;
  --no-bg: #fdecec;
  --code-bg: #efede7;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318;
    --surface: #1a1d24;
    --text: #e9eaed;
    --muted: #9a9fa8;
    --line: #2a2e37;
    --ink: #e9eaed;
    --ink-text: #111318;
    --aws: #f59e0b;
    --net: #34d399;
    --eks: #60a5fa;
    --istio: #a78bfa;
    --k8s: #22d3ee;
    --linux: #a3acb8;
    --delivery: #f472b6;
    --sre: #a3e635;
    --awsops: #fdba74;
    --ok: #4ade80;
    --ok-bg: #12281b;
    --no: #f87171;
    --no-bg: #2d1616;
    --code-bg: #0c0e12;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111318;
  --surface: #1a1d24;
  --text: #e9eaed;
  --muted: #9a9fa8;
  --line: #2a2e37;
  --ink: #e9eaed;
  --ink-text: #111318;
  --aws: #f59e0b;
  --net: #34d399;
  --eks: #60a5fa;
  --istio: #a78bfa;
  --k8s: #22d3ee;
  --linux: #a3acb8;
  --delivery: #f472b6;
  --sre: #a3e635;
  --awsops: #fdba74;
  --ok: #4ade80;
  --ok-bg: #12281b;
  --no: #f87171;
  --no-bg: #2d1616;
  --code-bg: #0c0e12;
  --shadow: none;
  color-scheme: dark;
}

[data-track="aws"] { --tc: var(--aws); }
[data-track="net"] { --tc: var(--net); }
[data-track="eks"] { --tc: var(--eks); }
[data-track="istio"] { --tc: var(--istio); }
[data-track="k8s"] { --tc: var(--k8s); }
[data-track="linux"] { --tc: var(--linux); }
[data-track="delivery"] { --tc: var(--delivery); }
[data-track="sre"] { --tc: var(--sre); }
[data-track="awsops"] { --tc: var(--awsops); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

#app {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 96px);
  outline: none;
}
body.focus #app { padding-top: 0; padding-bottom: calc(env(safe-area-inset-bottom) + 40px); }
.loading, .empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* 하단 탭 */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
body.focus .tabs { display: none; }
.tabs a {
  position: relative; flex: 1; max-width: 150px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; text-decoration: none;
  font-size: 11px; color: var(--muted);
}
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--text); font-weight: 600; }
.badge {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--no); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}

/* 공통 */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.25; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn.primary { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.btn.block { display: flex; width: 100%; }
.btn.danger { color: var(--no); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--tc); letter-spacing: .01em;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--tc); }
.meta { color: var(--muted); font-size: 13px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--tc, var(--ink)); }

/* 오늘 */
.streak { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.streak-n { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.streak-n small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.week { display: flex; gap: 6px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.week i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.week i.on { background: var(--ink); }
.week .now { color: var(--text); font-weight: 700; }
.today-lesson h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; margin: 8px 0 6px; }
.today-lesson .summary { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.done-mark { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); margin-bottom: 12px; }
.done-mark svg, .check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.progress-row { display: grid; grid-template-columns: 104px 1fr 44px; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.progress-row b { color: var(--tc); font-size: 13px; }
.progress-row span { text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hint-card { font-size: 14px; color: var(--muted); }
.hint-card b { color: var(--text); }
.hint-card button { border: 0; background: none; padding: 6px 0 0; color: var(--muted); text-decoration: underline; font-size: 13px; }

/* 비교 */
.search {
  width: 100%; height: 46px; padding: 0 14px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.search:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.cmp-group { margin-bottom: 24px; }
.cmp-group > h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 4px 8px; }
.cmp-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cmp-list li + li { border-top: 1px solid var(--line); }
.cmp-list a, .cmp-today { display: block; padding: 13px 16px; text-decoration: none; }
.cmp-today { padding: 0; }
.cmp-list b, .cmp-today b { display: block; font-size: 15.5px; line-height: 1.4; }
.cmp-list span, .cmp-today span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.cmp-key {
  margin: 4px 0 8px; padding: 14px 16px; border-radius: 14px; font-size: 16.5px; line-height: 1.6; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--ink);
}
.cmp-key code, .cmp-list code, .cmp-today code { font: 13.5px ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; }
.cmp-page .prose h2:first-child { margin-top: 20px; }
.cmp-x, .cmp-cases { margin-top: 26px; }
.cmp-x > h2, .cmp-cases > h2 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 10px; }
.cmp-x > .meta, .cmp-cases > .meta { margin: 8px 0 12px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chip { min-height: 40px; padding: 0 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); }
.cmp-chip.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.cmp-chip.all { border-style: dashed; }
.cmp-pair { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); } /* overflow를 숨기면 이름 줄의 sticky가 상자 안에 갇힌다 */
.cmp-names { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: calc(env(safe-area-inset-top) + 52px); z-index: 2; background: var(--ink); color: var(--ink-text); border-radius: 13px 13px 0 0; margin: -1px -1px 0; }
.cmp-names b { padding: 10px 12px; font-size: 14.5px; line-height: 1.35; }
.cmp-names b + b { border-left: 1px solid color-mix(in srgb, var(--ink-text) 25%, transparent); }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cmp-names + .cmp-row { border-top: 0; }
.cmp-row em { grid-column: 1 / -1; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); padding: 9px 12px 0; }
.cmp-row > div { padding: 3px 12px 11px; font-size: 15px; line-height: 1.5; }
.cmp-row > div + div { border-left: 1px solid var(--line); }
.cmp-row.same > div.both { grid-column: 1 / -1; color: var(--muted); }
.cmp-row.same small { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 8px; background: var(--line); font-size: 11px; font-weight: 700; }
.cmp-row code, .cmp-cases code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; word-break: normal; overflow-wrap: anywhere; }
/* 작동 방식 따라가기 */
.cmp-how { margin-top: 26px; }
.cmp-how > h2 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 10px; }
.how-tabs { margin-bottom: 10px; }
.how-title { font-weight: 600; font-size: 15.5px; line-height: 1.5; margin-bottom: 10px; }
.cmp-how .cmp-chips { margin-bottom: 10px; }
.how-box { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { border-top: 1px solid var(--line); }
.how-steps li:first-child { border-top: 0; }
.how-name { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: none; text-align: left; font-size: 14.5px; font-weight: 700; color: var(--text); }
.how-name i { flex: none; width: 22px; height: 22px; border-radius: 11px; font-style: normal; font-size: 12px; line-height: 22px; text-align: center; background: var(--line); color: var(--muted); }
.how-name span { flex: 1; }
.how-name em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; color: var(--no); background: var(--no-bg); }
.how-steps li.todo .how-name { color: var(--muted); font-weight: 500; }
.how-steps li.done .how-name i { background: var(--muted); color: var(--surface); }
.how-steps li.now { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.how-steps li.now .how-name i { background: var(--ink); color: var(--ink-text); }
.how-cells { display: grid; grid-template-columns: 1fr 1fr; padding: 0 0 4px; }
.how-cells.one { grid-template-columns: 1fr; }
.how-cells > div { padding: 2px 12px 10px; font-size: 14.5px; line-height: 1.5; border-left: 3px solid var(--ok); margin-left: 12px; }
.how-cells > div + div { margin-left: 6px; }
.how-cells > div.s-x { border-left-color: var(--no); }
.how-cells > div.s-n { border-left-color: var(--line); color: var(--muted); }
.how-cells small { display: block; font-size: 11px; font-weight: 700; margin-bottom: 1px; }
.how-cells .s-x small { color: var(--no); }
.how-cells code { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 1px 4px; border-radius: 5px; word-break: normal; overflow-wrap: anywhere; }
.how-steps li.done .how-cells > div { opacity: .72; }
.how-nav { margin-top: 10px; }
.how-sum { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.cmp-choices { grid-template-columns: 1fr 1fr; }
.cmp-choices .choice { padding: 11px 12px; font-size: 14.5px; }
.cmp-x .prose th:first-child { position: sticky; left: 0; background: var(--surface); white-space: nowrap; }
.related { margin: 28px 0 0; display: grid; gap: 8px; }
.related h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 4px; }
.related a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; }
.related a .tag { display: flex; font-size: 11.5px; margin-bottom: 2px; }

/* 트랙 칩 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 13px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--tc); white-space: nowrap; }
.chip.off { color: var(--muted); font-weight: 500; background: none; text-decoration: line-through; }

/* 커리큘럼 */
.track { margin-bottom: 26px; scroll-margin-top: 16px; }
.track-head { margin-bottom: 10px; }
.track-head h2 { font-size: 20px; color: var(--tc); letter-spacing: -.01em; }
.track-head p { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.lessons { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lessons li + li { border-top: 1px solid var(--line); }
.lessons a { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 10px; padding: 13px 16px; text-decoration: none; }
.lessons .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lessons .title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.lessons .meta { display: block; font-weight: 400; }
.check { color: var(--ok); display: flex; }

/* 학습 */
.topbar {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -16px; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topbar a, .topbar button { border: 0; background: none; padding: 8px; font-size: 15px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.topbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.read-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--tc, var(--ink)); }
.lesson-head { padding: 12px 0 8px; }
.lesson-head h1 { font-size: 27px; line-height: 1.3; letter-spacing: -.02em; margin: 8px 0; }
.lesson-head .summary { color: var(--muted); }

.prose { font-size: 16.5px; line-height: 1.78; }
.prose h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; margin: 34px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 700; }
.prose a { color: var(--tc); }
.prose code {
  font: 13.5px/1.5 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg); padding: 2px 5px; border-radius: 5px;
  word-break: normal; overflow-wrap: anywhere;
}
.prose pre {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin: 14px -4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.prose pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.6; word-break: normal; white-space: pre; overflow-wrap: normal; }
.prose blockquote {
  margin: 16px 0; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--tc) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tc) 25%, var(--line));
  font-size: 15.5px;
}
.prose blockquote p { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 14px -4px; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; background: var(--surface); }
.prose th, .prose td { padding: 9px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 84px; }
.prose th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* 문제 */
.quiz-head { margin: 40px 0 6px; padding-top: 24px; border-top: 1px solid var(--line); }
.quiz-head h2 { font-size: 20px; }
.quiz-head p { color: var(--muted); font-size: 14px; }
.q { margin: 22px 0; }
.q-text { font-weight: 600; font-size: 16.5px; line-height: 1.55; margin-bottom: 12px; }
.q-n { display: inline-block; min-width: 22px; height: 22px; margin-right: 8px; border-radius: 7px; background: var(--ink); color: var(--ink-text); font-size: 12px; line-height: 22px; text-align: center; vertical-align: 2px; }
.q code, .why code { font: 13.5px ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; word-break: normal; overflow-wrap: anywhere; }
.choices { display: grid; gap: 8px; }
.choice {
  text-align: left; padding: 13px 14px; min-height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 15.5px; line-height: 1.5; color: var(--text);
}
.choice:disabled { cursor: default; opacity: 1; }
.choice.right { border-color: var(--ok); background: var(--ok-bg); font-weight: 600; }
.choice.wrong { border-color: var(--no); background: var(--no-bg); }
.choice.dim { opacity: .55; }
.why { margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.65; background: var(--surface); border: 1px solid var(--line); }
.why b { display: inline-block; margin-right: 6px; }
.why.ok b { color: var(--ok); }
.why.no b { color: var(--no); }
.why a { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.lesson-foot { margin-top: 28px; }
.lesson-foot .hint { color: var(--muted); font-size: 14px; text-align: center; padding: 12px 0; }
.result { text-align: center; }
.result .big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.result p { color: var(--muted); margin: 6px 0 16px; font-size: 15px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pager a { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface); font-size: 14px; font-weight: 600; line-height: 1.4; }
.pager a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.pager a.next { text-align: right; grid-column: 2; }

/* 복습 */
.session-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; }
.session-head .bar { flex: 1; }
.session-head span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 96px; margin: 6px 0 4px; }
.boxes div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.boxes i { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--ink); opacity: .85; }
.box-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; font-size: 11px; color: var(--muted); }

/* 설정 */
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--line); gap: 3px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; font-size: 14px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.field + .field { margin-top: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .desc { font-size: 13px; color: var(--muted); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--muted); }

/* 알림 */
.banner {
  position: fixed; left: 12px; right: 12px; z-index: 30;
  bottom: calc(env(safe-area-inset-bottom) + 72px);
  max-width: 656px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 14px;
  background: var(--ink); color: var(--ink-text); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.banner button { border: 0; border-radius: 9px; padding: 8px 12px; background: var(--ink-text); color: var(--ink); font-size: 13px; font-weight: 700; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--ink-text);
  font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

@media (prefers-reduced-motion: no-preference) {
  .choice, .btn { transition: transform .08s ease, background-color .15s ease, border-color .15s ease; }
  .bar i, .read-progress { transition: width .25s ease; }
}
