:root {
  color-scheme: light;
  --ink: #20352f;
  --ink-soft: #425c53;
  --paper: #f4f0e7;
  --surface: #fffdf8;
  --line: #cbd1c6;
  --moss: #597766;
  --rust: #a44f39;
  --gold: #d19a4b;
  --blue: #66849a;
  --pale: #e8eee7;
  --warm: #f4e5d8;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

.graph-stage { margin: .75rem 0 .2rem; color: var(--ink-soft); font-size: .9rem; }
.graph-node[data-step-target="true"] { border-bottom: 3px solid var(--moss); }
.enumerated { display: block; padding-block: .15rem; }
@media (max-width: 620px) {
  .answer-output.manuscript-body { padding: .7rem .65rem; }
  .answer-output.manuscript-body ol { padding-left: 1.25rem; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.72 var(--sans); }
a { color: var(--moss); text-underline-offset: .2em; }
a:hover { color: var(--rust); }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.28; font-weight: 600; text-wrap: pretty; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner, .brand, .top-nav { display: flex; align-items: center; }
.topbar-inner { min-height: 68px; justify-content: space-between; gap: 16px; }
.brand { gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--surface); background: var(--ink); transform: rotate(-5deg); font: 600 1.1rem/1 var(--serif); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; letter-spacing: .05em; }
.brand small { color: var(--ink-soft); font-size: .76rem; line-height: 1.2; }
.top-nav { gap: 2px; }
.top-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .72rem; color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.top-nav a[aria-current="page"] { color: var(--rust); box-shadow: inset 0 -2px var(--rust); font-weight: 700; }
.footer { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .86rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 14px; }
.hero, .page-head { color: var(--surface); background: var(--ink); }
.hero { padding-block: clamp(48px, 8vw, 108px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); align-items: center; gap: clamp(28px, 6vw, 82px); }
.eyebrow, .overline, .kicker { font-size: .86rem; letter-spacing: .08em; font-weight: 700; }
.eyebrow { color: #e7bd76; }
.hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 6.3vw, 5.6rem); line-height: 1.08; }
.hero-lede { max-width: 35em; margin: 1.2rem 0 1.65rem; color: #d8e2da; font-size: 1.06rem; }
.actions, .lesson-controls, .chip-row, .source-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 17px; border: 1px solid transparent; border-radius: 3px; color: var(--surface); background: var(--rust); font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4; }
.btn:hover { color: var(--surface); background: #813b2b; }
.btn-outline { color: var(--moss); background: transparent; border-color: #789083; }
.btn-outline:hover { color: var(--ink); background: var(--pale); }
.btn-quiet { color: var(--surface); background: transparent; border-color: #9aac9e; }
.btn-quiet:hover { color: var(--surface); border-color: var(--surface); }
.argument-hero { position: relative; min-height: 345px; padding: 20px; border: 1px solid #6a8277; background: #263f37; overflow: hidden; }
.argument-hero::before { content: ""; position: absolute; inset: 14% 10%; border: 1px dashed #668074; border-radius: 50%; transform: rotate(-12deg); }
.argument-hero figcaption { position: relative; z-index: 1; color: #d6e0d5; font-size: .83rem; letter-spacing: .06em; }
.argument-hero svg { position: absolute; inset: 44px 8px 8px; width: calc(100% - 16px); height: calc(100% - 52px); }
.map-link { stroke: #91a99a; stroke-width: 2; stroke-dasharray: 5 5; }
.map-node { cursor: pointer; }
.map-node circle { fill: #314d42; stroke: #b7c8b7; stroke-width: 1.5; }
.map-node text { fill: #f8f4e9; font: 600 15px "PingFang SC", sans-serif; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.map-node[data-active="true"] circle { fill: var(--rust); stroke: #f2c58a; stroke-width: 3; }
.argument-caption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 17px; color: #c1d1c5; font-size: .86rem; }
.section { padding-block: clamp(28px, 5vw, 64px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head p { color: var(--ink-soft); }
.overline { margin-bottom: .44rem; color: var(--rust); }
.kicker { color: var(--gold); }
.page-head { padding-block: 26px 31px; }
.page-head h1 { margin-top: .4rem; font-size: clamp(2rem, 4.7vw, 3.7rem); }
.page-head p:last-child { max-width: 55em; margin-top: .55rem; color: #d4e1d7; }
.grid-3, .grid-2, .catalog-grid { display: grid; gap: 16px; }
.grid-3, .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel, .toc-card, .notice { background: var(--surface); border: 1px solid var(--line); }
.panel { min-width: 0; padding: clamp(19px, 3vw, 34px); }
.toc-card { display: block; padding: 22px; color: var(--ink); text-decoration: none; border-top: 3px solid var(--moss); }
.toc-card:hover { border-color: var(--rust); }
.toc-card h3 { display: flex; justify-content: space-between; gap: 10px; }
.toc-card p { margin-top: .62rem; color: var(--ink-soft); }
.toc-card small { display: block; margin-top: 1.1rem; color: var(--rust); font-weight: 700; }
.notice { padding: 16px 18px; border-left: 3px solid var(--gold); background: #fbf3df; }
.notice p + p { margin-top: .45rem; }
.route-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-bottom: 17px; background: var(--line); }
.route-strip a { min-height: 53px; display: grid; place-items: center; padding: 8px; color: var(--ink-soft); background: var(--surface); text-align: center; text-decoration: none; }
.route-strip a[aria-current="page"] { color: var(--surface); background: var(--ink); font-weight: 700; }
.lesson-layout, .practice-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); align-items: start; gap: 18px; }
.lesson-panel > * + *, .practice-panel > * + * { margin-top: 1.05rem; }
.lesson-panel h2 { margin-top: .15rem; }
.question { font-size: 1.06rem; }
.step-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-bottom: 17px; background: var(--line); border: 1px solid var(--line); }
.step-tabs button { min-height: 52px; padding: 7px 8px; border: 0; color: var(--ink-soft); background: var(--surface); cursor: pointer; }
.step-tabs button[aria-current="step"] { color: var(--surface); background: var(--ink); font-weight: 700; }
.step-number { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 5px; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.material { padding: 20px; border: 1px solid #d7cabd; background: #fbf7ee; }
.material blockquote { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.9; }
.material-line { padding: 2px 4px; border-radius: 2px; transition: background-color .18s ease, color .18s ease; }
.material-line[data-highlight="true"] { color: var(--ink); background: #f2d29a; }
.chip { min-height: 38px; padding: 6px 11px; border: 1px solid #b8c4b8; border-radius: 99px; color: var(--moss); background: transparent; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--surface); background: var(--moss); border-color: var(--moss); }
.chip small { margin-left: 4px; opacity: .8; }
.step-card { padding: 16px; border-left: 3px solid var(--moss); background: var(--pale); }
.step-card p + p { margin-top: .45rem; }
.side-panel { background: #eef1e8; }
.side-panel > * + * { margin-top: 1rem; }
.argument-map { width: 100%; min-height: 260px; padding: 8px; background: #2a443a; border: 1px solid #6c8778; }
.argument-map svg { display: block; width: 100%; height: auto; }
.argument-map .map-node text { font-size: 13px; }
.map-legend { color: var(--ink-soft); font-size: .87rem; }
.source-note, .source-list, .meta { color: var(--ink-soft); font-size: .91rem; }
.source-list { padding-left: 1.25rem; }
.source-list li + li { margin-top: .55rem; }
.fold { border-top: 1px solid var(--line); }
.fold summary { min-height: 45px; padding: 10px 2px; color: var(--moss); font-weight: 700; cursor: pointer; }
.fold-body { padding: 0 2px 14px; }
.fold-body > * + * { margin-top: .75rem; }
.manuscript-fold { margin-top: 18px; border: 1px solid #c8cec3; background: #fffdf8; }
.manuscript-fold summary { min-height: 54px; display: grid; gap: 2px; padding: 12px 14px; color: var(--moss); cursor: pointer; }
.manuscript-fold summary span { font-weight: 800; }
.manuscript-fold summary small { color: var(--ink-soft); font-weight: 500; overflow-wrap: anywhere; }
.manuscript-body { padding: 0 14px 15px; border-top: 1px solid var(--line); }
.manuscript-body { max-width: 78ch; padding: 1.15rem clamp(1rem, 3vw, 2.3rem) 1.6rem; line-height: 1.85; overflow-wrap: anywhere; }
.manuscript-body h3, .reading-step { margin-block: 1.45rem .75rem; }
.manuscript-body h3:first-child { margin-top: 0; }
.manuscript-body blockquote { margin: .75rem 0; padding: .55rem 1rem; border-left: 3px solid var(--moss); background: var(--pale); }
.manuscript-body ol, .manuscript-body ul { padding-inline-start: 1.4rem; }
.manuscript-body li + li, .answer-section + .answer-section { margin-top: .8rem; }
.reading-comparison, .reading-step { border-top: 1px solid var(--line); padding-top: 1rem; }
.reading-comparison p { margin: .4rem 0 .8rem; }
.principles { display: grid; gap: 10px; }
.principle-choice { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; width: 100%; padding: 13px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); text-align: left; cursor: pointer; }
.principle-choice:hover, .principle-choice[data-state="selected"] { border-color: var(--moss); }
.principle-choice[data-state="correct"] { border-color: var(--moss); background: var(--pale); }
.principle-choice[data-state="wrong"] { border-color: var(--rust); background: var(--warm); }
.choice-mark { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.answer-builder { display: grid; gap: 10px; }
.answer-block { width: 100%; padding: 13px 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.answer-block[aria-pressed="true"] { border-color: var(--rust); box-shadow: inset 3px 0 var(--rust); }
.answer-block strong { display: block; color: var(--moss); }
.answer-output { padding: 18px; border: 1px solid #d7cabd; background: #fbf7ee; }
.answer-output h3 { color: var(--rust); }
.answer-output p + p { margin-top: .75rem; }
.answer-output ol { padding-left: 1.4rem; }
.answer-output li + li { margin-top: .55rem; }
.review-table { width: 100%; border-collapse: collapse; }
.review-table th, .review-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.review-table thead th { color: var(--surface); background: var(--ink); }
.review-table tbody tr:nth-child(even) { background: #f1f3ec; }
.review-table th:first-child { width: 22%; color: var(--moss); }
.review-map { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.review-node { padding: 16px; text-align: center; background: var(--pale); border: 1px solid #b9c6b8; }
.review-node.center { color: var(--surface); background: var(--rust); border-color: var(--rust); }
.review-arrow { color: var(--rust); font-size: 1.5rem; }
.exam-card { padding: 18px; border: 1px solid #cfd3c5; background: #f8f8f1; }
.exam-card .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.exam-card blockquote { margin: 1rem 0 0; padding-left: 15px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-item { display: flex; align-items: start; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.evidence-item input { margin-top: .35rem; accent-color: var(--moss); }
.score { min-height: 50px; padding: 12px 14px; background: var(--pale); border-left: 3px solid var(--moss); }
.course-outline { display: grid; gap: 18px; margin-top: 24px; }
.outline-unit { min-width: 0; padding: clamp(18px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--moss); }
.outline-unit > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.outline-unit h2 { max-width: 21em; }
.status-stack { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; }
.status-stack span { padding: 4px 9px; color: var(--ink-soft); background: var(--pale); border: 1px solid #bdc8bc; font-size: .8rem; font-weight: 700; }
.status-stack span[data-state="缺稿"] { color: #6f3f28; background: #f8eee2; border-color: #d8bba2; }
.status-stack span[data-state="未通过"] { color: #7a2424; background: #fae7e3; border-color: #d7a39b; }
.status-stack span[data-state="结构门槛通过"] { color: #245541; background: #e5f1e9; border-color: #a5c6b1; }
.unit-priority { margin-top: .75rem; color: var(--ink-soft); }
.unit-lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.unit-lessons a { display: grid; gap: 3px; min-height: 68px; padding: 12px 14px; color: var(--ink); background: #f8f4ea; border: 1px solid #d7cabd; text-decoration: none; }
.unit-lessons a:hover { border-color: var(--rust); }
.unit-lessons span { color: var(--rust); font-size: .84rem; }
.unit-empty { margin-top: 14px; padding: 10px 12px; color: var(--ink-soft); background: #f1f3ec; border-left: 3px solid var(--line); }
.unit-directory { margin-top: 16px; border-top: 1px solid var(--line); }
.unit-directory > summary, .outline-section > summary { min-height: 44px; padding: 10px 2px; color: var(--moss); font-weight: 700; cursor: pointer; }
.unit-directory > div { padding-top: 4px; }
.outline-section { border-bottom: 1px solid #e2e4dc; }
.topic-list { display: grid; gap: 0; margin: 0 0 12px; padding-left: 1.5rem; }
.topic-list li { padding: 7px 4px; border-bottom: 1px dotted #d4d8cf; }
.topic-list li::marker { color: var(--rust); font-weight: 700; }
.topic-list small { float: right; margin-left: 12px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .hero-inner, .lesson-layout, .practice-layout { grid-template-columns: 1fr; }
  .argument-hero { min-height: 320px; }
  .grid-3, .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .topbar-inner { min-height: 56px; gap: 4px; }
  .brand { gap: 6px; }
  .brand-mark { width: 28px; height: 28px; font-size: .9rem; }
  .brand strong { font-size: .87rem; letter-spacing: 0; }
  .brand small { display: none; }
  .top-nav { gap: 0; }
  .top-nav a { padding: 0 4px; font-size: .86rem; }
  .hero { padding-block: 42px 46px; }
  .hero h1 { font-size: 2.75rem; }
  .argument-hero { min-height: 264px; padding: 14px; }
  .argument-caption { left: 14px; right: 14px; bottom: 12px; font-size: .78rem; }
  .argument-hero svg { inset: 38px 3px 6px; width: calc(100% - 6px); height: calc(100% - 44px); }
  .section { padding-block: 24px 34px; }
  .panel { padding: 16px; }
  .page-head { padding-block: 19px 23px; }
  .page-head h1 { font-size: 2rem; }
  .step-tabs { grid-template-columns: 1fr; }
  .step-tabs button { justify-content: start; text-align: left; }
  .review-map { grid-template-columns: 1fr; }
  .review-arrow { transform: rotate(90deg); justify-self: center; }
  .evidence-grid { grid-template-columns: 1fr; }
  .review-table { display: block; overflow-x: auto; }
  .review-table th, .review-table td { min-width: 10rem; }
  .outline-unit > header { display: grid; }
  .status-stack { justify-items: start; }
  .unit-lessons { grid-template-columns: 1fr; }
  .topic-list small { float: none; display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep manuscript state visible on every direct lesson route. */
.manuscript-state{padding:.75rem 1rem;border:1px solid var(--line);line-height:1.6;margin:0 0 1rem}.manuscript-state.is-reviewed{background:#e7efe6;color:#294e3b}.manuscript-state.is-pending{background:#f6ebd8;color:#705329}.argument-map svg[data-reviewed="true"] .map-node text{font-size:18px}

.argument-board { display: grid; gap: 12px; }
.board-question, .board-boundary { margin: 0; padding: 11px 12px; line-height: 1.55; background: #f7f2e8; border-left: 3px solid var(--rust); }
.board-boundary { background: #edf1eb; border-color: var(--moss); }
.board-flow { display: grid; gap: 8px; }
.board-step-wrap { display: grid; gap: 8px; }
.board-step { width: 100%; min-height: 92px; padding: 12px; text-align: left; color: var(--ink); background: #fffdf8; border: 1px solid #cfc6b8; border-radius: 2px; cursor: pointer; }
.board-step strong, .board-step small { display: block; }
.board-step strong { margin: 4px 0; font-size: 1rem; }
.board-step small { color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }
.board-role { display: inline-block; padding: 2px 6px; color: #fff; background: var(--moss); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.board-step[data-active="true"] { border: 2px solid var(--rust); background: #fff7e8; box-shadow: inset 5px 0 0 var(--rust); }
.board-step[data-active="true"] .board-role { background: var(--rust); }
.board-arrow { justify-self: center; color: var(--rust); font-size: .77rem; font-weight: 800; }
.loop-structure, .branch-structure, .depth-structure, .compare-structure, .hierarchy-structure { display: grid; gap: 9px; }
.loop-structure { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.loop-structure > :nth-child(n+4) { grid-column: 1 / -1; }
.loop-structure .relation-pair { flex-direction: column; white-space: nowrap; }
.relation-pair { display: flex; justify-content: space-around; gap: 10px; color: var(--rust); font-size: .78rem; font-weight: 800; }
.direction-mobile { display: none; }
.jump-link { min-height: 44px; margin: 8px 0 14px; padding: 8px 12px; color: var(--moss); background: #fffdf8; border: 1px solid var(--moss); font: inherit; font-weight: 800; cursor: pointer; }
.jump-link:hover { background: #edf1eb; }
.jump-link:focus-visible { outline: 3px solid #1e5d7a; outline-offset: 2px; }
.jump-back { margin-top: 0; }
#stage-question, #argument-map-heading { scroll-margin-top: 76px; }
.relation-down, .branch-label, .loop-return { justify-self: center; color: var(--rust); font-size: .78rem; font-weight: 800; text-align: center; }
.loop-return { padding: 5px 8px; border: 1px dashed var(--rust); }
.parallel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.parallel-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parallel-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.relation-result > :first-child::before, .relation-result > :last-child::before { display: block; margin-bottom: 6px; color: var(--rust); font-size: .74rem; font-weight: 800; }
.relation-result > :first-child::before { content: "具体劳动 →"; }
.relation-result > :last-child::before { content: "抽象劳动 →"; }
.compare-columns { margin-top: 3px; }
.argument-board[data-kind="evidence-groups"] .parallel-grid::before,
.argument-board[data-kind="hierarchy"] .parallel-grid::before,
.argument-board[data-kind="condition-compare"] .compare-columns::before,
.argument-board[data-kind="causal-depth"] .parallel-grid::before { grid-column: 1 / -1; padding: 5px 8px; color: var(--moss); background: #e7eee7; font-size: .75rem; font-weight: 800; text-align: center; }
.argument-board[data-kind="evidence-groups"] .parallel-grid::before { content: "三项并列证据"; }
.argument-board[data-kind="hierarchy"] .parallel-grid::before { content: "四项同层特征"; }
.argument-board[data-kind="condition-compare"] .compare-columns::before { content: "两种并列方法 · 改变的条件不同"; }
.argument-board[data-kind="causal-depth"] .parallel-grid:first-of-type::before { content: "同一劳动的两个方面"; }
.argument-board[data-kind="causal-depth"] .relation-result::before { content: "并列的商品二因素"; }
.board-step:focus-visible { outline: 3px solid #1e5d7a; outline-offset: 2px; }
.mobile-map-list { display: none; }
.mobile-map-node { width: 100%; padding: 11px 12px; text-align: left; color: var(--ink); background: #fffdf8; border: 1px solid #cfc6b8; }
.mobile-map-node strong, .mobile-map-node small { display: block; }
.mobile-map-node small { margin-top: 4px; color: var(--ink-soft); line-height: 1.45; }
.mobile-map-node[data-active="true"] { border: 2px solid var(--rust); background: #fff7e8; box-shadow: inset 5px 0 0 var(--rust); }
.mobile-map-node:focus-visible { outline: 3px solid #1e5d7a; outline-offset: 2px; }
@media (min-width: 621px) and (max-width: 1100px) {
  .board-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-arrow { display: none; }
}
@media (max-width: 620px) {
  .board-step { min-height: 82px; }
  .board-question, .board-boundary { font-size: .9rem; }
  .side-panel .argument-map { display: none; }
  .side-panel .argument-map.keep-mobile { display: block; }
  .side-panel .mobile-map-list { display: grid; gap: 8px; }
  .parallel-grid, .parallel-grid.two, .parallel-grid.four { grid-template-columns: 1fr; }
  .parallel-grid { padding: 8px; background: #f1f3ec; border-left: 3px solid var(--moss); }
  .direction-desktop { display: none; }
  .direction-mobile { display: inline; }
  .loop-structure { grid-template-columns: 1fr; }
  .loop-structure > * { grid-column: 1 !important; }
  .loop-structure .relation-pair { flex-direction: row; }
  .relation-result > :first-child::before, .relation-result > :last-child::before { text-align: center; }
}

.lesson-meta, .reader-modes, .source-actions, .graph-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.lesson-meta { justify-content: space-between; margin-bottom: .65rem; }
.lesson-meta .manuscript-state { padding: 0; margin: 0; background: transparent; border: 0; font-size: .82rem; }
.reader-modes { margin: 0 0 1rem; gap: .35rem; }
.reader-modes a { min-height: 44px; display: inline-flex; align-items: center; padding: .4rem .9rem; color: var(--ink-soft); text-underline-offset: .35em; }
.reader-modes a[aria-current] { background: var(--pale); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: inset 0 -2px var(--moss); }
.source-open { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; color: #365447; text-decoration: underline; text-underline-offset: .25em; border: 0; background: none; cursor: pointer; text-align: left; }
.resource-panel { max-width: 57rem; margin-block: 1rem; }
.resource-panel h2, .resource-panel > p { margin-bottom: .65rem; }
.resource-list { margin: .8rem 0 0; padding: 0; list-style: none; }
.resource-list li { padding: .75rem 0; border-top: 1px solid var(--line); display: grid; gap: .2rem; justify-items: start; }
.resource-list li > span, .draft-note { font-size: .9rem; color: var(--ink-soft); }
.source-actions .btn-quiet { color: var(--ink); border-color: var(--line); }
.review-reading { margin: 0 0 1.1rem; }
.review-reading .manuscript-fold { margin: 0; }
.case-lines { display: grid; gap: .5rem; padding: .5rem 0; }
.case-lines button { display: grid; grid-template-columns: 1.45rem 1fr; gap: .55rem; padding: .8rem; align-items: start; color: var(--ink); border: 1px solid var(--line); background: var(--surface); text-align: start; line-height: 1.75; cursor: pointer; }
.case-lines button[aria-pressed="true"] { border-color: var(--moss); background: var(--pale); box-shadow: inset 3px 0 var(--moss); }
.line-number { font-variant-numeric: tabular-nums; text-align: center; color: var(--moss); font-weight: 700; }
.case-choices { min-width: 0; margin: 1rem 0; padding: 0; border: 0; }
.case-choices legend, .draft-label { font-weight: 700; }
.case-choices label { min-height: 44px; display: flex; align-items: start; gap: .7rem; cursor: pointer; background: var(--surface); padding: .7rem; border-bottom: 1px solid var(--line); }
.case-choices input { margin-top: .5rem; flex: none; accent-color: var(--moss); }
.draft-label { display: block; margin: 1.2rem 0 .45rem; }
#student-draft { display: block; width: 100%; resize: vertical; min-height: 8rem; padding: .8rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--moss); }
.draft-note { display: block; margin-block: .45rem .8rem; }
.case-reason dl, .reading-step dl { padding: .25rem 0 .75rem; }
.case-reason dt, .reading-step dt { color: var(--ink-soft); font-weight: 700; margin-top: .7rem; }
.case-reason dd, .reading-step dd { margin: .25rem 0 .75rem; }
.graph-nodes { align-items: stretch; margin-block: 1rem; gap: .4rem; }
.graph-node { text-align: left; min-height: 44px; padding: .45rem .65rem; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.graph-node[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.graph-detail { padding: 1rem; background: var(--pale); }
.edge-list { list-style: none; padding: 0; margin: .65rem 0 0; }
.edge-list li { padding-top: .5rem; margin-top: .5rem; border-top: 1px solid var(--line); }
.edge-list span { display: block; color: var(--ink-soft); }
.graph-detail h4, .answer-section h4 { margin-bottom: .4rem; }
.case-graph, .lesson-layout > *, .practice-layout > *, .grid-2 > *, .review-table td { min-width: 0; overflow-wrap: anywhere; }
#full-answer { scroll-margin-top: 5rem; }
.argument-hero { display: grid; grid-template-rows: auto minmax(235px,1fr) auto; }
.argument-hero svg { position: relative; inset: auto; width: 100%; height: 245px; align-self: center; }
.argument-caption { position: static; min-height: 2.8em; align-self: end; }
@media (max-width: 620px) {
  .topbar-inner { display: grid; gap: 0; padding-top: 5px; }
  .brand-mark { width: 25px; height: 25px; }
  .top-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; }
  .top-nav a { justify-content: center; min-height: 44px; font-size: .88rem; }
  .topbar-inner { grid-template-columns: minmax(0,1fr); }
  :is(#full-answer,#stage-question,#argument-map-heading) { scroll-margin-top: 90px; }
  .step-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .step-tabs button { display: grid; justify-items: center; justify-content: center; padding: 7px 3px; text-align: center; font-size: .85rem; line-height: 1.4; }
  .step-tabs .step-number { width: 23px; height: 23px; }
  .review-table { display: table; table-layout: fixed; width: 100%; }
  .review-table th, .review-table td { min-width: 0; padding: 8px 6px; }
  .review-table th:first-child { width: 30%; }
  .graph-nodes { display: grid; grid-template-columns: 1fr; }
  .argument-hero svg { height: 234px; }
  .source-actions, .lesson-meta { gap: 0 .6rem; }
}
