/* Phonics Lab — one visual system for navigation, teaching and practice. */
:root {
  --sidebar-width: 264px;
  --ink: #28372f;
  --muted: #5e7057;
  --green: #446552;
  --mint: #edf3ed;
  --yellow: #eee8d8;
  --line: #e1e7df;
  --pair: #355e47;
  --pair-bg: #eaf2e8;
  --paper: #ffffff;
  --canvas: #f8faf7;
  --soft: #f3f6f0;
  --content-width: 1080px;
  --section-gap: clamp(16px, 2.5vw, 24px);
  --card-padding: clamp(16px, 2.5vw, 26px);
  --card-radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button:hover { background: var(--soft); border-color: #b0c0ae; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #6d8d74;
  outline-offset: 3px;
}
.primary { background: var(--green); color: #fff; border-color: var(--green); font-weight: 600; }
.primary:hover { background: #355440; border-color: #355440; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); }
.brand { gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.brand-icon { background: #eaf0e7; color: var(--green); border-radius: 7px; font-size: 21px; padding: 2px 8px; }
.brand-icon span { color: #5e7057; }
body > main { margin-left: var(--sidebar-width); max-width: 1424px; padding: 0 clamp(24px, 4vw, 64px) 32px; }
main > header { height: 80px; border-bottom: 1px solid var(--line); gap: 18px; }
#homeBtn { border: 0; background: transparent; padding-left: 0; }
.tool-nav { gap: 8px; }
.drawer > summary { font-size: 13px; padding: 10px 13px; border-radius: 7px; color: #5d6d61; }
.drawer > summary:hover, .drawer[open] > summary { background: var(--mint); }
.drawer-panel { top: 76px; right: 32px; border-radius: 12px; padding: 26px; border-color: var(--line); box-shadow: 0 18px 60px #263c3020; }
.drawer-panel h3 { font-size: 18px; }
.course-sidebar#courseDrawer { width: var(--sidebar-width); background: #fdfefa; padding: 24px 16px 18px; border-right: 1px solid var(--line); }
.sidebar-heading { padding: 0 10px 22px; border-bottom: 1px solid var(--line); }
.sidebar-heading .brand { font-size: 18px; }
.course-sidebar h2 { margin: 26px 12px 5px; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.sidebar-intro { margin: 0 12px 24px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.course-unit, .unit-longer, .unit-endings { --unit-accent: #68816b; margin: 0 0 20px; border: 0; border-radius: 0; overflow: visible; }
.course-unit > summary { padding: 11px 10px; border: 0; border-radius: 6px; background: transparent; gap: 6px; }
.course-unit > summary:hover { background: #f0f4ed; }
.unit-title { font-size: 13px; font-weight: 600; line-height: 1.6; }
.unit-title small { font-size: 10px; font-weight: 400; color: #5e7057; letter-spacing: .2px; }
.unit-title:before { width: 13px; color: #5e7057; }
.unit-range { font-size: 10px; color: #5e7057; font-weight: 500; }
.unit-lessons { padding: 4px 0 0; gap: 3px; }
.course-sidebar nav button { display: flex; width: 100%; min-height: 43px; padding: 8px 12px; gap: 10px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 400; background: transparent; text-align: left; line-height: 1.6; }
.course-sidebar nav button:hover { background: #f1f5ef; }
.course-sidebar nav button.active { background: #edf3e9; border-color: #dce6d6; color: #35543e; box-shadow: none; font-weight: 600; }
.course-sidebar .num { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 5px; background: #edf0e9; color: #5e7057; font-size: 10px; font-weight: 500; }
.course-sidebar nav button.active .num { background: #dce8d4; color: #3a5d43; }
.sidebar-bottom { margin-top: 8px; padding: 18px 12px 8px; border-top: 1px solid var(--line); }
.sidebar-bottom > p { font-size: 11px; color: #5e7057; }
/* Entry: an editorial heading, a concrete word example, and the learning sequence. */
.welcome { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px 46px; align-items: center; margin: 46px auto 30px; padding: 28px 0 0; min-height: 0; background: transparent; border: 0; border-radius: 0; max-width: var(--content-width); }
.welcome-copy { min-width: 0; }
.welcome-label { color: #5e7057; letter-spacing: 1.6px; font-size: 11px; font-weight: 600; }
.welcome h1 { margin: 17px 0 22px; color: var(--ink); font-family: 'Songti SC', 'Noto Serif CJK SC', SimSun, Georgia, serif; font-size: clamp(32px, 3.1vw, 43px); font-weight: 500; letter-spacing: 1.5px; line-height: 1.55; }
.welcome #welcomeLesson { margin: 0 0 25px; max-width: 440px; font-size: 15px; color: #53664f; line-height: 1.9; }
.welcome .primary { min-height: 48px; padding: 12px 24px; font-size: 15px; border-radius: 8px; box-shadow: none; }
.welcome #resumeNote { display: block; margin-top: 14px; font-size: 12px; line-height: 1.8; color: #5e7057; }
.welcome-example { position: relative; min-width: 0; padding: 30px 28px; background: #fff; border: 1px solid #e0e7da; border-radius: 12px; box-shadow: 0 8px 28px #3e523807; }
.welcome-example:before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: #9fb497; }
.welcome-example .eyebrow { color: #5e7057; }
.welcome-example h3 { margin: 12px 0 24px; font-size: 21px; color: var(--pair); font-weight: 600; line-height: 1.6; }
.welcome-example-words { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid #edf0e8; border-bottom: 1px solid #edf0e8; }
.welcome-example-words b { font-family: Arial, sans-serif; font-size: 37px; font-weight: 500; color: #374c3c; letter-spacing: 1px; }
.welcome-example-words > span { font-size: 18px; color: #5e7057; }
.welcome-example p { margin: 18px 0 8px; font-size: 13px; color: #5f7259; line-height: 1.9; }
.welcome-example small { color: #5e7057; font-size: 11px; line-height: 1.8; }
.welcome-path { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: none; margin-top: 10px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.welcome-path > span { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #435944; }
.welcome-path b { padding-top: 1px; font-size: 11px; font-weight: 500; color: #5e7057; background: transparent; }
.welcome-path strong { display: block; font-size: 13px; font-weight: 600; }
.welcome-path em { display: block; font-size: 11px; font-weight: 400; font-style: normal; color: #5e7057; margin-top: 5px; line-height: 1.8; }
/* Focus heading remains distinct from the active exercise. */
.heading { padding: 22px 0 16px; }
.heading h1 { font-size: 24px; font-weight: 600; }
.heading p { font-size: 13px; }
.lesson-badge { background: #edf2e6; color: #5e7057; box-shadow: none; border-radius: 10px; transform: none; }
.lesson-focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); align-items: center; gap: 32px; max-width: var(--content-width); padding: 26px 0 28px; margin: 25px auto 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.focus-copy h1, .course-focus .focus-copy h1 { font-size: 28px; line-height: 1.5; font-weight: 600; letter-spacing: -.3px; margin: 10px 0 12px; }
.focus-copy h1 > span, .focus-copy strong { color: var(--pair); }
.focus-gap { color: #5e7057; }
.focus-copy p { margin: 0 0 8px; color: #586c52; font-size: 14px; line-height: 1.9; }
.focus-copy > small { font-size: 11px; color: #5e7057; line-height: 1.8; }
.focus-copy > button { margin-top: 14px; padding: 6px 0; min-height: 36px; border: 0; border-bottom: 1px solid #c2d0b8; border-radius: 0; background: transparent; color: #55714d; font-size: 12px; }
.focus-example { width: 100%; max-width: 440px; justify-self: end; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.focus-word-caption { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; color: #5e7057; font-size: 12px; }
.focus-word-caption b { color: #3e583a; font-size: 18px; font-weight: 600; }
.focus-word-caption button { padding: 5px 9px; min-height: 32px; font-size: 11px; }
.focus-spelling { border-radius: 8px; background: var(--pair-bg); color: var(--pair); padding: 22px; }
.focus-condensed { grid-template-columns: 1fr; padding: 18px 0 20px; margin-top: 20px; }
.focus-condensed .focus-copy { padding-right: 140px; }
.focus-condensed .focus-copy > button { position: absolute; top: 6px; right: 0; margin: 0; }
.focus-condensed .focus-copy > small { display: none; }
.focus-condensed .focus-copy h1 { font-size: 25px; margin: 7px 0 6px; }
.focus-condensed .focus-copy p { font-size: 12px; }
/* The lesson card has one content surface and a quiet, numbered navigation. */
#courseTutorial, #tutorial54, .workspace { max-width: var(--content-width); margin-left: auto; margin-right: auto; }
.tutorial-top { margin: 0 0 14px; align-items: center; }
.tutorial-top p { color: #5e7057; font-size: 11px; letter-spacing: .5px; }
.tutorial-top > button { min-height: 34px; padding: 6px 0; font-size: 11px; border: 0; border-bottom: 1px solid #d2deca; border-radius: 0; background: transparent; color: #5e7057; }
.tutorial-card, .learning, .companion { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 24px #344a3005; }
.tutorial-progress { display: grid; grid-template-columns: 1fr; gap: 15px; padding: 21px 30px 0; border: 0; background: #fff; color: #5e7057; font-size: 11px; }
.tutorial-progress > span { letter-spacing: .6px; }
.tutorial-progress > .tutorial-route { grid-column: 1; display: flex; justify-content: flex-start; gap: 8px; flex-wrap: wrap; background: transparent; height: auto; border-radius: 0; overflow: visible; }
.tutorial-route button { min-height: 39px; padding: 8px 12px; font-size: 12px; font-weight: 400; color: #5e7057; border: 1px solid transparent; border-radius: 6px; background: #f6f8f3; }
.tutorial-route button:hover { color: #45633c; background: #edf3e7; }
.tutorial-route button[aria-current=step] { color: #385735; background: #eaf2e3; border-color: #d6e3cc; font-weight: 600; }
.tutorial-progress > div:not(.tutorial-route):last-child { grid-column: 1; height: 2px; background: #eef2e9; border-radius: 0; margin-top: 3px; }
.tutorial-progress > div:not(.tutorial-route):last-child > span { background: #8ea681; border-radius: 0; }
.tutorial-card article { min-height: 0; padding: 29px 34px 30px; }
.tutorial-card article > h2 { margin: 0 0 15px; font-size: 22px; line-height: 1.6; font-weight: 600; color: #304c33; }
.journey-coach { padding: 0 0 18px; margin: 0 0 24px; border: 0; border-bottom: 1px solid #edf0e8; border-radius: 0; background: transparent; }
.journey-coach .instruction-label { display: inline-block; margin-right: 10px; font-size: 11px; color: #5e7057; }
.journey-coach p { display: inline; margin: 0 !important; font-size: 13px !important; color: #5e7057 !important; line-height: 1.9 !important; }
.journey-coach + .tutorial-direction { display: none; }
.tutorial-direction { font-size: 14px; color: #5e7057; line-height: 1.9; }
.tutorial-stage, #courseTutorial .tutorial-stage { background: #f8faf5; border: 1px solid #e8eee1; border-radius: 10px; margin: 24px 0; padding: 32px 26px; gap: 22px; min-height: 230px; }
.position-word { display: grid; grid-template-columns: repeat(var(--letters), minmax(0, 1fr)); width: min(100%, 440px); max-width: 440px; gap: 8px; }
.position-cell > b { font-family: Arial, sans-serif; font-size: 44px; font-weight: 500; line-height: 1.55; border: 1px solid #e0e7d9; border-radius: 7px; background: #fff; color: #40543c; }
.position-cell small { display: block; margin: 8px 0 0; white-space: normal; font-size: 11px; line-height: 1.5; color: #5e7057; min-height: 17px; }
.position-cell.pattern-pair > b { background: #e9f2e3; border: 1px solid #a8bd9b; border-bottom: 2px solid #8ea67e; color: var(--pair); }
.position-cell.pattern-pair small { color: #5e7057; font-weight: 500; }
.guide-diagram .position-cell > b { font-size: clamp(28px, 3.5vw, 44px); padding: 2px 3px; overflow-wrap: anywhere; }
.pattern-bridge { border-color: #90a680; border-top-width: 1px; font-size: 11px; color: #5e7057; }
.pattern-bridge:before, .pattern-bridge:after { width: 1px; background: #90a680; }
.guide-position-note { font-size: 13px !important; color: #5e7057 !important; line-height: 1.9 !important; text-align: center; max-width: 570px; margin: 12px auto 0; }
.focus-example .guide-position-note { font-size: 11px !important; margin-top: 10px; }
.guide-syllables { font-size: 16px; color: #4e6c43; text-align: center; letter-spacing: 1px; }
.guide-mark, .tutorial-vowel, .tutorial-silent { background: #e8f1e2 !important; color: var(--pair) !important; opacity: 1 !important; border-bottom: 2px solid #94ac83 !important; border-radius: 4px; padding: 0 4px; }
.tutorial-word { font-family: Arial, sans-serif; font-size: 54px; font-weight: 500; gap: 5px; }
.guide-sample-word { font-size: 34px !important; letter-spacing: 0; flex-wrap: wrap; gap: 1px !important; }
.pattern-example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 25px 0; }
.pattern-example-card { min-width: 0; padding: 24px 16px; border-color: #e0e8d9; border-radius: 9px; background: #fdfefb; }
.pattern-example-card:hover { border-color: #a6bb97; background: #f4f8ef; }
.pattern-example-card .tutorial-word { font-size: 35px; font-weight: 500; }
.pattern-example-card strong { color: #547547; font-size: 12px; font-weight: 500; }
.pattern-example-card small { font-size: 11px; color: #5e7057; line-height: 1.8; margin-top: 8px; }
.pattern-example-card .sample-meaning { font-size: 12px; color: #5e7057; margin-top: 12px; }
.guide-child-prompt { text-align: center; font-size: 13px; color: #5e7057; margin: 22px 0; }
.tutorial-word-picks { gap: 8px; flex-wrap: wrap; }
.tutorial-word-picks button { min-height: 43px; padding: 8px 15px; font-family: Arial, sans-serif; font-size: 17px; border-color: #e2e9db; border-radius: 7px; color: #5e7057; }
.tutorial-word-picks .word-practiced { background: #f4f8ee; border-color: #d6e4ca; }
.tutorial-word-picks .word-practiced small { color: #5e7057; }
.tutorial-word-picks .selected { background: #e9f2e2; border-color: #9bb38a; color: #35522f; box-shadow: none; }
.tutorial-example { font-size: 12px; color: #5e7057; margin-top: 18px; }
.tutorial-actions { gap: 10px; }
.tutorial-actions button, #courseHint, #tutorialHint { min-height: 42px; font-size: 13px; }
.tutorial-stage form { width: min(100%, 340px); gap: 12px; }
.tutorial-stage form label { text-align: left; color: #5e7057; font-size: 12px; }
#courseSpell input, #tutorialSpell input { width: 100%; height: 52px; border-radius: 7px; border: 1px solid #c6d6bc; background: #fff; font-family: Arial, sans-serif; font-size: 25px; color: #314b2c; }
#courseSpellNext, #tutorialSpellNext, #courseReadDone, #tutorialQuestion { display: block; margin: 22px auto; min-height: 44px; font-size: 13px; }
#courseHintWord { width: min(100%, 440px); padding-top: 20px; border-top: 1px solid var(--line); }
#courseSpellFeedback:not(:empty), #tutorialSpellFeedback:not(:empty), #courseReadFeedback:not(:empty), #tutorialQuestionFeedback:not(:empty) { background: #f0f5e9; border: 1px solid #dae5cf; border-radius: 7px; padding: 12px 18px; color: #4f6c42; font-size: 14px; line-height: 1.8; }
.tutorial-sentence { font-family: Arial, sans-serif; font-size: 28px; font-weight: 400; line-height: 2; padding: 30px 32px; border: 1px solid #e4ebdc; border-radius: 9px; background: #f8faf5; color: #344e2f; }
#courseReadQuestion { border-top: 1px solid var(--line); padding: 26px 0 0; margin-top: 28px; text-align: center; }
#courseReadQuestion h3 { font-size: 17px; margin-bottom: 18px; }
.tutorial-note { font-size: 11px; color: #5e7057; line-height: 1.9; margin: 18px 0 0; }
.tutorial-grownup, .guide-translation { background: transparent; border-top: 1px solid #edf0e7; border-radius: 0; padding: 16px 0 0; margin: 24px 0 0; color: #5e7057; font-size: 12px; line-height: 1.9; }
.tutorial-grownup summary, .guide-translation summary { cursor: pointer; color: #5e7057; }
.pattern-comparison { background: #f2f5eb; color: #5e7057; border-radius: 8px; }
.tutorial-sound-boxes span { background: #fff; border: 1px solid #c7d7bc; border-bottom: 2px solid #a2b791; border-radius: 6px; color: #4f6b42; }
.tutorial-letter-picks button { border-radius: 7px; border-bottom: 2px solid #a6b996; color: #49663b; }
.tutorial-heart > span { background: #eef2e6; color: #5e7057; border-radius: 8px; }
.tutorial-heart small { color: #5e7057; }
footer { background: #fff; border-color: var(--line); box-shadow: none; }
.tutorial-card footer { position: static; padding: 19px 30px; }
.tutorial-card footer .primary { min-height: 46px; max-width: none; border-radius: 8px; padding: 11px 22px; font-size: 14px; font-weight: 600; }
.tutorial-card footer > button:first-child { border: 0; background: transparent; color: #5e7057; font-size: 12px; padding-left: 0; }
/* Legacy cumulative practice uses the same palette and spacing. */
.days { margin: 20px auto; max-width: var(--content-width); }
.days button { border: 1px solid #dfe8d7; border-radius: 7px; background: #f1f5eb; color: #5e7057; }
.days button.selected { background: #e6efdf; border-color: #c6d7b9; color: #3e6030; }
.steps { padding: 18px 20px; background: #fafbf7; gap: 7px; border-color: var(--line); }
.steps button { font-size: 12px; }
.steps .active .step-dot { box-shadow: none; background: var(--green); }
.task-icon, .tile.vowel, .heart-letter.tricky { background: #edf2e4; color: #5e7057; border-color: #bdccab; }
.wordstage, .review-stage, .method-panel.compact, .passage, .reading-routine { background: #f5f8f0; border-radius: 9px; }
.tile { box-shadow: none; border-bottom-width: 2px; border-color: #d8e3ce; }
.guide-focus-tile { background: var(--pair-bg); color: var(--pair); border-color: #adc59a; }
.guide-practice-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; letter-spacing: 0; }
.listen-button { box-shadow: none; border: 1px solid #c4d6b7; border-radius: 10px; background: #e9f1e1; color: #456335; }
.listen-button:hover { background: #deebd3; }
.choice-grid button { box-shadow: none; }
.choice-grid button:hover { background: #eef4e6; }
.sound-counters { background: #f2f6eb; border: 1px solid #d6e3c9; border-radius: 10px; }
.sound-counters > span { box-shadow: none; background: #789668; color: #fff; }
.feedback, .resource-pill, .source, .support-practice, .warmup-note { background: #f2f5eb; color: #5e7057; border-color: #dfe7d4; }
.tip { background: #f0f5e9; color: var(--ink); border: 1px solid #dbe6d0; }
.tip .eyebrow, .tip p { color: #5e7057; }
.mini-example { border-color: #d0dfc2; color: var(--pair); }
.game-die, .finish-star { background: #edf1e1; color: #5e7057; box-shadow: none; }
.syllable-scene, .scene-preview:is(.scene-63, .scene-64, .scene-65, .scene-66, .scene-67a, .scene-67b, .scene-68) { background: #eef4e6; }
.footnote { max-width: var(--content-width); margin: 28px auto 0; padding: 18px 0 0; border-top: 1px solid var(--line); color: #5e7057; font-size: 10px; line-height: 1.9; }
@media (min-width: 1700px) { body > main { margin-right: auto; } }
@media (max-width: 1150px) {
  :root { --sidebar-width: 244px; }
  body > main { padding-right: 28px; padding-left: 28px; }
  .welcome { gap: 30px 25px; }
  .welcome h1 { font-size: 33px; }
  .welcome-example { padding: 26px 22px; }
  .welcome-path { gap: 16px; }
  .lesson-focus { gap: 24px; }
  .tutorial-card article { padding: 26px; }
  .tutorial-route button { font-size: 11px; padding: 8px 10px; }
}
@media (max-width: 950px) {
  .welcome { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; }
  .welcome-copy { max-width: 560px; }
  .welcome-example { max-width: none; }
  .welcome-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .lesson-focus { grid-template-columns: 1fr; gap: 22px; }
  .focus-example { justify-self: start; max-width: none; }
  .pattern-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body > main { margin-left: 0; padding: 0 28px 26px; }
  .course-sidebar#courseDrawer { width: min(300px, calc(100vw - 40px)); transform: translateX(-100%); box-shadow: 12px 0 40px #263b3020; }
  .sidebar-open .course-sidebar#courseDrawer { transform: translateX(0); }
  .sidebar-heading { padding-bottom: 16px; }
  .course-sidebar nav button { font-size: 13px; min-height: 45px; }
  #courseToggle { display: block; min-height: 40px; font-size: 12px; padding: 9px 11px; }
  #closeCourses { display: block; border: 0; min-height: 40px; font-size: 22px; }
  .welcome { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 30px; }
  .welcome-path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
  body > main { padding: 0 18px 20px; }
  main > header { height: 68px; gap: 8px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand-icon { font-size: 18px; padding: 1px 6px; }
  .tool-nav { gap: 0; }
  .drawer > summary { font-size: 11px; padding: 9px 7px; }
  #courseToggle { font-size: 11px; padding: 9px 7px; }
  .drawer-panel { top: 65px; right: 12px; padding: 20px; }
  .welcome { grid-template-columns: 1fr; gap: 26px; padding-top: 12px; margin: 24px 0; }
  .welcome h1 { font-size: 31px; letter-spacing: 1px; margin: 14px 0 18px; }
  .welcome #welcomeLesson { font-size: 14px; margin-bottom: 21px; }
  .welcome-example { padding: 25px 22px; }
  .welcome-example h3 { font-size: 20px; }
  .welcome-example-words b { font-size: 35px; }
  .welcome-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 18px; padding: 24px 0; margin-top: 0; }
  .welcome-path > span { gap: 10px; }
  .welcome-path em { font-size: 10px; }
  .lesson-focus { margin-top: 18px; padding: 17px 0 22px; }
  .focus-copy h1, .course-focus .focus-copy h1 { font-size: 24px; }
  .focus-copy p { font-size: 13px; }
  .focus-example { padding: 17px 15px; }
  .focus-condensed .focus-copy { padding-right: 0; }
  .focus-condensed .focus-copy > button { position: static; margin-top: 10px; }
  .focus-condensed .focus-copy h1 { font-size: 23px; }
  .tutorial-top { gap: 14px; }
  .tutorial-top p { font-size: 10px; max-width: 58%; }
  .tutorial-top > button { font-size: 10px; text-align: right; }
  .tutorial-card { border-radius: 10px; }
  .tutorial-progress { padding: 17px 17px 0; gap: 12px; font-size: 10px; }
  .tutorial-progress > .tutorial-route { gap: 6px; }
  .tutorial-route button { min-height: 39px; font-size: 11px; padding: 8px 9px; }
  .tutorial-card article { padding: 23px 18px; }
  .tutorial-card article > h2 { font-size: 19px; margin-bottom: 13px; }
  .journey-coach { margin-bottom: 20px; padding-bottom: 16px; }
  .journey-coach p { font-size: 12px !important; }
  .tutorial-stage, #courseTutorial .tutorial-stage { padding: 26px 13px; min-height: 210px; gap: 20px; }
  .position-word { gap: 5px; }
  .position-cell > b, .guide-diagram .position-cell > b { font-size: 33px; }
  .position-cell small { font-size: 10px; }
  .guide-position-note { font-size: 12px !important; }
  .pattern-example-grid, #courseTutorial .pattern-example-grid { grid-template-columns: 1fr; gap: 13px; }
  .pattern-example-card { padding: 23px 18px; }
  .pattern-example-card .tutorial-word, .guide-sample-word { font-size: 33px !important; }
  .pattern-example-card small { max-width: 280px; }
  .tutorial-word-picks { gap: 7px; }
  .tutorial-word-picks button { font-size: 16px; padding: 8px 13px; }
  .tutorial-sentence { padding: 22px 18px; font-size: 24px; line-height: 1.9; overflow-wrap: break-word; }
  .tutorial-word { font-size: 45px; }
  .tutorial-note { font-size: 10px; }
  .tutorial-card footer { padding: 16px 17px; gap: 12px; flex-wrap: wrap; }
  .tutorial-card footer .primary { max-width: none; font-size: 13px; padding: 11px 17px; min-height: 46px; }
  .steps { padding: 15px 10px; overflow-x: auto; }
  .steps button { font-size: 10px; }
  .days { gap: 6px; }
  .days button { font-size: 11px; padding: 8px 10px; }
  .days #taskProgress { font-size: 11px; }
  .guide-practice-word { font-size: 39px; }
  .footnote { margin-top: 22px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Preparation activities retain the same quiet palette and spacing. */
.ready-letter-pair{display:flex;align-items:baseline;justify-content:center;gap:32px;flex-wrap:wrap;margin:28px 0}.ready-letter-pair b{font-size:86px;color:#365e4c;font-weight:500}.ready-letter-pair span{flex-basis:100%;text-align:center}.ready-options,.ready-oral-words,.ready-sentence{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:24px 0}.ready-options>div{display:flex;flex-direction:column;gap:8px}.ready-sentence button{font-size:clamp(22px,4vw,36px)}.ready-sentence .selected{background:#dce9df}.ready-sound-wall,.ready-alphabet{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:10px;margin:18px 0}.ready-sound-wall button{display:flex;flex-direction:column;gap:8px;text-align:left}.ready-sound-wall b{font-size:22px}.ready-sound-wall small{font-size:12px;line-height:1.5}.ready-alphabet button{font-size:25px}.ready-writing{width:100%;max-width:720px;margin:20px auto;border:1px solid #d9e2d9;border-radius:12px;overflow:hidden;background:#fbfcf9}.ready-writing canvas{display:block;width:100%;height:auto;touch-action:none}.ready-model{line-height:2.2}#readinessTutorial article{min-width:0}#readyFinish{padding:0 24px 20px}

.course-label{min-width:0}.course-status{display:block;margin-top:5px;font-size:11px;font-weight:400;color:#77877b}.course-status[data-status="已完成"]{color:#416952}.course-status[data-status="学习中"]{color:#796439}.lesson-progress{width:100%;height:8px;margin-top:16px;accent-color:#628575}#resumeNote{line-height:1.7}

/* Lion Phonics: a quiet, consistent identity at every screen size. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lion-brand-mark { display: block; width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; }
.lion-brand-name { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: nowrap; line-height: 1.2; }
.lion-brand-name strong { font-size: 19px; font-weight: 650; letter-spacing: -.35px; }
.lion-brand-name small { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 1.3px; }
.sidebar-heading { padding-left: 4px; padding-right: 0; }
.sidebar-heading .lion-brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
.sidebar-heading .lion-brand-name strong { font-size: 18px; }
@media (max-width: 600px) {
  main > header { height: auto; min-height: 80px; flex-wrap: wrap; gap: 4px 10px; padding: 10px 0; }
  #homeBtn { margin-right: auto; }
  #homeBtn .lion-brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  #homeBtn .lion-brand-name strong { font-size: 17px; }
  #homeBtn .lion-brand-name small { font-size: 10px; letter-spacing: 1px; }
  .tool-nav { margin-left: auto; }
}

/* Visual learning workbench and finished public-site surfaces. */
:root { --gold: #a57a38; --serif: Georgia, 'Songti SC', 'Noto Serif CJK SC', SimSun, serif; }
main > header { min-height: 86px; }
.welcome { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 38px 44px; margin-top: 32px; }
.welcome h1 { font-family: var(--serif); font-size: clamp(31px,3.3vw,46px); line-height: 1.5; letter-spacing: 1px; margin: 12px 0 16px; color: #233c30; }
.welcome .welcome-intro { max-width: 360px; color: #657367; font-size: 14px; line-height: 1.95; margin: 0 0 25px; }
.welcome #welcomeLesson { font-weight: 600; color: #355e47; font-size: 15px; padding-top: 20px; position: relative; }
.welcome #welcomeLesson::before { content: ''; position: absolute; top: 0; left: 0; width: 32px; height: 3px; border-radius: 2px; background: #b7955d; }
.welcome #startLearning { min-height: 52px; font-size: 15px; padding: 13px 24px; width: auto; }
.welcome #resumeNote { max-width: 365px; font-size: 11px; line-height: 1.9; }
.welcome-example { padding: 20px 24px 15px; border-radius: 14px; border: 1px solid #e1e8de; background: #fff; box-shadow: 0 12px 38px #28372f07; }
.welcome-example::before { display: none; }
.workbench-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 11px; color: #687969; }
.workbench-pattern { font-size: 13px; font-weight: 600; color: var(--green); }
.word-picture { display: block; flex: 0 0 auto; width: 148px; height: 148px; background-image: url('assets/learning/word-pictures.webp'); background-size: 400% 400%; background-position: var(--picture-x) var(--picture-y); background-repeat: no-repeat; background-color: #fff; border-radius: 10px; }
.workbench-art { display: flex; justify-content: center; margin: 9px 0 8px; min-height: 160px; }
.workbench-art .word-picture { width: 170px; height: 170px; }
.workbench-no-art { min-height: 110px; display: grid; place-content: center; text-align: center; }
.workbench-no-art > span { color: #c0ccbd; font-family: Georgia,serif; font-size: 40px; font-weight: 400; line-height: 1.2; }
.workbench-no-art p { font-size: 11px; margin: 6px 0; color: #657367; }
.workbench-tiles { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.workbench-tiles button { min-width: 43px; min-height: 49px; position: relative; padding: 4px 10px 9px; border-radius: 8px; font-size: 28px; font-family: Georgia,serif; line-height: 1.2; border: 1px solid #e0e6dc; background: #fcfdfb; color: #304436; transition: transform .15s, background .15s; }
.workbench-tiles button.is-focus { background: #e8f0e2; border-color: #d5e1ce; }
.workbench-tiles button.is-focus > span { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; background: #668260; border-radius: 3px; }
.workbench-tiles button[aria-pressed="true"] { transform: translateY(-4px); background: #e8eddf; box-shadow: 0 4px 0 #b5c6ac; border-color: #76926e; }
.workbench-word { font-family: Georgia,serif; font-size: 37px; text-align: center; margin: 8px 0 0; line-height: 1.25; color: #253d31; overflow-wrap: anywhere; }
.workbench-meaning { text-align: center; font-size: 12px; color: #62725e; margin: 4px 0 12px; }
.workbench-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.workbench-actions button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 15px; font-size: 12px; }
.workbench-actions #visualSay { background: #edf3e8; border-color: #d9e4d3; color: #35543e; }
.workbench-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.welcome-example .workbench-note { font-size: 10px; line-height: 1.8; text-align: center; margin: 15px 0 6px; padding-top: 12px; border-top: 1px solid #e8ede4; min-height: 45px; }
.welcome-example .lesson-progress { width: 100%; height: 4px; margin: 4px 0 0; }
.ready-welcome { position: relative; text-align: center; padding: 26px 28px; }
.welcome-lion { display: block; margin: 0 auto 12px; width: 108px; height: 108px; object-fit: contain; }
.ready-welcome h3 { font-family: var(--serif); font-size: 25px; margin: 10px 0 12px; }
.ready-welcome p { font-size: 14px; text-align: left; }
.welcome-path { gap: 20px; margin: 0; padding: 23px 0; }
.welcome-path > span { gap: 12px; align-items: center; }
.welcome-path b { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #ebf0e7; color: #4e6b50; font-family: Georgia,serif; font-size: 16px; }
.welcome-path strong { font-size: 13px; }
.welcome-path em { font-size: 10px; }
.learning-welcome { max-width: var(--content-width); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px auto 42px; }
.learning-welcome > div { position: relative; padding: 24px 25px; background: #f1f4ec; border-radius: 10px; }
.learning-welcome > div:first-child { background: #f6f2e9; }
.learning-welcome h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; font-weight: 600; }
.learning-welcome p { margin: 0 0 12px; font-size: 13px; line-height: 1.95; max-width: 370px; }
.learning-welcome small { font-size: 11px; color: #687564; line-height: 1.8; }
.learning-welcome > div:last-child { padding-right: 100px; }
.learning-welcome img { position: absolute; right: 14px; bottom: 22px; width: 75px; height: 75px; object-fit: contain; }
.welcome-help-icon { display: inline-flex; vertical-align: middle; float: left; margin: 0 10px 0 0; color: #a3824c; }
.welcome-help-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tutorial-stage .meaning-picture { margin: 12px auto 0; }
.pattern-example-card { transition: transform .16s, border-color .16s, background .16s; }
.pattern-example-card:hover { transform: translateY(-2px); }
.tutorial-route [aria-current="step"] { box-shadow: inset 0 -3px 0 #668260; }
/* Site attribution sits in the page flow, below the lesson. */
.site-footer {
  position: static;
  bottom: auto;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin: 30px auto 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: #51624f;
  font-size: 12px;
  line-height: 1.7;
}
.site-footer p { margin: 0; font-size: 11px; }
@media(min-width: 1700px) { .welcome { margin-top: 45px; } }
@media(max-width:1150px) { .welcome { gap: 26px; } .workbench-art .word-picture { width: 150px; height: 150px; } .learning-welcome { gap: 16px; } .learning-welcome > div { padding: 22px 20px; } }
@media(max-width:950px) and (min-width:801px) { .welcome { grid-template-columns: 1fr; } .welcome-copy { max-width: none; } .welcome h1 br { display: none; } .welcome-example { max-width: 520px; width: 100%; } .learning-welcome { grid-template-columns: 1fr; } }
@media(max-width:800px) { .welcome { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 25px; } .welcome h1 { font-size: 32px; } .welcome-path { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .welcome { grid-template-columns: minmax(0,1fr); gap: 25px; margin-top: 22px; } .welcome-copy { max-width: none; } .welcome h1 { font-size: 33px; } .welcome .welcome-intro { font-size: 13px; margin-bottom: 20px; } .welcome #welcomeLesson { font-size: 14px; margin-bottom: 18px; } .welcome-example { padding: 19px 20px 13px; } .workbench-art { min-height: 135px; margin-top: 8px; } .workbench-art .word-picture { width: 145px; height: 145px; } .workbench-word { font-size: 34px; } .workbench-tiles button { font-size: 26px; min-width: 40px; } .welcome-path { gap: 22px 14px; padding: 22px 0; } .welcome-path > span { gap: 9px; } .welcome-path b { width: 31px; height: 31px; flex-basis: 31px; font-size: 14px; } .welcome-path strong { font-size: 12px; } .learning-welcome { grid-template-columns: 1fr; margin-top: 12px; margin-bottom: 30px; gap: 14px; } .learning-welcome > div { padding: 21px 22px; } .learning-welcome h2 { font-size: 19px; } .learning-welcome > div:last-child { padding-right: 100px; } .workbench-pattern { font-size: 12px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .workbench-tiles button[aria-pressed="true"],.pattern-example-card:hover { transform: none; } }

/* Learning happens inside a visible context, not just a text explanation. */
.learning-scene { width: 100%; min-width: 0; border: 1px solid #dde5d8; border-radius: 12px; overflow: hidden; background: #fff; text-align: left; margin: 0; }
.scene-picture { position: relative; width: 100%; aspect-ratio: 1; background-size: 300% 200%; background-position: var(--scene-x) var(--scene-y); background-repeat: no-repeat; background-color: #edf2e8; isolation: isolate; }
.scene-sheet-a { background-image: url('assets/learning/scene-atlas-a.webp'); }
.scene-sheet-b { background-image: url('assets/learning/scene-atlas-b.webp'); }
.scene-description { position: absolute; inset: 0; pointer-events: none; }
.scene-hotspot { position: absolute; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 5px; background: #ffffffee; color: #253d30; border: 1px solid #fff; box-shadow: 0 3px 12px #1b35252b; border-radius: 18px; min-height: 35px; padding: 4px 11px 4px 4px; font-size: 14px; white-space: nowrap; z-index: 1; }
.scene-hotspot > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: #446552; font-size: 11px; flex: 0 0 25px; }
.scene-hotspot > b { font-family: Georgia,serif; font-size: 16px; font-weight: 600; }
.scene-hotspot:hover, .scene-hotspot[aria-pressed="true"] { background: #edf4df; border-color: #547b42; box-shadow: 0 0 0 3px #ffffffb0,0 4px 15px #1b352542; }
.scene-hotspot:has(> span:only-child) { padding: 4px; min-width: 35px; }
.scene-caption { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 12px 15px 8px; }
.scene-caption > div { display: flex; flex-direction: column; gap: 4px; }
.scene-caption strong { font-size: 14px; font-weight: 600; color: #304e35; }
.scene-caption span { color: #65745f; font-size: 11px; line-height: 1.7; }
.scene-caption small { font-size: 9px; white-space: nowrap; color: #76806e; margin-top: 3px; }
.scene-word-response { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; min-height: 47px; margin: 0 15px; padding: 7px 0 12px; color: #4f6748; font-size: 12px; }
.scene-word-response > span { font-size: 10px; color: #63755f; line-height: 1.6; }
.scene-selected-word { display: flex; gap: 2px; font: 26px/1.1 Georgia,serif; color: #2a432e; }
.scene-focus-letter { background: #e5eedc; border-radius: 3px; }
.welcome-example:has(> .learning-scene) { padding: 16px 16px 12px; }
.welcome-example > .learning-scene { margin: 12px 0 20px; }
.welcome-example .scene-picture { aspect-ratio: 1; }
.welcome-example .scene-caption strong { font-size: 14px; }
.welcome-example .scene-word-response { min-height: 35px; padding-bottom: 8px; }
.welcome-example .workbench-heading { margin: 0 3px; }
.welcome:has(.learning-scene) { align-items: center; grid-template-columns: minmax(0,1fr) minmax(0,1.22fr); }
.ready-welcome > .learning-scene { margin: 0 0 20px; }
.tutorial-stage > .learning-scene { max-width: 500px; margin: 15px auto; }
@media(max-width:950px) { .welcome:has(.learning-scene) { grid-template-columns: 1fr; } .welcome-example:has(.learning-scene) { max-width: 530px; width: 100%; justify-self: center; } }
@media(max-width:600px) { .scene-caption { padding: 11px 12px 6px; } .scene-caption small { display: none; } .scene-hotspot { min-height: 33px; padding: 3px 9px 3px 3px; gap: 4px; } .scene-hotspot > b { font-size: 14px; } .scene-hotspot > span { width: 23px; height: 23px; flex-basis: 23px; } .scene-word-response { margin: 0 12px; } .scene-word-response > span:last-child { flex-basis: 100%; } .welcome-example:has(> .learning-scene) { padding: 13px 12px; } }
@media(prefers-reduced-motion:reduce) { .scene-hotspot { transition: none; } }

/* Use the same outer edges and spacing for the home and lesson routes. */
main > :is(header, .welcome, .learning-welcome, .lesson-focus, .heading, #dayTabs,
          #tutorial54, #courseTutorial, #readinessTutorial, .workspace, .companion, .site-footer) {
  max-width: var(--content-width);
  margin-inline: auto;
}
.welcome,
.welcome:has(.learning-scene),
.learning-welcome {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--section-gap);
}
.welcome:has(.learning-scene) { align-items: center; }
.welcome-example:has(> .learning-scene) { max-width: none; width: 100%; }
.welcome-example > .learning-scene { max-width: 320px; margin-inline: auto; }

.lesson-focus {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: var(--section-gap);
  border-bottom: 0;
  padding: 0;
  margin-block: var(--section-gap);
}
.lesson-focus .focus-copy {
  position: relative;
  min-width: 0;
  padding: var(--card-padding) calc(var(--card-padding) + 145px) var(--card-padding) var(--card-padding);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
}
.lesson-focus .focus-copy h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.lesson-focus .focus-copy p { font-size: 15px; }
.lesson-focus .focus-copy > button {
  position: absolute;
  right: var(--card-padding);
  bottom: var(--card-padding);
  margin: 0;
  min-height: 40px;
  font-size: 13px;
}
.lesson-focus.focus-condensed .focus-copy h1 { font-size: clamp(22px, 2.5vw, 27px); }
.lesson-focus.focus-condensed .focus-copy > button {
  top: var(--card-padding);
  bottom: auto;
}

/* Place example and scene on the same grid row, then stack them on narrow screens. */
.lesson-visuals {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 365px), 1fr));
  gap: var(--section-gap);
  align-items: stretch;
}
.lesson-visuals > :only-child { grid-column: 1 / -1; }
.lesson-visuals > :is(.focus-example, .focus-spelling, .ready-demo, .learning-scene) {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: var(--card-padding);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
}
.lesson-visuals > :is(.focus-example, .ready-demo) { display: flex; flex-direction: column; gap: 12px; }
.focus-example > h2 { margin: 0; font-size: 16px; font-weight: 600; }
.focus-diagram { display: grid; justify-items: center; align-content: center; flex: 1; padding-block: 10px; }
.focus-diagram .position-word { margin: 0; }
.focus-diagram .guide-position-note { text-wrap: pretty; }
.lesson-visuals .focus-word-caption { align-items: center; justify-content: center; margin: 0; }
.lesson-visuals .focus-word-caption button { min-height: 40px; font-size: 13px; }
.lesson-visuals > .learning-scene {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "caption caption" "picture response";
  align-items: center;
  align-content: start;
  gap: 12px;
}
.lesson-visuals .scene-picture {
  grid-area: picture;
  max-width: 260px;
  border-radius: 8px;
}
.lesson-visuals .scene-caption {
  grid-area: caption;
  padding: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
}
.lesson-visuals .scene-caption strong { font-size: 16px; }
.lesson-visuals .scene-caption span,
.lesson-visuals .scene-word-response > span { font-size: 13px; }
.lesson-visuals .scene-word-response {
  grid-area: response;
  margin: 0;
  min-width: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.lesson-visuals .scene-hotspot { min-height: 32px; padding: 3px 7px 3px 3px; gap: 4px; }
.lesson-visuals .scene-hotspot > span { width: 22px; height: 22px; flex-basis: 22px; }
.lesson-visuals .scene-hotspot > b { font-size: 14px; }
.ready-demo { text-align: center; justify-content: center; }
.ready-demo > p { margin: 0; }
.ready-demo > button { align-self: center; }
#readinessTutorial .ready-demo { background: var(--canvas); }

.tutorial-top { margin-bottom: 12px; }
.tutorial-top p, .tutorial-top > button { font-size: 13px; }
.tutorial-card { border-radius: var(--card-radius); }
.tutorial-card :is(.tutorial-progress, article, footer) { padding-inline: var(--card-padding); }
.tutorial-card .tutorial-progress > .tutorial-route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
  gap: 8px;
}
.tutorial-route button { min-height: 42px; font-size: 13px; }

@container (max-width: 360px) {
  .lesson-visuals > .learning-scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "caption" "picture" "response";
  }
  .lesson-visuals .scene-picture { justify-self: center; }
}

@media (max-width: 760px) {
  .welcome, .welcome:has(.learning-scene), .learning-welcome, .lesson-visuals {
    grid-template-columns: minmax(0, 1fr);
  }
  .lesson-focus .focus-copy { padding-right: var(--card-padding); }
  .lesson-focus .focus-copy > button { position: static; margin-top: 8px; }
  .lesson-visuals > .learning-scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "caption" "picture" "response";
  }
  .lesson-visuals .scene-picture { justify-self: center; }
}

@media (max-width: 600px) {
  .tutorial-top { display: grid; gap: 4px; justify-items: start; }
  .tutorial-top p { max-width: none; }
  .tutorial-top > button { text-align: left; }
  .tutorial-card .tutorial-progress > .tutorial-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
