/* Journey and signature games use the shared tokens in styles.css. */
.site-header .quiet-button, .site-header .profile-control select { border-radius: 10px; }
.site-header .quiet-button:hover { background: rgba(255,255,255,.13); }
.intro { display: block; padding: clamp(1.8rem, 4vw, 3.4rem) 0 1.4rem; }
.intro-kicker { margin: 0 0 .65rem; color: #315e55; font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.intro h1 { max-width: none; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.055em; }
.intro-copy > p:not(.plain-label):not(.intro-kicker) { max-width: 66ch; margin: .7rem 0 0; font-size: 1.05rem; line-height: 1.55; }
.overall-stats { margin-top: .8rem; }
.grade-rail { padding: 1rem 1.2rem .8rem; border: 1px solid #d8dfd8; border-radius: 16px; box-shadow: 0 4px 18px rgba(28,57,53,.04); }
.grade-tabs { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.grade-tab { min-height: 58px; border: 1px solid #dfe5df; border-top: 3px solid var(--grade); border-radius: 9px; background: #fbfcf8; }
.grade-tab[aria-selected="true"] { border-color: var(--navy-dark); background: var(--navy); color: #fff; }
.hub-tabs { border-color: #dbe2dc; }
.hub-tabs button { border-radius: 10px 10px 0 0; }
.hub-tabs button[aria-current] { border-bottom-color: var(--grade); color: var(--navy); background: #e8f1ed; }
.library { padding-top: 1rem; }
.personal-dashboard { display: block; margin: 1rem 0 2.8rem; padding: clamp(1rem, 2.5vw, 1.8rem); border: 1px solid #e0e5dc; border-radius: 24px; background: #fff; box-shadow: 0 14px 36px rgba(33,71,68,.07); }
.journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
.journey-heading .section-label { margin-bottom: .3rem; color: #315e55; font-size: .75rem; letter-spacing: .1em; }
.journey-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.045em; }
.journey-heading > div > p:last-child { margin: .45rem 0 0; color: var(--ink-soft); line-height: 1.5; }
.journey-checkup { display: inline-flex; align-items: center; gap: .75rem; min-height: 56px; padding: .65rem .9rem; border: 1px solid #d8e4de; border-radius: 13px; background: #f5f8f4; color: var(--ink); text-align: left; }
.journey-checkup:hover { border-color: var(--grade); background: #edf5f0; }
.journey-checkup-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #deece5; color: var(--navy); font-size: 1.25rem; font-weight: 800; }
.journey-checkup strong, .journey-checkup small { display: block; }
.journey-checkup small { margin-top: .15rem; color: var(--ink-soft); font-size: .82rem; }
.journey-cards { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, .82fr)); align-items: stretch; gap: .9rem; }
.journey-card { position: relative; display: flex; min-width: 0; min-height: 255px; overflow: hidden; flex-direction: column; align-items: stretch; border: 1px solid #e2e6df; border-radius: 18px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 4px 14px rgba(28,57,53,.035); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.journey-card:hover { transform: translateY(-3px); border-color: #c3d6cc; box-shadow: 0 12px 28px rgba(28,57,53,.09); }
.journey-card:focus-visible { outline: 3px solid #237c6b; outline-offset: 3px; }
.journey-continue { display: grid; grid-template-areas: "copy art"; grid-template-columns: minmax(0, 1fr) 148px; min-height: 300px; padding: clamp(1.1rem, 2vw, 1.55rem); background: #f1f6f1; }
.journey-card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem 1.1rem 1.1rem; }
.journey-continue .journey-card-copy { grid-area: copy; padding: 0; }
.journey-overline { display: block; margin: 0; color: #55726a; font-size: .72rem; font-weight: 850; letter-spacing: .105em; }
.journey-continue h3, .journey-explore h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.035em; }
.journey-skill { margin: .1rem 0 0 !important; color: var(--navy); font-size: 1.13rem; font-weight: 780; }
.journey-continue .journey-card-copy > p:not(.journey-overline):not(.journey-skill) { max-width: 52ch; margin: 0; color: var(--ink-soft); line-height: 1.45; }
.journey-art { display: grid; min-height: 135px; place-items: center; align-self: start; margin: .1rem -.7rem 0 0; color: #477a6d; }
.journey-continue .journey-art { grid-area: art; }
.journey-art svg { width: 100%; max-width: 185px; height: auto; overflow: visible; }
.journey-art-continue circle { fill: currentColor; }
.journey-progress { max-width: 430px; width: 100%; margin-top: .15rem; }
.journey-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; margin-bottom: .25rem; color: var(--ink-soft); font-size: .86rem; }
.journey-progress > div strong { color: var(--navy); font-size: .92rem; }
.journey-progress progress { display: block; width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 99px; background: #dce7df; accent-color: #33796d; }
.journey-progress progress::-webkit-progress-bar { border-radius: 99px; background: #dce7df; }
.journey-progress progress::-webkit-progress-value { border-radius: 99px; background: #33796d; }
.journey-progress progress::-moz-progress-bar { border-radius: 99px; background: #33796d; }
.journey-progress small { display: block; margin-top: .3rem; color: #61716d; font-size: .78rem; }
.journey-progress-new { display: flex; align-items: center; gap: .5rem; color: #61716d; font-size: .85rem; }
.journey-progress-dot { width: 9px; height: 9px; border-radius: 50%; background: #82a699; }
.journey-actions { margin-top: auto; padding-top: .6rem; }
.journey-actions .primary-action { min-height: 46px; padding-inline: 1rem; border-radius: 11px; background: var(--navy); }
.journey-text-action { min-height: 44px; padding: .45rem .25rem; border: 0; background: transparent; color: var(--navy); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.journey-game { padding: 0; border: 1px solid #e6dfcf; background: #fbf7ed; cursor: pointer; }
.journey-art-game { min-height: 128px; margin: .4rem 1rem -.25rem; color: #9b7437; }
.journey-art-game svg { max-width: 170px; }
.journey-card-title { font-size: 1.35rem; letter-spacing: -.03em; }
.journey-game .journey-card-copy > span:not(.journey-overline):not(.journey-card-title) { color: var(--ink-soft); line-height: 1.45; }
.journey-card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .45rem; color: var(--navy); font-weight: 800; text-decoration: none; }
.journey-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.journey-explore { border-color: #d9e2ec; background: #f1f5f9; }
.journey-art-explore { min-height: 128px; margin: .4rem 1rem -.25rem; color: #4c6c92; }
.journey-art-explore svg { max-width: 170px; }
.journey-explore .journey-card-copy { min-height: 155px; padding-top: .4rem; }
.journey-explore .journey-card-copy > p:not(.journey-overline) { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.journey-today { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem; margin-top: .95rem; padding: .8rem 1rem; border: 1px solid #dce9df; border-radius: 13px; background: #f1f7f2; }
.journey-today-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #dcece0; color: #28634f; font-weight: 900; }
.journey-today > strong { color: var(--navy); }
.journey-today > span:nth-of-type(2) { flex: 1 1 220px; color: var(--ink-soft); }
.journey-today button { min-height: 40px; border: 0; background: transparent; color: var(--navy); font-weight: 800; }
.journey-today button:hover { text-decoration: underline; text-underline-offset: 3px; }
.journey-evidence { margin-top: .9rem; }
.journey-evidence > .genome-profile-card { margin: 0; border: 1px solid #e4e9e2; border-radius: 15px; box-shadow: none; }
.teacher-quick-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; padding: 1.2rem 1.3rem; border: 1px solid #dce4dc; border-radius: 18px; background: #f4f7f2; }
.teacher-quick-tools h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.035em; }
.teacher-quick-tools p:last-child { margin: .35rem 0 0; color: var(--ink-soft); line-height: 1.45; }
.teacher-quick-tools .section-label { margin-bottom: .3rem; color: #315e55; font-size: .74rem; letter-spacing: .1em; }

/* The skill workspace carries the same calm surface and hierarchy as the journey home. */
.working-on-skill #workspace-view {
  margin: .75rem 0 3rem;
  padding: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid #dce5dd;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(33,71,68,.07);
}
.working-on-skill .back-button { margin-bottom: 1.2rem; border-radius: 11px; }
.working-on-skill .workspace-heading {
  align-items: center;
  padding: .2rem 0 1.25rem;
  border-bottom: 1px solid #e1e8e1;
}
.working-on-skill #workspace-grade { margin: 0 0 .35rem; color: #39796c; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.working-on-skill .workspace-heading h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.working-on-skill .mastery-box { min-width: 210px; padding: .85rem 1rem; border: 1px solid #dce6de; border-radius: 14px; background: #f5f8f3; }
.working-on-skill .mastery-box label { color: #405b54; font-size: .78rem; }
.working-on-skill .mastery-box progress { height: 9px; border-radius: 99px; }
.practice-subnav { border: 1px solid #dce5dd; border-radius: 15px; background: #f5f7f3; }
.working-on-skill .mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .25rem;
  margin: 1.1rem 0 1.6rem;
  padding: .3rem;
  border: 1px solid #dce5dd;
  border-radius: 15px;
  background: #f5f7f3;
}
.working-on-skill .mode-tabs button { min-width: 0; border: 0; border-radius: 11px; background: transparent; color: #425c55; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.working-on-skill .mode-tabs button:first-child { border-left: 0; }
.working-on-skill .mode-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 3px 9px rgba(33,71,68,.16); }
.working-on-skill .mode-tabs button:focus-visible { outline: 3px solid #237c6b; outline-offset: 2px; }
.working-on-skill .visual-panel { margin: 0; }
.working-on-skill .visual-lesson-heading { align-items: center; margin: 0 0 1.2rem; padding: .25rem 0 1rem; border-bottom: 1px solid #e4eae4; }
.working-on-skill .visual-lesson-heading .section-label { margin: 0; color: #39796c; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.working-on-skill .visual-lesson-heading h3 { margin: .35rem 0; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.working-on-skill .visual-lesson-layout { gap: 1rem; }
.working-on-skill .visual-model { border: 1px solid #d8e5dc; border-radius: 18px; background: #f1f6f1; padding: clamp(1rem, 2vw, 1.5rem); }
.working-on-skill .visual-step-panel { border: 1px solid #e0e7df; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(33,71,68,.045); }
.working-on-skill .visual-step-dots li { border-color: #cfdcd2; }
.working-on-skill .visual-step-dots .current { border-color: var(--navy); background: var(--navy); }
.working-on-skill .visual-step-dots .complete { border-color: #4d8d70; color: #255b49; background: #e6f2e9; }
.working-on-skill .model-caption { color: #244f47; }
.working-on-skill .math-model-svg .model-fill { fill: #d8e9df; stroke: #315e55; }
.working-on-skill .math-model-svg .model-fill-alt { fill: #f4dfbd; stroke: #735a34; }
.working-on-skill .math-model-svg .jump-path.active { stroke: #33796d; }
.working-on-skill .array-model, .working-on-skill .fraction-area { border-color: #315e55; border-radius: 8px; }
.working-on-skill .array-model span, .working-on-skill .fraction-area span { border-color: #315e55; }
.working-on-skill .array-model .part-one, .working-on-skill .fraction-area .column-shade { background: #b9d8c7; }
.working-on-skill .array-model .part-two { background: #f2d8aa; }
.working-on-skill .strategy-choice-list button { border-color: #d0ddd2; border-radius: 12px; color: #294b43; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.working-on-skill .strategy-choice-list button:hover { transform: translateY(-1px); border-color: #8bad9b; }
.working-on-skill .strategy-choice-list button[aria-pressed="true"] { border-color: #315e55; background: #e6f0e8; color: #244f47; }
.working-on-skill .strategy-equation { color: #244f47; }
.working-on-skill .strategy-total { color: #244f47; }
@media (prefers-reduced-motion: reduce) { .working-on-skill .strategy-choice-list button { transition: none; } }
.working-on-skill .fraction-model { border-color: #315e55; border-radius: 6px; overflow: hidden; }
.working-on-skill .fraction-model span.shaded { background: #79a991; }
.working-on-skill .model-controls button { border-color: #9db9a8; border-radius: 9px; }
.working-on-skill .problem-stage { border: 1px solid #e0e7df; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(33,71,68,.055); }
.working-on-skill .progress-track { height: 8px; border-radius: 99px; background: #e3eae2; }
.working-on-skill .progress-track span { border-radius: inherit; background: #39816f; }
.working-on-skill .session-insight { border-radius: 0 12px 12px 0; }

/* Progress and repair use the same component language as the learner dashboard. */
#path-view .section-heading { align-items: flex-end; margin-bottom: 1.35rem; }
#path-view .section-heading .section-label { margin: 0 0 .35rem; color: #39796c; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#path-view .section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.05em; }
#path-view .section-heading p { margin: .5rem 0 0; line-height: 1.55; }
#path-view .learning-milestones { gap: .8rem; margin: 1.2rem 0; }
#path-view .learning-milestones > div { min-height: 112px; padding: 1rem 1.15rem; border: 1px solid #e0e7df; border-top: 3px solid var(--grade); border-radius: 15px; background: #fff; box-shadow: 0 4px 14px rgba(33,71,68,.04); }
#path-view .learning-milestones strong { color: #214744; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.04em; }
#path-view .learning-milestones span { margin-top: .35rem; color: #52615e; font-size: .9rem; }
#path-view .path-explainer { margin: 1rem 0 1.4rem; padding: 1.1rem 1.25rem; border: 1px solid #dce6de; border-left: 4px solid #39796c; border-radius: 0 15px 15px 0; background: #f1f6f1; }
#path-view .learning-map { gap: .85rem; }
#path-view .path-skill { min-height: 255px; padding: 1.2rem; border: 1px solid #e0e7df; border-left: 4px solid var(--grade); border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(33,71,68,.035); }
#path-view .path-skill.secure { border-left-color: #3d8067; background: #fbfdf9; }
#path-view .path-skill .section-label { margin: 0; color: #39796c; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#path-view .path-skill h3 { margin: .3rem 0; font-size: 1.18rem; letter-spacing: -.025em; }
#path-view .path-skill p { margin: .4rem 0; color: #52615e; font-size: .9rem; line-height: 1.45; }
#path-view .path-skill p.three-part-evidence { padding-top: .55rem; border-top: 1px solid #e4e9e3; font-size: .82rem; }
#path-view .path-skill .path-status { color: #315e55; font-weight: 800; }
#path-view .path-skill .button-row { margin-top: .5rem; }
#path-view .family-guide { max-width: none; padding: 1.3rem 1.5rem; border: 1px solid #e7d9b9; border-radius: 17px; background: #fbf7ed; }
#notebook-view .garage-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.1rem; padding: clamp(1.2rem, 2vw, 1.7rem); border: 1px solid #d2e1d7; border-radius: 20px; background: #214744; box-shadow: 0 10px 26px rgba(33,71,68,.1); }
#notebook-view .garage-banner h2 { color: #fff !important; font-size: clamp(1.55rem, 3vw, 2rem) !important; letter-spacing: -.035em; }
#notebook-view .garage-banner p { max-width: 75ch; color: #e0ebe5 !important; line-height: 1.5; }
#notebook-view .garage-badge { display: inline-flex; padding: .3rem .65rem; border: 1px solid #a9caba; border-radius: 99px; background: #e7f1e9; color: #285b4e; font-size: .72rem; font-weight: 850; letter-spacing: .07em; }
#notebook-view .mistake-list { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: .9rem; }
#notebook-view .mistake-entry { padding: 1.2rem; border: 1px solid #e1e7df; border-top: 3px solid #bd8752; border-radius: 17px; background: #fff; box-shadow: 0 5px 18px rgba(33,71,68,.045); }
#notebook-view .mistake-entry.repaired { border-top-color: #4c8b6d; }
#notebook-view .mistake-entry h3 { margin: .35rem 0; font-size: 1.2rem; letter-spacing: -.025em; }
#notebook-view .mistake-question { color: #214744; font-size: 1.25rem !important; }
#notebook-view .repair-prescription-card { border: 1px solid #d5e4d9; border-radius: 13px; background: #f1f6f1; }
#notebook-view .mistake-entry details { border: 1px solid #e0e7df !important; border-radius: 11px !important; background: #f8faf7 !important; }
#notebook-view .mistake-entry summary { color: #315e55; }
#notebook-view .strategy-detective-section { margin-top: 1.2rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #e0e7df; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(33,71,68,.05); }
#notebook-view .detective-case-card { border-color: #e1e7df; border-radius: 15px; background: #f8faf7; }
#notebook-view .detective-case-card.solved { border-color: #bfd7c7; background: #f2f7f1; }
#notebook-view .case-error-quote { border-radius: 0 9px 9px 0; }
#notebook-view .case-choice-btn { min-height: 48px; border-color: #d5dfd7 !important; border-radius: 10px !important; line-height: 1.4; }
#notebook-view .empty-state { margin-top: 1rem; border: 1px dashed #c8d8ce; border-radius: 20px; background: #f7faf6; }
#skill-grid.skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; border: 0; }
#skill-grid .skill-card { min-width: 0; min-height: 315px; padding: 1.15rem; border: 1px solid #e0e7df; border-radius: 17px; background: #fff; box-shadow: 0 5px 18px rgba(33,71,68,.035); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
#skill-grid .skill-card:hover { transform: translateY(-2px); border-color: #bdd3c4; background: #fff; box-shadow: 0 12px 28px rgba(33,71,68,.08); }
#skill-grid .strand-label { color: #315e55; font-size: .76rem; letter-spacing: .025em; }
#skill-grid .mastery-pill { border-color: #d5e0d7; border-radius: 99px; background: #f5f7f3; color: #4c6258; }
#skill-grid .mastery-pill.level-2, #skill-grid .mastery-pill.level-3 { border-color: #bfd7c7; background: #eaf3eb; color: #285b49; }
#skill-grid .skill-card h3 { margin: .65rem 0 .35rem; font-size: 1.22rem; letter-spacing: -.025em; }
#skill-grid .skill-card > p { font-size: .92rem; line-height: 1.45; }
#skill-grid .skill-recommendation { border-radius: 0 10px 10px 0; background: #f1f6f1; }
#skill-grid .skill-preview { border-color: #dce5dd; border-radius: 11px; background: #f8faf7; }
#skill-grid .skill-preview > summary, #skill-grid .sample-answer > summary { color: #315e55; }
#skill-grid .skill-action-row { gap: .35rem; }
#skill-grid .skill-action-row button { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-width: 0; min-height: 44px; padding: .4rem .35rem; border-color: #d5dfd7; border-radius: 9px; background: #fff; color: #315e55; font-size: .78rem; }
#skill-grid .skill-action-row button:hover { border-color: #88ae98; background: #eff5ef; }
#skill-grid .skill-action-row button svg { flex: 0 0 auto; width: 16px; height: 16px; }
#skill-grid .skill-action-row .flashcard-btn { border-color: #e5d5aa; background: #fbf7ed; color: #745a2e; }
#skill-grid .skill-action-row .flashcard-btn:hover { background: #f6edda; }
.teacher-resources #overall-stats { display: none; }
.teacher-resources .intro { padding-bottom: 1rem; }
#teacher-view.hub-panel { padding-top: .5rem; }
#teacher-view .teacher-quick-tools { align-items: center; margin-bottom: 1rem; }
#teacher-studio .section-heading { align-items: center; gap: 1rem; margin-bottom: 1rem; padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid #dce5dd; border-radius: 18px; background: #f5f8f3; }
#teacher-studio .section-heading .section-label { margin: 0; color: #39796c; font-size: .74rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
#teacher-studio .section-heading h2 { margin: .3rem 0; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.045em; }
#teacher-studio .section-heading p { margin: .25rem 0 0; color: #52615e; font-size: .96rem; line-height: 1.5; }
#teacher-studio #studio-open-partner { border-radius: 10px !important; }
#teacher-view #open-word-wall-btn { border-color: #cbd9ce; background: #fff; color: #315e55; }
#teacher-studio .teacher-layout { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: .9rem; align-items: start; }
#teacher-studio #assignment-builder { border-color: #dfe7df; border-radius: 17px; box-shadow: 0 5px 18px rgba(33,71,68,.045); }
#teacher-studio #assignment-builder input:not([type="checkbox"]), #teacher-studio #assignment-builder select, #teacher-studio #assignment-link { border-color: #cbd9ce; border-radius: 9px; }
#teacher-studio .teacher-guide { padding: 1.2rem; border: 1px solid #e0e7df; border-radius: 17px; background: #fff; box-shadow: 0 5px 18px rgba(33,71,68,.04); }
#teacher-studio .teacher-guide h3 { color: #214744; letter-spacing: -.025em; }
#teacher-studio .teacher-guide p, #teacher-studio .teacher-guide li { color: #52615e; }
@media (max-width: 980px) {
  .journey-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-continue { grid-column: 1 / -1; }
  .journey-game, .journey-explore { min-height: 280px; }
  .working-on-skill .workspace-heading { align-items: flex-start; flex-direction: column; }
  #path-view .learning-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #skill-grid.skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #teacher-studio .teacher-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .intro { padding: 1.7rem 0 1rem; }
  .intro h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .grade-rail { padding: .8rem .65rem .65rem; }
  .grade-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grade-tab { min-height: 50px; }
  .personal-dashboard { padding: .85rem; border-radius: 18px; }
  .journey-heading { align-items: flex-start; flex-direction: column; }
  .journey-checkup { width: 100%; }
  .working-on-skill #workspace-view { margin: .5rem 0 2rem; padding: .8rem; border-radius: 18px; }
  .working-on-skill .mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .working-on-skill .mode-tabs button { min-height: 48px; padding: .65rem .45rem; text-align: center; }
  .working-on-skill .visual-lesson-heading { align-items: flex-start; flex-direction: column; }
  .working-on-skill .visual-lesson-heading > button { width: 100%; }
  .working-on-skill .visual-step-panel { padding: 1rem; }
  #path-view .section-heading { align-items: flex-start; }
  #path-view .learning-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #path-view .learning-map { grid-template-columns: 1fr; }
  #skill-grid.skill-grid { grid-template-columns: 1fr; }
  #notebook-view .garage-banner { align-items: flex-start; flex-direction: column; }
  #teacher-view .teacher-quick-tools { align-items: flex-start; }
  #teacher-studio .section-heading { align-items: flex-start; flex-direction: column; }
  #teacher-studio .section-heading .button-row { width: 100%; }
  #notebook-view .mistake-list { grid-template-columns: 1fr; }
  .journey-cards { grid-template-columns: minmax(0, 1fr); }
  .journey-continue { grid-column: auto; grid-template-columns: minmax(0, 1fr) 72px; min-height: 0; padding: 1rem; }
  .journey-continue .journey-art { margin-right: -.6rem; }
  .journey-continue .journey-art svg { width: 95px; }
  .journey-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .journey-text-action { text-align: left; }
  .journey-game, .journey-explore { min-height: 0; }
  .journey-card-copy { min-height: 0 !important; }
  .journey-today { align-items: flex-start; }
  .journey-today > span:nth-of-type(2) { flex-basis: calc(100% - 42px); }
  .journey-today button { padding-left: 2.2rem; }
  .teacher-quick-tools { align-items: flex-start; flex-direction: column; }
  .teacher-quick-tools .button-row { width: 100%; }
  .teacher-quick-tools .button-row button { flex: 1 1 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-card { transition: none; }
  .journey-card:hover { transform: none; }
}

/* Signature game worlds and living manipulatives. */
.gm-game.gm-signature { position: relative; min-height: 285px; overflow: hidden; align-content: start; padding: 1.15rem 1rem; border-width: 1px; border-radius: 20px; box-shadow: 0 5px 18px rgba(31,48,46,.06); }
.gm-game.gm-signature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,48,46,.12); }
.gm-game.gm-signature .gm-icon { display: grid; width: 100%; min-height: 128px; place-items: center; margin-bottom: .25rem; }
.gm-game.gm-signature .gm-icon svg { width: min(100%, 190px); height: 128px; }
.gm-game.gm-signature b { font-size: 1.25rem; }
.gm-game.gm-signature small { max-width: 28ch; }
.gm-game.gm-numberquest { border-color: #d9e7e1; background: #f0f6f1; color: #285e52; }
.gm-game.gm-arrayarchitect { border-color: #e5dfcf; background: #faf6ec; color: #896c31; }
.gm-game.gm-fractionforge { border-color: #dce2ee; background: #f2f4fa; color: #52658a; }
.gm-game.gm-mathworldbuilder { border-color: #d7e7df; background: #f0f6f1; color: #39715f; }
.gm-game.gm-numberpuzzlestudio { border-color: #e5dfcf; background: #faf6ec; color: #826b35; }
.gm-game.gm-fluencyrally { border-color: #dce2ee; background: #f2f4fa; color: #52658a; }
.gm-game.gm-classic { min-height: 270px; border-width: 1px; border-color: #e0e7df; background: #fbfcf8; color: #315e55; box-shadow: 0 4px 14px rgba(33,71,68,.035); }
.gm-game.gm-classic:hover { border-color: #b9d1c1; background: #fff; box-shadow: 0 12px 24px rgba(33,71,68,.08); }
.gm-game.gm-classic .gm-icon { display: grid; width: 100%; min-height: 112px; place-items: center; margin-bottom: .15rem; }
.gm-game.gm-classic .gm-icon svg { width: min(100%, 160px); height: 104px; overflow: visible; }
.gm-game.gm-classic b { font-size: 1.16rem; }
.gm-game.gm-classic small { max-width: 28ch; }
.sig-head { margin: 0 0 1rem; padding: 1.2rem clamp(1rem,3vw,1.6rem); border: 1px solid #e0e5df; border-radius: 18px; background: #fff; }
.sig-head .tr-link { min-height: 42px; padding: .4rem .3rem; border: 0; background: transparent; color: var(--navy); font-weight: 800; }
.sig-overline { margin: .8rem 0 .35rem; color: #607b70; font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.sig-head h2 { margin: 0; color: #213431; font-size: clamp(1.5rem,3.4vw,2.4rem); line-height: 1.15; letter-spacing: -.045em; }
.sig-round { margin: .55rem 0 0; color: var(--ink-soft); font-weight: 700; }
.sig-board { max-width: 980px; margin: 0 auto; padding: clamp(1rem,3vw,1.7rem); border: 1px solid #e0e6e0; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(31,48,46,.06); }
.sig-instruction { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }
.sig-numberline { max-width: 780px; margin: 2.4rem auto 1.2rem; }
.sig-line { position: relative; height: 53px; margin: 0 1rem; border-top: 4px solid #426f64; }
.sig-tick { position: absolute; top: 1px; width: 42px; padding-top: 14px; transform: translateX(-50%); color: #445b54; font-size: .8rem; font-weight: 700; text-align: center; }
.sig-tick::before { position: absolute; top: -5px; left: calc(50% - 1px); width: 2px; height: 12px; background: #426f64; content: ""; }
.sig-tick:first-child { transform: translateX(0); }
.sig-tick:last-of-type { transform: translateX(-100%); }
.sig-tick:first-child::before { left: 0; }
.sig-tick:last-of-type::before { left: auto; right: 0; }
.sig-marker { position: absolute; top: -15px; z-index: 1; width: 24px; height: 24px; transform: translateX(-50%); border: 4px solid #fff; border-radius: 50%; background: #df994a; box-shadow: 0 0 0 2px #915c22; pointer-events: none; }
.sig-range-label { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; color: #344d46; font-weight: 750; }
.sig-numberline input[type="range"] { display: block; width: 100%; min-height: 38px; margin: .35rem 0 0; accent-color: #397a69; }
.sig-benchmarks { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.2rem 0 .4rem; }
.sig-benchmarks button { min-width: 90px; min-height: 54px; padding: .6rem 1rem; border: 2px solid #cedbd3; border-radius: 13px; background: #f7faf6; color: #254941; font-size: 1.2rem; font-weight: 850; }
.sig-benchmarks button[aria-pressed="true"] { border-color: #2d6a5b; background: #e4f1e9; box-shadow: inset 0 0 0 1px #2d6a5b; }
.sig-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.2rem; }
.sig-controls label { display: grid; gap: .35rem; color: #344d46; font-weight: 750; }
.sig-controls output { color: var(--navy); font-size: 1.1rem; font-weight: 850; }
.sig-controls input[type="range"] { width: 100%; min-height: 42px; accent-color: #397a69; }
.sig-array-wrap { display: grid; justify-items: center; gap: 1rem; min-height: 210px; }
.sig-array { display: grid; width: min(100%,clamp(180px,calc(var(--array-columns) * 48px),390px)); grid-template-columns: repeat(var(--array-columns), minmax(0,1fr)); gap: 3px; padding: 7px; border: 2px solid #987a3b; border-radius: 13px; background: #fffdf7; }
.sig-array span { aspect-ratio: 1; min-width: 0; border: 1px solid rgba(41,64,51,.17); border-radius: 4px; box-shadow: inset 0 2px rgba(255,255,255,.45), inset 0 -3px rgba(36,58,48,.12); }
.sig-array .sig-array-a { background: #628675; }
.sig-array .sig-array-b { background: #e6b765; }
.sig-equation { margin: 0; color: #43544c; font-size: 1.2rem; text-align: center; }
.sig-equation strong { color: #274c42; font-size: 1.35rem; }
.sig-fraction-model { display: grid; gap: 1rem; }
.sig-fraction-row { display: grid; grid-template-columns: 94px minmax(0,1fr) 66px; align-items: center; gap: .8rem; }
.sig-fraction-label { color: #485a54; font-weight: 800; }
.sig-fraction-row > strong { color: #314b44; font-size: 1.15rem; text-align: center; }
.sig-fraction-bar { display: grid; grid-template-columns: repeat(var(--fraction-parts),minmax(0,1fr)); min-height: 48px; gap: 2px; }
.sig-fraction-bar span { border: 1px solid #7f8b9d; background: #f8f9fb; }
.sig-fraction-bar .is-shaded { border-color: #596f96; background: #879bbc; }
.sig-feedback { min-height: 1.6rem; max-width: 980px; margin: 1rem auto .3rem; padding: .85rem 1rem; border-left: 4px solid transparent; border-radius: 0 10px 10px 0; color: #31443d; line-height: 1.5; }
.sig-feedback:empty { padding-block: 0; }
.sig-feedback[data-state="right"] { border-color: #34826a; background: #e9f5ed; }
.sig-feedback[data-state="retry"] { border-color: #c58b38; background: #fff5df; }
.sig-actions { display: flex; justify-content: flex-end; gap: .7rem; max-width: 980px; margin: .5rem auto; }
.sig-actions button { min-height: 48px; border-radius: 11px; }
.sig-hint { max-width: 980px; margin: .7rem auto; padding: .85rem 1rem; border-radius: 10px; background: #f3f6f2; color: #42574e; line-height: 1.5; }
.sig-language { max-width: 980px; margin: .9rem auto; padding: .8rem 1rem; border-left: 3px solid #829d8e; color: #52645b; }
@media (max-width: 620px) {
  .gm-game.gm-signature { min-height: 250px; }
  .gm-game.gm-signature .gm-icon { min-height: 100px; }
  .gm-game.gm-signature .gm-icon svg { height: 104px; }
  .sig-fraction-row { grid-template-columns: 68px minmax(0,1fr) 52px; gap: .45rem; }
  .sig-fraction-bar { min-height: 38px; gap: 1px; }
  .sig-controls { grid-template-columns: minmax(0,1fr); }
  .sig-actions { flex-direction: column-reverse; }
  .sig-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gm-game.gm-signature { transition: none; } .gm-game.gm-signature:hover { transform: none; } }

#teacher-evidence-host { margin: 1.25rem 0; }
.teacher-evidence { display: grid; gap: 1rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #d7e1dc; border-radius: 18px; background: #f8faf8; color: #14263d; }
.teacher-evidence-header, .teacher-intervention-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.teacher-evidence-header h3 { margin: .15rem 0 .35rem; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.teacher-evidence-header .section-label { color: #286256; }
.teacher-evidence-header p:not(.section-label), .teacher-interventions > div > p { max-width: 70ch; margin: .25rem 0; color: #4c5e68; line-height: 1.55; }
.teacher-evidence-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.teacher-evidence-actions button, .teacher-intervention button { min-height: 44px; }
.teacher-evidence-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.teacher-evidence-metrics > div { display: grid; gap: .25rem; padding: .85rem 1rem; border: 1px solid #d9e2dc; border-radius: 12px; background: #fff; }
.teacher-evidence-metrics strong { font-size: 1.65rem; line-height: 1.1; }
.teacher-evidence-metrics span, .teacher-evidence-label, .teacher-evidence-footnote { color: #52636b; }
.teacher-data-table { border: 1px solid #d9e2dc; border-radius: 12px; background: #fff; }
.teacher-data-table summary { padding: .9rem 1rem; font-weight: 750; cursor: pointer; }
.teacher-table-scroll { max-width: 100%; overflow-x: auto; }
.teacher-table-scroll table { width: 100%; border-collapse: collapse; }
.teacher-table-scroll caption { padding: .5rem 1rem; text-align: left; font-weight: 700; }
.teacher-table-scroll th, .teacher-table-scroll td { padding: .7rem .8rem; border-top: 1px solid #e3e9e5; text-align: left; vertical-align: top; }
.teacher-table-scroll th { font-size: .9rem; }
.teacher-table-scroll td small { display: block; color: #586970; }
.teacher-interventions { display: grid; gap: .85rem; }
.teacher-interventions h4 { margin: .25rem 0; font-size: 1.3rem; }
.teacher-intervention { display: grid; gap: .65rem; padding: 1rem; border: 1px solid #d9e2dc; border-radius: 14px; background: #fff; }
.teacher-intervention h4 { margin: .15rem 0; }
.teacher-intervention p { margin: .2rem 0; line-height: 1.5; }
.teacher-intervention .teacher-evidence-label { margin: 0; color: #3a7068; font-size: .8rem; font-weight: 800; text-transform: capitalize; }
.teacher-routine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.teacher-routine > div { padding: .8rem; border-radius: 10px; background: #f3f7f4; }
.teacher-routine h5 { margin: 0 0 .4rem; font-size: 1rem; }
.teacher-routine ol { margin: .3rem 0; padding-left: 1.2rem; }
.teacher-evidence-empty { padding: 1rem; border-radius: 10px; background: #fff; color: #465861; line-height: 1.55; }
.teacher-evidence-footnote { margin: 0; font-size: .86rem; line-height: 1.5; }
@media (max-width: 680px) {
  .teacher-evidence-header, .teacher-intervention-heading { flex-direction: column; }
  .teacher-evidence-actions { width: 100%; }
  .teacher-evidence-actions button { flex: 1 1 100%; }
  .teacher-evidence-metrics { grid-template-columns: 1fr; }
  .teacher-routine { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .strand-filters { flex-wrap: wrap; overflow: visible; }
  .hub-tabs .teacher-tab { grid-column: 1 / -1; }
}

