:root {
  color-scheme: light;
  --ink: #203a32;
  --muted: #5e7168;
  --green: #126c60;
  --green-deep: #0a5148;
  --mint: #e9f3ec;
  --paper: #f7f6ef;
  --white: #fffefa;
  --line: #d9e3d8;
  --yellow: #ffe3a1;
  --orange: #bd692a;
  --radius: 20px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body, main, section, article, aside, div { min-width: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.4; }
button, input, select { font: inherit; color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--green); text-underline-offset: 4px; }
svg, img { max-width: 100%; vertical-align: middle; }
button, a, input, select, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid #236eaf; }
[hidden] { display: none !important; }
::selection { color: var(--green-deep); background: #d3e9db; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 80; top: 8px; left: 12px; padding: 10px 16px; border-radius: 9px; color: white; background: var(--green); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 16px max(28px, calc((100vw - 1440px) / 2)); gap: 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 25px; line-height: 1; font-weight: 750; letter-spacing: -.04em; }
.wordmark small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .15em; }
.brand-mark { position: relative; display: grid; width: 40px; height: 42px; place-items: center; border-radius: 12px; color: var(--white); background: var(--green); font-size: 27px; }
.brand-mark > span { position: absolute; top: 1px; right: 6px; color: var(--yellow); font-size: 23px; }
.header-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--muted); }
.header-links a:hover { color: var(--green); text-decoration: underline; }
.learning-shell { display: grid; grid-template-columns: 282px minmax(0, 1fr); width: min(1440px, 100%); min-height: calc(100vh - 88px); margin-inline: auto; }
.sidebar { padding: 30px 22px; border-right: 1px solid var(--line); background: var(--white); }
.lab-heading { padding: 0 8px; }
.cat-mark { display: grid; width: 68px; height: 68px; place-items: center; margin-bottom: 18px; border-radius: 22px; color: var(--green-deep); background: #f6ecd6; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.lab-heading h1 { margin-top: 8px; font-size: 23px; letter-spacing: -.025em; }
.lab-subtitle { margin-top: 8px; color: var(--muted); font-size: 14px; }
.progress-summary { margin-top: 24px; padding: 16px; border: 1px solid #d3e4d5; border-radius: 15px; color: var(--green-deep); background: var(--mint); font-size: 15px; }
.progress-summary p, .progress-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.progress-summary progress { display: block; width: 100%; height: 8px; margin: 12px 0 4px; border: 0; border-radius: 10px; overflow: hidden; background: #ccded0; appearance: none; }
.progress-summary progress::-webkit-progress-bar { background: #ccded0; }
.progress-summary progress::-webkit-progress-value { border-radius: 10px; background: var(--green); }
.progress-summary progress::-moz-progress-bar { border-radius: 10px; background: var(--green); }
.route-label { margin: 25px 8px 10px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .07em; }
.module-nav { display: flex; flex-direction: column; gap: 6px; }
.module-nav button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 58px; padding: 10px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); background: transparent; font-size: 15px; line-height: 1.45; text-align: left; }
.module-nav button:hover { border-color: var(--line); background: #f3f5ee; }
.module-nav button[aria-current], .module-nav button.active, .module-nav button[aria-pressed="true"] { border-color: #b8d7c3; color: var(--green-deep); background: #e7f2e8; font-weight: 700; }
.module-nav button > span:first-child:not(:only-child), .module-number { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: var(--muted); background: #edf1e8; font-size: 13px; font-weight: 700; }
.module-nav [aria-current] > span:first-child:not(:only-child), .module-nav .active > span:first-child:not(:only-child) { color: white; background: var(--green); }
.module-nav button small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.module-nav .done, .module-nav .passed { color: var(--green); }
.sidebar-note { display: flex; gap: 8px; align-items: flex-start; margin: 24px 6px 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sidebar-note > span { color: var(--orange); font-size: 20px; line-height: 1.3; }
.workspace { padding: 34px 40px 20px; }
.module-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.module-heading h2 { margin-top: 8px; font-size: clamp(25px, 2.6vw, 35px); letter-spacing: -.02em; }
.module-goal { max-width: 660px; margin-top: 9px; color: var(--muted); font-size: 16px; }
.button, #content button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 49px; padding: 11px 20px; border: 1px solid #bfd3c4; border-radius: 12px; color: var(--green-deep); background: var(--white); font-size: 16px; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; }
.button:hover, #content button:hover { border-color: var(--green); background: #edf5ed; }
.button.primary, #content button.primary, #content button[type="submit"] { border-color: var(--green); color: white; background: var(--green); box-shadow: 0 3px 0 #084a40; }
.button.primary:hover, #content button.primary:hover, #content button[type="submit"]:hover { background: var(--green-deep); }
.button.secondary, #content button.secondary { border-color: #d8decf; background: #f4f5ed; }
.speak-button { flex-shrink: 0; min-height: 45px; padding: 9px 14px; font-size: 14px; }
.speak-button > span { font-size: 23px; line-height: 1; }
.speak-button[aria-pressed="true"] { color: white; background: var(--green); }
.stage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.stage-tabs button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; min-height: 78px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: var(--white); font-size: 18px; font-weight: 700; line-height: 1.5; text-align: left; }
.stage-tabs button:hover { border-color: #a6c4ad; background: #f0f5ec; }
.stage-tabs button[aria-selected="true"], .stage-tabs button.active { border: 2px solid var(--green); padding: 11px 16px; color: var(--green-deep); background: #eaf3e8; }
.stage-tabs small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.stage-number { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; border: 1px solid #d9e1d4; border-radius: 50%; color: var(--muted); background: #f5f6ef; font-size: 14px; }
.stage-tabs [aria-selected="true"] .stage-number, .stage-tabs .active .stage-number { border-color: var(--green); color: white; background: var(--green); }
.lesson-content { min-height: 420px; }
.lesson-card, .skill-card, .question-card { margin-bottom: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 0 #eaece2; }
.lesson-card > * + *, .question-card > * + * { margin-top: 18px; }
.lesson-card h3, .question-card h3, #content > h3 { font-size: 23px; }
.lesson-card h4 { font-size: 19px; }
.lesson-card p, .question-card p { max-width: 760px; }
.section-kicker, .kicker { color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .06em; }
.lead, .example-question { font-size: 21px; font-weight: 650; line-height: 1.75; }
.muted, .quiet-note, .help-text { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 24px; }
.actions > .primary:first-child { min-width: 150px; }
.pill, .mastery-pill, .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 8px; color: var(--green-deep); background: var(--mint); font-size: 12px; font-weight: 650; }
.pill.warning, .status-pill.review { color: #8a541d; background: #fff0d2; }
.skill-grid, .two-column, .example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.skill-card { margin-bottom: 0; padding: 21px; }
.skill-card h3 { margin-bottom: 8px; font-size: 19px; }
.skill-card p { color: var(--muted); font-size: 15px; }
.skill-card button { margin-top: 15px; }
.script-stack, .blocks, .program { width: fit-content; max-width: 100%; margin-block: 18px; padding: 8px 12px 10px 6px; }
.block { position: relative; display: block; width: fit-content; max-width: 100%; margin-top: -1px; padding: 10px 16px; border: 1px solid rgba(0, 0, 0, .16); border-radius: 9px; color: #152c2c; background: #c6dfff; font-size: 17px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere; }
.block .block { margin-top: 7px; }
.block.event { background: #d5e1ff; }
.block.motion { background: #f7c1b9; }
.block.control { background: #c4e9f5; }
.block.looks { background: #eed2f2; }
.block.operator { background: #f9d4b6; }
.block.variable { background: #ffe1a2; }
.block.pen { background: #bde4d7; }
.block.condition, .block.sensing { background: #d0ebba; }
.block.note { border-style: dashed; color: #435a4b; background: #edf1e6; font-size: 15px; font-weight: 500; }
.block.custom { background: #ddd1f2; }
.block .value, .block input, .value-chip { display: inline-block; min-width: 2.2em; margin-inline: 4px; padding: 0 9px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 18px; color: #183127; background: #fffefa; font-weight: 600; text-align: center; }
.block .nested, .block .children { margin: 7px 0 3px 9px; padding-left: 11px; border-left: 3px solid rgba(0, 0, 0, .16); }
.block-children { max-width: 100%; margin: 8px 0 2px 5px; padding: 4px 0 4px 10px; border-left: 4px solid #2b667b66; border-radius: 0 0 0 7px; }
.block-children > .script-stack { margin-block: 0; padding: 0; }
.block-children .block { margin-top: 5px; }
.otherwise { display: block; width: fit-content; margin: 9px 0 3px; padding: 2px 10px; border: 1px solid #96bac7; border-radius: 7px; color: #224c5c; background: #e4f4fa; font-size: 15px; font-weight: 750; }
.block.active, .block.current, .block[data-active="true"] { outline: 3px solid #a5661b; outline-offset: 3px; }
.trace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.trace-step { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f4f6ef; }
.trace-step strong { display: block; margin-bottom: 6px; color: var(--green); }
.trace-step.active, .trace-step.current { border: 2px solid var(--green); padding: 15px; background: #e9f4e8; }
.trace-step small { color: var(--muted); }
.trace-line, .trace-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-block: 13px; }
.trace-token, .costume-token, .value-box { display: inline-grid; min-width: 48px; min-height: 48px; place-items: center; padding: 7px 13px; border: 1px solid #c3d7c6; border-radius: 13px; background: #edf5e9; font-size: 19px; font-weight: 750; }
.trace-token.active, .costume-token.active { border-color: var(--green); color: white; background: var(--green); }
.trace-arrow { color: var(--green); font-size: 25px; }
.mini-stage { position: relative; display: grid; min-height: 170px; place-items: center; align-content: start; gap: 13px; padding: 22px; overflow: hidden; border: 1px solid #d3dfd0; border-radius: 16px; background: #edf4e7; text-align: center; overflow-wrap: anywhere; }
.mini-stage svg { width: 100%; max-height: 270px; }
.mini-stage h3 { font-size: 23px; }
.mini-stage p { font-size: 16px; }
.state-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.state-chips > span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; max-width: 100%; padding: 7px 12px; border: 1px solid #bed1bd; border-radius: 10px; color: #264e35; background: #fffefa; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.method-list { display: grid; gap: 9px; margin: 13px 0 0; padding-left: 1.5em; }
.method-list li { padding-left: 3px; }
.method-list li::marker { font-weight: 750; }
.question-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.table-wrap, .trace-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
#content table { width: 100%; border-collapse: collapse; font-size: 15px; }
#content caption { padding: 10px; color: var(--muted); text-align: left; }
#content th, #content td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; }
#content th { color: var(--green-deep); background: #edf4e8; font-weight: 700; }
#content tr:last-child td { border-bottom: 0; }
#content tr.active, #content tr.current { background: #fff0cf; }
.question-options, .options { display: grid; gap: 11px; margin-top: 20px; }
.option, #content button.option { display: flex; align-items: center; justify-content: flex-start; gap: 13px; width: 100%; min-height: 60px; padding: 14px 17px; border: 1px solid #cfdbcc; border-radius: 13px; color: var(--ink); background: #fffefa; font-size: 18px; font-weight: 500; line-height: 1.65; text-align: left; cursor: pointer; }
.option:hover, #content button.option:hover { border-color: #89b595; background: #f0f6ec; }
.option:has(input:checked), .option.selected, #content button.option[aria-pressed="true"] { border: 2px solid var(--green); padding: 13px 16px; color: var(--green-deep); background: #eaf4e8; }
.option input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.option-letter { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 750; }
.option.correct { border-color: #64a47d; background: #edf7ed; }
.option.incorrect { border-color: #c68c68; background: #fff2e8; }
.answer-field, #content input[type="text"], #content input[type="number"] { width: min(100%, 300px); min-height: 56px; padding: 10px 15px; border: 2px solid #b8cdbb; border-radius: 12px; background: #fffefa; font-size: 23px; font-variant-numeric: tabular-nums; }
#content input:focus { border-color: var(--green); }
#content label:not(.option) { display: block; margin-block: 8px; font-weight: 650; }
#content fieldset { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
#content legend { margin-bottom: 10px; padding: 0; font-size: 17px; font-weight: 650; }
.hint-panel, .feedback, .thinking-tip, .method-box { margin-top: 20px; padding: 19px 21px; border: 1px solid #e9d3a6; border-radius: 14px; color: #694819; background: #fff5df; }
.hint-panel h4, .feedback h4, .method-box h4 { margin-bottom: 8px; font-size: 18px; }
.hint-panel p + p, .feedback p + p { margin-top: 9px; }
.hint-panel summary { min-height: 30px; cursor: pointer; font-weight: 700; }
.hint-panel[open] summary { margin-bottom: 12px; }
.feedback.correct, .feedback.success { border-color: #bdd6bd; color: #245c39; background: #eaf5e8; }
.feedback.incorrect, .feedback.retry { border-color: #e8c8af; color: #75421e; background: #fff1e5; }
.feedback strong { display: block; margin-bottom: 5px; }
.feedback ol { margin-block: 13px; padding-left: 1.5em; }
.feedback li + li { margin-top: 7px; }
.feedback small { display: block; margin-top: 13px; font-size: 13px; }
.quiet-actions { padding-top: 20px; border-top: 1px solid var(--line); }
.quiet-actions > .muted { flex: 1 1 100%; }
#answerError:empty { display: none; }
#answerError:not(:empty) { margin-top: 15px; padding: 11px 14px; border-left: 3px solid #a66c2a; border-radius: 6px; color: #74461c; background: #fff1da; font-size: 15px; }
.method-box { border-color: #c6dcc8; color: var(--ink); background: #edf5e9; }
.method-box ol, .hint-panel ol, .lesson-card ol { margin: 12px 0 0; padding-left: 1.5em; }
.method-box li + li, .lesson-card li + li { margin-top: 8px; }
.storage-notice { margin: 19px 4px 24px; color: var(--muted); font-size: 12px; }
.storage-notice.warning { color: #88511e; }
.parent-details { margin-top: 25px; border: 1px solid var(--line); border-radius: 15px; background: #f2f3e9; }
.parent-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 15px 20px; color: var(--muted); font-size: 14px; cursor: pointer; list-style: none; }
.parent-details > summary::-webkit-details-marker { display: none; }
.parent-details > summary::before { content: "+"; width: 14px; color: var(--green); font-size: 20px; font-weight: 500; }
.parent-details[open] > summary::before { content: "−"; }
.parent-details > summary > span:first-child { flex: 1; font-weight: 650; }
.summary-hint { font-size: 11px; }
.parent-body { padding: 0 25px 25px; color: #526259; font-size: 14px; }
.parent-body h3 { margin-top: 24px; margin-bottom: 10px; color: var(--ink); font-size: 17px; }
.parent-body h3:first-child { margin-top: 8px; }
.parent-body p + p { margin-top: 10px; }
.parent-plan { margin: 14px 0; padding-left: 1.5em; }
.parent-plan li + li { margin-top: 7px; }
.reset-button { margin-top: 18px; min-height: 44px; font-size: 13px; }
.page-footer { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; color: #5d6d62; font-size: 11px; }
.page-footer > span { color: #a7b2a6; }
dialog { width: min(480px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 20px 80px #19392f33; }
dialog::backdrop { background: #183e3566; }
dialog h2 { margin-bottom: 14px; font-size: 23px; }
dialog p { color: var(--muted); font-size: 15px; }
dialog .actions { justify-content: flex-end; }
.button.danger { border-color: #945129; color: white; background: #945129; }
.button.danger:hover { background: #783e1d; }
.toast { position: fixed; z-index: 90; bottom: 22px; left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 12px 21px; border: 1px solid #c5dccb; border-radius: 13px; color: var(--green-deep); background: #f0f8ed; box-shadow: 0 6px 24px #183e351a; font-size: 15px; transform: translateX(-50%); }
@media (min-width: 1200px) {
  .sidebar { padding: 34px 25px; }
  .workspace { padding-inline: 48px; }
}
@media (max-width: 1050px) {
  .learning-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { padding-inline: 16px; }
  .lab-heading h1 { font-size: 21px; }
  .workspace { padding: 28px 25px 20px; }
  .stage-tabs { gap: 7px; }
  .stage-tabs button { gap: 7px; padding-inline: 11px; font-size: 16px; }
  .stage-tabs button[aria-selected="true"], .stage-tabs button.active { padding-inline: 10px; }
  .stage-tabs small { font-size: 10px; }
  .lesson-card, .question-card { padding: 23px; }
}
@media (max-width: 820px) {
  .site-header { min-height: 78px; padding-inline: 23px; }
  .learning-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 20px 23px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lab-heading { display: grid; grid-template-columns: 51px minmax(0, 1fr); column-gap: 13px; padding: 0; }
  .cat-mark { grid-row: 1 / 4; width: 51px; height: 59px; margin: 0; border-radius: 16px; }
  .cat-mark svg { width: 45px; }
  .lab-heading .eyebrow { font-size: 10px; }
  .lab-heading h1 { margin-top: 3px; font-size: 23px; }
  .lab-subtitle { display: none; }
  .progress-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; margin-top: 16px; padding: 10px 14px; font-size: 13px; }
  .progress-summary p, .progress-summary small { margin-top: 0; font-size: 11px; }
  .progress-summary progress { flex: 1 1 100%; margin-block: 4px; }
  .route-label { margin: 17px 0 8px; font-size: 11px; }
  .route-label::after { float: right; content: "左右滑动选主题 →"; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
  .module-nav { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin-inline: -3px; padding: 3px 3px 8px; scrollbar-width: thin; scrollbar-color: #9fbda7 transparent; }
  .module-nav button { gap: 7px; min-height: 56px; padding: 8px 10px; font-size: 13px; scroll-snap-align: start; }
  .module-nav button > span:first-child:not(:only-child), .module-number { flex-basis: 24px; width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
  .module-nav button small { font-size: 10px; }
  .sidebar-note { margin: 13px 0 0; padding-top: 0; border: 0; font-size: 11px; }
  .sidebar-note > span { font-size: 17px; }
  .workspace { padding: 26px 23px 18px; }
  .module-heading h2 { font-size: 29px; }
  .skill-grid, .two-column, .example-grid { gap: 15px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { padding: 13px 17px; min-height: 74px; gap: 10px; }
  .wordmark { gap: 9px; font-size: 21px; }
  .wordmark small { font-size: 9px; margin-top: 7px; }
  .brand-mark { width: 34px; height: 37px; border-radius: 10px; font-size: 24px; }
  .header-links { gap: 12px; font-size: 11px; }
  .header-links a { min-height: 44px; }
  .header-links a:last-child { max-width: 58px; line-height: 1.5; }
  .sidebar { padding: 17px; }
  .lab-heading h1 { font-size: 21px; }
  .progress-summary { margin-top: 14px; }
  .module-nav { grid-auto-columns: 182px; }
  .module-nav button { min-height: 56px; }
  .workspace { padding: 23px 15px 17px; }
  .module-heading { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .module-heading .eyebrow { font-size: 10px; }
  .module-heading h2 { font-size: 25px; }
  .module-goal { font-size: 14px; }
  .speak-button { min-height: 43px; padding: 7px 9px; gap: 5px; font-size: 11px; }
  .speak-button > span { font-size: 19px; }
  .stage-tabs { gap: 6px; margin-bottom: 16px; }
  .stage-tabs button { justify-content: center; gap: 6px; min-height: 62px; padding: 10px 5px; font-size: 15px; text-align: center; }
  .stage-tabs button[aria-selected="true"], .stage-tabs button.active { padding: 9px 4px; }
  .stage-number { flex-basis: 22px; width: 22px; height: 22px; font-size: 11px; }
  .stage-tabs small { display: none; }
  .lesson-card, .question-card { padding: 21px 18px; border-radius: 16px; }
  .lesson-card h3, .question-card h3 { font-size: 21px; }
  .lead, .example-question { font-size: 19px; }
  .skill-grid, .two-column, .example-grid { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 8px 11px; font-size: 15px; }
  .script-stack, .blocks, .program { padding: 5px 4px; }
  .block .value { margin-inline: 1px; padding-inline: 6px; }
  .block-children { margin-left: 2px; padding-left: 7px; border-left-width: 3px; }
  .block-children .block { padding-inline: 8px; font-size: 14px; }
  .block-children .block-children { padding-left: 5px; }
  .otherwise { font-size: 14px; }
  .mini-stage { padding: 18px; }
  .mini-stage h3 { font-size: 21px; }
  .state-chips > span { font-size: 15px; }
  .trace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .trace-step { padding: 12px; font-size: 14px; }
  .trace-step.active, .trace-step.current { padding: 11px; }
  #content th, #content td { padding: 10px; font-size: 13px; }
  .option, #content button.option { padding: 12px; gap: 10px; font-size: 17px; }
  .option:has(input:checked), .option.selected, #content button.option[aria-pressed="true"] { padding: 11px; }
  .hint-panel, .feedback, .thinking-tip, .method-box { padding: 16px; font-size: 15px; }
  .actions { gap: 9px; }
  .actions .button, #content .actions button { flex: 1 1 auto; }
  .button, #content button { min-height: 48px; padding: 10px 16px; font-size: 15px; }
  .parent-details > summary { padding-inline: 15px; }
  .summary-hint { display: none; }
  .parent-body { padding-inline: 18px; }
  .page-footer { gap: 7px; font-size: 10px; }
  dialog { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .sidebar, .stage-tabs, .speak-button, .parent-details, .storage-notice, .page-footer, .toast, dialog { display: none !important; }
  .learning-shell { display: block; }
  .workspace { padding: 0; }
  .lesson-card, .question-card { box-shadow: none; break-inside: avoid; }
  body { background: white; font-size: 12pt; }
}
