/* 독해 강화 — 읽기 훈련 화면 */
.mode-recall { --accent: var(--brand); --accent-ink: var(--brand-ink); --accent-strong: #0f766e; --on-accent: #fff; }

/* ---------------------------------------------------------------- 홈 · 지표 */
.page-head.row-between { align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.hero h2 { font-size: 22px; margin: 8px 0 4px; letter-spacing: -0.02em; }
.hero .chip { background: var(--accent-strong); color: var(--on-accent); justify-self: start; }
.hero-text { display: grid; gap: 2px; max-width: 640px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis .stat { display: grid; gap: 2px; padding: 14px 16px; align-content: start; }
.kpis .stat b { font-size: 24px; letter-spacing: -0.02em; }
.kpis .stat.accent b { color: var(--brand-ink); }
.today-strip { grid-template-columns: 1fr 1fr 1.4fr; }
.stat-icon.xp { background: color-mix(in srgb, var(--lime) 30%, transparent); color: var(--skim-ink); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mode-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; padding: 16px; }
.mode-card:hover { border-color: var(--accent); }
.mode-card .stat-icon, .mode-row .stat-icon, .result-row .stat-icon, .landing-feature .stat-icon {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); }
.page.home > * + *, .page.records > * + * { margin-top: 0; }
.home section, .records section { margin-bottom: 14px; }

/* ---------------------------------------------------------------- 차트 */
.chart { display: grid; gap: 6px; }
.line-chart { width: 100%; height: auto; }
.line-chart .grid { stroke: var(--line); stroke-width: 1; }
.line-chart .tick { fill: var(--muted); font-size: 12px; }
.line-chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .dot { stroke: var(--surface); stroke-width: 2; }
.series.s1 .line { stroke: var(--brand); } .series.s1 .dot { fill: var(--brand); }
.series.s2 .line { stroke: var(--test); stroke-dasharray: 5 4; opacity: 0.7; } .series.s2 .dot { fill: var(--test); }
.series.s3 .line { stroke: var(--summary); } .series.s3 .dot { fill: var(--summary); }
.chart-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--brand); }
.legend.s2 i { background: var(--test); } .legend.s3 i { background: var(--summary); }
.chart-empty { padding: 20px 0; text-align: center; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 76px 1fr 44px auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 99px; background: var(--brand); }
.hbar-fill.low { background: var(--skim); }

/* ---------------------------------------------------------------- 지문 목록 */
.track-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.track-desc { margin: 6px 0 16px; }
.passage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 18px; }
.passage-card { display: grid; gap: 6px; text-align: left; padding: 14px 16px; color: inherit; font: inherit; cursor: pointer; }
.passage-card:hover { border-color: var(--brand); }
.passage-card.done { background: color-mix(in srgb, var(--ok) 5%, var(--surface)); }
.passage-title { font-size: 16px; line-height: 1.35; }
.mode-pick { display: grid; gap: 8px; }
.mode-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.mode-row:hover { border-color: var(--accent); }
.mode-row > div { flex: 1; }

/* ---------------------------------------------------------------- 훈련 화면 */
.train-title { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); white-space: nowrap; }
.train-body { max-width: 720px; }
.train-intro { display: grid; gap: 14px; padding-top: 12px; }
.train-intro h1 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.3; }
.mode-badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 14px;
  background: var(--accent-strong); color: var(--on-accent); }
.how { border-left: 4px solid var(--accent); }
.glossary { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glossary li { display: flex; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.glossary b { min-width: 6em; }
.reader { font-family: var(--read-font); color: var(--ink); max-width: 680px; margin: 0 auto; padding: 8px 2px 40px; word-break: keep-all; }
.reader[lang="en"] { word-break: normal; }
.reader-title { font-size: 1.25em; margin-bottom: 0.8em; letter-spacing: -0.01em; }
.reader .para { margin: 0 0 1em; }
.reading-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pacer-reader .chunk { border-radius: 4px; transition: background 0.08s, color 0.2s; padding: 1px 0; }
.pacer-reader .chunk.past { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.pacer-reader .chunk.on { background: color-mix(in srgb, var(--lime) 70%, transparent); color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 70%, transparent); }
.pacer-reader.paused .chunk.on { background: color-mix(in srgb, var(--lime) 35%, transparent); }
.skim-head { position: sticky; top: 62px; z-index: 5; display: grid; gap: 4px; padding: 8px 0; background: var(--bg); }
.countdown { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.countdown-fill { height: 100%; width: 100%; background: var(--accent); transition: width 0.1s linear; }
.scan-q { position: sticky; top: 62px; z-index: 5; display: grid; gap: 4px; margin-bottom: 10px; border-left: 4px solid var(--accent); }
.scan-question { font-size: 18px; font-weight: 700; }
.scan-reader .sent { cursor: pointer; border-radius: 4px; transition: background 0.1s; }
.scan-reader .sent:hover, .scan-reader .sent:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
.scan-reader .sent.picked { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.summary-input { min-height: 120px; resize: vertical; line-height: 1.6; }
.question { display: grid; gap: 14px; padding-top: 8px; }
.question .chip { justify-self: start; }
.q-text { font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; }
.choices { display: grid; gap: 8px; }
.choice-btn { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); color: inherit; font: inherit; font-size: 16px; line-height: 1.5; }
.choice-btn:hover { border-color: var(--accent); }
.choice-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.choice-no { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--surface-2); color: var(--ink-2); }

/* ---------------------------------------------------------------- 결과 */
.result { display: grid; gap: 14px; padding-top: 8px; }
.result-head { display: flex; align-items: center; gap: 18px; }
.result-head .ring { color: var(--accent); flex-shrink: 0; }
.result-head h1 { font-size: 24px; letter-spacing: -0.02em; }
.res-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.res-stat { display: grid; gap: 2px; padding: 14px 16px; }
.res-stat b { font-size: 26px; letter-spacing: -0.02em; }
.res-stat.accent b { color: var(--brand-ink); }
.calib { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.review-list { display: grid; gap: 8px; }
.review-item summary { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 700; list-style: none; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item .mark { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); }
.review-item.no .mark { background: var(--bad); }
.review-item[open] summary { margin-bottom: 10px; }
.evidence { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--mark) 55%, transparent); }
mark.evi { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.key-sentence { font-weight: 700; }
.summary-fb .better { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.ok-text { color: var(--ok-ink); } .bad-text { color: var(--bad); }
.notice { padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }

/* ---------------------------------------------------------------- 기록 · 내 글 */
.result-list { display: grid; gap: 8px; }
.result-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.result-row > div:nth-child(2) { flex: 1; min-width: 0; }
.result-nums { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.custom-row { display: flex; align-items: center; gap: 12px; }
.custom-row > div:nth-child(2) { flex: 1; min-width: 0; }
.mytexts textarea.text-input { resize: vertical; line-height: 1.6; }

/* ---------------------------------------------------------------- 첫 화면 */
.track-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.track-card { display: grid; gap: 4px; padding: 14px 16px; }
.reader-preview { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-family: var(--read-font); }

@media (max-width: 820px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .today-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .q-text { font-size: 19px; }
  .result-head { gap: 12px; }
  .hbar { grid-template-columns: 64px 1fr 40px; }
  .hbar .muted { display: none; }
  .passage-grid { grid-template-columns: 1fr; }
  .skim-head, .scan-q { top: 56px; }
}

/* ---------------------------------------------------------------- 하이라이트 읽기 · 구조 패널 (guide.js · structure.js) */
.mode-rsvp { --accent: var(--test); --accent-ink: var(--test-ink); --accent-strong: var(--test-strong); --on-accent: #fff; }
.mode-repeat { --accent: var(--summary); --accent-ink: var(--summary-ink); --accent-strong: var(--summary-strong); --on-accent: #fff; }
.focus-body.wide { max-width: 1100px; }
.focus-foot-inner.wide { max-width: 1100px; }
.read-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.read-main { min-width: 0; }
.read-split .reader { margin: 0; max-width: 700px; }

.guided { position: relative; }
.guided .w { border-radius: 3px; transition: color 0.25s; cursor: pointer; }
.guide-dim .w.past { color: color-mix(in srgb, var(--ink) 48%, transparent); }
.guided .w.on { background: color-mix(in srgb, var(--lime) 45%, transparent); }
.guide-band { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 0; border-radius: 6px;
  background: color-mix(in srgb, var(--lime) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime) 70%, transparent);
  transition: transform 50ms ease-out, width 50ms ease-out; will-change: transform; }
.guided .para { position: relative; z-index: 1; }
.gstyle-line .guide-band { background: transparent; box-shadow: none; border-bottom: 3px solid var(--accent); border-radius: 0; }
.guided.paused .guide-band { opacity: 0.45; }
.guide-bar { display: flex; align-items: center; gap: 8px; }
.guide-speed-wrap { display: grid; text-align: center; line-height: 1.15; min-width: 68px; }
.guide-speed { font-size: 18px; letter-spacing: -0.02em; }
.icon-btn.sm { width: 34px; height: 34px; }

.structure { position: sticky; top: 76px; max-height: calc(100vh - 190px); overflow: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-head .st-close { display: none; }
.st-title { font-weight: 800; font-size: 15px; line-height: 1.35; }
.st-sections, .st-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-sections { gap: 12px; }
.st-heading { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.st-no, .sec-no { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--surface-2); color: var(--ink-2); }
.st-sec.current .st-no { background: var(--accent-strong); color: var(--on-accent); }
.st-sec.done .st-no { background: color-mix(in srgb, var(--ok) 25%, var(--surface)); color: var(--ok-ink); }
.st-sec.todo .st-heading { color: var(--muted); }
.st-point { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 5px 8px; border-radius: 10px; border-left: 3px solid transparent; }
.st-point.open[role="button"] { cursor: pointer; }
.st-point.open[role="button"]:hover { background: var(--surface-2); }
.st-point.here { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-left-color: var(--accent); }
.gist-closed { color: var(--muted); letter-spacing: 0.2em; }
.role { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; white-space: nowrap; margin-top: 1px; }
.role-open { background: color-mix(in srgb, var(--test) 14%, transparent); color: var(--test-ink); }
.role-explain { background: color-mix(in srgb, var(--pacer) 14%, transparent); color: var(--pacer-ink); }
.role-logic { background: color-mix(in srgb, var(--skim) 18%, transparent); color: var(--skim-ink); }
.role-argue { background: color-mix(in srgb, var(--summary) 14%, transparent); color: var(--summary-ink); }
.role-story { background: color-mix(in srgb, var(--scan) 12%, transparent); color: var(--scan-ink); }
.role-close { background: var(--surface-2); color: var(--ink-2); }
.st-flow { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.st-flow p { display: grid; gap: 2px; font-size: 14px; }
.st-flow-line { font-weight: 700; }
.st-open { display: none; }
.structure-card .st-points { gap: 4px; }

/* 한 어절씩 읽기 · 반복 읽기 */
.rsvp-stage { flex: 1; display: grid; align-content: center; gap: 14px; min-height: 52vh; }
.rsvp-frame { position: relative; display: grid; place-items: center; min-height: 150px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rsvp-word { font-family: var(--read-font); font-size: clamp(30px, 6vw, 44px); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-align: center; padding: 0 16px; }
.rsvp-tick { position: absolute; left: 50%; width: 2px; height: 16px; background: var(--accent); transform: translateX(-1px); }
.rsvp-tick.top { top: 14px; } .rsvp-tick.bottom { bottom: 14px; }
.repeat-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }

/* ---------------------------------------------------------------- 긴 글 */
.long-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.long-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; }
.long-card:hover { border-color: var(--brand); }
.long-card.doing { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.long-card.done { background: color-mix(in srgb, var(--ok) 5%, var(--surface)); }
.long-card .progress { flex: none; height: 8px; margin-top: 4px; }
.long-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.long-toc li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.long-toc li.here { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.long-toc li.done .toc-no { background: color-mix(in srgb, var(--ok) 25%, var(--surface)); color: var(--ok-ink); }
.toc-no { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-2); }
.toc-h { flex: 1; font-weight: 700; }
.long-opt { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.long-reader .reader-title { display: flex; align-items: center; gap: 10px; }
.long-reader .sec-no { background: var(--accent-strong); color: var(--on-accent); width: 28px; height: 28px; font-size: 14px; }
.long-prev-list { display: grid; gap: 6px; margin-bottom: 18px; max-width: 700px; }
.long-prev { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px 12px; }
.long-prev summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.long-prev .reader { padding: 10px 0 0; color: var(--ink-2); }
.long-quiz { max-width: 700px; }

/* ---------------------------------------------------------------- 속독 드릴 */
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.drill-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; padding: 16px; }
.drill-card:hover { border-color: var(--accent); }
.drill-card .stat-icon { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); }
.drill-best { display: grid; gap: 4px; }
.spark { width: 100%; height: 28px; color: var(--brand); }
.chip.ev { font-size: 12px; padding: 3px 9px; }
.ev-strong { background: var(--ok-bg); color: var(--ok-ink); }
.ev-moderate { background: color-mix(in srgb, var(--test) 12%, var(--surface)); color: var(--test-ink); }
.ev-weak { background: var(--surface-2); color: var(--muted); }
.honest { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; border-left: 4px solid var(--skim); }
.honest > svg { flex-shrink: 0; color: var(--skim-ink); margin-top: 2px; }
.drill-body { max-width: 680px; }
.drill-stage { min-height: 46vh; display: grid; place-items: center; align-content: center; gap: 10px; }
.drill-stage.ok .drill-mark { color: var(--ok); }
.drill-stage.no .drill-mark { color: var(--bad); }
.drill-answer { font-size: 20px; font-weight: 700; text-align: center; font-family: var(--read-font); }
.flash-text { font-family: var(--read-font); font-size: clamp(28px, 6vw, 40px); font-weight: 700; letter-spacing: -0.01em; text-align: center; padding: 0 12px; min-height: 1.4em; }
.mem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; font-family: var(--read-font); font-size: 26px; font-weight: 700; text-align: center; }
.mem-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mem-opt { justify-content: center; font-weight: 700; }
.choices.two-col { grid-template-columns: 1fr 1fr; }
.drill-q .choice-btn { font-family: var(--read-font); font-size: 18px; }
.span-stage { position: relative; min-height: 46vh; display: grid; place-items: center; font-family: var(--read-font); font-size: 24px; font-weight: 800; overflow: hidden; }
.span-stage > span { grid-area: 1 / 1; width: 1.2em; text-align: center; }
.span-c { color: var(--accent); }
.schulte-head { margin: 4px 0 12px; font-size: 16px; }
.schulte-next { font-size: 22px; color: var(--accent-ink); }
.schulte-wrap { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.schulte { display: grid; gap: 6px; aspect-ratio: 1; }
.schulte-cell { border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: clamp(18px, 4vw, 26px); font-weight: 800; }
.schulte-cell.hit { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--muted); border-color: transparent; }
.schulte-cell.miss { animation: shake 0.25s; border-color: var(--bad); }
.schulte-dot { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bad); pointer-events: none; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.sac-stage { display: grid; gap: 10px; padding: 10px 0; }
.sac-row { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: 24px; }
.sac-row.slots-3 { justify-content: space-between; }
.sac-cell { width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 8px; color: transparent; transition: background 0.05s; border: 1.5px dashed var(--line); }
.sac-cell.on { background: color-mix(in srgb, var(--lime) 60%, transparent); color: var(--ink); }
.sac-cell.gone { color: transparent; }

/* 모바일 위쪽 막대 (내 글 · 설정 · 계정) */
.mobile-head { display: none; }

@media (max-width: 1000px) {
  .read-split { grid-template-columns: 1fr; }
  .structure { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 70vh; border-radius: 20px 20px 0 0;
    transform: translateY(105%); transition: transform 0.25s ease; box-shadow: var(--shadow-2); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .structure.open { transform: none; }
  .st-head .st-close { display: inline-grid; }
  .st-open { display: inline-flex; position: fixed; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: var(--shadow-2); }
}
@media (max-width: 820px) {
  .mobile-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 0; }
  .mobile-head .brand { padding: 0; font-size: 18px; }
  .mobile-head-actions { display: flex; align-items: center; gap: 8px; }
  .mobile-head .icon-btn.active { border-color: var(--accent); color: var(--accent-ink); }
  .mobile-head .avatar-sm { text-decoration: none; }
}
@media (max-width: 560px) {
  .guide-bar { gap: 4px; }
  .guide-speed-wrap { min-width: 56px; }
  .long-grid { grid-template-columns: 1fr; }
}
.guide-demo-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.guide-demo { padding: 0; margin: 0; max-width: none; }
.guide-demo .para { margin: 0; }
/* 읽는 중 아래 조절 막대: 글 위에 떠 있는 막대 (뒤 글자가 비치지 않게) */
.focus-foot-inner.reading-foot { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; box-shadow: var(--shadow-1); }
/* 홈: 긴 글 이어 읽기 · 워밍업 */
.home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.long-home { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.long-home > div { flex: 1; display: grid; gap: 3px; min-width: 0; }
.long-home .progress { flex: none; height: 6px; margin-top: 4px; }
.long-home .stat-icon { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); }
.long-home.warm { --accent: var(--skim); --accent-ink: var(--skim-ink); }
.long-home:hover { border-color: var(--accent); }
@media (max-width: 820px) { .home-pair { grid-template-columns: 1fr; } }
.drill-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.drill-row { display: grid; gap: 4px; }
@media (max-width: 560px) {
  /* 읽는 중 조절 막대: 위 줄 = 속도·멈춤, 아래 줄 = 다 읽었어요 */
  .focus-foot-inner.reading-foot { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .reading-foot > .btn { width: 100%; justify-content: center; }
  .reading-foot .guide-bar { justify-content: center; }
  .st-open { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
/* 하이라이트 띠 위에 글자를 올리느라 문단에 z-index 를 주므로, 위·아래 막대는 그보다 위에 */
.focus-top, .focus-foot { z-index: 20; }
/* 사라지는 글: 지나간 낱말은 지우고, 띠 대신 가는 선이 지우개 위치를 보여 준다 */
.gstyle-erase .w.past { color: transparent; transition: color 0.12s; }
.gstyle-erase .guide-band { background: transparent; box-shadow: none; border-left: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 0; }
.mode-fade { --accent: var(--scan); --accent-ink: var(--scan-ink); --accent-strong: var(--scan-strong); --on-accent: #fff; }
.ev-none { background: var(--surface-2); color: var(--muted); text-decoration: none; border: 1px dashed var(--line); }
.ev-caution { background: var(--warn-bg); color: var(--warn-ink); }
.gist-quiz .choice-btn.right { border-color: var(--ok); background: var(--ok-bg); }
.gist-quiz .choice-btn.wrong { border-color: var(--bad); background: var(--bad-bg); }
.gist-quiz .choice-btn:disabled { cursor: default; }
.focus-probe { position: fixed; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: grid; gap: 10px;
  width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-2); border-left: 4px solid var(--accent); }
/* 드릴 단계 고르기 · 단계 변화 */
.level-pick { display: grid; gap: 10px; border-left: 4px solid var(--accent); }
.level-now { display: block; font-size: 28px; letter-spacing: -0.02em; }
.level-now small { font-size: 15px; font-weight: 600; }
.level-track { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); }
.level-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); }
.level-track b { position: absolute; top: -3px; width: 3px; height: 14px; margin-left: -1px; border-radius: 2px; background: var(--ink-2); }
.level-change { display: grid; gap: 4px; }
.level-change b { font-size: 20px; }
.flash-text.long { font-size: clamp(20px, 3.6vw, 28px); line-height: 1.5; max-width: 640px; }
.choices.long .choice-btn { font-size: 16px; }
.train-intro > .chip { justify-self: start; }

/* ---------------------------------------------------------------- 책 읽기 */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.book-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; }
.book-card:hover { border-color: var(--brand); }
.book-card.pending { opacity: 0.6; }
.book-card .progress { flex: none; height: 6px; margin-top: 4px; }
.book-title { font-size: 19px; letter-spacing: -0.02em; }
.book-blurb { color: var(--ink-2); }
.book-note { margin: -4px 0 14px; }
.book-fields { flex-wrap: wrap; margin-bottom: 14px; }
.book-fields small { font-weight: 600; }
.book-head { display: grid; gap: 8px; margin: 10px 0 8px; }
.book-head .chip { justify-self: start; }
.book-head h1 { font-size: 30px; letter-spacing: -0.02em; }
.book-head .btn { justify-self: start; }
.book-head .progress { flex: none; height: 8px; }
.book-stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-2); }
.book-units { display: grid; gap: 6px; }
.book-unit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.book-unit > div { flex: 1; min-width: 0; }
.book-unit:hover { border-color: var(--accent); }
.book-unit.here { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.book-unit.done { background: color-mix(in srgb, var(--ok) 5%, var(--surface)); }
.unit-no { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-2); }
.book-unit.done .unit-no { background: color-mix(in srgb, var(--ok) 25%, var(--surface)); color: var(--ok-ink); }
.chapter-title { font-size: 0.85em; font-weight: 800; color: var(--accent-ink); letter-spacing: 0.02em; margin: 0.4em 0 0.3em; }
.para-src { font-family: var(--font); font-size: 0.78em; line-height: 1.6; color: var(--muted); margin: -0.6em 0 1.1em; padding-left: 12px; border-left: 2px solid var(--line); }
.book-source summary { cursor: pointer; }
.book-source p { margin-top: 4px; word-break: break-all; }
