/* /access-practice-lab/sor-path.css */
.sor2-shell { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 4rem; color: var(--ink); }
.sor2-shell h1 { margin: .35rem 0 .8rem; }
.sor2-shell a:not(.btn) { color: var(--teal); }
.sor2-note { padding: .85rem 1rem; border-left: 1px solid var(--border-strong); background: var(--bg-subtle); }
.sor2-path { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 1rem; margin: 1.5rem 0; }
.sor2-path-card, .sor2-stage { padding: 1.4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.sor2-path-card h4 { margin: .35rem 0; font-size: 1.2rem; }
.sor2-path-card { display: flex; flex-direction: column; align-items: start; }
.sor2-path-card p.fine { margin-top: auto; }
.sor2-progress { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; margin: 1.2rem 0; }
.sor2-progress li { padding: .4rem .7rem; border-radius: var(--radius-md); background: var(--bg-subtle); font-size: .9rem; font-weight: 700; }
.sor2-progress .is-current { background: var(--teal); color: var(--surface); }
.sor2-progress .is-done { background: var(--teal-soft); }
.sor2-stage { max-width: 52rem; }
.sor2-stage h2 { margin-top: 0; }
.sor2-model { padding: 1rem; border-radius: .7rem; background: var(--teal-soft); font-weight: 600; }
.sor2-boxes { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.sor2-box { display: grid; place-items: center; min-width: 4.2rem; min-height: 4.2rem; padding: .4rem; border: 2px solid var(--teal); border-radius: .65rem; background: var(--surface); font-size: 1.35rem; }
.sor2-box small { font-size: .85rem; }
.sor2-tiles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.sor2-tiles button { min-width: 3.3rem; min-height: 3.3rem; border: 2px solid var(--teal); border-radius: .5rem; background: var(--bg-subtle); color: var(--ink); font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.sor2-tiles button[aria-pressed="true"] { background: var(--teal); color: var(--surface); }
.sor2-tiles button:disabled { opacity: .5; cursor: default; }
.sor2-tiles button:focus-visible, .sor2-stage button:focus-visible, .sor2-stage input:focus-visible, .sor2-stage textarea:focus-visible { outline: 3px solid var(--border-subtle); outline-offset: 2px; }
.sor2-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sor2-stage label { display: grid; gap: .45rem; max-width: 38rem; margin: 1rem 0; font-weight: 700; }
.sor2-stage input, .sor2-stage textarea { width: 100%; min-height: 3rem; padding: .7rem; border: 2px solid var(--border-control); border-radius: .55rem; background: var(--surface); color: var(--ink); font: inherit; }
.sor2-passage { max-width: 38rem; padding: 1.3rem; border-radius: .8rem; background: var(--bg-subtle); font-size: clamp(1.2rem,2vw,1.5rem); line-height: 1.7; }
.sor2-feedback { max-width: 52rem; padding: 1rem; border-left: 1px solid var(--border-strong); border-radius: .4rem; background: var(--teal-soft); font-weight: 700; }
/* Phonics Path: progress, levels, units */
.sor2-meter { height: .7rem; margin: .4rem 0 .8rem; border-radius: var(--radius-md); background: var(--bg-interactive-hover); overflow: hidden; }
.sor2-meter span { display: block; height: 100%; border-radius: var(--radius-md); background: var(--teal); transition: width .4s ease; }
.sor2-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0; padding: 1.2rem 1.4rem; border: 2px solid var(--teal); border-radius: var(--radius-md); background: var(--bg-subtle); }
.sor2-resume > div { flex: 1 1 18rem; }
.sor2-levelnav { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .6rem; padding: .6rem 0; margin-bottom: 1rem; background: color-mix(in srgb, var(--surface) 93%, transparent); }
.sor2-levelnav a { display: grid; padding: .55rem 1.1rem; border: 2px solid var(--teal); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; line-height: 1.2; }
.sor2-levelnav a:hover, .sor2-levelnav a:focus-visible { background: var(--teal); color: var(--surface) !important; }
.sor2-levelnav span { font-size: .85rem; }
.sor2-level { margin-top: 2.5rem; scroll-margin-top: 4.5rem; }
.sor2-level > h2 { margin-bottom: .2rem; padding-bottom: .4rem; border-bottom: 4px solid var(--teal); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.sor2-level > h2 small { font-size: .5em; font-weight: 700; color: var(--text-secondary); }
.sor2-unit { margin: 1.8rem 0; scroll-margin-top: 4.5rem; }
.sor2-unit h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.sor2-skills { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0; list-style: none; }
.sor2-skills li { padding: .25rem .7rem; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--ink); font-size: .85rem; font-weight: 700; }
.sor2-path-card.is-done { border-color: var(--teal); background: var(--bg-canvas); }
.sor2-scope { margin: 2.5rem 0 1rem; padding: 1rem 1.2rem; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); }
.sor2-scope summary { cursor: pointer; font-weight: 800; }
.sor2-scope table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .92rem; }
.sor2-scope caption { position: absolute; left: -9999px; }
.sor2-scope th, .sor2-scope td { padding: .6rem; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
/* Lesson stages */
.sor2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .8rem; padding: 0; margin: 1rem 0; list-style: none; }
.sor2-card { position: relative; display: grid; justify-items: center; gap: .1rem; padding: .9rem .6rem .7rem; border: 2px solid var(--teal); border-radius: var(--radius-md); background: var(--surface); text-align: center; }
.sor2-pic { font-size: 2.4rem; line-height: 1.1; }
.sor2-g { font-size: 2rem; color: var(--teal); }
.sor2-sound { font-weight: 700; color: var(--text-secondary); }
.sor2-key { font-size: 1rem; }
.sor2-mini { position: absolute; top: .35rem; right: .35rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 2px solid var(--teal); border-radius: 50%; background: var(--bg-subtle); color: var(--teal); cursor: pointer; }
.sor2-pile .sor2-mini, .sor2-card .sor2-mini { min-width: 0; min-height: 0; }
.sor2-mini .ico, .sor2-hear .ico, .sor2-chip .ico { width: 1.1em; height: 1.1em; }
.sor2-hear { display: inline-flex; align-items: center; gap: .4rem; margin-left: .3rem; vertical-align: middle; }
.sor2-trick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sor2-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border: 2px solid var(--teal); border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--ink); font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.sor2-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.sor2-bucket { min-height: 8rem; padding: .9rem 1rem; border: 3px dashed var(--teal); border-radius: var(--radius-md); background: var(--bg-canvas); }
.sor2-bucket h3 { margin: 0; font-size: 1.25rem; }
.sor2-bucket ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0 0; list-style: none; }
.sor2-bucket li { padding: .3rem .8rem; border-radius: .5rem; background: var(--teal); color: var(--surface); font-size: 1.15rem; font-weight: 800; }
.sor2-pile { display: grid; gap: .6rem; padding: 0; margin: 1rem 0; list-style: none; }
.sor2-pile li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 2px solid var(--border-strong); border-radius: .8rem; background: var(--surface); }
.sor2-pile b { min-width: 5rem; font-size: 1.4rem; }
.sor2-pile .sor2-mini { position: static; }
.sor2-win { padding: .8rem 1rem; border-left: 1px solid var(--border-strong); border-radius: .4rem; background: var(--teal-soft); font-weight: 700; }
.sor2-stars { margin: .4rem 0; font-size: 2.6rem; letter-spacing: .3rem; color: var(--text-tertiary); }
.sor2-stars span::before { content: "\2606"; }
.sor2-stars .is-on { color: var(--accent); }
.sor2-stars .is-on::before { content: "\2605"; }
.sor2-complete .sor2-actions { margin-top: 1rem; }
.sor2-complete .sor2-actions .btn { text-decoration: none; }
.sor2-reset { max-width: 38rem; margin: 2rem 0 1rem; padding: .8rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); }
.sor2-reset .fine { display: block; margin-top: .3rem; }
.sor2-reset summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.sor2-reset .btn { margin-top: .4rem; }
.footer-link-button { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.start-fresh { max-width: min(32rem, calc(100vw - 2rem)); padding: 1.4rem 1.6rem; border: 2px solid var(--teal); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.start-fresh::backdrop { background: color-mix(in srgb, var(--ink) 70%, transparent); }
.start-fresh h2 { margin-top: 0; }
.start-fresh-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.start-fresh-status { min-height: 1.4em; font-weight: 700; }
@media print { .sor2-levelnav, .sor2-resume, .sor2-level, .sor2-note, .sor2-reset { display: none; } .sor2-scope { border: 0; } }
@media (prefers-reduced-motion: reduce) { .sor2-shell *, .sor2-shell *::before, .sor2-shell *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Stimulus pane: serif, calm reading surface. Task and response controls stay in the sans UI face. */
.sor2-passage, .sor2-model {
  font-family: var(--font-serif);
  line-height: 1.75;
}
.sor2-passage {
  background: var(--surface);
  border-color: var(--border-subtle);
  color: var(--ink);
}

/* /access-practice-lab/ds.css */
/* ACCESS Practice Lab — EduWonderLab design system.
   Tokens, type, chrome (top bar, footer), and the shared components every screen reuses:
   buttons, panels, forms, disclosures, chips, progress, feedback.
   View-specific layout lives next to the view (home.css, activity.css, studios.css, ...).
   Light theme only. Every colour a screen uses is a token defined here. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-521e24d1.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-1dc044f4.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-521e24d1.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-1dc044f4.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-521e24d1.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-1dc044f4.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-7eed183e.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-340e696a.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-7eed183e.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-340e696a.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-e59d136b.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-069be307.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-e59d136b.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-069be307.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-09a38d7d.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-6e93c7de.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-634333bb.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-beaf4e42.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-634333bb.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-beaf4e42.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lab-scale: 1;

  /* ── material families: The Living Language Studio ──────────────────────
     Art-direction anchors. Screens use the semantic tokens below; reach for a
     material token only to paint an environment (hero, studio portal, art). */
  --mi-950: #061626; /* Deep Harbor navy (was Midnight Indigo) */
  --mi-900: #0b2339;
  --mi-800: #123a5c;
  --mi-600: #1d5a78;
  --mi-500: #2b7a88;
  --mi-300: #9cc8c6;
  --ivory: #fffcf5; /* Ivory & Pearl */
  --pearl: #efe9e4;
  --pearl-blue: #d5dceb;
  --ocean-900: #075568; /* Ocean Glass — Listening */
  --ocean-600: #15969a;
  --ocean-200: #91e2d6;
  --rose-900: #4a1f35; /* Rose & Garnet — Speaking */
  --rose-600: #a24f72;
  --rose-200: #dba3b9;
  --copper-900: #884326; /* Burnished Copper — Writing */
  --copper-500: #d28b58;
  --copper-200: #f5d6a8;
  --sage-900: #264e48; /* Sage & Jade — growth, revision, feedback */
  --sage-500: #5a9481;
  --sage-200: #d0e3cd;

  /* ── Editorial Academic theme: warm paper, deep slate ink ──────────────
     Semantic tokens first; the legacy names below alias them so every screen
     sheet inherits the theme without being edited. */
  --bg-canvas: #f8f4ea; /* ivory stock: page background */
  --bg-surface: #fffdf8; /* warm-white cards and elevated containers */
  --bg-subtle: #f0e9da; /* wells, table heads, sidebars */
  --bg-interactive-hover: #e6dcc6;
  --text-primary: #101c2c; /* midnight ink, 15.6:1 on canvas */
  --text-secondary: #3f4c5e;
  --text-tertiary: #4f5b6c; /* captions; 5.0:1 or better on every surface including hover */
  --brand-primary: #14294a; /* midnight navy, 14:1 on surface */
  --brand-primary-hover: #0b1b34;
  --brand-accent: #0b6a62; /* deep jade teal */
  --brand-gold: #7d5410; /* antique bronze text and markers, 5.5:1 on every surface; never a large fill */
  --brand-brass: #b8893b; /* polished brass: hairlines, rules and ornaments only, never text */
  --status-success-bg: #ecfdf3;
  --status-success-text: #065f46;
  --status-success-border: #a7f3d0;
  --status-warning-bg: #fffbeb;
  --status-warning-text: #92400e;
  --status-warning-border: #fde68a;
  --status-error-bg: #fef2f2;
  --status-error-text: #991b1b;
  --status-error-border: #fecaca;
  --border-subtle: #e5dbc6; /* 1px hairlines */
  --border-strong: #d2c4a6; /* cards that are active, dividers that need weight */
  --border-control: #857b66; /* form-control edges: 3.8:1 on canvas, 4.1:1 on surface (WCAG 1.4.11) */

  /* ink and surfaces (legacy names, aliased to the theme above) */
  --ink: var(--text-primary);
  --ink-2: var(--text-secondary);
  --ink-3: var(--text-tertiary);
  --bg: var(--bg-canvas);
  --surface: var(--bg-surface);
  --surface-2: var(--bg-subtle);
  --surface-3: var(--bg-interactive-hover);
  --line: var(--border-subtle);
  --line-strong: var(--border-strong);
  --line-control: var(--border-control);

  /* action */
  --brand: var(--brand-primary);
  --brand-ink: var(--brand-primary);
  --brand-deep: var(--brand-primary-hover);
  --brand-soft: #e7ecf4;
  --on-brand: #ffffff;
  --accent: var(--brand-gold); /* ochre markers and highlights */
  --coral: #9a4a26; /* muted terracotta: the maker accent */
  --teal: var(--brand-accent); /* interactive accent: current page, selection, progress */
  --teal-soft: #e0efe9;

  /* language domains: fill (white text on it), ink (text on white), soft (tint) */
  --listening: #075568;
  --listening-ink: #075568;
  --listening-soft: #d9f0ec;
  --reading: #2e4a94;
  --reading-ink: #2a4386;
  --reading-soft: #e4eafa;
  --speaking: #8a3a5c;
  --speaking-ink: #7d3354;
  --speaking-soft: #f7e6ed;
  --writing: #9a4a26;
  --writing-ink: #884326;
  --writing-soft: #fbead9;
  --room: var(--brand);
  --room-ink: var(--brand-ink);
  --room-soft: var(--brand-soft);

  /* feedback */
  --right: var(--status-success-text);
  --right-soft: var(--status-success-bg);
  --wrong: var(--status-error-text);
  --wrong-soft: var(--status-error-bg);
  --hint: var(--status-warning-text);
  --hint-soft: var(--status-warning-bg);
  --focus: var(--brand-primary);

  /* shape and depth */
  /* geometry: 6 small controls, 10 cards, 14 modals and hero containers. Nothing rounder. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --r-xs: var(--radius-sm);
  --radius: var(--radius-md);
  --r-lg: var(--radius-lg);
  --r-xl: var(--radius-lg);
  --target: 3rem;
  --shadow-card: 0 1px 2px rgb(20 41 74 / 5%), 0 2px 6px rgb(20 41 74 / 4%);
  --shadow-elevated: 0 6px 20px rgb(20 41 74 / 10%); /* modals and dropdowns only */
  --shadow: var(--shadow-card);
  --shadow-lift: var(--shadow-card);
  --shadow-float: var(--shadow-elevated);
  /* light: a soft top edge catches light on raised material; never a glow for its own sake */
  --edge-light: 0 0 0 transparent;
  --edge-light-dark: 0 0 0 transparent;
  /* fine-grain paper texture, tiled under editorial surfaces */
  --grain: none; /* no paper texture: flat, crisp publisher surfaces */

  /* motion: state changes, orientation and feedback only (see DESIGN-SYSTEM.md) */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-press: cubic-bezier(0.3, 1.4, 0.6, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 520ms;

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  /* type */
  --font:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
    sans-serif;
  --font-display:
    "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 68ch;

  /* type scale + rhythm shared by activity surfaces (additive; existing sizes keep working) */
  --fs-small: 0.9375rem;
  --fs-body: 1rem;
  --fs-prompt: 1.1875rem;
  --fs-lead: 1.3rem;
  --lh-tight: 1.25;
  --lh-body: 1.6;
  --lh-passage: 1.75; /* student reading passages */
  --measure-reading: 68ch; /* instructional text and passages: never wider */
  --target-min: 2.75rem; /* 44px: the floor for any tap or click target */
  --focus-ring: 2px solid var(--focus);

  /* activity zones: what a learner is looking at (see "activity kit" below) */
  --zone-bar: 6px;
  --zone-context: var(--surface-2);
  --zone-stimulus: var(--surface);
  --zone-response: var(--surface);
  color-scheme: light;
}

.d-listening,
[data-domain="Listening"] {
  --room: var(--listening);
  --room-ink: var(--listening-ink);
  --room-soft: var(--listening-soft);
  --room-glow: #91e2d6;
}
.d-reading,
[data-domain="Reading"] {
  --room: var(--reading);
  --room-ink: var(--reading-ink);
  --room-soft: var(--reading-soft);
  --room-glow: #d5dceb;
}
.d-speaking,
[data-domain="Speaking"] {
  --room: var(--speaking);
  --room-ink: var(--speaking-ink);
  --room-soft: var(--speaking-soft);
  --room-glow: #dba3b9;
}
.d-writing,
[data-domain="Writing"] {
  --room: var(--writing);
  --room-ink: var(--writing-ink);
  --room-soft: var(--writing-soft);
  --room-glow: #f5d6a8;
}
.d-model-test,
[data-domain="Model-Test"] {
  --room: var(--ink);
  --room-ink: var(--ink);
  --room-soft: var(--surface-2);
}

/* ── base ──────────────────────────────────────────────────────────────── */
html {
  font-size: calc(100% * var(--lab-scale));
  /* --lab-top-h: the sticky header's live height (src/shell.js), so jumps never land under it. */
  scroll-padding-top: calc(var(--lab-top-h, 4rem) + 1rem);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  line-height: 1.12;
}
h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
}
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 1.15rem;
}
p {
  text-wrap: pretty;
}
/* instructional text and passages: never wider than 68 characters */
p,
li,
dd,
blockquote {
  max-width: var(--measure);
}
/* Source Serif 4 is for reading passages and literary prompts only */
.passage,
.ak-zone-stimulus .passage,
.reading-passage,
.stimulus-text,
.lf-passage,
blockquote {
  font-family: var(--font-serif);
  line-height: var(--lh-passage);
}
/* scores, levels, timers, rubrics and standards codes read in fixed-width figures */
table,
.badge,
.chip,
.cat-chip,
.bar,
.ring-text,
.practice-status,
[class*="score"],
[class*="level"],
[class*="timer"],
[class*="count"],
[class*="rubric"],
[data-score] {
  font-variant-numeric: tabular-nums;
}
code,
kbd,
samp,
.code,
.standard-code,
.elp-level,
.wida-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
a {
  color: var(--brand-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}
a:hover {
  color: var(--brand-deep);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: none;
}
::selection {
  background: var(--pearl-blue);
}
.fine {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.eyebrow {
  margin: 0 0 var(--s-2);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--room-ink);
}
.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: var(--s-2) 0 var(--s-5);
}
.disclaimer {
  color: var(--ink-3);
  font-size: 0.9rem;
  max-width: 70ch;
}
.ico {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.22em;
}
.ico-lg {
  width: 1.75em;
  height: 1.75em;
}

/* ── chrome: top bar ───────────────────────────────────────────────────── */
.lab-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4rem; /* the 64px editorial bar */
  padding: 0.5rem clamp(1rem, 2.4vw, 2rem);
  background: var(--bg-surface);
  color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-brass) 55%, var(--border-subtle)); /* brass hairline */
}
.lab-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}
.lab-brand:hover .lab-wordmark strong {
  color: var(--brand-primary-hover);
}
.lab-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  background: none;
  box-shadow: none;
}
.lab-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lab-wordmark {
  display: grid;
  line-height: 1.15;
}
.lab-wordmark strong {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--brand-primary);
}
.lab-wordmark small {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.lab-tools {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.top-link {
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}
.top-link .ico {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-3);
}
.top-link:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}
.top-link[aria-current="page"] {
  color: var(--brand-primary);
  background: none;
}
.top-link[aria-current="page"] .ico {
  color: var(--brand-primary);
}
.top-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  background: var(--brand-primary);
}
.lab-utilities {
  position: relative;
  flex: none;
}
.lab-utilities > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.lab-utilities > summary::-webkit-details-marker {
  display: none;
}
.lab-utilities > summary::after {
  display: none;
}
.lab-utilities > summary:hover {
  border-color: var(--ink-3);
  background: var(--surface-2);
}
.lab-utilities[open] > summary {
  background: var(--surface-2);
  border-color: var(--brand);
}
.lab-utilities-body {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 40;
  width: min(46rem, 92vw);
  max-height: min(78vh, 40rem);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}
.menu-group {
  display: grid;
  align-content: start;
  gap: 0.1rem;
}
.menu-group h2 {
  margin: 0 0 0.35rem;
  font: 600 0.75rem var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.menu-group a,
.menu-group button.menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  font: 500 0.9375rem var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-group a .ico,
.menu-group button.menu-item .ico {
  color: var(--brand);
}
.menu-group a:hover,
.menu-group button.menu-item:hover {
  background: var(--surface-2);
}
.menu-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.menu-compact {
  display: none;
}
.text-size {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.ts-btn {
  min-width: 3rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 0.9375rem var(--font);
  cursor: pointer;
}
.ts-btn:hover {
  background: var(--surface-2);
}
.ts-btn + .ts-btn {
  border-left: 1.5px solid var(--line);
}
.lab-main {
  width: min(80rem, 100%); /* max-w-7xl */
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 3vw, 2rem) var(--s-7);
}
.lab-main:focus {
  outline: none;
}
/* Reserve the first screen while the app boots, so the footer is not on screen and then pushed away (CLS). */
/* Every screen fills at least the window under the header, so a view that finishes loading after its first paint
   (Book Studio's shelf, a studio's saved work) never shows the footer for a moment and then shoves it away. */
.lab-main {
  min-height: calc(100vh - var(--lab-top-h, 7rem));
}
.lab-main:has(> .boot) {
  min-height: 100vh;
  visibility: hidden;
}
/* The boot note is pinned to the screen, not the page: when the header tools and section bar arrive above it,
   nothing visible moves (a note in the flow was the one shift left on every page load). */
.boot {
  position: fixed;
  inset: 40vh 0 auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  pointer-events: none;
  visibility: visible;
}
.boot-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.3;
  }
}

/* ── chrome: footer ────────────────────────────────────────────────────── */
.lab-footer {
  --gutter: clamp(1.5rem, 3vw, 2rem);
  margin-top: var(--s-7);
  padding: var(--s-6) max(var(--gutter), calc((100% - 80rem) / 2 + var(--gutter))) var(--s-5);
  background: var(--bg-subtle);
  color: var(--ink-2);
  border-top: 2px solid var(--brand-brass); /* brass rule closes the page */
  text-align: left;
}
.footer-brand {
  display: grid;
  gap: var(--s-1);
  margin-bottom: var(--s-5);
}
.footer-brand strong {
  font: 700 1.125rem var(--font-display);
  color: var(--brand-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-6);
  width: 100%;
}
.footer-brand p,
.footer-legal,
.footer-build {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.footer-brand p {
  max-width: 62ch;
}
.footer-build {
  margin-top: var(--s-2);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.footer-links {
  display: grid;
  align-content: start;
  gap: 0.1rem;
}
.footer-links h2 {
  margin: 0 0 0.4rem;
  font: 600 0.75rem var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-links a,
.footer-links .footer-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  font: 500 0.9375rem var(--font);
  text-underline-offset: 0.2em;
}
.footer-links a:hover,
.footer-links .footer-link-button:hover {
  color: var(--brand-primary);
}
.footer-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  margin: var(--s-4) 0 0;
}
.footer-utility a,
.footer-utility .footer-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  font: 500 0.9375rem var(--font);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-utility a:hover,
.footer-utility .footer-link-button:hover {
  color: var(--brand-primary);
}
.footer-legal {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-subtle);
  max-width: none;
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--target);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
.btn:hover {
  border-color: var(--ink-3);
  background: var(--bg-subtle);
  color: var(--ink);
}
.btn:active,
.ghost:active {
  background: var(--bg-interactive-hover);
}
.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #ffffff;
}
.btn-primary:active {
  background: var(--brand-primary-hover);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-3);
  color: var(--ink);
}
.btn[disabled],
.ghost[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-big {
  min-height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1.0625rem;
}
.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
}
.ghost:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}
.ghost.small,
.btn.small {
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9375rem;
}

.practice-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  width: fit-content;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.practice-status.is-in-progress {
  border-color: var(--border-strong);
  background: var(--brand-soft);
  color: var(--brand-primary);
}
.practice-status.is-practice-complete {
  border-color: var(--status-success-border);
  background: var(--status-success-bg);
  color: var(--status-success-text);
}
.practice-status.is-needs-review {
  border-color: var(--status-warning-border);
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
}
.practice-status.is-strong-practice {
  border-color: var(--status-success-border);
  background: var(--status-success-bg);
  color: var(--status-success-text);
}
.ghost.danger {
  color: var(--wrong);
}
.btn-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin: var(--s-4) 0;
}

/* ── surfaces ──────────────────────────────────────────────────────────── */
.panel,
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-card);
}
.panel {
  margin: var(--s-4) 0;
}
.panel > h2:first-child,
.panel > h1:first-child {
  margin-top: 0;
}

/* ── forms ─────────────────────────────────────────────────────────────── */
label.field,
.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  transition: border-color 150ms ease;
}
textarea {
  min-height: 7.5rem;
  resize: vertical;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-3);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--brand);
  flex: none;
}
fieldset {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  margin: 0;
}
legend {
  padding: 0 0.4rem;
  font-weight: 600;
  color: var(--ink);
}
/* an empty live region stays in the DOM for assistive tech but must not paint an empty banner */
[role="alert"]:not([hidden]):empty {
  padding: 0;
  border: 0;
  background: none;
}
[role="alert"]:not([hidden]) {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-text);
  font-weight: 600;
}

/* ── disclosures ───────────────────────────────────────────────────────── */
details > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 2.75rem 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: -0.55rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  color: var(--ink-3);
  transition: transform 150ms ease;
}
details[open] > summary::after {
  transform: rotate(180deg);
}
details > summary:hover {
  background: var(--surface-2);
}
.cando,
.strand,
.helpers,
.transcript,
.ladder,
details.strategy,
details.more-tools,
details.session-options {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: var(--s-3) 0;
  padding: 0;
}
details[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid var(--line);
}
details > :not(summary) {
  margin-inline: 1rem;
}
details > p:last-child,
details > ul:last-child {
  margin-bottom: 1rem;
}
details > summary + * {
  margin-top: 0.9rem;
}

/* ── chips, progress ───────────────────────────────────────────────────── */
.chip,
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.9375rem var(--font);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.cat-chip:hover {
  border-color: var(--ink-3);
  background: var(--surface-2);
}
.cat-chip[aria-pressed="true"],
.cat-chip.is-active,
.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.band-switch {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.band-btn {
  min-height: 2.75rem;
  padding: 0.4rem 1.15rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.band-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.band-btn[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.grade-focus {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  margin-block: 0.75rem;
}
.grade-focus-label,
.grade-focus-note {
  margin: 0;
}
.grade-focus-label {
  font: 600 0.875rem var(--font);
  color: var(--ink-2);
}
.grade-focus .band-switch {
  flex-wrap: wrap;
}
.grade-focus-n {
  margin-inline-start: 0.35rem;
  font-size: 0.85em;
  font-weight: 500;
}
.bar {
  position: relative;
  height: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-interactive-hover);
  overflow: hidden;
}
.bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--room);
  transition: width 320ms ease;
}

/* ── breadcrumbs ───────────────────────────────────────────────────────── */
.crumbs {
  margin: 0 0 var(--s-4);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.crumbs [aria-current="page"] {
  color: var(--ink);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

/* ── notifications ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(92vw, 36rem);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  z-index: 60;
  box-shadow: var(--shadow-elevated);
}
#labStorageWarning,
#labNet {
  width: min(80rem, 100% - 2rem);
  margin: var(--s-3) auto 0;
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

/* ── empty and loading states ──────────────────────────────────────────── */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-4);
  text-align: center;
}
.empty-state img {
  width: min(16rem, 70%);
  height: auto;
  border-radius: var(--radius-lg);
}
.empty-state h2,
.empty-state h3 {
  margin: 0;
}
.empty-state p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-2);
}
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(
      100deg,
      var(--surface-2) 30%,
      var(--surface-3) 50%,
      var(--surface-2) 70%
    )
    0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ── responsive chrome ─────────────────────────────────────────────────── */
/* The two family buttons keep their labels on the top row at every width (families are mostly on phones).
   Teacher Expedition shrinks to an icon, then lives in the More menu on narrow screens. */
.top-expedition {
  border: 2px solid var(--brand);
  color: var(--brand-deep);
  margin-inline-start: 0.35rem;
}
/* Create a Book: the maker door, in the Writing (copper) material so it reads as making, not navigating. */
.top-book {
  border-color: var(--writing);
  color: var(--writing-ink);
}
.top-book:hover,
.top-book[aria-current="page"] {
  background: var(--writing-soft);
}
.top-access-prep.is-featured {
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
}
.top-access-prep.is-featured:hover {
  background: var(--bg-interactive-hover);
  color: var(--brand-primary);
}
.top-access-prep.is-featured .ico {
  color: var(--brand-accent);
}
@media (max-width: 2199px) {
  .lab-tools > .top-link[data-tier="low"] {
    display: none;
  }
}
/* Brand never shrinks (its wordmark is nowrap); the link row tightens instead so they cannot overlap. */
@media (min-width: 1200px) and (max-width: 1559px) {
  .lab-tools > .top-link:not(.top-expedition) > .ico {
    display: none;
  }
}
@media (max-width: 1399px) {
  .lab-tools .top-link {
    padding-inline: 0.55rem;
    gap: 0.3rem;
    font-size: 0.9rem;
  }
  .top-expedition:not(.top-family):not(.top-teachers):not(.top-guide):not(.top-book) {
    padding-inline: 0.65rem;
  }
  .top-expedition:not(.top-family):not(.top-teachers):not(.top-guide):not(.top-book) > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 1199px) {
  .lab-top {
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
  }
  .lab-brand {
    flex: 1 1 calc(100% - 7rem);
  }
  .lab-tools {
    display: contents;
  }
  .lab-tools > .top-expedition:not(.top-family):not(.top-teachers):not(.top-guide):not(.top-book) {
    display: none;
  }
  .lab-utilities {
    order: 1;
  }
  .top-family,
  .top-teachers,
  .top-guide,
  .top-book {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
    margin-inline-start: 0;
  }
  .lab-tools .lang-switch {
    order: 3;
    margin-inline-start: auto;
  }
}
@media (max-width: 559px) {
  .lab-top {
    position: static;
  }
  .top-family,
  .top-teachers,
  .top-guide,
  .top-book {
    flex: 1 1 40%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}
@media (max-width: 960px) {
  .lab-tools > .top-link:not(.top-expedition) {
    display: none;
  }
  .menu-compact {
    display: grid;
  }
}
@media (max-width: 1120px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 360px) {
  .lab-wordmark strong {
    font-size: 0.95rem;
  }
  .lab-utilities > summary {
    padding-inline: 0.7rem;
  }
  .lab-utilities > summary > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .lab-wordmark small {
    display: none;
  }
  .lab-wordmark strong {
    font-size: 1.05rem;
  }
  .lab-utilities-body {
    position: fixed;
    inset: 4.25rem 0.75rem auto;
    width: auto;
    max-height: calc(100dvh - 5.25rem);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ── grade-band identity ───────────────────────────────────────────────
   One theme for every band. Grades 3-5 keep larger tap targets and a slightly larger button label;
   colour, radii and surfaces never change by band. */
body[data-lab-band="3-5"] {
  --target: 3.25rem;
}
body[data-lab-band="3-5"] .btn,
body[data-lab-band="3-5"] .ghost {
  font-size: 1.0625rem;
}

/* ── assessment-style practice: quiet, focused, predictable ──────────────
   Practice tests and the simulator drop the atmosphere: plain pearl paper, no
   grain, no decorative depth, and a persistent mode label in the top bar. */
body[data-lab-view="test"],
body[data-lab-view="assess"] {
  background: var(--bg-canvas);
}
body[data-lab-view="test"] .lab-top,
body[data-lab-view="assess"] .lab-top {
  background: var(--bg-surface);
}
.mode-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .lab-footer {
    display: none;
  }
}

.section-title {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
}
.window-kicker {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Shared site launchers stay out of the way inside the lab. */
/* Lab-scoped utility layout. Shared site launchers remain available through the header. */
body[data-lab-view] #nsr-launcher,
body[data-lab-view] #nsr-workbench,
body[data-lab-view] #mwb-launcher,
body[data-lab-view] .mwb-launcher-nav,
body[data-lab-view] .nt-chrome-dock,
body[data-lab-view] .nt-chrome-footer {
  display: none !important;
}
body[data-lab-view] #nsr-panel {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
body[data-lab-view] #nsr-panel .nsr-foot {
  font-size: 1rem;
}
body[data-lab-view] {
  --bg: #f0f4f5;
  --line: #cbd6d8;
  --surface-2: #f3f6f6;
  --shadow: 0 2px 8px rgb(25 51 58 / 5%);
}

/* ── forced colors (Windows High Contrast): state must not depend on a background colour ───── */
@media (forced-colors: active) {
  .band-btn[aria-pressed="true"],
  .lang-btn[aria-pressed="true"],
  .cat-chip[aria-pressed="true"],
  .cat-chip.is-active,
  .chip.is-on {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
  .choice.is-on,
  .lf-arc-step.is-current .lf-arc-btn {
    outline: 3px solid Highlight;
    outline-offset: 1px;
  }
  .choice.is-right::after,
  .choice.is-answer::after,
  .choice.is-wrong::after {
    forced-color-adjust: none;
    background: CanvasText;
  }
  .bar,
  .lf-arc-bar {
    border: 1px solid CanvasText;
  }
  .bar > i,
  .lf-arc-bar i {
    forced-color-adjust: none;
    background: Highlight;
  }
  .feedback {
    border: 2px solid CanvasText;
    border-left-width: 6px;
  }
  .shield.is-earned {
    forced-color-adjust: none;
    color: Highlight;
  }
}

/* ── reset and utilities ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0 0 0.5rem;
}
h1:focus {
  outline: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.skip-link:focus {
  top: 0.75rem;
}

/* progress ring (ringHTML) */
.ring-bg {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 6;
}
.ring-fg {
  fill: none;
  stroke: var(--room);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s;
}
.ring-text {
  font: 700 0.78rem var(--font);
  fill: var(--ink);
}

/* ── print ───────────────────────────────────────────────────────────────
   Worksheets and passages print as black on white: no navigation chrome, no sidebars, no controls.
   Passages set in the serif, everything else in the sans, links show their destination. */
@media print {
  :root {
    --bg: #fff;
    --bg-canvas: #fff;
    --bg-surface: #fff;
    --bg-subtle: #f3f3f3;
    --surface: #fff;
    --surface-2: #f3f3f3;
    --ink: #000;
    --text-primary: #000;
    --text-secondary: #222;
    --text-tertiary: #444;
    --line: #999;
    --border-subtle: #999;
    --shadow: none;
    --shadow-card: none;
    --shadow-elevated: none;
  }
  .no-print,
  .lab-top,
  .lab-footer,
  .lab-utilities,
  .crumbs,
  .act-nav,
  .section-bar,
  .sidebar,
  [role="navigation"]:not(.print-keep),
  .listen-player,
  .recorder,
  .speed,
  .btn,
  .ghost,
  .btn-check,
  .row-actions,
  .toast,
  .skip-link,
  #nsr-root {
    display: none !important;
  }
  html {
    font-size: 100%;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  .lab-main {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .activity,
  .panel,
  .card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }
  .passage,
  blockquote {
    font-family: var(--font-serif);
    font-size: 12pt;
    line-height: 1.6;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
    color: #000;
  }
  table,
  figure,
  .passage {
    break-inside: avoid;
  }
  details > summary {
    display: none;
  }
  details > * {
    display: block !important;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .ws-line {
    border-bottom-color: #555;
  }
}

/* ── language modes: English · Español · both ───────────────────────────── */
.lang-switch {
  display: inline-flex;
  flex: none;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.lang-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font: 600 0.875rem var(--font);
  cursor: pointer;
}
.lang-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.lang-btn[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--edge-light-dark);
}
.lang-switch-large .lang-btn {
  min-block-size: var(--target-min);
  padding: 0.3rem 0.9rem;
  font-size: 0.9375rem;
}
.lab-tools .lang-switch {
  margin-inline: 0.2rem;
}
.lang-banner[hidden] {
  display: none;
}
html.lab-lang-pending .lang-banner[hidden] {
  display: flex;
}
/* Phones: the header's EN / ES switch is already on screen, so the first-visit banner stays away (shell.js). */
@media (max-width: 559px) {
  html.lab-lang-pending .lang-banner[hidden] {
    display: none;
  }
}
.lang-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.2rem clamp(1rem, 2.4vw, 2rem);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}
.lang-banner-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
}
.lang-banner-skip {
  min-block-size: var(--target-min);
  padding: 0.25rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font: 700 0.875rem var(--font);
  text-decoration: underline;
  cursor: pointer;
}

/* Bilingual mode: the Spanish sits under the English, smaller, never replacing it. */
body {
  --bi-es-color: var(--ink-2);
}
button,
a,
summary,
.btn-primary,
.lab-footer,
label:has(input:checked),
[aria-pressed="true"],
.done-badge,
.top-link[aria-current="page"],
.fam-subnav a[aria-current="page"] {
  --bi-es-color: currentColor;
}
.bi-es {
  display: block;
  margin-top: 0.15em;
  color: var(--bi-es-color);
  font-size: 0.88em;
  font-weight: 500;
  font-style: normal;
  line-height: 1.35;
}
.top-link .bi-es,
.menu-group .bi-es,
.footer-links .bi-es {
  font-size: 0.75rem;
  line-height: 1.1;
  margin-top: 0;
}
.btn .bi-es,
.band-btn .bi-es,
.ghost .bi-es {
  --bi-es-color: currentColor;
  font-size: 0.8em;
}
.lang-banner,
.fam-hero {
  --bi-es-color: var(--ink-2);
}
.bi-pair {
  display: inline-block;
  text-align: inherit;
}
small > .bi-pair,
small > span[lang="es"] {
  color: var(--ink-2);
}
.btn .bi-pair,
.band-btn .bi-pair {
  text-align: center;
}
@media (max-width: 420px) {
  .lab-top {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .lab-brand {
    flex: 1 1 10rem;
  }
  .lab-wordmark strong {
    white-space: normal;
  }
  .lab-wordmark small {
    display: none;
  }
  .lab-tools .lang-switch {
    margin-inline: 0;
  }
  .top-family,
  .top-teachers,
  .top-guide,
  .top-book {
    padding-inline: 0.55rem;
    font-size: 0.875rem;
  }
  .top-family .ico,
  .top-teachers .ico,
  .top-guide .ico,
  .top-book .ico {
    display: none;
  }
  .lab-tools .lang-btn {
    min-width: 2.1rem;
    padding-inline: 0.3rem;
  }
}

/* WebKit counted a <select>'s unclipped option text as page width, which widened /launch and /classroom past
   a 375px screen. Let fields shrink and clip the text with an ellipsis. */
.field {
  min-width: 0;
}
select {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Interactive Explanations, Strategy Steps & Model Borrow ───────────── */
.strategy-steps,
.model-borrow {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: var(--s-2);
}
.learn-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.cat-chip.is-active {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.cat-chip.is-word {
  background: var(--surface-2);
  border-style: dashed;
}
.rr-notice-bar {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.grow-hub-links {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* WIDA Access Prep Hub publisher styling */
.prep-act-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.prep-act-item:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}
.prep-act-main {
  flex: 1;
  min-width: 0;
}
.prep-act-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.prep-tier-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.prep-tier-tag.tag-tier-a {
  background: var(--brand-soft);
  color: var(--brand-primary);
}
.prep-tier-tag.tag-tier-bc {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
}
.prep-type-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.prep-time-tag {
  font-size: 0.75rem;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.prep-act-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.prep-act-title a {
  color: inherit;
  text-decoration: none;
}
.prep-act-title a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}
.prep-act-skill {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.3;
}
.prep-play-btn {
  white-space: nowrap;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
}
/* Phones: the whole card is the link (its title already says where it goes), so the second "Start" button and
   the tall two-column layout go; tags sit on one line. Each card is about half as tall. */
@media (max-width: 599px) {
  .prep-act-item {
    position: relative;
    padding: 0.7rem 0.9rem;
  }
  .prep-act-action {
    display: none;
  }
  .prep-act-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .prep-act-item:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
  .prep-act-title a:focus-visible {
    outline: none;
  }
  .prep-act-meta-row {
    gap: 0.35rem;
    margin-bottom: 0.2rem;
  }
}

/* ── folds: secondary page sections closed behind their own heading (src/fold.js) ── */
.fold-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
}
.fold-toggle::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-inline-end: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-2, 0.15s) ease;
}
.fold-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.fold-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
[data-fold].is-folded {
  padding-block: var(--s-3);
}
[data-fold].is-folded :is(h2, h3) {
  margin-block: 0;
}
@media (prefers-reduced-motion: reduce) {
  .fold-toggle::after {
    transition: none;
  }
}
/* A folded section still prints: the page's printed report or letter is the whole thing. */
@media print {
  .fold-body[hidden] {
    display: block !important;
  }
  .fold-toggle::after {
    display: none;
  }
}
.sp-task-packs {
  max-width: 68rem;
  margin-inline: auto;
}
.sp-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.sp-pack-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}
.sp-pack-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line, #b8c6bf);
  border-radius: 0.75rem;
}
.sp-pack-list small {
  display: block;
  color: var(--muted, #445);
}
.sp-pack-form fieldset {
  margin-block: 1rem;
}
@media print {
  .sp-task-packs > :not(.sp-pack-form),
  .sp-pack-form button,
  .sp-pack-form input,
  .sp-pack-form select {
    display: none !important;
  }
}
.lp-pack-words {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.lp-pack-words > .panel {
  margin: 0;
}
.lp-pack-words img,
.lp-pack-six img,
.lp-pack-wall img,
.lp-pack-bingo img {
  display: block;
  width: 4rem;
  height: 3rem;
  object-fit: contain;
}
.lp-pack-match {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.lp-pack-match-card {
  min-height: 5rem;
  border: 2px solid var(--border, #49655a);
  border-radius: 0.75rem;
  background: var(--surface, #fff);
  color: var(--ink, #17211d);
}
.lp-pack-match-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.lp-pack-match-card.is-open {
  background: #edf3e8;
}
.lp-pack-print {
  color: #111;
  background: white;
}
.lp-pack-six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(8rem, 1fr));
  gap: 0.25in;
  padding: 0;
  list-style: none;
  break-after: page;
}
.lp-pack-six li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  padding: 0.1in;
  text-align: center;
}
.lp-pack-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15in;
}
.lp-pack-labels p {
  border: 1px solid #555;
  padding: 0.2in;
}
.lp-pack-wall section {
  break-inside: avoid;
}
.lp-pack-wall ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25in;
  padding: 0;
  list-style: none;
}
.lp-pack-wall li {
  border: 1px solid #555;
  padding: 0.1in;
}
.lp-pack-bingo {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #222;
  border-left: 1px solid #222;
}
.lp-pack-bingo > div {
  min-height: 1.3in;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 0.04in;
  text-align: center;
  font-size: 0.82rem;
}
@media (max-width: 40rem) {
  .lp-pack-match {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.lp-extended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.lp-extended-grid .panel {
  min-width: 0;
}
.lp-extended-grid label {
  display: block;
  margin-block: 0.6rem;
}
.lp-extended-print {
  border: 1px solid #9baab5;
  background: #fff;
  padding: 1rem;
}
.lp-extended-print section {
  break-inside: avoid;
  padding-block: 0.5rem;
}
.lp-extended-print p {
  min-height: 1.4em;
}
.frame-strip {
  border: 1px solid #365c65;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.8rem;
  font-weight: 700;
}
@media print {
  .lp-extended-grid {
    display: block;
  }
  .lp-extended-grid > .panel {
    break-inside: avoid;
  }
}
.pg-root {
  max-width: 72rem;
  margin-inline: auto;
}
.pg-nav,
.pg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 1rem;
}
.pg-nav .is-active {
  outline: 3px solid var(--focus);
}
.pg-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.pg-list > .panel {
  margin: 0;
}
.pg-form {
  display: grid;
  gap: 0.75rem;
  max-width: 56rem;
}
.pg-form fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.5rem;
}
.pg-form legend {
  grid-column: 1 / -1;
}
.pg-filters label {
  margin: 0;
}
.pg-root input,
.pg-root select,
.pg-root textarea {
  min-height: 2.75rem;
  max-width: 100%;
}
.pg-root textarea {
  width: min(100%, 40rem);
  min-height: 6rem;
}

/* ── activity kit ──────────────────────────────────────────────────────────
   Shared chrome for every practice surface (src/activity-kit.js, DESIGN-SYSTEM.md "Activity kit").
   One job per zone, each told apart by shape and a text label as well as colour:
     instructions  soft room tint, thick start bar        context   quiet grey, thin bar, smaller text
     stimulus      white paper, full outline              task      bold prompt, no box
     response      white, thick outline in the room colour   hint   amber tint, dashed outline
     feedback      status-coloured bar + icon + words */
.ak-zone {
  margin-block: var(--s-4);
}
.ak-zone-label {
  margin: 0 0 var(--s-2);
  font: 700 var(--fs-small) / var(--lh-tight) var(--font);
  color: var(--ink-2);
}
.ak-zone-instructions {
  padding: var(--s-3) var(--s-4);
  border-inline-start: var(--zone-bar) solid var(--room);
  border-radius: var(--radius-sm);
  background: var(--room-soft);
}
.ak-zone-context {
  padding: var(--s-3) var(--s-4);
  border-inline-start: 2px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--zone-context);
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.ak-zone-stimulus {
  padding: var(--s-4);
  border: 1.5px solid var(--line-control);
  border-radius: var(--radius);
  background: var(--zone-stimulus);
  box-shadow: var(--edge-light);
}
.ak-zone-stimulus > :not(.ak-zone-label) {
  max-width: var(--measure-reading);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.ak-zone-task > :not(.ak-zone-label) {
  margin: 0;
  max-width: var(--measure-reading);
  font-size: var(--fs-prompt);
  font-weight: 700;
  line-height: 1.4;
}
.ak-zone-response {
  padding: var(--s-4);
  border: 2.5px solid var(--room);
  border-radius: var(--radius);
  background: var(--zone-response);
}
.ak-zone-hint {
  padding: var(--s-3) var(--s-4);
  border: 2px dashed var(--hint);
  border-radius: var(--radius-sm);
  background: var(--hint-soft);
  color: var(--ink);
}
.ak-zone-feedback {
  margin-block: var(--s-4);
}

/* directions card */
.ak-directions {
  margin-block: var(--s-4);
  padding: var(--s-4);
  border: 1px solid color-mix(in srgb, var(--room) 30%, transparent);
  border-inline-start: var(--zone-bar) solid var(--room);
  border-radius: var(--radius);
  background: var(--room-soft);
  box-shadow: var(--edge-light);
}
.ak-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  margin-bottom: var(--s-2);
}
.ak-dir-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font: 700 var(--fs-body) / var(--lh-tight) var(--font);
  letter-spacing: 0;
  color: var(--room-ink);
}
.ak-hear {
  min-height: var(--target-min);
}
.ak-dir-grid {
  display: grid;
  gap: var(--s-2);
  margin: 0;
}
.ak-dir-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: var(--s-1) var(--s-3);
  align-items: baseline;
}
.ak-dir-row dt {
  font: 700 var(--fs-small) / 1.4 var(--font);
  color: var(--room-ink);
}
.ak-dir-row dd {
  margin: 0;
  max-width: var(--measure-reading);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
}
.ak-dir-do dd {
  font-size: var(--fs-prompt);
  font-weight: 700;
}
.ak-dir-steps {
  margin: 0;
  padding-inline-start: 1.25rem;
}
.ak-dir-steps li + li {
  margin-top: 0.2rem;
}
.ak-directions.is-early .ak-dir-row dd {
  font-size: var(--fs-prompt);
}
.ak-example {
  margin-top: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.ak-example-body {
  padding: var(--s-2) var(--s-4) var(--s-3);
  max-width: var(--measure-reading);
  line-height: 1.5;
}
@media (max-width: 560px) {
  .ak-dir-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* feedback panel: verdict, why, evidence, next step */
.ak-feedback {
  margin-block: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid transparent;
  border-inline-start: var(--zone-bar) solid;
  border-radius: 14px;
  box-shadow: var(--edge-light);
}
.ak-fb-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-1);
  font: 700 1.15rem / var(--lh-tight) var(--font);
}
.ak-feedback p {
  margin: var(--s-1) 0;
  max-width: var(--measure-reading);
  line-height: 1.5;
}
.ak-fb-why {
  font-size: var(--fs-body);
  color: var(--ink);
}
.ak-fb-evidence,
.ak-fb-next {
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.ak-fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.ak-feedback.is-right {
  border-color: color-mix(in srgb, var(--right) 35%, transparent);
  border-inline-start-color: var(--right);
  background: var(--right-soft);
}
.ak-feedback.is-right .ak-fb-title {
  color: var(--right);
}
.ak-feedback.is-partly {
  border-color: color-mix(in srgb, var(--hint) 35%, transparent);
  border-inline-start-color: var(--hint);
  background: var(--hint-soft);
}
.ak-feedback.is-partly .ak-fb-title {
  color: var(--hint);
}
.ak-feedback.is-notyet {
  border-color: color-mix(in srgb, var(--wrong) 30%, transparent);
  border-inline-start-color: var(--wrong);
  background: var(--wrong-soft);
}
.ak-feedback.is-notyet .ak-fb-title {
  color: var(--wrong);
}
.ak-feedback.is-shown {
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  border-inline-start-color: var(--brand);
  background: var(--brand-soft);
}
.ak-feedback.is-shown .ak-fb-title {
  color: var(--brand-deep);
}

/* hint ladder */
.ak-hints {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
  margin-block: var(--s-3);
}
.ak-hint-list {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ak-hint-list:not(:has(.ak-hint:not([hidden]))) {
  display: none;
}
.ak-hint {
  padding: var(--s-2) var(--s-3);
  border: 2px dashed var(--hint);
  border-radius: var(--radius-sm);
  background: var(--hint-soft);
  max-width: var(--measure-reading);
  line-height: 1.5;
}
.ak-hint:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.ak-hint-tier {
  font-weight: 700;
  color: var(--hint);
}
.ak-hint-btn {
  min-height: var(--target-min);
}

/* progress: where in the set, never a score or a clock */
.ak-progress {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font: 700 var(--fs-small) / 1.2 var(--font);
  color: var(--ink-2);
}
.ak-progress-bar {
  flex: 1 1 6rem;
  max-width: 14rem;
  height: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-interactive-hover);
  overflow: hidden;
}
.ak-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--room);
  transition: width var(--dur-3) var(--ease-out);
}

/* interaction states: data-act-state on the activity container, data-ak-in on what belongs to which states.
   start → active → response → feedback → retry | next → complete */
[data-act-state="start"] [data-ak-in]:not([data-ak-in~="start"]),
[data-act-state="active"] [data-ak-in]:not([data-ak-in~="active"]),
[data-act-state="response"] [data-ak-in]:not([data-ak-in~="response"]),
[data-act-state="feedback"] [data-ak-in]:not([data-ak-in~="feedback"]),
[data-act-state="retry"] [data-ak-in]:not([data-ak-in~="retry"]),
[data-act-state="next"] [data-ak-in]:not([data-ak-in~="next"]),
[data-act-state="complete"] [data-ak-in]:not([data-ak-in~="complete"]) {
  display: none;
}
[data-act-state="complete"] .ak-zone-response,
[data-act-state="complete"] .ak-hints {
  border-style: solid;
  border-color: var(--line);
}

@media (forced-colors: active) {
  .ak-zone,
  .ak-directions,
  .ak-feedback,
  .ak-hint {
    border: 2px solid CanvasText;
    forced-color-adjust: auto;
  }
  .ak-progress-bar > i {
    forced-color-adjust: none;
    background: Highlight;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ak-progress-bar > i {
    transition: none;
  }
}

/* ── Editorial Learning Studio shared primitives ───────────────────────────
   Canonical cross-platform primitives shared by ACCESS Practice Lab,
   Teacher Hub, and BCPSS Teacher Studio (see DESIGN-SYSTEM.md). */

/* Native modal dialog scroll-containment */
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Fluid text controls: min-block-size instead of fixed height */
:is(
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="url"],
  select
).lp-control,
.lp-control {
  min-block-size: var(--target-min);
  max-inline-size: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 400 var(--fs-body) / 1.4 var(--font);
}

/* Accessible single-row scrollable tabs (3px underline indicator, never color alone) */
.lp-tabs,
[role="tablist"].lp-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
  -webkit-overflow-scrolling: touch;
}
.lp-tabs::-webkit-scrollbar {
  display: none;
}
.lp-tabs [role="tab"] {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-block-size: var(--target-min);
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--text-secondary);
  font: 600 var(--fs-small) / 1.2 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--dur-1) ease,
    background-color var(--dur-1) ease;
}
.lp-tabs [role="tab"]:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.lp-tabs [role="tab"][aria-selected="true"] {
  color: var(--brand-primary);
  font-weight: 700;
}
.lp-tabs [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.5rem;
  inset-block-end: 0;
  block-size: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand-primary);
}
.lp-tabs [role="tab"]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

/* Progressive disclosure panel (<details class="lp-disclosure">) */
.lp-disclosure {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.lp-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-block-size: var(--target-min);
  padding: 0.75rem 1.15rem;
  color: var(--text-primary);
  font: 700 var(--fs-body) / 1.35 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.lp-disclosure > summary::-webkit-details-marker {
  display: none;
}
.lp-disclosure > summary::after {
  content: "";
  flex: none;
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border-inline-end: 2px solid var(--text-secondary);
  border-block-end: 2px solid var(--text-secondary);
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--dur-2) var(--ease-out);
}
.lp-disclosure[open] > summary {
  border-bottom: 1px solid var(--border-subtle);
}
.lp-disclosure[open] > summary::after {
  transform: rotate(225deg) translateY(-1px);
}
.lp-disclosure > summary:hover {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}
.lp-disclosure[open] > summary:hover {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.lp-disclosure-body {
  padding: var(--s-4) 1.15rem;
}

/* Empty state */
.lp-empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  text-align: center;
  color: var(--text-secondary);
}
.lp-empty-state h2,
.lp-empty-state h3 {
  margin: 0;
  color: var(--text-primary);
}
.lp-empty-state p {
  margin: 0;
  max-inline-size: 46ch;
}

/* Loading skeleton */
.lp-skeleton {
  display: block;
  min-block-size: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--bg-subtle) 25%,
    var(--bg-interactive-hover) 50%,
    var(--bg-subtle) 75%
  );
  background-size: 200% 100%;
  animation: lp-skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes lp-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Feedback panel */
.lp-feedback-panel {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-strong);
  border-inline-start: var(--zone-bar) solid var(--brand-primary);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.lp-feedback-panel.is-right {
  border-color: var(--status-success-border);
  border-inline-start-color: var(--status-success-text);
  background: var(--status-success-bg);
}
.lp-feedback-panel.is-partly {
  border-color: var(--status-warning-border);
  border-inline-start-color: var(--status-warning-text);
  background: var(--status-warning-bg);
}
.lp-feedback-panel.is-notyet {
  border-color: var(--status-error-border);
  border-inline-start-color: var(--status-error-text);
  background: var(--status-error-bg);
}
.lp-feedback-panel.is-shown {
  border-color: var(--border-strong);
  border-inline-start-color: var(--brand-primary);
  background: var(--brand-soft);
}

/* Step progress bar */
.lp-step-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-step-bar > li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-tertiary);
  font: 600 var(--fs-small) / 1.25 var(--font);
  font-variant-numeric: tabular-nums;
}
.lp-step-bar > li .lp-step-num {
  display: inline-grid;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
}
.lp-step-bar > li.is-current {
  color: var(--brand-primary);
  font-weight: 700;
}
.lp-step-bar > li.is-current .lp-step-num {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--on-brand);
}
.lp-step-bar > li.is-done {
  color: var(--status-success-text);
}
.lp-step-bar > li.is-done .lp-step-num {
  border-color: var(--status-success-text);
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

@media (forced-colors: active) {
  .lp-tabs [role="tab"][aria-selected="true"]::after {
    background: Highlight;
  }
  .lp-disclosure,
  .lp-empty-state,
  .lp-feedback-panel {
    border: 2px solid CanvasText;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-tabs [role="tab"],
  .lp-disclosure > summary::after {
    transition: none;
  }
  .lp-skeleton {
    animation: none;
    background: var(--bg-subtle);
  }
}

/* /access-practice-lab/home-start.css */
/* Lab home start screen (src/views/home-start.js): the student part under the audience doors; ONE primary action (Continue or today's
   mission, with 5 / 15-minute chips) and the grade ruler; "More ways to practice" holds the rest (home.js). Tokens only (ds.css). The ruler is the one distinctive element: each grade group
   is as wide as the grades it covers, on a K-8 scale. */

.lph {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "intro student"
    "grade student"
    "shortcuts shortcuts";
  grid-template-rows: auto 1fr auto;
  gap: var(--s-5) clamp(1.25rem, 3.5vw, 3rem);
  align-items: start;
  margin-top: var(--s-2);
  padding: clamp(1.1rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lph-intro {
  grid-area: intro;
}
.lph-student {
  grid-area: student;
}
.lph-grade {
  grid-area: grade;
}
.lph-grade > .lph-setting {
  margin-top: 0;
}
.lph-shortcuts {
  grid-area: shortcuts;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.lph-shortcut {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}
.lph-shortcut:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.lph-shortcut:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.lph-shortcut .ico {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand-ink);
}
.lph .lph-title {
  margin: 0 0 var(--s-3);
  max-width: 20ch;
  font: 600 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem) / 1.08 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.lph-lead {
  max-width: 46ch;
  margin: 0 0 var(--s-5);
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.5;
}
.lph-setting {
  margin-top: var(--s-4);
}
.lph-label {
  margin: 0 0 var(--s-2);
  color: var(--ink-2);
  font: 700 0.9375rem/1.3 var(--font);
}

/* ── grade ruler ─────────────────────────────────────────────────────────── */
.lph-ruler {
  position: relative;
  display: flex;
  max-width: 34rem;
  padding-top: 0.6rem;
}
.lph-ruler::before {
  /* the K-8 scale: nine grades, one tick each */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.45rem;
  border-top: 2px solid var(--line-strong);
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px calc(100% / 9));
}
.lph-step {
  flex: var(--span) 1 0;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  min-height: 3.5rem;
  margin-inline-start: -1.5px;
  padding: 0.3rem 0.25rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 700 1.125rem/1.1 var(--font);
  cursor: pointer;
}
.lph-step:first-child {
  margin-inline-start: 0;
  border-start-start-radius: var(--radius-sm);
  border-end-start-radius: var(--radius-sm);
}
.lph-step:last-child {
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
}
.lph-step:hover {
  background: var(--surface-2);
}
.lph-step.is-soon {
  border-style: dashed;
  color: var(--ink-3);
}
.lph-step-soon {
  font-size: 0.8125rem;
  font-weight: 400;
  white-space: nowrap;
}
.lph-step[aria-pressed="true"] {
  position: relative;
  z-index: 1;
  border-style: solid;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.lph-step:focus-visible {
  position: relative;
  z-index: 2;
}
.lph-note {
  min-height: 1.4em;
  max-width: 46ch;
  margin: var(--s-2) 0 0;
}

/* ── Continue and the four skills ────────────────────────────────────────── */
.lph-student {
  display: grid;
  gap: var(--s-4);
}
.lph-continue {
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.lph-continue h2 {
  margin: 0 0 var(--s-2);
  font: 600 clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem) / 1.15 var(--font-display);
}
.lph-why {
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
}
.lph-go {
  width: 100%;
  justify-content: center;
}
.lph-time {
  margin: var(--s-2) 0 0;
}
.lph-chip:focus-visible,
.lph-dashboard > summary:focus-visible,
.lph-more-ways > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.lph-dashboard,
.lph-more-ways {
  margin-block: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lph-dashboard > summary,
.lph-more-ways > summary {
  display: grid;
  gap: 0.2rem;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
}
.lph-dashboard > summary > span:first-child,
.lph-more-ways > summary > span:first-child {
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.lph-dashboard > summary strong,
.lph-more-ways > summary strong {
  font: 600 1.25rem/1.25 var(--font-display);
}
.lph-dashboard[open] > summary,
.lph-more-ways[open] > summary {
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.lph-dashboard-content {
  display: grid;
  gap: var(--s-5);
  padding: 0 var(--s-4) var(--s-5);
}
.lph-dashboard-content > section,
.lph-dashboard-content > aside {
  margin-block: 0;
}
.lph-recommended-next {
  margin-block: var(--s-4);
}
.lph-recommended-next .next-step {
  width: min(100%, 66rem);
  margin-inline: auto;
}
@media (max-width: 599px) {
  .lph-dashboard > summary,
  .lph-more-ways > summary {
    padding-inline: 0.9rem;
  }
  .lph-dashboard-content {
    padding-inline: 0.75rem;
  }
}
.lph-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lph-skill {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.75rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--room);
  color: var(--on-brand);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.lph-skill:hover {
  color: var(--on-brand);
  filter: brightness(1.12);
}
.lph-skill .ico {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}
.lph-skill:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ── the 5 / 10 / 15-minute mission chips ─────────────────────────────────── */
.lph-actions {
  display: grid;
  gap: var(--s-3);
}
.lph-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.lph-chips-label {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.lph-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 3rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-ink);
  font: 700 1rem var(--font);
  cursor: pointer;
}
.lph-chip:hover {
  background: var(--brand-soft);
}

/* ── explore: featured cards, then the rest behind one disclosure ───────── */
.lph-more {
  margin-top: var(--s-3);
}
.lph-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 700;
  cursor: pointer;
}
.lph-more[open] > summary {
  margin-bottom: var(--s-3);
}
.lph-explore > p:last-child {
  margin-top: var(--s-4);
}

@media (max-width: 899px) {
  .lph {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "student"
      "grade"
      "shortcuts";
    grid-template-rows: none;
  }
  .lph-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  /* Phones: the one primary action belongs in the first screen. The lead's promises ("no timer", "saves on this
     device") are repeated on the front door itself, so the lead steps aside here. */
  .lph {
    gap: var(--s-4);
  }
  .lph-lead {
    display: none;
  }
  .lph .lph-title {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
}
@media (max-width: 599px) {
  /* Narrow screens: every grade group keeps a 48px target, so the segments stop being to scale; drop the scale. */
  .lph-ruler {
    padding-top: 0;
  }
  .lph-ruler::before {
    display: none;
  }
  .lph-step {
    flex-basis: 3rem;
    min-width: 3rem;
    font-size: 1rem;
  }
  .lph-step-soon {
    font-size: 0.75rem;
  }
}
@media (max-width: 479px) {
  .lph-skill {
    padding-inline: 0.75rem;
    font-size: 1rem;
  }
}

/* The front door receives focus on load (data-focus-first) so keyboard users meet it first; no ring for that. */
.lph-front:focus:not(:focus-visible) {
  outline: none;
}

/* ── calm first screen (2026-11-17) ───────────────────────────────────────
   The welcome video sat in the left column under the title and pushed the grade ruler a full screen down while
   the right column held one card. On wide screens the video joins Today's mission in the right column, and the
   ruler keeps one line of help (the long counts and notes stay on the explore pages). */
@media (min-width: 900px) {
  .lph {
    grid-template-areas:
      "title student"
      "lead student"
      "grade video"
      "shortcuts shortcuts";
    grid-template-rows: auto 1fr auto auto;
  }
  .lph-intro {
    display: contents;
  }
  .lph-intro > .lph-label {
    display: none;
  }
  .lph-intro > .lph-title {
    grid-area: title;
  }
  .lph-intro > .lph-lead {
    grid-area: lead;
  }
  .lph-intro > studio-video,
  .lph-intro > .studio-video {
    grid-area: video;
    align-self: start;
  }
}
.lph .grade-focus-counts,
.lph .grade-focus-note {
  display: none;
}

/* ── grade choice (2026-11-17) ──────────────────────────────────────────────
   The home with no ?grades= used to show a "Choose your grade" card with nothing to press, and the ruler a column
   away. The card now holds the choice itself: one large named button per grade group. */
.lph-grade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.lph-grade-card {
  display: grid;
  justify-items: start;
  gap: 0.15rem;
  min-height: 4.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.lph-grade-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.lph-grade-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.lph-grade-card.is-soon {
  border-style: dashed;
  color: var(--ink-3);
}
.lph-grade-card-n {
  font: 700 1.5rem/1 var(--font-display);
  color: var(--brand-ink);
}
.lph-grade-card-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ── audience doors (src/views/home-audience.js) ─────────────────────────────
   The first thing on the home: the page title, at most one row of "pick up where you left off" shortcuts, three
   large doors (Teacher, Student, Family) and a compact search door. Each door has its own material colour so the
   three read as distinct places; the student practice stage (.lph) follows below. */
.lpa {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-2) 0 var(--s-6);
}
.lpa-head h1 {
  margin: 0;
  max-width: 24ch;
  font: 600 clamp(1.9rem, 1.3rem + 2.2vw, 3rem) / 1.06 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lpa-lead {
  margin: var(--s-2) 0 0;
  color: var(--ink-2);
  font-size: 1.125rem;
}
.lpa-continue {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s-2);
  overflow-x: auto;
  padding-block: 0.2rem;
  scrollbar-width: thin;
}
.lpa-continue-label {
  flex: none;
  color: var(--ink-2);
  font-weight: 700;
}
.lpa-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.lpa-chip:hover {
  background: var(--surface);
}
.lpa-chip .ico {
  width: 1.15rem;
  height: 1.15rem;
}
.lpa-doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1119px) and (min-width: 860px) {
  .lpa-doors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lpa-doors > li {
  display: flex;
}
.lpa-door {
  --door: var(--ink);
  --door-soft: var(--ocean-200);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.lpa-door.is-student {
  --door: var(--ink);
  --door-soft: var(--copper-200);
}
.lpa-door.is-family {
  --door: var(--ink);
  --door-soft: var(--rose-200);
}
.lpa-door.is-bcpss {
  --door: var(--ink);
  --door-soft: var(--sage-200);
}
.lpa-door:hover {
  box-shadow: var(--shadow-card);
}
.lpa-door:focus-visible,
.lpa-search:focus-visible,
.lpa-chip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.lpa-door-art {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
  background: var(--door-soft);
}
.lpa-door-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}
.lpa-door-go .ico {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 180ms var(--ease-out);
}
.lpa-search:hover {
  box-shadow: var(--shadow-card);
}
@media (prefers-reduced-motion: reduce) {
  .lpa-doors > li .lpa-door { animation: none; }
  .lpa-door:hover .lpa-door-art img,
  .lpa-door:hover .lpa-door-go .ico { transform: none; }
}
.lpa-door-text {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: var(--s-4) 3.75rem var(--s-5) var(--s-5);
}
.lpa-door-text strong {
  font: 700 clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem) / 1.15 var(--font-display);
  color: var(--ink);
}
.lpa-door-text > span {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.45;
}
.lpa-door-go {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 140ms ease, color 140ms ease;
}
.lpa-door:hover .lpa-door-go {
  background: var(--ink);
  color: var(--surface);
}
.lpa-door-go .ico {
  width: 1.2rem;
  height: 1.2rem;
}
.lpa-search {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.lpa-search:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.lpa-search > span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}
.lpa-search > span > span {
  color: var(--brand-deep);
  font-weight: 700;
}
.lpa-search .ico {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand-ink);
}
@media (max-width: 859px) {
  .lpa-doors {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
  }
  .lpa-door {
    grid-template-rows: none;
    grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
    border-top-width: 1.5px;
    border-left: 1px solid var(--border-strong);
  }
  .lpa-door-art {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .lpa-door-text {
    align-content: center;
    padding: var(--s-3) 3.25rem var(--s-3) var(--s-4);
  }
  .lpa-door-go {
    top: 50%;
    bottom: auto;
    right: var(--s-3);
    width: 2.25rem;
    height: 2.25rem;
    transform: translateY(-50%);
  }
}
@media (max-width: 479px) {
  .lpa-continue-label {
    display: none;
  }
  .lpa-lead {
    font-size: 1rem;
  }
  .lpa-door-text strong {
    font-size: 1.2rem;
  }
  .lpa-door-text > span {
    font-size: 0.9375rem;
  }
  .lpa-search {
    justify-self: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lpa-door {
    transition: none;
  }
}
.lpa-search strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* /access-practice-lab/activity.css */
/* ACCESS Practice Lab — activity shell: context bar, one emphasised instruction, stimulus and response
   panels, practice mode, answer cards for every item type, feedback, audio player, recorder, navigation.
   Uses --room / --room-ink / --room-soft, set by the d-<domain> class on .activity. */

:root {
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}

/* ── shell ─────────────────────────────────────────────────────────────── */
.activity {
  display: grid;
  gap: var(--s-4);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.act-head {
  padding: var(--s-4) clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--room);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--room-soft), var(--surface)) 0;
  box-shadow: var(--edge-light), var(--shadow);
}
.act-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}
.act-context,
.act-step {
  margin: 0;
}
.act-context {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--room) 24%, transparent);
  border-radius: var(--radius-sm);
  background: var(--room-soft);
  color: var(--room-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}
.act-journey-label {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.act-return {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.act-step {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.9375rem;
}
.act-step .bar {
  width: 7rem;
}
.act-head h1 {
  margin: var(--s-3) 0 var(--s-3);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  letter-spacing: -0.02em;
}
.done-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  vertical-align: middle;
  padding: 0.15rem 0.7rem 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--right-soft);
  color: var(--right);
  font: 700 0.875rem var(--font);
  letter-spacing: 0;
}
.directions,
.prompt {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.act-head .directions {
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--room) 32%, transparent);
  border-inline-start: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--room-soft);
  box-shadow: var(--edge-light);
}
.directions-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--room-ink);
}
.act-head .directions p {
  flex: 1 1 18rem;
  max-width: 68ch;
  margin: 0;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.45;
}
.act-head .directions .ghost {
  flex: none;
  border: 1.5px solid color-mix(in srgb, var(--room) 45%, transparent);
  background: var(--surface);
  color: var(--room-ink);
}
.act-head .directions .ghost:hover {
  background: color-mix(in srgb, var(--room) 10%, var(--surface));
}

.activity-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: 0;
}
.activity-workspace > * {
  min-width: 0;
}
.activity-workspace .stimulus,
.activity-workspace .response-workspace {
  margin: 0;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.activity-workspace .stimulus {
  position: sticky;
  top: 5.25rem;
  scroll-margin-top: calc(var(--lab-top-h, 0px) + 1rem);
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* "Start" moves focus here; show the ring for keyboard users only. */
.activity-workspace .stimulus:focus:not(:focus-visible) {
  outline: none;
}
.activity-workspace .response-workspace {
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.workbook-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s-4);
  font: 700 1.1875rem/1.2 var(--font);
  letter-spacing: 0;
  color: var(--ink);
}
.workbook-heading > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--room);
  color: var(--on-brand);
  font-size: 0.975rem;
}
.prompt {
  flex-wrap: wrap;
  margin: var(--s-4) 0 var(--s-2);
}
.prompt-text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}
.response-prompt {
  padding-bottom: var(--s-4);
  margin: 0 0 var(--s-4);
  border-bottom: 1px solid var(--line);
}
.stimulus {
  margin-top: 0;
}
.passage {
  max-width: 68ch;
  margin: var(--s-3) 0;
  padding: 0.25rem 0 0.25rem var(--s-4);
  border-left: 1px solid var(--border-strong);
  border-radius: 0;
  background: none;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.75;
}
.passage h3 {
  margin: 0 0 var(--s-2);
  font: 600 1.4rem/1.25 var(--font-display);
}
.passage p {
  margin: 0 0 var(--s-3);
}
.answer-zone {
  margin-top: var(--s-4);
}

/* practice mode: a two-way switch, not a form */
.practice-mode {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  padding: 0;
  border: 0;
  background: none;
}
.practice-mode legend {
  float: left;
  width: 100%;
  margin: 0 0 var(--s-2);
  padding: 0;
  color: var(--ink-3);
  font-size: 0.9375rem;
}
.practice-mode label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.practice-mode label input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.practice-mode label:hover {
  border-color: var(--ink-3);
}
.practice-mode label:has(input:checked) {
  border-color: var(--room);
  background: var(--room);
  color: var(--on-brand);
}
.practice-mode label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.practice-mode .fine {
  flex-basis: 100%;
  margin: var(--s-1) 0 0;
}

/* supports: calm, tucked, never louder than the task */
details.strategy,
details.helpers,
.draft-history,
.writing-starters,
.stimulus details.helpers {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
details.strategy > summary,
details.helpers > summary,
.draft-history > summary,
.writing-starters > summary {
  color: var(--ink);
}
details.strategy > summary .ico,
details.helpers > summary .ico {
  color: var(--room-ink);
}
details.strategy[open] > summary,
details.helpers[open] > summary {
  border-bottom: 1px solid var(--line);
}
.helpers-body {
  padding: 0.25rem 1rem 1rem;
}
.helper-title {
  font-size: 1.1rem;
}
.save-explainer,
.practice-evidence {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.activity .save-explainer {
  margin: 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
}
.practice-evidence {
  margin: var(--s-3) 0 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.fresh-attempt {
  margin-block: var(--s-4) 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.fresh-attempt .fine {
  margin: var(--s-1) 0 0;
}
.warmup-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ── word help, vocabulary, frames ─────────────────────────────────────── */
.helpers h4 {
  margin: var(--s-3) 0 0.35rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.vocab {
  display: grid;
  gap: var(--s-2);
  margin: 0;
}
.vocab div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: var(--s-3);
}
.vocab dt {
  font-weight: 700;
}
.vocab dd {
  margin: 0;
}
.vocab .es {
  display: block;
  margin-top: 0.15rem;
  color: var(--room-ink);
}
.say-word,
.mini-say {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--room-ink);
  cursor: pointer;
}
.frames {
  padding-left: 1.2rem;
}
.frames.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--s-2) 0;
  padding: 0;
  list-style: none;
}
.frames.inline li {
  padding: 0.4rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.wordbank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.wordbank li {
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 700;
}
.wordbank li.is-used {
  border-color: var(--right);
  background: var(--right-soft);
  color: var(--right);
}
.writing-starters {
  margin-bottom: var(--s-3);
}
.writing-starters > .wordbank,
.writing-starters > .frames {
  margin: var(--s-3);
}

/* ── listening player ──────────────────────────────────────────────────── */
.listen-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: center;
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  border: 1px solid color-mix(in srgb, var(--room) 25%, transparent);
  border-radius: var(--r-lg);
  background: var(--room-soft);
}
.listen-player.is-unavailable {
  display: block;
}
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 4rem;
  padding: 0.5rem 1.6rem 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--room);
  color: var(--on-brand);
  font: 700 1.2rem var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.12s,
    background-color 0.15s;
}
.listen-btn:hover:not([disabled]) {
  background: var(--room-ink);
}
.listen-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.listen-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--room-ink);
}
.listen-icon .ico {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.1rem;
}
.listen-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-2);
  font-weight: 700;
}
.listen-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 2.2rem;
  flex: none;
}
.listen-bars i {
  width: 4px;
  height: calc(var(--h, 40) * 1%);
  border-radius: 2px;
  background: color-mix(in srgb, var(--room) 45%, var(--surface));
  transform-origin: center;
}
.listen-player.is-playing .listen-bars i {
  background: var(--room);
  animation: bars 0.9s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 40ms);
}
@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}
.listen-player [data-stop-audio] {
  justify-self: start;
}
.speed {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  justify-self: start;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.25rem;
  border: 1.5px solid color-mix(in srgb, var(--room) 40%, transparent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.speed-btn {
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--room-ink);
  font: 600 0.95rem var(--font);
  cursor: pointer;
}
.speed-btn[aria-pressed="true"] {
  background: var(--room);
  color: var(--on-brand);
}
.transcript-body {
  padding: var(--s-2) var(--s-4);
  color: var(--ink-2);
}
.reading-toolbar {
  margin: 0 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  background: var(--room-soft);
}
.reading-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}
.reading-toolbar .speed {
  margin-left: 0;
}
.reading-helper-note {
  margin: var(--s-2) 0 0;
}
.voice-picker-label {
  max-width: 100%;
}
.voice-select {
  width: auto;
  max-width: 100%;
  min-height: 2.75rem;
  padding-block: 0.3rem;
}
.cognate-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 700 0.95rem var(--font);
  cursor: pointer;
}
.cognate-toggle-btn.is-active {
  border-color: var(--room);
  background: var(--room);
  color: var(--on-brand);
}

/* ── pictures, charts, tables ──────────────────────────────────────────── */
.lab-pictures,
.lab-charts {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) 0;
}
.lab-pictures.is-multi,
.lab-charts.is-multi {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.lab-picture,
.lab-chart {
  max-width: 44rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.lab-picture img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
}
.lab-chart {
  padding: var(--s-3);
}
.lab-chart figcaption {
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.lab-chart-svg {
  width: 100%;
  height: auto;
  font-family: var(--font);
}
.lab-chart-svg .grid {
  stroke: var(--line);
}
.lab-chart-svg .axis {
  stroke: var(--ink);
  stroke-width: 2;
}
.lab-chart-svg .tick,
.lab-chart-svg .unit {
  font-size: 13px;
  fill: var(--ink-2);
}
.lab-chart-svg .val,
.lab-chart-svg .lbl {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
}
.pg-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s-2);
  align-items: center;
}
.pg-label {
  font-weight: 700;
}
.pg-icons {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}
.lab-table-wrap {
  overflow-x: auto;
  margin: var(--s-3) 0;
}
.lab-table {
  min-width: 18rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  font-size: 1.05rem;
}
.lab-table caption {
  padding: 0 0 0.4rem;
  text-align: left;
  font-weight: 700;
}
.lab-table th,
.lab-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.lab-table tr:last-child td {
  border-bottom: 0;
}
.lab-table thead th {
  background: var(--surface-2);
}

/* ── answer cards ──────────────────────────────────────────────────────── */
.choices {
  display: grid;
  gap: var(--s-3);
}
.choices.has-pictures {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.75rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 1.125rem;
  line-height: 1.45;
  cursor: pointer;
  box-shadow: var(--edge-light);
  transition:
    border-color var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.has-pictures .choice {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.choice:hover {
  border-color: var(--room);
  background: color-mix(in srgb, var(--room) 6%, var(--surface));
  box-shadow: var(--edge-light);
}
.choice.is-on {
  border-color: var(--room);
  background: var(--room-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--room) 20%, transparent);
}
.choice-letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--line-control);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.975rem;
}
.choice.is-on .choice-letter {
  border-color: var(--room);
  background: var(--room);
  color: var(--on-brand);
}
.opt-visual {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 1.7rem;
  line-height: 1;
}
.opt-picture {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.choice.is-right,
.order-row.is-right,
.sort-row.is-right,
.hot.is-right,
.cloze-blank.is-right select {
  border-color: var(--right);
  background: var(--right-soft);
  box-shadow: none;
}
.choice.is-wrong,
.order-row.is-wrong,
.sort-row.is-wrong,
.hot.is-wrong,
.cloze-blank.is-wrong select {
  border-color: var(--wrong);
  background: var(--wrong-soft);
  box-shadow: none;
}
.choice.is-answer {
  border-color: var(--right);
  border-style: dashed;
}
.choice.is-right::after,
.choice.is-answer::after,
.choice.is-wrong::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
  background: var(--right);
}
.choice.is-wrong::after {
  -webkit-mask-image: var(--i-x);
  mask-image: var(--i-x);
  background: var(--wrong);
}
.hint-line {
  margin: 0.4rem 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.sorter {
  display: grid;
  gap: var(--s-3);
}
.sort-row {
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.sort-text {
  margin: 0 0 var(--s-2);
  font-weight: 700;
  font-size: 1.1rem;
}
.sort-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.sort-fix,
.cloze-fix {
  margin: 0.4rem 0 0;
  color: var(--right);
  font-weight: 700;
}
.cloze-fix {
  margin-left: 0.4rem;
}
.orderer {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 1.1rem;
}
.order-n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--room-soft);
  color: var(--room-ink);
  font-weight: 700;
}
.order-moves {
  display: flex;
  gap: 0.3rem;
}
.move {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}
.move:hover:not([disabled]) {
  border-color: var(--room);
  background: var(--room-soft);
}
.move[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.cloze {
  font-size: 1.2rem;
  line-height: 2.6;
}
.cloze select {
  width: auto;
  min-height: 2.6rem;
  padding: 0.2rem 0.6rem;
  border: 2px solid var(--room);
  border-radius: var(--radius-md);
  background: var(--room-soft);
  color: var(--ink);
  font: 700 1.05rem var(--font);
}
.hottext {
  display: grid;
  gap: var(--s-2);
}
.hot {
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--font);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.hot:hover {
  border-color: var(--room);
}
.hot[aria-pressed="true"] {
  border-color: var(--room);
  background: var(--room-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--room) 16%, transparent);
}
.btn-check {
  width: 100%;
  min-height: 3.5rem;
  margin-top: var(--s-4);
  font-size: 1.125rem;
}
.btn-check.btn-primary {
  background: var(--room);
  border-color: var(--room);
  box-shadow: var(--shadow-card);
}
.btn-check.btn-primary:hover {
  background: var(--room-ink);
  border-color: var(--room-ink);
}

/* ── feedback ──────────────────────────────────────────────────────────── */
.feedback {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5);
  border: 1px solid transparent;
  border-left: 6px solid;
  border-radius: var(--radius-md);
  box-shadow: var(--edge-light);
}
.feedback p {
  margin: 0.3rem 0;
}
.fb-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}
.feedback.is-right {
  border-color: color-mix(in srgb, var(--right) 35%, transparent);
  border-left-color: var(--right);
  background: var(--right-soft);
}
.feedback.is-right .fb-title {
  color: var(--right);
}
.feedback.is-hint {
  border-color: color-mix(in srgb, var(--hint) 35%, transparent);
  border-left-color: var(--hint);
  background: var(--hint-soft);
}
.feedback.is-hint .fb-title {
  color: var(--hint);
}
.feedback.is-shown {
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  border-left-color: var(--brand);
  background: var(--brand-soft);
}
.feedback.is-shown .fb-title {
  color: var(--brand-deep);
}
.fb-extra {
  color: var(--ink-2);
}
.feedback .btn {
  margin-top: var(--s-2);
}
/* Compact result: verdict + one action on one row, one lead line, everything else folded. */
.fb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
}
.fb-head .fb-title {
  margin: 0;
}
.feedback .fb-head .btn {
  margin-top: 0;
}
.fb-lead {
  font-size: 1.0625rem;
  line-height: 1.5;
}
.fb-more {
  margin-top: var(--s-2);
}
.fb-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-2);
}
.fb-more > summary:hover {
  color: var(--ink);
}
.fb-more[open] > summary {
  margin-bottom: var(--s-1);
}
.fb-more .lf-fb {
  margin-bottom: 0;
}
.checks {
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}
.checks .ok {
  color: var(--right);
}
.saved-note {
  display: flex;
  gap: 0.4rem;
  color: var(--right);
  font-weight: 700;
}

/* ── speaking ──────────────────────────────────────────────────────────── */
.recorder {
  margin: var(--s-3) 0;
  padding: var(--s-4);
  border: 1px solid color-mix(in srgb, var(--room) 28%, transparent);
  border-radius: var(--r-lg);
  background: var(--room-soft);
}
.recorder.is-recording {
  border-color: var(--wrong);
  background: var(--wrong-soft);
}
.rec-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--wrong);
  color: var(--on-brand);
  font: 700 1.1rem var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.rec-btn:hover {
  background: var(--wrong);
}
.rec-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--surface);
}
.rec-btn.is-stop .rec-dot {
  border-radius: 3px;
}
.is-recording .rec-dot {
  animation: pulse 0.8s ease-in-out infinite alternate;
}
.rec-live {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-weight: 700;
}
.rec-meter {
  width: 10rem;
  height: 1.1rem;
  background: var(--right) calc(var(--lvl, 0) *);
  -webkit-mask: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 10px);
  mask: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 10px);
}
.takes {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.takes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.takes audio {
  max-width: 100%;
  height: 2.5rem;
}
.wave {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: 2.5rem;
  fill: currentColor;
  opacity: 0.55;
}
.compare {
  margin-top: var(--s-3);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--s-3);
}
.compare-cell {
  margin: 0;
  padding: var(--s-3);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.compare-cell audio {
  max-width: 100%;
}
.ladder ol {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ladder li {
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ladder li.is-you {
  border-color: var(--room);
}
.ladder p {
  margin: 0.25rem 0;
}
.ladder-tier {
  font-weight: 700;
  color: var(--room-ink);
}
.selfcheck {
  margin: var(--s-3) 0;
}
.selfcheck label,
.practiced,
.timer-opt {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 2.75rem;
  padding: 0.4rem 0;
  cursor: pointer;
}
.selfcheck em {
  display: block;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.field.inline {
  display: inline-grid;
}
.task-criteria {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.task-criteria h2 {
  margin: 0 0 0.4rem;
  font: 700 1.05rem var(--font);
  letter-spacing: 0;
}
.task-criteria ul {
  margin: 0;
  padding-left: 1.2rem;
}
.saved-note {
  margin: var(--s-3) 0 0;
}

/* ── writing and worksheets ────────────────────────────────────────────── */
.meter {
  margin: var(--s-2) 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.meter-bar {
  display: block;
  height: 0.5rem;
  margin-bottom: 0.3rem;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.meter-bar > span {
  display: block;
  height: 100%;
  background: var(--room);
  transition: width 0.3s;
}
.field textarea {
  font-size: 1.125rem;
  line-height: 1.7;
}
.worksheet section {
  margin: var(--s-4) 0;
}
.ws-lines {
  padding-left: 1.4rem;
}
.ws-lines li {
  margin: 0 0 var(--s-3);
}
.ws-line {
  display: block;
  height: 2.2rem;
  border-bottom: 2px solid var(--line-strong);
}
.portfolio-entry {
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.portfolio-response {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.draft-history p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── previous / next ───────────────────────────────────────────────────── */
.act-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-4);
  padding: var(--s-3) 0;
}
.act-nav > :first-child {
  justify-self: start;
}
.act-nav > :last-child {
  justify-self: end;
}
.act-count {
  color: var(--ink-2);
  font-weight: 700;
}

@media (max-width: 860px) {
  .activity-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-workspace .stimulus {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .activity-workspace .stimulus.has-passage {
    position: sticky;
    top: 0;
    z-index: 10;
    max-height: 40vh;
    overflow-y: auto;
  }
  .lab-top {
    position: static;
  }
}
@media (max-width: 560px) {
  .act-step .bar {
    width: 4.5rem;
  }
  .vocab div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .listen-player {
    grid-template-columns: minmax(0, 1fr);
  }
  .listen-btn {
    width: 100%;
  }
  .speed {
    margin-left: 0;
  }
  .act-nav {
    grid-template-columns: 1fr 1fr;
  }
  .act-count {
    display: none;
  }
  .pg-row {
    grid-template-columns: 5.5rem 1fr;
  }
}
@media print {
  .activity-workspace {
    display: block;
  }
  .activity-workspace .stimulus,
  .activity-workspace .response-workspace {
    position: static;
    max-height: none;
    border: 0;
    box-shadow: none;
    padding: 0.75rem 0 0;
  }
  .act-head {
    border: 0;
    box-shadow: none;
  }
  .practice-mode,
  .save-explainer,
  .act-nav,
  #labStorageWarning {
    display: none;
  }
  .workbook-heading,
  .prompt,
  .field > span {
    break-after: avoid;
  }
}

.gist-prompt {
  margin: 0 0 var(--s-4);
}
.gist-prompt label {
  display: flex;
  gap: 0.4rem;
  font-size: 0.975rem;
  line-height: 1.4;
  color: var(--ink-2);
}

/* ── reading passage sentences (read-aloud, cognates, evidence) ────────── */
.reading-sentence {
  border-radius: 4px;
  padding-block: 0.2rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.reading-sentence:hover,
.reading-sentence:focus-visible {
  background: color-mix(in srgb, var(--room) 12%, transparent);
  outline: 2px solid var(--room);
}
.reading-sentence.is-active-reading-sentence {
  background: var(--status-warning-border) !important;
  color: var(--brand) !important;
  box-shadow: 0 0 0 2px var(--accent);
}
.reading-sentence.has-cognates {
  text-decoration: underline wavy var(--room);
  text-underline-offset: 3px;
}
.revision-coach-card {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-left: 1px solid var(--border-strong);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-2);
}

/* The wrapper scrolls (and is focusable); the table itself must not become a second scroll region. */
.lab-table-wrap table {
  display: table;
  max-width: none;
  overflow: visible;
}
.practice-score {
  margin-block: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}
.practice-score h3 {
  margin: 0.15rem 0 0.4rem;
  color: var(--ink);
}
.practice-score .eyebrow {
  margin: 0;
  color: var(--room-ink);
  font-weight: 700;
}
.practice-score ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}
.practice-score li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.practice-score li.is-met > span {
  color: var(--right);
  font-weight: 800;
}
.practice-score li.is-next > span {
  color: var(--ink-3);
}

/* ── "How sure are you?" — optional, before Check ─────────────────────── */
.sure-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-3) 0;
}
.sure-label {
  font-weight: 700;
  color: var(--ink-2);
}
.sure-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding: var(--s-2) var(--s-3);
  border-inline-start: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--ink);
}
.sure-note.is-sure-wrong {
  border-inline-start-color: var(--coral);
}
.sure-note.is-lucky {
  border-inline-start-color: var(--accent);
}

/* Narrow containers (phones, the home preview card): the player stacks so its status text never wraps letter by letter. */
.listen-meta {
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .listen-player {
    grid-template-columns: minmax(0, 1fr);
  }
  .listen-btn {
    justify-self: start;
    max-width: 100%;
  }
  .listen-player .speed {
    margin-left: 0;
  }
}

/* ── studio identity on every activity: the same material as its studio ─── */
.activity.d-listening .act-head {
  background: var(--teal-soft);
}
.activity.d-reading .act-head {
  background: var(--grain), var(--ivory);
}
.activity.d-reading .passage {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--status-warning-border);
  border-left: 1px solid var(--border-strong);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  background: var(--status-warning-bg);
  box-shadow: var(--shadow-card);
}
.activity.d-speaking .act-head {
  background: var(--surface);
}
.activity.d-speaking .recorder {
  border-color: color-mix(in srgb, var(--speaking) 30%, transparent);
  background: var(--brand-soft);
}
.activity.d-writing .act-head {
  background: var(--status-warning-bg);
}
.activity.d-writing textarea[data-note] {
  padding-left: 2.75rem;
  background: linear-gradient(
      90deg,
      transparent 2.1rem,
      color-mix(in srgb, var(--status-warning-border) 50%, transparent) 2.1rem 2.2rem,
      transparent 2.2rem
    ), repeating-linear-gradient(
      180deg,
      transparent 0 calc(1.9rem - 1px),
      var(--status-warning-bg) calc(1.9rem - 1px) 1.9rem
    ), var(--ivory);
  background-position: 0 0.55rem;
  line-height: 1.9rem;
}

.key-warmup {
  margin-block: 1rem;
}

/* ── Your task: the numbered how-to card at the top of every activity (src/task-steps.js) ── */
.task-card {
  margin-block: 14px 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--room, var(--brand));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.task-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--room-ink, var(--brand-ink));
}
.task-card .directions {
  margin: 0 0 12px;
}
.task-card .directions p {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
}
.task-how-title {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.task-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.task-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}
.task-step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--room, var(--brand));
  color: var(--on-brand);
  font-weight: 700;
}
.task-step-text {
  flex: 1;
}
.task-step-hear {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line-control);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.task-step-hear:focus-visible,
.jump-tile a:focus-visible,
.jump-hear:focus-visible,
.jump-level:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* K–3: bigger words, bigger number dots, one step per row on phones. */
.task-card.is-early .task-steps li {
  font-size: 1.25rem;
  font-weight: 600;
}
.task-card.is-early .task-step-n {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}
.task-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.task-start {
  min-height: 44px;
}
@media (max-width: 640px) {
  .task-steps {
    grid-template-columns: 1fr;
  }
  .task-card-foot .task-start {
    width: 100%;
    justify-content: center;
  }
}

/* ── Jump in: one-tap practice sets on Home and the Practice hub (src/quick-start.js) ── */
.jump-in {
  margin-block: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.jump-head h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: var(--ink);
}
.jump-head p {
  margin: 0 0 12px;
  color: var(--ink-2);
}
.jump-levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-end: 14px;
}
.jump-levels-label {
  font-weight: 700;
  color: var(--ink);
}
.jump-level {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 48px;
  padding: 6px 14px;
  border: 2px solid var(--line-control);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.jump-level span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}
.jump-level[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.jump-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jump-tile {
  position: relative;
}
.jump-tile a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 120px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.jump-tile a:hover {
  border-color: var(--teal);
}
.jump-tile strong {
  font-size: 1.2rem;
}
.jump-line {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.jump-meta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
}
.jump-icon .ico {
  width: 32px;
  height: 32px;
}
.jump-tile.d-listening .jump-icon {
  color: var(--ocean-900);
}
.jump-tile.d-speaking .jump-icon {
  color: var(--rose-900);
}
.jump-tile.d-writing .jump-icon {
  color: var(--copper-900);
}
.jump-tile.d-reading .jump-icon {
  color: var(--brand);
}
.jump-mixed a {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.jump-mixed .jump-line,
.jump-mixed .jump-go {
  color: var(--on-brand);
}
.jump-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 700;
}
.jump-hear {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line-control);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.jump-more {
  margin: 12px 0 0;
}
.jump-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--brand-ink);
}
/* K–3: picture tiles, one big word each. */
.jump-in.is-early .jump-tile a {
  align-items: center;
  justify-content: center;
  min-height: 150px;
  text-align: center;
}
.jump-in.is-early .jump-icon .ico {
  width: 56px;
  height: 56px;
}
.jump-in.is-early .jump-tile strong {
  font-size: 1.6rem;
}
@media (prefers-reduced-motion: no-preference) {
  .jump-tile a {
    transition: border-color 0.15s ease;
  }
}
/* Phones: the four return/print buttons sit two per row instead of a tall stack above the task. */
@media (max-width: 640px) {
  .act-return {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .act-return > .btn {
    width: auto;
    min-height: 44px;
    margin: 0;
    font-size: 0.9rem;
  }
}
@media (max-width: 640px) {
  .jump-in.is-early .jump-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .jump-in.is-early .jump-mixed {
    grid-column: 1 / -1;
  }
}

/* ── calm activity page (2026-11-16) ───────────────────────────────────────
   The page leads with the task: secondary links are a quiet text row, the optional retell folds away,
   and a jump to a part of the page lands below the sticky header instead of under it. */
.act-return {
  gap: 0.25rem 1.1rem;
  margin: 0 0 0.6rem;
}
.act-return .btn.small {
  min-height: 2.75rem;
  padding: 0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand-deep);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
  transform: none;
}
.act-return .btn.small:hover {
  text-decoration-color: currentColor;
}
details.retell {
  padding: 0;
}
details.retell > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 3rem;
  padding: 0.5rem var(--s-4);
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
details.retell > summary::-webkit-details-marker {
  display: none;
}
details.retell > summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
details.retell[open] > summary::after {
  transform: rotate(225deg);
}
.retell-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.retell-optional {
  margin-inline-start: auto;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}
details.retell > :not(summary) {
  margin-inline: var(--s-4);
}
details.retell > :last-child {
  margin-bottom: var(--s-4);
}
@media (prefers-reduced-motion: reduce) {
  details.retell > summary::after {
    transition: none;
  }
}
/* Phones: the context pill and the activity count share one line; the journey stop is a detail for wider screens. */
@media (max-width: 559px) {
  .act-bar {
    gap: 0.35rem 0.75rem;
  }
  .act-journey-label {
    display: none;
  }
  .act-context {
    padding: 0.2rem 0.65rem 0.2rem 0.5rem;
    font-size: 0.8125rem;
  }
  .act-step {
    font-size: 0.8125rem;
  }
  .act-step .bar {
    width: 4rem;
  }
}
/* The passage stays beside the questions, clear of the sticky header (--lab-top-h is its live height, src/shell.js).
   Two-column layout only: on one column the passage pins at 40vh (the max-width: 860px block above). */
@media (min-width: 861px) {
  .activity-workspace .stimulus {
    top: calc(var(--lab-top-h, 6.75rem) + 1rem);
    max-height: calc(100vh - var(--lab-top-h, 6.75rem) - 2rem);
  }
}

/* Part-level miss notes (sort cards, blanks, steps): one line per card, the card named first. */
.fb-why-list {
  margin: 6px 0 0;
  padding-inline-start: 1.1rem;
}
.fb-why-list li {
  margin-block: 4px;
}
.fb-why-label {
  font-weight: 700;
}
.fb-why-label::after {
  content: " —";
}

/* Help tools sit as one row of chips above the answer; the one a learner opens takes the full width below. */
.response-workspace > :is(details.strategy, details.helpers):not([open]),
.answer-zone > details.writing-starters:not([open]) {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 8px 10px 0;
  vertical-align: top;
}
.response-workspace > :is(details.strategy, details.helpers):not([open]) > summary,
.answer-zone > details.writing-starters:not([open]) > summary {
  min-height: 44px;
  padding-inline-end: 2.2rem;
  border-radius: var(--radius-sm);
}
.response-workspace > :is(details.strategy, details.helpers)[open],
.answer-zone > details.writing-starters[open] {
  display: block;
  width: 100%;
}
/* The recorder: one button, one privacy line, and the setup tips folded away. */
.recorder .rec-about {
  margin-top: 0.25rem;
}
.recorder .rec-about > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.recorder .rec-privacy {
  margin-block: 0.5rem 0;
}
.warmup-note > span {
  min-width: 0;
}

/* Phones: "How much help?" sits on its own line with the three choices in one even row, and the four skill tiles
   share a two-column grid so a student sees every choice without a long scroll. */
@media (max-width: 559px) {
  .jump-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jump-levels-label {
    grid-column: 1 / -1;
  }
  .jump-level {
    align-items: center;
    padding-inline: 6px;
    border-radius: var(--radius-md);
    text-align: center;
  }
  .jump-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .jump-mixed {
    grid-column: 1 / -1;
  }
  .jump-tile a {
    min-height: 0;
    padding: 12px;
  }
  .jump-line {
    font-size: 0.875rem;
  }
}

/* Inside the task card the directions are the card's lead text, not a second box: no tint, border or lone icon. */
.task-card .directions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.task-card .directions::before {
  display: none;
}
.task-card .directions .directions-icon {
  display: none;
}
.task-card .directions p {
  flex: 1 1 16rem;
  margin: 0;
}

/* /access-practice-lab/progress.css */
/* ACCESS Practice Lab — progress screens: Passport, Growth Map, Road to ACCESS, Families, Lab tools.
   Tokens and shared components come from ds.css. This sheet only adds layout and screen-specific variants.
   Prefixes: prog- (shared), pass- (Passport), grow- (Growth Map), rd- (Road), fam- (Families), tl- (Lab tools). */

/* ── shared helpers ────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.prog-heading,
.pass-heading {
  margin: var(--s-6) 0 var(--s-4);
}
.prog-heading-row,
.pass-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
}
.prog-heading-row .fine,
.pass-heading-row .fine {
  margin: 0;
}

/* icon tile: a domain icon on its soft tint */
.pass-tile,
.prog-tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid color-mix(in srgb, var(--room) 28%, transparent);
  border-radius: var(--radius-md);
  background: var(--room-soft);
  color: var(--room-ink);
}
.pass-tile .ico,
.prog-tile .ico {
  width: 1.55rem;
  height: 1.55rem;
  vertical-align: 0;
}
.pass-tile.sm,
.prog-tile.sm {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
}
.pass-tile.sm .ico,
.prog-tile.sm .ico {
  width: 1.3rem;
  height: 1.3rem;
}
.pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--room) 28%, transparent);
  border-radius: var(--radius-sm);
  background: var(--room-soft);
  color: var(--room-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

/* hero shared by every progress screen */
.prog-hero,
.pass-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--s-5);
  margin: 0 0 var(--s-5);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prog-hero.is-tint {
  border-color: color-mix(in srgb, var(--room) 25%, var(--line));
  background: var(--room-soft);
}
.prog-hero .eyebrow,
.pass-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--s-3);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.prog-hero.is-tint .eyebrow {
  background: var(--surface);
  color: var(--room-ink);
}
.prog-hero h1,
.pass-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.prog-hero .lead,
.pass-hero .lead {
  margin: var(--s-3) 0 var(--s-4);
}
.prog-hero-art {
  justify-self: end;
  width: 100%;
  max-width: 24rem;
}
.prog-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
.prog-hero .band-switch {
  margin: var(--s-3) 0 0;
}

/* ── Passport ──────────────────────────────────────────────────────────── */
.paper-pass {
  margin: 0 0 var(--s-3);
}
.paper-pass > summary {
  display: inline-flex;
  padding-right: 2.75rem;
}
.paper-pass-menu {
  max-width: 40rem;
  margin-top: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.paper-pass-menu ul {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.paper-pass-menu li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
}
.paper-pass-menu li > span:first-child {
  display: grid;
  gap: 2px;
}
.pass-name {
  max-width: 24rem;
  font-weight: 700;
}
.pass-hero .pass-art {
  justify-self: center;
  width: min(17rem, 100%);
  height: auto;
}
.pass-stats {
  grid-column: 1 / -1;
  display: grid;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
}
.pass-stats > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pass-stat-ico {
  display: grid;
  grid-row: 1 / 4;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--edge-light-dark);
}
.pass-stat-ico .ico {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: 0;
}
.pass-stat-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-2);
}
.pass-stat-value {
  margin: 0;
  font: 650 clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem) / 1.1 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--brand-ink);
}
.pass-stat-note {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.pass-domains {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.pass-domain {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--room);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pass-domain header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.pass-domain h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--room-ink);
}
.pass-count {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.pass-count strong {
  font: 650 1.5rem/1 var(--font-display);
  color: var(--ink);
}
.pass-domain .bar i {
  background: var(--room);
}
.pass-score { margin: 0; }
.practice-report {
  margin: 0 0 var(--s-4);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
}
.practice-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.practice-report-head h2 { margin: 0; }
.practice-report-head .eyebrow { margin: 0 0 var(--s-2); }
.practice-next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.practice-next-steps li {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.practice-next-steps li > span { color: var(--ink-2); }
.practice-disclaimer {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.teacher-score-guide { margin-bottom: var(--s-4); }
.teacher-score-guide summary { font-weight: 700; }
.teacher-score-guide > div { display: grid; gap: 0.25rem; margin-top: var(--s-3); }
.teacher-score-guide p { margin: 0; }
.bar.mini {
  height: 0.45rem;
}
.pass-levels {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pass-levels li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9375rem;
}
.pass-level-name {
  font-weight: 700;
  color: var(--ink-2);
}
.pass-level-n {
  min-width: 3.4rem;
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pass-go {
  width: 100%;
  min-height: 2.75rem;
  background: var(--room);
  border-color: var(--room);
  color: var(--on-brand);
}
.pass-go:hover {
  background: var(--room-ink);
  border-color: var(--room-ink);
  color: var(--on-brand);
}

.pass-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  margin: var(--s-5) 0;
}
.pass-split-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pass-split > .panel {
  margin: 0;
}
.pass-split h2 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
}
.pass-note {
  margin: 0 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-left: 1px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--ink);
}
.pass-side {
  display: grid;
  gap: var(--s-4);
}
.pass-card {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pass-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--s-2);
  font: 700 1.1rem/1.25 var(--font);
  letter-spacing: 0;
}
.pass-card h2 .ico {
  color: var(--brand);
  vertical-align: 0;
}
.pass-card > p {
  margin: 0 0 var(--s-3);
}

.pass-evlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pass-ev {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.pass-ev:first-child {
  border-top: 0;
}
.pass-ev-body {
  display: grid;
  min-width: 0;
}
.pass-ev-body a {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pass-ev-date {
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.pass-more {
  margin: var(--s-3) 0;
}
.pass-empty {
  padding: var(--s-5) var(--s-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.pass-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.pass-cal li {
  display: grid;
  place-items: center;
  min-height: 2rem;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.8125rem;
}
.pass-cal li.is-on {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.pass-cal li.is-today {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.pass-open {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.pass-open li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.pass-open li > span:last-child {
  display: grid;
  min-width: 0;
}
.pass-open a {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pass-mini {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
}
.pass-mini > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.pass-mini dt {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.pass-mini dd {
  margin: 0;
  font: 650 1.6rem/1 var(--font-display);
}

.pass-badges {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pass-badges li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.4rem;
  padding: var(--s-4) var(--s-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}
.pass-badges li.is-on {
  border: 1.5px solid var(--status-warning-border);
  background: var(--status-warning-bg);
  box-shadow: var(--shadow);
}
.pass-badge-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-3);
}
.pass-badge-icon .ico {
  width: 1.6rem;
  height: 1.6rem;
  vertical-align: 0;
}
.is-on .pass-badge-icon {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.pass-badge-how {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.is-on .pass-badge-how {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--right);
}
.pass-badge-how .ico {
  vertical-align: 0;
}
.pass-actions {
  margin: var(--s-5) 0 0;
}

.pass-options {
  margin: var(--s-4) 0;
  padding: 0;
  border: 0;
}
.pass-options legend {
  margin-bottom: var(--s-2);
  padding: 0;
}
.pass-check {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
  font-weight: 400;
}
.pass-rec {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.pass-rec li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.pass-share h3 {
  margin: var(--s-5) 0 var(--s-2);
}
.pass-steps {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.pass-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
}
.pass-step-n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.pass-steps .row-actions {
  margin-top: var(--s-2);
}
.pass-steps textarea {
  width: 100%;
}
.pass-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.pass-danger p {
  flex: 1 1 14rem;
  margin: 0;
}

/* portfolio (print-first document) */
.pass-portfolio {
  max-width: 52rem;
  margin: 0 auto;
}
.pass-portfolio-head {
  margin: var(--s-5) 0;
}
.pass-portfolio-head h1 {
  margin: 0;
}
.pass-portfolio-entry {
  margin: 0 0 var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-left: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  break-inside: avoid;
}
.pass-portfolio-entry h2 {
  margin: 0 0 var(--s-2);
  font-size: 1.35rem;
}
.pass-portfolio-entry h3 {
  margin: var(--s-4) 0 var(--s-1);
  font-size: 1rem;
}
.pass-portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
}
.pass-portfolio-response {
  margin: 0;
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .pass-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pass-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .prog-hero,
  .pass-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .prog-hero-art,
  .pass-hero .pass-art {
    display: none;
  }
  .pass-split,
  .pass-split-even {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .pass-domains {
    grid-template-columns: minmax(0, 1fr);
  }
  .pass-hero .pass-art {
    display: none;
  }
  .pass-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pass-stats {
    gap: var(--s-2);
  }
  .pass-stats > li {
    padding: var(--s-2) var(--s-3);
  }
}
@media (max-width: 360px) {
  .pass-badges {
    grid-template-columns: minmax(0, 1fr);
  }
  .pass-ev {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pass-ev-date {
    grid-column: 2;
  }
}
@media print {
  .pass-hero,
  .pass-domain,
  .pass-card,
  .pass-badges li,
  .pass-portfolio-entry {
    box-shadow: none;
    break-inside: avoid;
  }
  .pass-hero .pass-art,
  .pass-name,
  .pass-share,
  .pass-backup,
  .pass-go,
  .no-print {
    display: none !important;
  }
  .pass-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .pass-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pass-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* tightening */
.pass-stat-label,
.pass-stat-value,
.pass-stat-note {
  line-height: 1.25;
}
.prog-hero .eyebrow,
.pass-hero .eyebrow {
  border-radius: var(--radius-lg);
}

/* ── Growth Map ────────────────────────────────────────────────────────── */
.grow-hero {
  --room: var(--reading);
  --room-ink: var(--reading-ink);
  --room-soft: var(--reading-soft);
}
.grow-hero h1 {
  color: var(--room-ink);
}
.pass-stats.grow-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--s-4) 0;
}
.grow-empty {
  margin-top: var(--s-3);
  padding: var(--s-5) var(--s-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.grow-empty .row-actions {
  justify-content: center;
}
.grow-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-3) 0;
}
.grow-choices .cat-chip .ico {
  vertical-align: 0;
}
.grow-skills {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.grow-skill-domain {
  border-left: 1px solid var(--border-strong);
}
.grow-skill-domain > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}
.grow-skill-name {
  font-weight: 700;
  color: var(--room-ink);
}
.grow-skill-name + .fine {
  margin-right: auto;
}
.grow-skill-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grow-skill-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.grow-skill-list li > strong {
  flex: 1 1 14rem;
}
.grow-skill-links {
  flex: 1 0 100%;
  margin: 0 0 0 0.25rem;
  padding: 0.55rem 0.75rem;
  border-left: 2px solid var(--room);
  border-radius: 0 0.45rem 0.45rem 0;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.grow-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.grow-status .ico {
  vertical-align: 0;
}
.grow-status.is-none {
  background: var(--surface-3);
  color: var(--ink-2);
}
.grow-status.is-dev {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.grow-status.is-sup {
  background: var(--hint-soft);
  color: var(--hint);
}
.grow-status.is-ind {
  background: var(--right-soft);
  color: var(--right);
}
.grow-focus {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: focus;
}
.grow-focus li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  counter-increment: focus;
}
.grow-focus li::before {
  content: counter(focus);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.grow-focus li > span {
  flex: 1 1 16rem;
}
.grow-dim-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.grow-dim-head h2,
.grow-dim-head p {
  margin: 0;
}
.grow-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--s-3);
}
.grow-feature {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.grow-feature h4 {
  margin: 0;
  font-size: 1rem;
}
.grow-feature p {
  margin: 0;
}
.grow-feature .spark {
  width: 100%;
  max-width: 10rem;
  height: auto;
  color: var(--brand);
}
.grow-dep {
  display: flex;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
}
.grow-dep .ico {
  margin-top: 0.15em;
  vertical-align: 0;
}
.grow-dep.is-low {
  color: var(--hint);
}
.grow-dep.is-ok {
  color: var(--right);
}
.grow-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--s-4);
  align-items: start;
}
.grow-pair > .panel {
  margin: var(--s-4) 0;
}
.grow-rows {
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.grow-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.grow-rows li > span:first-child,
.grow-rows li > a {
  display: grid;
  gap: 0.3rem;
  min-width: 8rem;
  font-weight: 700;
}
.grow-rows li > span:last-child {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.grow-rows .bar.mini {
  width: 7rem;
}
.grow-volume {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.grow-volume .card {
  display: grid;
  justify-items: start;
  gap: var(--s-2);
  border-top: 3px solid var(--room);
}
.grow-volume h3 {
  margin: 0;
  color: var(--room-ink);
}
.grow-volume p {
  margin: 0;
}
.grow-volume strong {
  font: 650 1.8rem/1 var(--font-display);
}
@media (max-width: 1100px) {
  .grow-volume,
  .pass-stats.grow-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .grow-volume {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Road to ACCESS ────────────────────────────────────────────────────── */
.rd-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.rd-summary {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rd-summary p {
  margin: 0;
}
.rd-summary-n {
  font-size: 1.1rem;
}
.rd-summary-n strong {
  font: 650 2.6rem/1 var(--font-display);
}
.rd-summary .bar {
  height: 0.8rem;
}
.rd-summary .bar i {
  background: var(--right);
}
.rd-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.rd-stop {
  min-width: 0;
}
.rd-stop-link {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-2);
  height: 100%;
  padding: var(--s-4) var(--s-3) var(--s-3);
  border: 1px solid var(--line);
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.rd-stop-link:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.rd-stop.is-done .rd-stop-link {
  border-top-color: var(--right);
}
.rd-stop.is-now .rd-stop-link {
  border-top-color: var(--brand);
}
.rd-stop.is-open .rd-stop-link {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px var(--brand);
}
.rd-node {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  font: 700 1.05rem/1 var(--font);
  color: var(--ink);
}
.rd-node .ico {
  width: 1.3rem;
  height: 1.3rem;
  vertical-align: 0;
}
.rd-stop.is-done .rd-node {
  background: var(--right);
  border-color: var(--right);
  color: var(--on-brand);
}
.rd-stop.is-now .rd-node {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.rd-label {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.3;
}
.rd-label strong {
  font-size: 1.05rem;
}
.rd-type {
  font-weight: 700;
  color: var(--ink-2);
}
.rd-theme {
  font-size: 0.9375rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.rd-date {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.rd-here {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.8125rem;
  font-weight: 700;
}
.rd-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.rd-week {
  margin: 0;
}
.rd-week h2 {
  margin: 0 0 var(--s-2);
}
.rd-week .eyebrow {
  color: var(--brand-deep);
}
.rd-acts {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.rd-acts li > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid color-mix(in srgb, var(--room) 25%, var(--line));
  border-left: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.rd-acts li > a:hover {
  background: var(--room-soft);
  color: var(--ink);
}
.rd-act-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.rd-act-body strong {
  overflow-wrap: anywhere;
}
.rd-act-meta {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--room-ink);
}
.rd-tick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}
.rd-tick.is-on {
  color: var(--right);
}
.rd-tick .ico {
  vertical-align: 0;
}
.rd-step {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}
.rd-aside {
  display: grid;
  gap: var(--s-4);
  position: sticky;
  top: 5rem;
}
.rd-card {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rd-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.1rem;
}
.rd-card h3 .ico {
  color: var(--brand);
  vertical-align: 0;
}
.rd-card p {
  margin: 0;
}
.rd-family {
  border-color: var(--status-warning-border);
  background: var(--status-warning-bg);
}
.rd-family h3 .ico {
  color: var(--writing);
}
.rd-family p[lang="es"] {
  padding-top: var(--s-3);
  border-top: 1px dashed var(--accent);
  color: var(--ink-2);
}
@media (max-width: 1180px) {
  .rd-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .rd-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .rd-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .rd-aside {
    position: static;
  }
  .rd-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .rd-map {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-2);
  }
  .rd-stop-link {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: var(--s-3);
    border-top-width: 1.5px;
    border-left-width: 6px;
    border-left-color: var(--line-strong);
  }
  .rd-stop.is-done .rd-stop-link {
    border-left-color: var(--right);
    border-top-color: var(--line);
  }
  .rd-stop.is-now .rd-stop-link {
    border-left-color: var(--brand);
    border-top-color: var(--line);
  }
  .rd-here {
    position: static;
    grid-column: 2;
    justify-self: start;
  }
  .rd-acts li > a {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rd-tick {
    grid-column: 2;
  }
}
@media print {
  .rd-aside,
  .rd-step {
    display: none;
  }
}

/* ── Families ──────────────────────────────────────────────────────────── */
.fam-hero .eyebrow {
  color: var(--writing-ink);
}
.fam-finder-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fam-finder-head > span { padding: 7px 11px; border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--brand); font-weight: 700; white-space: nowrap; }
.fam-filter-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fam-filter-groups > div { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 8px; }
.fam-filter-groups > div > strong { width: 100%; margin-bottom: 2px; font-size: 14px; }
.fam-filter-groups a { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); font-size: 14px; text-decoration: none; }
.fam-filter-groups a[aria-current=true] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 750; }
.fam-activity-cards { display: grid; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.fam-activity-cards li { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.fam-activity-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--bg-subtle); color: var(--teal); }
.fam-activity-mark .ico { width: 23px; height: 23px; }
.fam-activity-cards small,.fam-activity-cards strong { display: block; }
.fam-activity-cards small { margin-bottom: 3px; color: var(--ink-3); font-size: 13px; }
.fam-activity-cards strong { font-size: 17px; }
.fam-activity-cards li > a { padding: 10px 14px; border-radius: var(--radius-md); background: var(--teal); color: var(--on-brand); font-weight: 750; text-decoration: none; }
.fam-copy-status { grid-column: 1/-1; color: var(--teal); font-weight: 700; }
@media (max-width:760px) {
 .fam-filter-groups { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width:520px) {
 .fam-grade-cards { grid-template-columns: 1fr; }
 .fam-finder-head { align-items: flex-start; flex-direction: column; }
 .fam-activity-cards li { grid-template-columns: 40px minmax(0,1fr); gap: 10px; }
 .fam-activity-mark { width: 40px; height: 40px; }
 .fam-activity-cards li > a { grid-column: 2; justify-self: start; }
}
.fam-hero .band-switch {
  background: var(--surface);
}
.fam-window {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  max-width: 34rem;
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--status-warning-border);
  border-radius: var(--radius);
  background: var(--surface);
}
.fam-window > div {
  display: grid;
  gap: 0.15rem;
  line-height: 1.4;
}
.fam-window-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  background: var(--writing-soft);
  color: var(--writing-ink);
}
.fam-window-ico .ico {
  vertical-align: 0;
}
.fam-window .window-kicker {
  color: var(--writing-ink);
}
.fam-window a {
  font-weight: 700;
}
.fam-tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.fam-tile .ico {
  width: 1.6rem;
  height: 1.6rem;
  vertical-align: 0;
}
.fam-steps {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.fam-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--s-3);
  counter-increment: step;
}
.fam-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.fam-steps li > span {
  padding-top: 0.15rem;
}
.fam-checklist {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fam-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.fam-check {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--right);
  color: var(--on-brand);
}
.fam-check .ico {
  width: 1rem;
  height: 1rem;
  vertical-align: 0;
}
/* ── Lab tools and device check ────────────────────────────────────────── */
.tl-hero {
  grid-template-columns: minmax(0, 1fr);
}
.tl-hero .eyebrow {
  color: var(--brand-deep);
}
.tl-hero .lead {
  max-width: 60ch;
}
.tl-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin: 0 0 var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--status-warning-border);
  border-radius: var(--r-lg);
  background: var(--status-warning-bg);
}
.tl-notice h2 {
  margin: 0 0 var(--s-1);
  font: 700 1.1rem/1.3 var(--font);
  letter-spacing: 0;
}
.tl-notice p {
  margin: 0;
  max-width: 70ch;
}
.tl-notice-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  background: var(--writing-soft);
  color: var(--writing-ink);
}
.tl-notice-ico .ico {
  width: 1.4rem;
  height: 1.4rem;
  vertical-align: 0;
}
.tl-steps {
  columns: 2;
  column-gap: var(--s-4);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.tl-step {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  min-width: 0;
  margin: 0 0 var(--s-4);
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  break-inside: avoid;
}
.tl-step.is-wide {
  column-span: all;
}
.tl-step-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.tl-step-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
}
.tl-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 1.1rem/1 var(--font);
}
.tl-step-body {
  display: grid;
  gap: var(--s-3);
  min-width: 0;
}
.tl-step-body > p,
.tl-step-body > ul {
  margin: 0;
}
.tl-step-body textarea {
  width: 100%;
}
.tl-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--right);
  font-weight: 700;
}
.tl-note .ico {
  vertical-align: 0;
}
.tl-teacher {
  display: grid;
  gap: var(--s-3);
  border: 1px dashed var(--ink-3);
  background: var(--surface-2);
  box-shadow: none;
}
.tl-teacher h3,
.tl-teacher p,
.tl-teacher ul {
  margin: 0;
}
.tl-teacher ul {
  display: grid;
  gap: var(--s-2);
  padding-left: 1.25rem;
}
.tl-teacher-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.15rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-brand);
  font-size: 0.875rem;
  font-weight: 700;
}
.tl-teacher-tag .ico {
  vertical-align: 0;
}
@media (max-width: 640px) {

  .practice-report-head { display: grid; }

  .practice-next-steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {

  .tl-steps {
    columns: 1;
  }
}

.pass-journey {
  margin: 0 0 var(--s-5);
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.journey-card {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.journey-card.is-done {
  border-color: var(--ink);
  border-width: 2px;
}
.journey-name {
  display: grid;
}
.journey-stops {
  display: grid;
  grid-template-columns: repeat(6, minmax(24px, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-stops li {
  min-width: 24px;
  min-height: 24px;
  aspect-ratio: 1;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  overflow: hidden;
}
.journey-stops a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 1.75rem;
  min-height: 1.75rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.journey-stops li.on a {
  color: var(--on-brand);
}
.journey-stops a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.journey-stops li.on {
  background: var(--ink);
  border-color: var(--ink);
}
.journey-count {
  margin: 0;
  font-weight: 700;
}

/* Local-only family postcards */
.postcard-maker,.postcard-album{margin-block:1rem}.postcard-maker>p,.postcard-album>p{line-height:1.55}.postcard-tools{display:flex;flex-wrap:wrap;gap:.65rem;margin-block:.75rem}.postcard-tools>.btn{min-height:44px}.postcard-maker canvas{display:block;width:min(100%,800px);height:auto;aspect-ratio:20/13;border: 2px dashed var(--brand);border-radius: var(--radius-md);background: var(--surface);touch-action:none}.postcard-maker video[hidden]{display:none}.postcard-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem;list-style:none;padding:0}.postcard-list>li{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(0,1fr);gap:1rem;padding:1rem;border: 1px solid var(--border-strong);border-radius: var(--radius-md);align-items:start}.postcard-list img{width:100%;height:auto;border-radius: var(--radius-sm)}.postcard-list p{overflow-wrap:anywhere}.postcard-list time{display:block;font-size:.9rem}.postcard-maker :focus-visible,.postcard-album :focus-visible{outline: 3px solid var(--teal);outline-offset:3px}@media(max-width:520px){.postcard-list>li{grid-template-columns:1fr}.postcard-tools>.btn{min-height:44px;flex:1 1 100%}}
.postcard-maker [hidden] { display: none !important; }
.postcard-maker > p, .postcard-album > p, .postcard-maker .fine, .postcard-album .fine { font-size: 1rem; line-height: 1.5; }

/* Passport check-in and journey Continue */
.journey-go { justify-self: start; min-height: 44px; }
.pass-checkin { margin: 0 0 var(--s-5); }
.pass-checkin .row-actions .btn { min-height: 44px; }
.pass-checkin .row-actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ── Passport: "How I work" and the family letter ─────────────────────── */
.pass-lines {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-2) 0;
  padding: 0;
  list-style: none;
}
.pass-sub {
  margin: var(--s-4) 0 var(--s-2);
  font-size: 1rem;
}
.fade-steps {
  display: inline-flex;
  gap: 0.25rem;
  margin-inline: var(--s-2);
  vertical-align: middle;
}
.fade-step {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font: 700 0.8rem var(--font);
}
.fade-step.is-guided {
  background: var(--surface);
  color: var(--ink);
}
.fade-step.is-supported {
  background: var(--surface-3);
  color: var(--ink);
}
.fade-step.is-independent {
  background: var(--ink);
  color: var(--on-brand);
}
.fam-letter-wrap {
  margin-block: var(--s-5);
}
.fam-letter {
  max-width: 42rem;
  margin: var(--s-4) 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.fam-letter h4 {
  margin: var(--s-4) 0 var(--s-1);
}
@media print {
  body[data-printing="letter"] #app > *:not(.fam-letter-wrap):not(:has(.fam-letter-wrap)) {
    display: none !important;
  }
  body[data-printing="letter"] .fam-letter {
    border: 0;
    padding: 0;
    break-after: page;
  }
  body[data-printing="letter"] .fam-letter:last-of-type {
    break-after: auto;
  }
}

/* ── Passport · Living Language Portfolio ─────────────────────────────────── */
.lp {
  margin: var(--s-5) 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow), var(--edge-light);
}
.lp-head h2 {
  margin: 0 0 var(--s-2);
}
.lp .eyebrow {
  color: var(--sage-900);
}
.lp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.lp-card {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.lp-card h3 {
  margin: 0 0 var(--s-3);
}
.lp-history {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-history li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
}
.lp-history li:first-child {
  border-top: 0;
}
.lp-history-ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--room);
  color: var(--on-brand);
}
.lp-history-text {
  display: grid;
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.lp-steps li {
  display: grid;
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--surface-2);
  font-weight: 700;
}
.lp-steps li.is-started {
  border-top-color: var(--copper-500);
}
.lp-steps li.is-done {
  border-top-color: var(--sage-500);
}
.lp-draft {
  margin-top: var(--s-4);
}
.lp-draft h4 {
  margin: 0 0 var(--s-2);
  font-size: 1rem;
}
.lp-draft-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.lp-draft-pair.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.lp-draft figure {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(1.7rem - 1px), var(--status-warning-border) calc(1.7rem - 1px) 1.7rem),
    var(--ivory);
  border: 1px solid var(--status-warning-border);
}
.lp-draft figcaption {
  color: var(--writing-ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.lp-draft figure p {
  margin: var(--s-2) 0 0;
  line-height: 1.7rem;
  white-space: pre-wrap;
}
.lp-next {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--sage-200);
  color: var(--sage-900);
}
.lp-next h3 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 var(--s-2);
}
.lp-next p {
  margin: 0 0 var(--s-2);
}
.lp-next a {
  color: var(--sage-900);
  font-weight: 700;
}
.lp-next .fine {
  color: var(--sage-900);
}
@media (max-width: 900px) {
  .lp-grid,
  .lp-draft-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Growth shields: five per skill, named in words, never numbered */
.shield-board {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.shield-row {
  border: 1px solid var(--line);
  border-top: 3px solid var(--room);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: var(--room-soft);
  box-shadow: var(--edge-light);
}
.shield-row h3 {
  color: var(--room-ink);
}
.shield-row h3 {
  margin: 0 0 0.375rem;
}
.shield-set {
  display: flex;
  gap: 0.25rem;
  margin: 0;
}
.shield {
  color: color-mix(in srgb, var(--room) 55%, var(--surface));
  inline-size: 1.75rem;
}
.shield.is-earned {
  color: var(--room);
}
.shield-ico {
  inline-size: 100%;
  block-size: auto;
}
.growth-shields.is-large .shield {
  inline-size: 2.5rem;
}
.shield-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
}
.shield-names .sticker {
  border-radius: var(--radius-sm);
  padding: 0.125rem 0.625rem;
  background: var(--acc-surface-2, var(--status-warning-bg));
  font-weight: 600;
}

/* Passport culture cards and Trip journal (/passport/journal) */
.journey-cardline { margin: 0; }
.journey-cardline a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; color: var(--ink); font-weight: 700; }
.tj-page { display: grid; gap: var(--s-4); }
.tj-head .row-actions .btn { min-height: 44px; }
.tj-country h3 { margin: var(--s-3) 0 var(--s-2); }
.tj-cards, .tj-entries { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tj-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tj-card { padding: var(--s-3); border: 1px solid var(--line); border-left: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); overflow-wrap: anywhere; }
.tj-card h4 { margin: 0 0 var(--s-1); }
.tj-card p { margin: 0 0 var(--s-2); line-height: 1.5; }
.tj-card.is-locked { border-left-color: var(--accent); border-style: dashed; }
.tj-ask { font-style: italic; }
.tj-entry { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tj-stop { margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.tj-entry input { width: 100%; min-height: 44px; }
.tj-print-line { display: none; }
@media print {
  .tj-entry input, .tj-entry .field > span { display: none; }
  .tj-print-line { display: block; min-height: 1.6em; margin: 0; border-bottom: 1px solid #24323f; }
  .tj-print-line::before { content: "I learned / Aprendí: "; font-weight: 700; }
  .tj-card, .tj-entry { break-inside: avoid; box-shadow: none; }
}

/* Road to ACCESS: offline week pack (src/road-offline.js) */
.rd-offline { margin-top: var(--s-4); box-shadow: none; }
.rd-offline .row-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rd-offline .btn { min-height: 44px; }
.rd-offline-bar { width: 100%; height: 0.75rem; accent-color: var(--teal); }

/* Phones: three stat tiles side by side squeezed "Stamps" into its number; one per row keeps label, number and
   note readable. */
@media (max-width: 559px) {
  .pass-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pass-journey-summary {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  border-top: 1px solid var(--border-subtle);
}
.pass-journey-head {
  margin-bottom: var(--s-3);
}
.pass-journey-head h2 {
  margin: 0 0 0.2rem;
}
.pass-journey-head .fine {
  margin: 0;
}
.pass-journey-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--s-3);
}
.pass-journey-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.pass-journey-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.05rem;
}
.pass-journey-card p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.45;
  flex: 1 1 auto;
}
.pass-journey-card .btn {
  align-self: flex-start;
}

/* /access-practice-lab/family.css */
/* ACCESS Practice Lab — family pages (/family, /family/start, practice, progress, help, save)
   and the Help My Child panel on activities. Tokens come from ds.css. */

/* ── shared family bits ─────────────────────────────────────────────────── */
.fam-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-6) 0 var(--s-5);
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.fam-subnav a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: var(--s-1) var(--s-4);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}
.fam-subnav a:hover {
  background: var(--surface-2);
}
.fam-subnav a[aria-current="page"] {
  background: var(--brand);
  color: var(--on-brand);
}
.fam-subnav .ico {
  width: 1.15rem;
  height: 1.15rem;
}
.fam-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.fam-how {
  font-weight: 700;
  color: var(--brand-ink);
  padding: var(--s-2);
}
.fam-lang {
  margin-top: var(--s-4);
}
.fam-lang-label {
  margin: 0 0 var(--s-2);
  font-weight: 700;
  color: var(--ink);
}
.fam-lang .fine,
.fam-hero .fine {
  margin-top: var(--s-2);
}
.fam-status,
.fam-copy-status {
  min-height: 1.5rem;
  margin: var(--s-3) 0 0;
  font-weight: 700;
  color: var(--reading-ink);
}
.fam-warn {
  border-color: var(--wrong);
  background: var(--wrong-soft);
  color: var(--ink);
}
.fam-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-ink);
}

/* ── home ───────────────────────────────────────────────────────────────── */
.fam-steps-intro,
.fam-skills,
.fam-tips,
.fam-more {
  margin-top: var(--s-7);
}
.fam-steps-intro h2,
.fam-tips h2,
.fam-more h2,
.fam-reco h2,
.fam-preview h2 {
  margin-top: 0;
}
.fam-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.fam-three li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fam-three h3 {
  margin: 0 0 var(--s-1);
  font-size: 1.125rem;
}
.fam-three p {
  margin: 0;
  color: var(--ink-2);
}
.fam-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.fam-grade-line {
  margin: var(--s-4) 0 0;
}
.fam-skill-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}
.fam-skill-cards li {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}
.fam-skill-cards .d-listening {
  --room: var(--listening);
}
.fam-skill-cards .d-reading {
  --room: var(--reading);
}
.fam-skill-cards .d-speaking {
  --room: var(--speaking);
}
.fam-skill-cards .d-writing {
  --room: var(--writing);
}
.fam-skill-cards img {
  width: 100%;
  height: auto;
  background: var(--surface-2);
}
.fam-skill-cards li > div {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4);
}
.fam-skill-cards h3 {
  margin: 0;
}
.fam-skill-cards p {
  margin: 0;
}
.fam-reco {
  margin-top: var(--s-7);
}
.fam-basis {
  margin: 0 0 var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
}
.fam-alt {
  display: inline-block;
  margin-left: var(--s-3);
  padding: var(--s-3) var(--s-2);
  font-weight: 700;
}
.fam-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}
.fam-tip-grid li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fam-tip-grid h3 {
  margin: 0 0 var(--s-1);
  font-size: 1.0625rem;
}
.fam-tip-grid p {
  margin: 0;
  color: var(--ink-2);
}
.fam-preview {
  margin-top: var(--s-7);
}
.fam-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.fam-mini-stats li {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.fam-mini-stats strong {
  font: 650 1.75rem/1 var(--font-display);
}
.fam-mini-stats span {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.fam-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.fam-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* ── setup ──────────────────────────────────────────────────────────────── */
.fam-setup,
.fam-plan,
.fam-help,
.fam-quick,
.fam-walk,
.fam-save {
  max-width: 56rem;
  margin-inline: auto;
}
.fam-save,
.fam-quick,
.fam-walk {
  margin-top: var(--s-5);
}
.fam-step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-4) 0;
  font-weight: 700;
}
.fam-step .bar {
  flex: 1;
  max-width: 16rem;
}
.fam-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.lang-switch-large {
  flex-wrap: wrap;
  max-width: 100%;
  border-radius: var(--radius);
}
.lang-switch-large .lang-btn {
  white-space: normal;
}
.fam-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.fam-choice-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fam-choice {
  display: grid;
  gap: var(--s-1);
  min-height: 4.5rem;
  padding: var(--s-4);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem var(--font);
  text-align: left;
  cursor: pointer;
}
.fam-choice strong {
  font-size: 1.125rem;
}
.fam-choice span {
  color: var(--ink-2);
}
.fam-choice:hover {
  border-color: var(--brand);
}
.fam-choice[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.fam-setup-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.fam-summary {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0;
}
.fam-summary > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.fam-summary dt {
  font-weight: 700;
}
.fam-summary dd {
  margin: 0;
}

/* ── planner ────────────────────────────────────────────────────────────── */
.fam-plan-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4);
  margin: var(--s-4) 0;
}
.fam-sessions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}
.fam-session {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fam-session > div {
  min-width: 0;
}
.fam-session h3 {
  margin: 0 0 var(--s-1);
  font-size: 1.0625rem;
}
.fam-session p {
  margin: 0 0 var(--s-2);
}
.fam-finder {
  max-width: 56rem;
  margin: var(--s-6) auto 0;
}

/* ── progress ───────────────────────────────────────────────────────────── */
.fam-prog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
.fam-prog-grid .panel h2 {
  margin-top: 0;
}
.fam-lines {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding-left: 1.25rem;
}
.fam-skill-bars {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fam-skill-bars li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.fam-skill-bars li > div {
  flex: 1;
  display: grid;
  gap: var(--s-1);
}
.fam-skill-bars .bar > i {
  background: var(--room, var(--brand));
}
.fam-skill-bars .d-listening {
  --room: var(--listening);
}
.fam-skill-bars .d-reading {
  --room: var(--reading);
}
.fam-skill-bars .d-speaking {
  --room: var(--speaking);
}
.fam-skill-bars .d-writing {
  --room: var(--writing);
}
.fam-measures {
  grid-column: 1 / -1;
}
.fam-measures dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
}
.fam-measures dt {
  font-weight: 700;
}
.fam-measures dd {
  margin: 0;
  color: var(--ink-2);
}

/* ── help + save ────────────────────────────────────────────────────────── */
.fam-help-cards {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}
.fam-help-cards details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fam-help-cards summary {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.5rem;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
}
.fam-help-cards summary::-webkit-details-marker {
  display: none;
}
.fam-help-cards summary strong {
  display: block;
}
.fam-help-cards .fam-sum {
  display: block;
  color: var(--ink-2);
}
.fam-help-cards ol {
  margin: 0;
  padding: 0 var(--s-5) var(--s-4) 3.25rem;
  display: grid;
  gap: var(--s-2);
}
.fam-search {
  margin-top: var(--s-4);
}
.fam-search input {
  width: 100%;
  min-height: 2.75rem;
  font: 400 1rem var(--font);
}
.fam-none {
  padding: var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.fam-code-box textarea,
.fam-save textarea {
  width: 100%;
  font: 400 0.9375rem var(--font);
}
body.printing-quickstart .lab-top,
body.printing-quickstart .lab-footer,
body.printing-quickstart .fam-help,
body.printing-quickstart .fam-walk,
body.printing-quickstart .fam-subnav,
body.printing-quickstart #labLangBanner {
  display: none !important;
}

/* ── Help My Child (activities) ─────────────────────────────────────────── */
.copilot {
  margin: var(--s-4) 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.copilot > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
  cursor: pointer;
}
.copilot-title {
  color: var(--ink);
}
.copilot > summary small {
  color: var(--ink-2);
  font-weight: 400;
}
.copilot-body {
  display: grid;
  gap: var(--s-4);
  padding: 0 var(--s-4) var(--s-4);
}
.copilot-scope {
  margin: 0;
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}
.copilot-phase h3 {
  margin: 0 0 var(--s-2);
  font-size: 1.0625rem;
}
.copilot-phase ul {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.copilot-phase li {
  padding-left: var(--s-3);
  border-left: 1px solid var(--border-strong);
}
.directions-es {
  margin-top: var(--s-2);
}
.directions .ghost {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .fam-skill-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fam-three,
  .fam-tip-grid {
    grid-template-columns: 1fr;
  }
  .fam-prog-grid,
  .fam-sessions,
  .fam-measures dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .fam-skill-cards,
  .fam-choice-grid,
  .fam-choice-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .fam-subnav {
    border-radius: var(--radius);
  }
  .fam-subnav a {
    flex: 1 1 calc(50% - var(--s-2));
    justify-content: center;
  }
  .fam-summary > div {
    grid-template-columns: 1fr;
  }
  .fam-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
@media print {
  .fam-subnav,
  .fam-cta,
  .copilot {
    display: none;
  }
}

/* ── engagement ─────────────────────────────────────────────────────────── */
.fam-recog {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.fam-recog li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.fam-chal {
  margin-top: var(--s-7);
}
.fam-chal h2 {
  margin-top: 0;
}
.fam-chal-prompt {
  padding: var(--s-3);
  border-left: 1px solid var(--border-strong);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.fam-done {
  margin-top: var(--s-5);
  border-color: var(--right);
  background: var(--right-soft);
}
.fam-done h2 {
  margin-top: 0;
  color: var(--right);
}

/* Optional family activities, local encouragement, and reminders */
.fam-quest, .fam-encourage-settings, .fam-reminders, .fam-encouragement {
  margin-block: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--fam-line, var(--border-subtle));
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.fam-quest-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.fam-quest-roles article { padding: 1rem; border-radius: var(--radius-md); background: var(--bg-subtle); }
.fam-quest-roles h3 { margin-top: 0; }
.fam-quest .fam-cta, .fam-reminders .fam-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.fam-reminders fieldset { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-block: 1rem; border: 0; padding: 0; }
.fam-reminders fieldset label, .fam-reminders .check-row { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.fam-reminders input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--teal); }
.fam-reminders .field { max-width: 20rem; }
.fam-encouragement { border-inline-start: 1px solid var(--border-strong); }
.fam-encouragement p:not(.eyebrow) { font-size: 1.15rem; font-weight: 650; }
@media (max-width: 640px) {
  .fam-quest-roles { grid-template-columns: 1fr; }
  .fam-quest .fam-cta > .btn, .fam-reminders .fam-cta > .btn { width: 100%; }
}
@media print {
  body[data-lab-view="family"] #app > :not(.fam-quest) { display: none !important; }
  body[data-lab-view="family"] .fam-more, body[data-lab-view="family"] .fam-skills,
  body[data-lab-view="family"] .fam-tips, body[data-lab-view="family"] .fam-reco,
  body[data-lab-view="family"] .fam-reminders, body[data-lab-view="family"] .fam-encourage-settings { display: none !important; }
  body[data-lab-view="family"] .fam-quest { break-inside: avoid; border: 2px solid #333; }
}

.fam-trip {
  display: grid;
  gap: var(--s-3);
}
.trip-route {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-2);
  max-width: 24rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trip-route li {
  aspect-ratio: 1;
  border: 3px solid var(--line-strong);
  border-radius: 50%;
}
.trip-route li.on {
  background: var(--ink);
  border-color: var(--ink);
}
.trip-route li.now:not(.on) {
  border-color: var(--ink);
}
.trip-steps {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.trip-steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--s-3);
  align-items: baseline;
}
.trip-pick .band-btn {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
}

/* ── family journey (Welcome > Understand > Choose > Practice > Review > Plan) ─────────────── */
.fam-journey {
  margin: var(--s-4) 0;
}
.fam-journey ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fam-journey a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.35rem 1rem 0.35rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.fam-journey .is-current a {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.fam-journey .is-done a {
  background: var(--right-soft);
}
.fam-j-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.9375rem;
}
.fam-j-num .ico {
  width: 1.1rem;
  height: 1.1rem;
}
@media (max-width: 40rem) {
  .fam-journey ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fam-journey a {
    width: 100%;
  }
}
/* The smallest phones (and large text) cannot fit "Understand ACCESS / Entender ACCESS" in half the screen. */
@media (max-width: 24rem) {
  .fam-journey ol {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fam-u-card {
  margin: var(--s-5) 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.fam-u-card p {
  max-width: var(--measure);
}
.fam-u-skills {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.fam-u-skills li {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-left: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--room-soft);
}
.fam-u-skills h3 {
  margin: 0 0 var(--s-2);
  color: var(--room-ink);
}

/* ── Four Primary Family Actions (src/family/hub.js) ───────────────────── */
.fam-primary-doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
@media (max-width: 899px) {
  .fam-primary-doors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .fam-primary-doors {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fam-door-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 4.5rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.fam-door-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.fam-door-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.fam-door-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.fam-door-card > span:last-child {
  display: grid;
  gap: 0.2rem;
}
.fam-door-card strong {
  font-size: 1.05rem;
}
.fam-door-card > span:last-child > span {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.35;
}
.family-today { max-width: 58rem; margin-inline: auto; }
.family-today .panel { margin-block: var(--s-4); }
.today-words { list-style: none; padding: 0; }
.today-words li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.today-words label { display: flex; align-items: center; gap: var(--s-2); }
.today-words input { width: 1.25rem; height: 1.25rem; }
.today-week li { margin-block: var(--s-2); }
.family-today-print ol { list-style: none; padding: 0; }
.family-today-print li { border: 1px solid var(--border-control); padding: .5rem; break-inside: avoid; }
@media print { .family-today-print li { min-height: 4rem; } }

/* /access-practice-lab/acc.css */
/* ACCESS ecosystem — enterprise design layer.
   One token set (--acc-*) shared by every ACCESS route: the Practice Lab, the Teacher Hub, the Family
   Expedition tour and the Side Quest expedition. Loaded AFTER ds.css on pages that have it; standalone pages
   load it with the self-hosted fonts below. Components added by the assessment engine, audio engine, storage
   status and reports live in acc-engine.css and only read these tokens.
   Rules: text 4.5:1, non-text 3:1, targets 48px, visible focus, no motion beyond state changes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-521e24d1.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-1dc044f4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-521e24d1.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-1dc044f4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-521e24d1.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-1dc044f4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-7eed183e.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-340e696a.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-7eed183e.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-340e696a.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-e59d136b.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-069be307.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-e59d136b.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-069be307.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-09a38d7d.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-6e93c7de.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-634333bb.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-beaf4e42.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-634333bb.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-beaf4e42.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Atkinson Hyperlegible stays declared only as the opt-in reading-support face (the dyslexia option). */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-0aa3443e.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-ef295152.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* core palette (the contract; tools/access-acc-foundation.test.mjs pins these values) */
  --acc-slate: #0f172a;
  --acc-canvas: #f8fafc;
  --acc-border: #cbd5e1;
  --acc-focus: #1d63ed;
  --acc-success: #15803d;
  --acc-error: #dc2626;
  --acc-highlight-yellow: #fef08a;
  --acc-highlight-blue: #bae6fd;
  --acc-highlight-green: #bbf7d0;

  /* surfaces */
  --acc-surface: #ffffff;
  --acc-surface-raised: #ffffff;
  --acc-surface-sunken: #f1f5f9;
  --acc-border-strong: #94a3b8; /* 2.56:1 on white: decoration only; control borders use --acc-control-border */
  --acc-control-border: #64748b; /* 4.76:1 on white: meets 3:1 for UI components */

  /* text */
  --acc-text: var(--acc-slate);
  --acc-text-muted: #475569; /* 7.58:1 on white */
  --acc-text-subtle: #55657a; /* 5.9:1 on white, 5.5:1 on canvas */
  --acc-text-inverse: #ffffff;
  --acc-link: #1649b8;

  /* controls */
  --acc-primary: #0f2c47;
  --acc-primary-hover: #061626;
  --acc-on-primary: #ffffff;
  --acc-disabled-bg: #e2e8f0;
  --acc-disabled-text: #64748b;
  --acc-target: 3rem; /* 48px minimum interactive target */
  --acc-ring: 0 0 0 3px #fff, 0 0 0 6px var(--acc-focus);

  /* feedback */
  --acc-success-soft: #dcfce7;
  --acc-error-soft: #fee2e2;
  --acc-error-ink: #b91c1c; /* error text on the soft tint (5.4:1); --acc-error itself is for borders and text on white */
  --acc-warn: #92400e;
  --acc-warn-soft: #fef3c7;
  --acc-info: #1649b8;
  --acc-info-soft: #e0ecff;

  /* domain identities (fill takes white text, ink takes white background) */
  --acc-d-listening: #075568;
  --acc-d-listening-soft: #e2f3f0;
  --acc-d-reading: #2e4a94;
  --acc-d-reading-soft: #eceef8;
  --acc-d-speaking: #8a3a5c;
  --acc-d-speaking-soft: #f8ebf0;
  --acc-d-writing: #9a4a26;
  --acc-d-writing-soft: #fbefe3;

  /* spacing, radius, elevation */
  --acc-space-1: 0.25rem;
  --acc-space-2: 0.5rem;
  --acc-space-3: 0.75rem;
  --acc-space-4: 1rem;
  --acc-space-5: 1.5rem;
  --acc-space-6: 2rem;
  --acc-space-7: 3rem;
  --acc-radius-sm: var(--radius-sm, 6px);
  --acc-radius: var(--radius-md, 10px);
  --acc-radius-lg: var(--radius-lg, 14px);
  --acc-elev-1: var(--shadow-card, 0 1px 2px rgb(24 34 48 / 4%), 0 1px 3px rgb(24 34 48 / 3%));
  --acc-elev-2: var(--shadow-elevated, 0 4px 12px rgb(24 34 48 / 6%));
  --acc-elev-3: var(--shadow-elevated, 0 4px 12px rgb(24 34 48 / 6%));

  /* type: Inter for UI and assessment content, Plus Jakarta Sans for headings; ds.css supplies both on lab pages */
  --acc-font:
    var(--font, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue",
    Arial, sans-serif;
  --acc-font-display:
    var(--font-display, "Plus Jakarta Sans"), "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --acc-measure: 68ch;
  --acc-zoom: 1; /* assessment magnifier (set by ACCESS_Toolbar); reflows text, never transforms */
}

/* Bridge: the lab's older tokens (ds.css) resolve to the ecosystem palette, so every legacy screen
   shares one canvas, ink, border and focus colour without being rewritten. */
:root {
  --bg: var(--bg-canvas, var(--acc-canvas));
  --ink: var(--text-primary, var(--acc-slate));
  --line: var(--border-subtle, var(--acc-border));
  --focus: var(--brand-primary, var(--acc-focus));
}

/* ── standalone page base (pages that do not load ds.css) ─────────────────────── */
.acc-page {
  margin: 0;
  background: var(--acc-canvas);
  color: var(--acc-text);
  font: 400 1.0625rem/1.6 var(--acc-font);
  -webkit-font-smoothing: antialiased;
}
.acc-page h1,
.acc-page h2 {
  font-family: var(--acc-font-display);
}

/* ── focus, targets, motion ────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--acc-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--surface);
}
.acc-eco :focus-visible,
.acc-footer :focus-visible {
  box-shadow: none;
}
.btn,
.ghost,
.chip,
.cat-chip,
.btn.small {
  min-height: var(--acc-target);
}
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--acc-space-2);
  min-height: var(--acc-target);
  min-width: var(--acc-target);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--acc-control-border);
  border-radius: var(--acc-radius);
  background: var(--acc-surface);
  color: var(--acc-text);
  font: 700 1rem/1.2 var(--acc-font);
  text-decoration: none;
  cursor: pointer;
}
.acc-btn:hover {
  background: var(--acc-surface-sunken);
}
.acc-btn[aria-pressed="true"],
.acc-btn.is-on {
  background: var(--acc-primary);
  border-color: var(--acc-primary);
  color: var(--acc-on-primary);
}
.acc-btn.primary {
  background: var(--acc-primary);
  border-color: var(--acc-primary);
  color: var(--acc-on-primary);
}
.acc-btn.primary:hover {
  background: var(--acc-primary-hover);
}
.acc-btn:disabled,
.acc-btn[aria-disabled="true"] {
  background: var(--acc-disabled-bg);
  border-color: var(--acc-border);
  color: var(--acc-disabled-text);
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── ecosystem bar: one header across every ACCESS route ───────────────────────── */
.acc-eco {
  position: relative;
  z-index: 40;
  background: var(--acc-slate);
  color: var(--acc-text-inverse);
  font: 400 0.9375rem/1.3 var(--acc-font);
}
.acc-eco-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--acc-space-1) var(--acc-space-4);
  margin: 0 auto;
  padding: var(--acc-space-1) clamp(1rem, 2.6vw, 2.4rem);
}
.acc-eco-brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--acc-target);
  gap: var(--acc-space-2);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}
.acc-eco-brand small {
  font-weight: 400;
  color: var(--on-brand);
}
.acc-eco-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--acc-space-1);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.acc-eco-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--acc-target);
  padding: 0 var(--acc-space-3);
  border-radius: var(--acc-radius-sm);
  color: var(--on-brand);
  text-decoration: none;
}
.acc-eco-nav a:hover {
  background: color-mix(in srgb, var(--on-brand) 12%, transparent);
  color: var(--on-brand);
}
.acc-eco-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--acc-slate);
  font-weight: 700;
}
.acc-eco :focus-visible {
  outline-color: var(--border-subtle);
}
.acc-crumbs-bar {
  background: var(--acc-surface);
  border-bottom: 1px solid var(--acc-border);
}
.acc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--acc-space-1) var(--acc-space-2);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.6vw, 2.4rem);
  color: var(--acc-text-muted);
  font-size: 0.9375rem;
}
.acc-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--acc-link);
}
.acc-crumbs [aria-current="page"] {
  color: var(--acc-text);
  font-weight: 700;
}
.acc-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--acc-space-2);
  list-style: none;
}
.acc-crumbs li + li::before {
  content: "/";
  color: var(--acc-text-subtle);
}
.acc-crumbs ol {
  display: contents;
  margin: 0;
  padding: 0;
}

/* ── footer + disclaimer: practice material, not an official assessment ───────── */
.acc-footer {
  margin-top: var(--acc-space-7);
  background: var(--acc-slate);
  color: var(--on-brand);
  font-size: 0.9375rem;
}
.acc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--acc-space-5) var(--acc-space-4);
  display: grid;
  gap: var(--acc-space-4);
}
.acc-footer a {
  color: var(--on-brand);
}
.acc-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--acc-space-1) var(--acc-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--acc-target);
}
.acc-disclaimer {
  margin: 0;
  max-width: var(--acc-measure);
  color: var(--on-brand);
}
.acc-disclaimer strong {
  color: var(--on-brand);
}

/* ── states: loading, empty, error, success ───────────────────────────────────── */
.acc-state {
  display: flex;
  gap: var(--acc-space-3);
  align-items: flex-start;
  padding: var(--acc-space-4);
  border: 1px solid var(--acc-border);
  border-left-width: 5px;
  border-radius: var(--acc-radius);
  background: var(--acc-surface);
  color: var(--acc-text);
}
.acc-state h2,
.acc-state h3,
.acc-state p {
  margin: 0;
}
.acc-state p + p {
  margin-top: var(--acc-space-1);
}
.acc-state.is-error {
  border-left-color: var(--acc-error);
  background: var(--acc-error-soft);
}
.acc-state.is-success {
  border-left-color: var(--acc-success);
  background: var(--acc-success-soft);
}
.acc-state.is-warn {
  border-left-color: var(--acc-warn);
  background: var(--acc-warn-soft);
}
.acc-state.is-info,
.acc-state.is-loading,
.acc-state.is-empty {
  border-left-color: var(--acc-info);
  background: var(--acc-info-soft);
}
.acc-skeleton {
  display: block;
  min-height: 1rem;
  border-radius: var(--acc-radius-sm);
  background: var(--brand-soft);
  background-size: 200% 100%;
  animation: acc-shimmer 1.4s linear infinite;
}
@keyframes acc-shimmer {
  to {
    background-position: -200% 0;
  }
}
.acc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .acc-eco,
  .acc-crumbs-bar {
    display: none;
  }
  .acc-footer {
    background: none;
    color: #000;
  }
  .acc-footer a,
  .acc-disclaimer,
  .acc-disclaimer strong {
    color: #000;
  }
}

/* ── standalone ACCESS pages share the ecosystem palette and face ──────────────────
   The tour, Side Quest and Family Adventure pages carry their own inline palettes; body-level custom
   properties win over their :root ones, so one block aligns all three without rewriting their markup. */
body[data-acc-section] {
  --navy: var(--acc-primary);
  --ink: var(--acc-slate);
  --muted: var(--acc-text-muted);
  --line: var(--acc-border);
  --paper: var(--acc-canvas);
  --sky: var(--acc-canvas);
  --card: var(--acc-surface);
  --surface: var(--acc-surface);
  --teal: var(--acc-d-reading);
  --accent: var(--acc-link);
  --blue: var(--acc-link);
  --tint: var(--acc-info-soft);
  --gold: var(--status-warning-border);
  font-family: var(--acc-font);
}
body[data-acc-section] h1,
body[data-acc-section] h2 {
  font-family: var(--acc-font-display);
}
body[data-acc-section] :focus-visible {
  outline: 3px solid var(--acc-focus);
  outline-offset: 3px;
}
body[data-acc-section] .acc-footer {
  display: block;
  padding: 0;
  max-width: none;
  font-size: 0.9375rem;
}

body[data-acc-section] {
  margin: 0;
}
.lab-top .lab-brand {
  min-height: var(--acc-target);
}
/* Phones: the ecosystem bar is one scrolling row of 48px links; the page's own header names the page. */
@media (max-width: 640px) {
  .acc-eco-brand {
    display: none;
  }
  .acc-eco-inner {
    padding-block: 0;
  }
  .acc-eco nav {
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .acc-eco-nav {
    flex-wrap: nowrap;
    margin: 0;
    white-space: nowrap;
  }
}
body[data-acc-section] a.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--acc-target);
}

/* Lab chrome targets: 48px. */
.lang-btn,
.room-link,
.footer-links a {
  min-height: var(--acc-target);
}
.lang-btn {
  min-width: var(--acc-target);
}
.footer-links a,
.session-list a,
.window-card a {
  display: flex;
  align-items: center;
}
.session-list a,
.window-card a {
  min-height: var(--acc-target);
}
.session-list li > span {
  display: block;
}
.session-list li a,
.room-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--acc-target);
}
.lab-top .lang-btn,
.lang-switch .lang-btn {
  min-width: var(--acc-target);
  flex-shrink: 0;
}
.plan-dot + span > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--acc-target);
}
.fam-how {
  min-height: var(--acc-target);
}
input[type="time"],
input[type="date"],
input[type="text"],
input[type="search"],
select {
  min-height: var(--acc-target);
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  min-height: var(--acc-target);
}
/* Layout default only: zero specificity, so a component that lays out its own choice card (the test
   mode cards, answer cards) keeps its grid instead of being forced into one inline row. */
:where(label:has(> input[type="checkbox"]), label:has(> input[type="radio"])) {
  display: inline-flex;
  align-items: center;
  gap: var(--acc-space-2);
}

/* No Spanish voice on this device: Spanish audio buttons step aside; the Spanish text stays on screen. */
:root[data-no-es-voice] [data-say-es] {
  display: none;
}

/* /access-practice-lab/experience.css */
/* ACCESS Practice Lab — the connective experience layer: Daily Warm-Up, search and command palette, portfolio,
   collection book and the shared page-level states (loading, empty, error, toast). Loads after ds.css; uses only
   ds.css tokens, never redefines one. Sections: 1 states · 2 warm-up · 3 search · 4 portfolio · 5 collection · 6 print. */

/* ── 1 · shared states: loading skeleton, empty, error, toast ───────────────────────────── */
.route-loading {
  display: grid;
  gap: var(--s-4);
  min-height: 60vh;
  align-content: start;
}
.route-loading .skeleton {
  height: 1.1rem;
  max-width: 100%;
}
.route-loading .skeleton.is-title {
  height: 2.2rem;
  width: min(26rem, 70%);
}
.route-loading .skeleton.is-block {
  height: 9rem;
  border-radius: var(--r-lg);
}
.route-loading .skeleton.is-line {
  width: min(44rem, 90%);
}
.route-loading .skeleton.is-short {
  width: min(22rem, 55%);
}
.error-panel .btn + .btn {
  margin-inline-start: var(--s-2);
}
.toast {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  pointer-events: auto;
}
.toast[hidden] {
  display: none;
}
.toast[data-tone="success"] {
  background: var(--sage-900);
}
.toast[data-tone="warn"] {
  background: var(--hint);
}
.toast .ico {
  flex: none;
}
.toast-close {
  flex: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.6rem -0.9rem -0.6rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ── 2 · Daily Language Warm-Up ─────────────────────────────────────────────────────────── */
.wu-page {
  display: grid;
  gap: var(--s-4);
  max-width: 62rem;
  margin-inline: auto;
}
.wu-head h1 {
  margin: 0 0 var(--s-2);
}
.wu-head .lead {
  margin-bottom: var(--s-3);
}
.wu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.wu-steps {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wu-step {
  margin: 0;
  border-inline-start: 1px solid var(--border-strong);
}
.wu-step.is-done {
  background: var(--room-soft);
}
.wu-step-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-3);
}
.wu-step-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--room-ink);
}
.wu-step-n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--room);
  color: var(--on-brand);
  font-weight: 700;
}
.wu-done {
  margin-inline-start: auto;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--room);
  color: var(--room-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}
.wu-word {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.wu-figure {
  margin: 0;
}
.wu-art {
  display: block;
  width: 100%;
  height: auto;
}
.wu-figure figcaption {
  margin-top: var(--s-2);
}
.wu-the-word {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
}
.wu-es {
  margin: var(--s-2) 0;
  font-size: 1.2rem;
  color: var(--reading-ink);
}
.wu-def,
.wu-ex {
  margin: var(--s-2) 0;
  font-size: 1.1rem;
}
.wu-q {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  border: 0;
}
.wu-q legend {
  margin-bottom: var(--s-2);
  padding: 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.wu-opt {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  min-height: var(--target);
  padding: var(--s-2) var(--s-4);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.wu-opt input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  accent-color: var(--room);
}
.wu-opt.is-picked {
  border-color: var(--room);
  background: var(--room-soft);
}
.wu-opt.is-right {
  border-color: var(--right);
}
.feedback-line {
  min-height: 1.5rem;
  margin: var(--s-3) 0 0;
  font-weight: 700;
  color: var(--room-ink);
}
.wu-support {
  margin-top: var(--s-3);
}
.wu-frame {
  display: inline-block;
  margin: var(--s-2) 0 var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--room-soft);
  border: 1px dashed var(--room);
  font-size: 1.2rem;
  font-weight: 700;
}
.wu-text {
  width: 100%;
  min-height: 6rem;
  font-size: 1.1rem;
  line-height: 1.5;
}
.wu-saved {
  color: var(--right);
  font-weight: 700;
}
.wu-checks {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0;
  padding: 0;
  border: 0;
}
.wu-checks legend {
  padding: 0;
  margin-bottom: var(--s-2);
  font-weight: 700;
}
.wu-check {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  min-height: var(--target);
}
.wu-check input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  accent-color: var(--room);
}
.wu-finish {
  border: 2px solid var(--sage-500);
  background: var(--sage-200);
}
.wu-finish h2 {
  color: var(--sage-900);
}
html[data-no-es-voice] .wu-es-audio {
  display: none;
}
/* the week of seven pips */
.wu-pips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--s-2);
  max-width: 28rem;
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.wu-pip {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
}
.wu-pip-dot {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--on-brand);
}
.wu-pip.is-some .wu-pip-dot {
  background: var(--teal);
  border-color: var(--sage-500);
}
.wu-pip.is-full .wu-pip-dot {
  background: var(--sage-500);
  border-color: var(--sage-500);
}
.wu-pip.is-other .wu-pip-dot {
  border-style: dashed;
  border-color: var(--sage-500);
}
.wu-pip.is-today .wu-pip-dot {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.wu-pip-day {
  font-size: 0.875rem;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .wu-word {
    grid-template-columns: minmax(0, 1fr);
  }
  .wu-figure {
    max-width: 16rem;
  }
}

/* ── 3 · search: header button, palette, results page ───────────────────────────────────── */
.lab-search-btn {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.menu-search {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-bottom: var(--s-3);
}
.menu-search input {
  flex: 1;
  min-width: 0;
}
.sx-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(0.75rem, 8vh, 5rem) var(--s-3) var(--s-3);
  background: color-mix(in srgb, var(--brand) 55%, transparent);
}
.sx-dialog {
  display: grid;
  gap: var(--s-2);
  width: min(40rem, 100%);
  max-height: 84vh;
  overflow: auto;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.sx-field {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  padding-inline: var(--s-3);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.sx-field:focus-within {
  border-color: var(--focus);
}
.sx-input {
  flex: 1;
  min-width: 0;
  min-height: var(--target);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
}
.sx-input:focus-visible {
  outline: none;
  box-shadow: none;
}
.sx-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.sx-scope {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.sx-scope input {
  width: 1.2rem;
  height: 1.2rem;
}
.sx-list,
.sx-cards {
  display: grid;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sx-option a,
.sx-option button {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  width: 100%;
  min-height: 3.25rem;
  padding: var(--s-2) var(--s-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.sx-option[aria-selected="true"] a,
.sx-option[aria-selected="true"] button,
.sx-option a:hover,
.sx-option button:hover {
  background: var(--pearl-blue);
  box-shadow: inset 4px 0 0 var(--brand);
}
.sx-r-main {
  display: grid;
  min-width: 0;
  flex: 1;
}
.sx-r-title {
  font-weight: 700;
}
.sx-r-es,
.sx-r-text {
  overflow: hidden;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sx-r-kind {
  flex: none;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-2);
}
.sx-empty,
.sx-hint {
  margin: var(--s-2) 0 0;
}
mark {
  padding: 0 0.1em;
  border-radius: 3px;
  background: var(--status-warning-bg);
  color: var(--ink);
}
.sx-page {
  display: grid;
  gap: var(--s-3);
  max-width: 52rem;
  margin-inline: auto;
}
.sx-page h1 {
  margin: 0;
}
.sx-filters {
  margin: 0;
}
.sx-card {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.sx-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin: 0 0 var(--s-1);
  font-size: 1.15rem;
}
.sx-card p {
  margin: var(--s-1) 0;
}
.sx-card .sx-r-text {
  white-space: normal;
}
.sx-card-ico {
  flex: none;
  color: var(--room-ink);
}
.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 1500px) {
  .lab-search-btn span {
    display: none;
  }
}
@media (max-width: 640px) {
  .sx-overlay {
    padding-top: var(--s-3);
  }
  .sx-r-kind {
    display: none;
  }
}

/* ── 4 · portfolio and showcase ─────────────────────────────────────────────────────────── */
.pf-page,
.cb-page {
  display: grid;
  gap: var(--s-4);
  max-width: 62rem;
  margin-inline: auto;
}
.pf-head h1,
.cb-head h1 {
  margin: 0 0 var(--s-2);
}
.pf-who {
  margin: 0 0 var(--s-3);
  color: var(--ink-2);
}
.pf-page .panel,
.cb-page .panel {
  margin: 0;
}
.pf-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--s-4);
  margin-top: var(--s-3);
}
.pf-sample h3 {
  margin: 0;
  font-size: 1.15rem;
}
.pf-sample header p {
  margin: var(--s-1) 0 var(--s-2);
}
.pf-text,
.pf-pair p {
  margin: 0;
  padding: var(--s-3);
  border-inline-start: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--writing-soft);
  font-size: 1.05rem;
  white-space: pre-wrap;
}
.pf-pair {
  display: grid;
  gap: var(--s-3);
}
.pf-pair figure {
  margin: 0;
}
.pf-pin {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  min-height: 2.75rem;
}
.pf-pin input {
  width: 1.3rem;
  height: 1.3rem;
}
.pf-empty {
  margin: var(--s-2) 0 0;
  color: var(--ink-2);
}
.pf-more {
  margin-top: var(--s-3);
}
.pf-garden {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.pf-word {
  display: flex;
  gap: var(--s-2);
  align-items: flex-end;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pf-word.s-3 {
  border-color: var(--sage-500);
  background: var(--sage-200);
}
.pf-plant {
  flex: none;
  width: 2.2rem;
  height: 2.4rem;
}
.pf-word-text {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pf-list {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding-inline-start: 1.2rem;
}
.pf-timeline {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.pf-timeline > li {
  padding-inline-start: var(--s-4);
  border-inline-start: 1px solid var(--border-strong);
}
.pf-timeline h3 {
  margin: 0 0 var(--s-1);
  font-size: 1.05rem;
}
.pf-timeline ul {
  margin: 0;
  padding-inline-start: 1.1rem;
}
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.pf-letter {
  border-inline-start: 1px solid var(--border-strong);
}

/* ── 5 · collection book ────────────────────────────────────────────────────────────────── */
/* Scoped to .cb-page: boards.css (Choice Boards) also defines .cb-grid and .cb-badge, and the one-request lab
   bundle loads both sheets on every page, so the unscoped board rules turned this grid into 3 narrow columns. */
.cb-page .cb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.cb-page .cb-badge {
  display: flex;
  color: inherit;
  font-weight: inherit;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.cb-page .cb-badge.is-earned {
  border-style: solid;
  border-color: var(--sage-500);
  background: var(--sage-200);
}
.cb-page .cb-badge h4 {
  margin: 0 0 var(--s-1);
  font-size: 1.05rem;
}
.cb-page .cb-badge p {
  margin: var(--s-1) 0 0;
}
.cb-medal {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-3);
}
.is-earned .cb-medal {
  border-color: var(--sage-900);
  background: var(--sage-900);
  color: var(--on-brand);
}
.cb-medal .ico {
  width: 1.5rem;
  height: 1.5rem;
}
.cb-state {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-2);
}
.is-earned .cb-state {
  color: var(--sage-900);
}
.cb-new {
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-brand);
  font-size: 0.8125rem;
}

/* ── 6 · print: the language portfolio page ─────────────────────────────────────────────── */
@media print {
  .pf-page .panel,
  .cb-page .panel {
    break-inside: avoid;
    border: 1px solid #999;
    box-shadow: none;
  }
  .pf-sample,
  .pf-word,
  .cb-badge {
    break-inside: avoid;
  }
  .pf-head h1 {
    font-size: 2rem;
  }
  .pf-text,
  .pf-pair p {
    background: none;
    border-inline-start: 3px solid #333;
  }
  .wu-step {
    break-inside: avoid;
  }
  .lab-top,
  .toast,
  .sx-overlay,
  #labLive,
  .crumbs {
    display: none !important;
  }
}

/* ── 7 · header: wrap instead of scrolling sideways (140% text, bilingual labels, long Spanish names) ── */
.lab-top {
  flex-wrap: wrap;
  row-gap: var(--s-1);
}
.lab-tools {
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

/* ── 8 · reflow safety: long Spanish words, 140% text and 320px screens never push the page sideways ── */
#app {
  overflow-wrap: break-word;
}
#app :where(.panel, .card, article, section, li, figure, form, fieldset) {
  min-width: 0;
}
#app :where(h1, h2, h3, h4) {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.wu-page > *,
.pf-page > *,
.cb-page > *,
.sx-page > * {
  min-width: 0;
}
.wu-pip-dot {
  width: 100%;
  max-width: 2.5rem;
  height: auto;
  aspect-ratio: 1;
}
.wu-pip-day {
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}
.sx-card-body {
  flex: 1;
  min-width: 0;
}
.sx-card .sx-r-es {
  white-space: normal;
}
#app :where(.aside-card, .ll-portal, .lph-step, .strategy-card, .journey-card, .room-tile) {
  min-width: 0;
  max-width: 100%;
}
.room-aside {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.lph-ruler {
  flex-wrap: wrap;
}
.strategy-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.journey-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.ll-portal-art,
.ll-portal-art > * {
  min-width: 0;
  max-width: 100%;
}
.ll-portal-art svg {
  max-width: 100%;
  height: auto;
}

/* Search stays reachable on phones: the narrow-screen rule that folds other top links into More must not hide it. */
.lab-tools > .top-link.lab-search-btn {
  display: inline-flex;
}
@media (max-width: 1199px) {
  .lab-tools > .top-link.lab-search-btn {
    order: 1;
  }
}
.sx-field .sx-input {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* /access-practice-lab/comfort.css */
/* Reading comfort and keyboard shortcuts.
   Themes only re-point the design tokens defined in ds.css, so every screen that uses a token follows along.
   Text size is the lab's own --lab-scale. Nothing here changes lesson content. */

/* ── themes ─────────────────────────────────────────────────────────────── */
:root[data-comfort-theme="paper"],
html[data-comfort-theme="paper"] body {
  --bg: #f3e9d2;
  --surface: #fbf5e6;
  --surface-2: #f1e6cd;
  --surface-3: #e8dbbd;
  --line: #dccfae;
  --line-strong: #a8946a;
  --ink: #2b2118;
  --ink-2: #3d2f20;
  --ink-3: #54442f;
}
:root[data-comfort-theme="calm"],
html[data-comfort-theme="calm"] body {
  --bg: #e9f0f3;
  --surface: #f6fafb;
  --surface-2: #e3edf1;
  --surface-3: #d6e4ea;
  --line: #cbdbe2;
  --line-strong: #8aa6b3;
  --ink: #10222b;
  --ink-2: #2c4350;
  --ink-3: #455d6a;
}
:root[data-comfort-theme="contrast"],
html[data-comfort-theme="contrast"] body {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --surface-3: #e0e0e0;
  --line: #6b6b6b;
  --line-strong: #000000;
  --ink: #000000;
  --ink-2: #111111;
  --ink-3: #222222;
  --right: #0b4d1e;
  --wrong: #8f0000;
  --focus: #000000;
}
:root[data-comfort-theme="contrast"] :focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}
:root[data-comfort-theme="contrast"] a:not(.btn):not(.top-link) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
html[data-comfort-theme="paper"] body,
html[data-comfort-theme="calm"] body,
html[data-comfort-theme="contrast"] body {
  background: var(--bg);
  color: var(--ink);
}

/* ── spacing (WCAG 1.4.12 text spacing, applied to reading text only) ──── */
html[data-comfort-lh="roomy"] .lab-main :where(p, li, dd, dt, label, td, th, blockquote, figcaption, textarea) {
  line-height: 1.75;
}
html[data-comfort-lh="airy"] .lab-main :where(p, li, dd, dt, label, td, th, blockquote, figcaption, textarea) {
  line-height: 2.05;
}
html[data-comfort-ls="roomy"] .lab-main :where(p, li, dd, dt, label, td, th, blockquote, figcaption, textarea, h1, h2, h3) {
  letter-spacing: 0.035em;
  word-spacing: 0.1em;
}
html[data-comfort-ls="airy"] .lab-main :where(p, li, dd, dt, label, td, th, blockquote, figcaption, textarea, h1, h2, h3) {
  letter-spacing: 0.07em;
  word-spacing: 0.18em;
}

/* ── calm motion ────────────────────────────────────────────────────────── */
html[data-comfort-motion="calm"] *,
html[data-comfort-motion="calm"] *::before,
html[data-comfort-motion="calm"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ── header button ──────────────────────────────────────────────────────── */
.lab-comfort-btn {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.lab-tools > .top-link.lab-comfort-btn {
  display: inline-flex;
}
/* Icon-only header buttons (search and comfort, below 1500px) keep a full-size touch and click target. */
.lab-search-btn,
.lab-comfort-btn {
  justify-content: center;
  min-width: 2.75rem;
}
/* ds.css hides header icons from 1200 to 1399px; these two buttons are icon-only there, so their icon stays. */
.lab-top .lab-tools > .top-link.lab-search-btn > .ico,
.lab-top .lab-tools > .top-link.lab-comfort-btn > .ico {
  display: inline-block;
}
@media (max-width: 1500px) {
  .lab-comfort-btn span {
    display: none;
  }
}
@media (max-width: 1199px) {
  .lab-tools > .top-link.lab-comfort-btn {
    order: 1;
  }
}

/* ── dialogs: comfort sheet and shortcuts ───────────────────────────────── */
.comfort-dialog,
.shortcuts-dialog {
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.comfort-dialog::backdrop,
.shortcuts-dialog::backdrop {
  background: rgb(8 14 37 / 48%);
  backdrop-filter: blur(3px);
}
.comfort-dialog {
  width: min(27rem, 100vw);
  height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  overflow-y: auto;
}
.shortcuts-dialog {
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border-radius: var(--r-lg);
  overflow-y: auto;
}
@keyframes comfort-slide {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
}
@keyframes comfort-pop {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.98);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-comfort-motion="calm"]) .comfort-dialog[open] {
    animation: comfort-slide var(--dur-3, 320ms) var(--ease-out, ease-out);
  }
  html:not([data-comfort-motion="calm"]) .shortcuts-dialog[open] {
    animation: comfort-pop var(--dur-3, 320ms) var(--ease-out, ease-out);
  }
}
.comfort-sheet,
.shortcuts-sheet {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
}
.cm-head {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  justify-content: space-between;
}
.cm-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
}
.cm-kicker {
  margin: 0 0 0.2rem;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cm-close {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.cm-close .ico {
  width: 1.1rem;
  height: 1.1rem;
}
.cm-sample {
  margin: 0;
  padding: var(--s-4);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: calc(1.05rem * var(--lab-scale, 1));
}
html[data-comfort-lh="roomy"] .cm-sample { line-height: 1.75; }
html[data-comfort-lh="airy"] .cm-sample { line-height: 2.05; }
html[data-comfort-ls="roomy"] .cm-sample { letter-spacing: 0.035em; word-spacing: 0.1em; }
html[data-comfort-ls="airy"] .cm-sample { letter-spacing: 0.07em; word-spacing: 0.18em; }
.cm-group {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  border: 0;
}
.cm-group legend {
  margin-bottom: var(--s-2);
  padding: 0;
  font-weight: 700;
}
.cm-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.cm-theme {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: var(--s-3);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.cm-theme small {
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.3;
}
.cm-theme:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}
.cm-theme:has(input:focus-visible),
.cm-opt:has(input:focus-visible),
.cm-switch:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.cm-theme input,
.cm-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.cm-swatch {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.cm-swatch i {
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid rgb(0 0 0 / 25%);
  border-radius: 50%;
}
[data-theme-card="default"] .cm-swatch i:nth-child(1) { background: #f8f5ef; }
[data-theme-card="default"] .cm-swatch i:nth-child(2) { background: #0f2c47; }
[data-theme-card="default"] .cm-swatch i:nth-child(3) { background: #d28b58; }
[data-theme-card="paper"] .cm-swatch i:nth-child(1) { background: #f3e9d2; }
[data-theme-card="paper"] .cm-swatch i:nth-child(2) { background: #2b2118; }
[data-theme-card="paper"] .cm-swatch i:nth-child(3) { background: #a8946a; }
[data-theme-card="calm"] .cm-swatch i:nth-child(1) { background: #e9f0f3; }
[data-theme-card="calm"] .cm-swatch i:nth-child(2) { background: #10222b; }
[data-theme-card="calm"] .cm-swatch i:nth-child(3) { background: #8aa6b3; }
[data-theme-card="contrast"] .cm-swatch i:nth-child(1) { background: #fff; }
[data-theme-card="contrast"] .cm-swatch i:nth-child(2) { background: #000; }
[data-theme-card="contrast"] .cm-swatch i:nth-child(3) { background: #6b6b6b; }
.cm-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--s-2);
}
.cm-opt {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--target);
  padding: 0.4rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
}
.cm-opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
}
.cm-size span:first-of-type {
  line-height: 1;
}
.cm-switches {
  gap: var(--s-2);
}
.cm-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.cm-switch small {
  display: block;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.35;
}
.cm-switch input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  accent-color: var(--brand);
}
.cm-switch:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.cm-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
}
.cm-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* ── reading ruler ──────────────────────────────────────────────────────── */
.comfort-ruler {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
}
.cr-shade {
  position: absolute;
  right: 0;
  left: 0;
  background: rgb(8 14 37 / 46%);
}
.cr-above {
  top: 0;
  height: var(--cr-top, 40vh);
  border-bottom: 2px solid var(--accent);
}
.cr-below {
  top: var(--cr-bottom, 50vh);
  bottom: 0;
  border-top: 2px solid var(--accent);
}
@media print {
  .comfort-ruler,
  .go-hint {
    display: none !important;
  }
}

/* ── shortcuts ──────────────────────────────────────────────────────────── */
.shortcuts-sheet h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.sc-go {
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s-5);
}
.sc-row {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.sc-row dt {
  display: flex;
  flex: none;
  gap: 0.3rem;
  align-items: center;
  min-width: 4.4rem;
  color: var(--ink-3);
  font-size: 0.75rem;
}
.sc-row dd {
  margin: 0;
}
kbd {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font: 700 0.85rem/1.4 var(--font);
  text-align: center;
}
.go-hint {
  position: fixed;
  right: 50%;
  bottom: var(--s-4);
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
  justify-content: center;
  width: min(44rem, calc(100vw - 1.5rem));
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.9rem;
  transform: translateX(50%);
  box-shadow: var(--shadow-float);
}
.go-hint kbd {
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
}
@media (max-width: 560px) {
  .sc-go {
    grid-template-columns: 1fr;
  }
  .cm-themes {
    grid-template-columns: 1fr;
  }
}

/* ── "Read this page" (src/read-page.js) ───────────────────────────────── */
.lab-read-btn {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.lab-tools > .top-link.lab-read-btn {
  display: inline-flex;
}
.lab-top .lab-tools > .top-link.lab-read-btn > .ico {
  display: inline-block;
}
.lab-read-btn[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
/* Icon-only below 1500px like its neighbours; the label stays in the accessibility tree. */
@media (max-width: 1500px) {
  .lab-read-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 1199px) {
  .lab-tools > .top-link.lab-read-btn {
    order: 1;
  }
}

/* ── reading voice panel (src/voice.js) ─────────────────────────────────── */
.vc-list {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vc-row {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 0.25rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md, 0.75rem);
  background: var(--surface);
}
.vc-row:has(input:checked) {
  border-color: var(--brand);
  background: var(--surface-2);
}
.vc-row:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.vc-opt {
  display: flex;
  flex: 1;
  gap: 0.6rem;
  align-items: center;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 600;
}
.vc-opt input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--brand);
}
.vc-hear {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  white-space: nowrap;
}
.voice-chip,
.pg-voice {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 2.75rem;
}
@media (max-width: 420px) {
  .vc-hear span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* /access-practice-lab/wayfinding.css */
/* Wayfinding: the section bar under the header (src/wayfinding.js) and the Explore directory and section hubs
   (src/views/explore.js). Both read src/sitemap.js. Tokens come from ds.css. */

/* ── section bar ─────────────────────────────────────────────────────────── */
.section-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.sb-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0.4rem clamp(1rem, 3vw, 2rem);
}
.sb-where {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
.sb-section {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  color: var(--brand-deep);
  text-decoration: none;
}
.sb-section:hover span {
  text-decoration: underline;
}
.sb-section .ico {
  width: 1.15rem;
  height: 1.15rem;
}
.sb-sep {
  color: var(--ink-3);
}
.sb-skill {
  color: var(--ink-2);
}
.sb-links {
  display: flex;
  flex: 1 1 auto;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.sb-links li {
  flex: none;
  scroll-snap-align: start;
}
.sb-links[data-more-end] {
  mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
}
.sb-links[data-more-start] {
  mask-image: linear-gradient(to right, transparent, #000 3rem);
}
.sb-links[data-more-start][data-more-end] {
  mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.sb-links a,
.sb-all {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sb-links a:hover {
  border-color: var(--line-control);
  background: var(--surface);
}
.sb-links a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.sb-all {
  flex: none;
  color: var(--brand-deep);
}
.sb-all:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .sb-inner {
    flex-wrap: wrap;
    gap: 0 var(--s-2);
    padding-inline: 1rem;
  }
  .sb-where {
    flex: 1 1 0;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 0.95rem;
    white-space: normal;
  }
  .sb-section {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .sb-all {
    margin-inline-start: auto;
    padding-inline: 0.4rem;
  }
  .sb-links {
    order: 3;
    flex-basis: 100%;
  }
}

/* ── Explore directory and section hubs ──────────────────────────────────── */
.xp-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}
.xp-lead {
  max-width: 62ch;
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
  font-size: 1.1rem;
}
.xp-sections {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 var(--s-4);
  padding-bottom: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.xp-sections a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.xp-sections a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.xp-sections a[aria-current="page"] {
  color: var(--brand-deep);
  box-shadow: inset 0 -3px 0 var(--brand);
}
.xp-sections .ico {
  width: 1.1rem;
  height: 1.1rem;
}
.xp-filters {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.xp-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 34rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line-control);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.xp-search:focus-within {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.xp-search .ico {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-3);
}
.xp-search input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.xp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.xp-chips .chip {
  min-height: 2.5rem;
  font-size: 0.925rem;
}
.xp-chips .chip .ico {
  width: 1rem;
  height: 1rem;
}
.xp-count {
  margin: 0 0 var(--s-2);
  color: var(--ink-3);
  font-weight: 600;
}
.xp-group {
  margin-bottom: var(--s-5);
}
.xp-group-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.15rem 1rem;
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.xp-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1.35rem;
}
.xp-group-ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.xp-group-ico .ico {
  width: 1.1rem;
  height: 1.1rem;
}
.xp-group-n {
  min-width: 1.6rem;
  padding: 0 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.xp-group-lead {
  grid-column: 1;
  max-width: 68ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}
.xp-group-all {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.95rem;
  font-weight: 700;
}
.xp-group .xp-grid {
  padding-top: 0.5rem;
}
.xp-band {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 800;
}
.xp-band .ico {
  width: 1rem;
  height: 1rem;
}
.xp-more-filters summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}
.xp-more-filters summary .ico {
  width: 1rem;
  height: 1rem;
}
.xp-more-body {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-1);
}
.xp-recent {
  margin: 0 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.xp-recent-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--s-2);
  font-size: 1.05rem;
}
.xp-recent-title .ico {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--brand);
}
.xp-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xp-recent-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.xp-recent-list a:hover {
  border-color: var(--brand);
}
.xp-recent-list .xp-card-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}
.xp-recent-list .xp-card-ico .ico {
  width: 1rem;
  height: 1rem;
}
.xp-recent-list a > .ico {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
}
@media (max-width: 600px) {
  .xp-group-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .xp-group-all {
    grid-column: 1;
    grid-row: auto;
  }
  .xp-recent-list {
    display: grid;
  }
}
.xp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The card is the list item; its title link stretches over it (::after), so the whole card is one tap target. */
.xp-card {
  position: relative;
  display: flex;
  gap: 0.8rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color 150ms var(--ease-out);
}
.xp-card:hover {
  border-color: var(--brand);
}
.xp-card:has(.xp-card-link:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.xp-card.is-start {
  border-color: var(--brand);
}
.xp-card-link {
  color: inherit;
  text-decoration: none;
}
.xp-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.xp-card-link:focus-visible {
  outline: none;
}
.xp-card:hover .xp-card-link {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.xp-flag {
  position: absolute;
  top: -0.7rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--brand-deep);
  color: var(--on-brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.xp-flag .ico {
  width: 0.85rem;
  height: 0.85rem;
}
.xp-card-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.xp-card-ico .ico {
  width: 1.35rem;
  height: 1.35rem;
}
.xp-card-body {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}
.xp-card-title {
  margin: 0;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}
.xp-card-text {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}
.xp-ext {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.85rem;
}
.xp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.xp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
}
.xp-card[data-kind="practice"] .xp-tag-kind {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.xp-tag-seen {
  background: transparent;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.xp-tag .ico {
  width: 0.8rem;
  height: 0.8rem;
}
.xp-empty {
  padding: var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.menu-group a.menu-all {
  color: var(--brand-deep);
  font-weight: 800;
}
@media (prefers-reduced-motion: reduce) {
  .xp-card {
    transition: none;
  }
  .xp-card:hover {
    transform: none;
  }
}
@media (forced-colors: active) {
  .xp-card:has(.xp-card-link:focus-visible) {
    outline-color: Highlight;
  }
  .xp-flag {
    border: 1px solid CanvasText;
  }
}

/* ── site-map blocks: home "Find your way", teacher and family start pages (src/sitemap-ui.js) ─ */
.sm-tiles,
.sm-audience {
  margin: var(--s-5) 0;
}
.sm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: var(--s-3);
}
.sm-head h2 {
  margin: 0;
}
.sm-all {
  font-weight: 800;
}
.sm-lead {
  max-width: 62ch;
  margin: 0 0 var(--s-3);
  color: var(--ink-2);
}
.sm-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sm-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.sm-tile:hover {
  border-color: var(--brand);
}
.sm-tile:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.sm-tile-ico {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.sm-tile-ico .ico {
  width: 1.35rem;
  height: 1.35rem;
}
.sm-tile-title {
  font-weight: 800;
  font-size: 1.1rem;
}
.sm-tile-text {
  color: var(--ink-2);
  font-size: 0.925rem;
  line-height: 1.4;
}
.sm-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: var(--s-4);
}
.sm-group {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.sm-group h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}
.sm-group h3 .ico {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand);
}
.sm-group ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sm-group li a {
  display: grid;
  gap: 0.1rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}
.sm-group li a:hover {
  background: var(--surface-2);
}
.sm-group li a strong {
  color: var(--brand-deep);
}
.sm-group li a span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* Teachers, Families and Site Guide are equal doors on narrow headers (`.top-teachers`, `.top-family`, `.top-guide`). */
@media (max-width: 1199px) {
  .lab-tools > .top-family,
  .lab-tools > .top-teachers,
  .lab-tools > .top-guide,
  .lab-tools > .top-book {
    flex: 1 1 32%;
    min-width: 7.5rem;
  }
}
/* Tablet widths: 32% plus the row gaps overflows, so the third door wrapped alone and stretched. Zero basis keeps all three on one row. */
@media (min-width: 560px) and (max-width: 959px) {
  .lab-tools > .top-family,
  .lab-tools > .top-teachers,
  .lab-tools > .top-guide,
  .lab-tools > .top-book {
    flex: 1 1 0;
  }
}
@media (max-width: 559px) {
  .lab-tools > .top-family,
  .lab-tools > .top-teachers,
  .lab-tools > .top-guide,
  .lab-tools > .top-book {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
  .lab-utilities {
    order: 3;
  }
}

/* Re-addressed 2026-11-12: the edge pinned the previous build of this file under its new hash (see functions/access-practice-lab/[[path]].js). */

/* ── header grade switch ─────────────────── */
.grade-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.25rem 0 0.8rem;
  border: 2px solid var(--line-strong, var(--line));
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.grade-select:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.grade-select select {
  min-height: 2.5rem;
  padding: 0 1.6rem 0 0.4rem;
  border: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.grade-select select:focus-visible {
  outline: none;
}
@media (max-width: 1199px) {
  .lab-tools .grade-select {
    order: 3;
  }
}
@media (max-width: 559px) {
  .grade-select-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .grade-select {
    padding-inline-start: 0.4rem;
  }
}

/* ── "Back to <Hub>" in the breadcrumb row (src/components.js crumbsHTML, src/audience.js) ──────────── */
.crumbs:has(.crumbs-hub) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.crumbs .crumbs-hub {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.9rem;
}
.crumbs .crumbs-hub:hover,
.crumbs .crumbs-hub:focus-visible {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* /access-practice-lab/registers.css */
/* Audience registers and the compact header. Loads after every screen sheet.
   One design system (ds.css tokens), three deliberate registers set by src/register.js on body[data-lab-register]:
   - student (default): the immersive Living Language Studio atmosphere, unchanged here.
   - teacher: calm professional workspace — flat paper, hairline structure, no grain, restrained colour.
   - family: warm and simple — large calm actions, generous line height; same paper and tokens as the rest.
   Never redefine tokens in a screen sheet; registers only re-point tokens and flatten decoration. */

/* ── header: two calm rows on tablets and desktops ─────────────────────── */
/* Before: the static header shipped nine links, then the shell added the grade, language, search, read-aloud,
   voice, comfort and More controls; the row wrapped into two or three rows of fat pills ~1.5 s after load and
   pushed every page down 100-200 px (CLS 0.17). Now the rows are fixed from first paint: row 1 is the brand
   and the tools, a hairline, row 2 is the site's places as plain publisher-style links. The static markup
   already fills row 2, so the late controls land in row 1 without moving anything. */
@media (min-width: 720px) {
  .lab-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 0.3rem;
    min-height: 0;
    padding-block: 0.4rem 0;
  }
  .lab-brand {
    order: 0;
    flex: 1 1 auto;
    min-height: 3rem;
  }
  .lab-logo {
    width: 2.25rem;
    height: 2.25rem;
  }
  .lab-tools {
    display: contents;
  }
  /* the row break and its hairline */
  .lab-top::after {
    content: "";
    order: 2;
    flex: 0 0 calc(100% + 2 * clamp(1rem, 2.4vw, 1.75rem));
    height: 1px;
    margin: 0.4rem calc(-1 * clamp(1rem, 2.4vw, 1.75rem)) 0;
    background: var(--line);
  }
  .lab-tools > :is(.grade-select, .lang-switch, .lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn, .lab-utilities, .mode-flag) {
    order: 1 !important;
    flex: none !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }
  .lab-tools > .grade-select {
    margin-inline-start: 0.5rem !important;
    min-height: 2.35rem;
    border-width: 1px;
  }
  .lab-tools > .grade-select select {
    min-height: 2.1rem;
  }
  /* first-visit language banner: one slim row under the header, not a second header */
  .lang-banner {
    padding-block: 0.4rem;
    gap: 0.4rem 0.9rem;
  }
  .lang-banner .lang-btn {
    min-height: 2.25rem;
    padding-block: 0.15rem;
    font-size: 0.9rem;
  }
  .lang-banner-skip {
    min-height: 2.25rem;
  }
  .lab-tools > .lang-switch .lang-btn {
    min-height: 2.25rem;
    min-width: 2.4rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.85rem;
  }
  /* row 2: the places */
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    order: 3 !important;
    display: inline-flex !important;
    flex: none !important;
    min-width: 0 !important;
    min-height: 2.75rem;
    margin: 0 !important;
    padding: 0.25rem 0.7rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    justify-content: flex-start;
    color: var(--ink-2);
    font-size: 0.875rem !important;
    font-weight: 600;
    transform: none !important;
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) > span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn):hover {
    color: var(--brand);
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn)[aria-current="page"] {
    color: var(--brand-deep);
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn)[aria-current="page"]::after {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0;
    height: 2px;
    border-radius: 0;
  }
  /* six places, one calm row: the audience doors read as a publisher's section links */
  .lab-top .lab-tools > .top-link.top-aud {
    font-size: 0.9375rem !important;
  }
}
/* Wide screens: the editorial bar is one 64px row, wordmark left, five places and the tools right. */
@media (min-width: 1360px) {
  .lab-top {
    min-height: 4rem;
    padding-block: 0;
    gap: 0 0.25rem;
  }
  .lab-top::after {
    display: none;
  }
  .lab-brand {
    flex: 0 0 auto;
    margin-inline-end: auto;
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    order: 1 !important;
  }
  .lab-tools > :is(.grade-select, .lang-switch, .lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn, .lab-utilities, .mode-flag) {
    order: 2 !important;
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn)[aria-current="page"]::after {
    bottom: 0.2rem;
  }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .lab-wordmark small {
    display: none;
  }
  .lab-wordmark strong {
    font-size: 1.05rem;
  }
  .lab-tools > :is(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    min-width: 2.25rem !important;
    padding-inline: 0.3rem !important;
  }
  .lab-tools > .lang-switch .lang-btn {
    min-width: 2.1rem;
    padding-inline: 0.35rem;
  }
  .lang-banner {
    flex-wrap: nowrap;
    font-size: 0.85rem;
  }
  .lang-banner .lang-btn {
    padding-inline: 0.5rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .lang-banner-skip {
    font-size: 0.8rem;
  }
  .lab-tools > .lab-utilities > summary > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    padding-inline: 0.45rem !important;
    font-size: 0.8125rem !important;
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) > .ico {
    display: none;
  }
}
@media (min-width: 720px) and (max-width: 959px) {
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    padding-inline: 0.32rem !important;
    font-size: 0.78rem !important;
  }
  .lang-banner {
    font-size: 0.875rem;
    column-gap: 0.5rem;
  }
  .lab-top .lab-tools > .top-access-prep .ico {
    display: none;
  }
}
@media (min-width: 720px) and (max-width: 859px) {
  .lab-wordmark strong {
    font-size: 0.95rem;
  }
  .lab-logo {
    width: 1.9rem;
    height: 1.9rem;
  }
  .lab-tools > .grade-select {
    margin-inline-start: 0.2rem !important;
    padding-inline-start: 0.5rem;
  }
  .lab-tools > .grade-select .grade-select-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .lab-tools > .top-link:not(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    padding-inline: 0.22rem !important;
    font-size: 0.74rem !important;
  }
  .lang-banner .lang-btn {
    padding-inline: 0.55rem;
    font-size: 0.85rem;
  }
}

/* ── header: compact on phones and small tablets ───────────────────────── */
/* Three short rows, nothing scrolls sideways: brand with read-aloud, search and More; four principal places in
   one row (Home is the logo and Help is in More); then grade, language, voice and comfort. Not sticky here (the rows cover a
   fifth of a phone screen). The More menu opens as a screen-wide panel under the first row, and no ancestor of it
   carries a mask, filter or transform, so the fixed panel is laid out against the screen, never clipped. */
@media (max-width: 719px) {
  .lab-top {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface);
    gap: 0.4rem 0.3rem;
    min-height: 0;
    padding-block: 0.45rem 0.55rem;
  }
  /* the two row breaks */
  .lab-top::before,
  .lab-top::after {
    content: "";
    flex: 0 0 100%;
    height: 0;
  }
  .lab-top::before {
    order: 2;
  }
  .lab-top::after {
    order: 4;
  }
  .lab-brand {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
  }
  /* the logo alone is the home link on phones; the wordmark stays in the accessible name */
  .lab-brand .lab-wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lab-tools {
    display: contents;
  }
  .lab-top .lab-tools > * {
    flex: none !important;
    margin: 0 !important;
  }
  .lab-top .lab-tools > :is(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn, .lab-utilities) {
    order: 1 !important;
  }
  .lab-top .lab-tools > :is(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn) {
    min-width: 2.75rem !important;
    padding-inline: 0.25rem !important;
  }
  .lab-top .lab-tools > .top-link.top-aud {
    order: 3 !important;
    display: inline-flex !important;
    flex: 1 1 calc(25% - 0.3rem) !important;
    min-width: 0 !important;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.35rem !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
    color: var(--ink);
    font-size: 0.85rem !important;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: normal !important;
  }
  .lab-top .lab-tools > .top-link.top-aud:is(.top-aud-home, .top-aud-help) {
    display: none !important;
  }
  .lab-top .lab-tools > .top-link.top-aud > .ico {
    display: none;
    flex: none;
  }
  .lab-top .lab-tools > .top-link.top-aud > span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
  }
  .lab-top .lab-tools > .top-link.top-aud[aria-current="page"] {
    border-color: var(--brand) !important;
    background: var(--brand-soft) !important;
    color: var(--brand-deep);
  }
  .lab-top .lab-tools > .top-link.top-aud[aria-current="page"]::after {
    display: none;
  }
  @media (max-width: 359px) {
    .lab-top .lab-tools > .top-link.top-aud {
      flex-basis: calc(50% - 0.3rem) !important;
    }
  }
  .lab-top .lab-tools > :is(.grade-select, .lang-switch, .mode-flag) {
    order: 5 !important;
  }
  .lab-top .lab-tools > .lang-switch {
    margin-inline-start: auto !important;
  }
  .lab-top .lab-tools > .grade-select .grade-select-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .lab-top .lab-tools > .lang-switch .lang-btn {
    min-width: 2.4rem;
    padding-inline: 0.4rem;
  }
  .lab-tools > .lab-utilities > summary > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lab-tools > .lab-utilities > summary {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    padding-inline: 0.6rem;
  }
  .lab-tools > .lab-utilities > summary:hover {
    transform: none;
  }
  .lab-tools > .lab-utilities > .lab-utilities-body {
    position: fixed;
    inset: 3.75rem 0.75rem auto;
    width: auto;
    margin: 0;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    grid-template-columns: 1fr;
  }
}

/* More › Go to: every place the old top row held (Access Prep first), shown at every width. */
.lab-utilities-body > .menu-go {
  display: grid;
}
.lab-utilities-body > .menu-search {
  grid-column: 1 / -1;
  max-width: 32rem;
}
.menu-go > a.menu-featured {
  font-weight: 800;
  color: var(--brand-deep);
}
.menu-go > a.menu-featured .ico {
  color: var(--accent);
}

/* ── teacher register: calm, flat, efficient ───────────────────────────── */
body[data-lab-register="teacher"] {
  background: var(--bg-canvas);
}
body[data-lab-register="teacher"] .lab-top {
  background: var(--bg-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body[data-lab-register="teacher"] main :is(.panel, .card, .ls-hero, .lb-hero) {
  background-image: none;
  box-shadow: var(--shadow-card);
}
body[data-lab-register="teacher"] .ls-hero {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}
body[data-lab-register="teacher"] main h1 {
  letter-spacing: -0.02em;
}
body[data-lab-register="teacher"] main :is(.btn, .ghost, .chip, .card, .panel) {
  transition-duration: 0.12s;
}
body[data-lab-register="teacher"] main :is(.btn, .ghost, .card):hover {
  transform: none;
}

/* ── family register: warm and simple (larger actions, roomier lines; same paper and tokens) ── */
body[data-lab-register="family"] {
  background: var(--bg-canvas);
}
body[data-lab-register="family"] main {
  line-height: 1.6;
}
body[data-lab-register="family"] main :is(.btn, .btn-primary, .btn-secondary) {
  min-height: 3.25rem;
  padding-inline: 1.4rem;
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .lab-tools {
    scroll-behavior: auto;
  }
}

/* ── palette accents (Editorial Academic: navy brand, teal interaction, ochre marker, terracotta maker) ── */
.top-link[aria-current="page"]::after {
  background: var(--teal);
}
.lang-banner {
  background: var(--bg-subtle);
  box-shadow: none;
}
.eyebrow {
  color: var(--teal);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}
.top-access-prep.is-featured .ico {
  color: var(--accent);
}
.top-book {
  border-color: var(--coral);
}
.bar > i {
  background: var(--teal);
}

/* ── home first screen ────────────────────────────────────────────────────
   A flat editorial panel: --bg-subtle with a hairline border, slate ink, and plain cards (video, today's mission)
   sitting on it. No gradient stage, no glow. */
body[data-lab-view="home"] .lph {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  color: var(--text-primary);
  box-shadow: none;
}
body[data-lab-view="home"] .lph > * {
  position: relative;
}
body[data-lab-view="home"] .lph :is(.lph-title, .lph-intro > .lph-label) {
  color: var(--text-primary);
}
body[data-lab-view="home"] .lph-lead {
  color: var(--text-secondary);
}
body[data-lab-view="home"] .lph .lph-setting :is(.lph-label, .grade-focus-label, .grade-focus-counts, .grade-focus-note) {
  color: var(--text-secondary);
}
body[data-lab-view="home"] .lph :is(.lph-continue, .lph-front) {
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

/* The shared mobile sheet (/assets/mobile-access.css) sets the deprecated `word-break: break-word` on body, which
   lets phones split a single word inside a squeezed flex label ("List / en", "Rea / der"). Long URLs still wrap
   through `overflow-wrap: break-word`, which never splits an ordinary word. (mobile-access.css loads after this
   sheet, hence `html body`.) */
html body {
  word-break: normal;
}

/* ── compact video cards (2026-11-17) ──────────────────────────────────────
   A studio video card ran 650-820px: title, paragraph, player, a sound note, captions and a link, each on its own
   row, and it set the height of every hero it sat in. It is now a tight card: title, player, and one quiet line.
   The description stays for screen readers (the video's aria-describedby). */
.lab-main studio-video.sv {
  max-width: 30rem;
}
.lab-main studio-video.sv .sv-desc {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lab-main studio-video.sv .sv-title {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}
.lab-main studio-video.sv .sv-more {
  margin-block: 0.3rem 0;
  font-size: 0.875rem;
}

/* Folded sections read as one list: a hairline between rows, no tall gaps. */
.task-group[data-fold].is-folded {
  margin-block: 0;
  padding-block: 0.35rem;
  border-top: 1px solid var(--line);
}
.task-group[data-fold].is-folded + .task-group[data-fold].is-folded {
  margin-top: 0;
}
[data-fold].is-folded .fold-toggle {
  min-height: 2.75rem;
}

/* ── phones: grids never grow wider than the screen (2026-11-17) ──────────
   With words no longer split mid-word on phones (html body { word-break: normal } above), a single-column grid
   sized its track to its widest unbreakable child: a long Spanish word at 140% text made the whole activity or
   unit lesson 20-76px wider than a 320px screen. The track is the screen; the text wraps between words. */
.lab-main :is(article.activity, article.un) {
  grid-template-columns: minmax(0, 1fr);
}
.lab-main :is(article.activity, article.un) > * {
  min-width: 0;
}
@media (max-width: 479px) {
  .lab-main .btn {
    max-width: 100%;
    white-space: normal;
  }
  .lab-main :is(.task-card, .choices, .un-hero, .un-hero-copy, .fam-journey, .fam-j-text) > * {
    min-width: 0;
  }
  .lab-main :is(.task-card, .un-hero-copy) {
    grid-template-columns: minmax(0, 1fr);
  }
  .lab-main .eyebrow {
    flex-wrap: wrap;
  }
  /* single-column grids that sized their track to their widest child (Access Prep cards carry an inline 320px track) */
  .lab-main :is(.prep-act-grid, .rr-log, .pg-main, .bk-cards, .ll-cards, .wida-calc-body, .wida-inputs, .wida-results-grid, .grow-features, .grow-feature) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .lab-main :is(.prep-act-grid, .rr-log, .pg-main, .bk-cards, .ll-cards, .wida-calc-body, .grow-features) > * {
    min-width: 0 !important;
  }
  .lab-main :is(.rd-step, .prep-filter-bar > div, .prep-domain-filters, .prep-tier-filters) {
    flex-wrap: wrap !important;
  }
  .lab-main .prep-filter-bar > div,
  .lab-main .prep-filter-bar [style*="min-width"] {
    min-width: 0 !important;
  }
  /* Access Prep is laid out with inline flex rows; on a phone they wrap instead of running off the screen. */
  .lab-main :is(.prep-domains-container, .prep-hero-panel, .prep-studios-section) [style*="display:flex"],
  .lab-main :is(.prep-domains-container, .prep-hero-panel, .prep-studios-section) [style*="display: flex"] {
    flex-wrap: wrap !important;
  }
  .lab-main :is(.prep-hero-panel, .prep-studios-section, .prep-domains-container) [style*="min-width"] {
    min-width: 0 !important;
  }
  .lab-main .wida-calc-body :is(.field, .stepper-row) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .lab-main .wida-calc-body :is(.field, .stepper-row) > * {
    min-width: 0;
  }
  .lab-main .wida-calc-body li {
    flex-wrap: wrap;
  }
  .lab-main .wida-domains-list li > * {
    min-width: 0;
    white-space: normal;
  }
  .lab-main .wida-domains-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .lab-main :is(.prep-studios-section, .prep-domains-container, .prep-hero-panel) [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .lab-main .rr-log-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .lab-main .rr-log-form > * {
    min-width: 0;
  }
  .lab-main .choice .opt-text,
  .lab-main .fam-j-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }
}

/* Phones: the mission button keeps "· 10 min" together, the length chips sit side by side under their label. */
.lph-go-min {
  white-space: nowrap;
}
.lph-go {
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.3em;
  text-align: center;
}
@media (max-width: 559px) {
  .lph-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .lph-chips-label {
    flex-basis: 100%;
  }
}

/* The sticky "More" button sits over the scrolling header strip: a solid backing (the header's own surface) to its
   right and a soft fade to its left keep the links behind it from peeking out ("…te" of Site Guide). */
@media (max-width: 860px) {
  .lab-tools > .lab-utilities {
    background: var(--bg-surface);
    box-shadow:
      -14px 0 12px -6px var(--bg-surface),
      16px 0 0 0 var(--bg-surface);
  }
}

/* ── bare home: a quiet strip under the audience doors (2026-11-17) ────────
   With no grade chosen, the doors are the page. The grade shortcut and the four direct links sit on a light card,
   not the navy stage (which stays the identity of a grade's own practice home). */
body[data-lab-view="home"] .lph.lph-choose {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  grid-template-areas:
    "intro student"
    "intro shortcuts";
  grid-template-rows: auto 1fr;
  gap: var(--s-4) clamp(1rem, 3vw, 2.5rem);
  margin-top: var(--s-5);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
body[data-lab-view="home"] .lph.lph-choose::before {
  content: none;
}
/* The wide home spreads .lph-intro's children over its own grid (display: contents); here the intro is one block. */
body[data-lab-view="home"] .lph.lph-choose > .lph-intro {
  display: block;
  grid-area: intro;
}
body[data-lab-view="home"] .lph.lph-choose :is(.lph-title, .lph-label) {
  color: var(--ink);
}
body[data-lab-view="home"] .lph.lph-choose .lph-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 var(--s-1);
}
body[data-lab-view="home"] .lph.lph-choose .lph-lead {
  color: var(--ink-2);
  margin: 0;
}
body[data-lab-view="home"] .lph.lph-choose .lph-front {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
body[data-lab-view="home"] .lph.lph-choose .lph-front > .lph-label {
  margin: 0 0 var(--s-2);
  font-weight: 700;
}
body[data-lab-view="home"] .lph.lph-choose .lph-grade-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body[data-lab-view="home"] .lph.lph-choose studio-video.sv {
  margin: var(--s-4) 0 0;
  max-width: 24rem;
}
body[data-lab-view="home"] .lph.lph-choose .lph-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  padding-top: var(--s-4);
}
@media (max-width: 760px) {
  /* Phones: one column in task order — the grade first, then the links, then the welcome video. */
  body[data-lab-view="home"] .lph.lph-choose {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    grid-template-rows: none;
  }
  body[data-lab-view="home"] .lph.lph-choose > .lph-intro {
    display: contents;
  }
  body[data-lab-view="home"] .lph.lph-choose > *,
  body[data-lab-view="home"] .lph.lph-choose > .lph-intro > * {
    grid-area: auto;
  }
  body[data-lab-view="home"] .lph.lph-choose .lph-front {
    order: 1;
  }
  body[data-lab-view="home"] .lph.lph-choose .lph-shortcuts {
    order: 2;
  }
  body[data-lab-view="home"] .lph.lph-choose studio-video.sv {
    order: 3;
    margin: 0;
  }
  body[data-lab-view="home"] .lph.lph-choose .lph-grade-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-lab-view="home"] .lph.lph-choose .lph-grade-card-name {
    font-size: 0.8rem;
    overflow-wrap: normal;
    hyphens: none;
  }
}

/* Touch-target floor for the header controls (design system, 2026-11-20). The compact register above is right
   for a mouse; on touch and tablet widths every header control keeps a 44px target. Fine-pointer desktop keeps
   the compact pills (they still clear WCAG 2.2 SC 2.5.8, 24px). */
@media (pointer: coarse), (max-width: 1099px) {
  html .lab-top .lab-tools > .lang-switch .lang-btn,
  html .lang-banner .lang-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  html .lab-top .lab-tools > :is(.lab-search-btn, .lab-read-btn, .lab-voice-btn, .lab-comfort-btn),
  html .lab-top .lab-tools > .lab-utilities > summary {
    min-width: 2.75rem !important;
    min-height: 2.75rem;
  }
  html .lab-top .lab-tools > .grade-select {
    min-height: 2.75rem;
  }
  html .lab-top .lab-tools > .grade-select select {
    min-height: 2.5rem;
  }
}

/* /access-practice-lab/premium.css */
/* The Language Page: shared finishing layer over the existing Harbor design system.
   Uses the ds.css tokens; preserves domain colors and accessibility tokens. No remote font or image requests. */
.lab-main :is(.panel, .card) { box-shadow: var(--shadow-card); }
.lab-main :is(h1, h2, h3) { text-wrap: balance; }
.lab-main :is(.lead, .fine) { text-wrap: pretty; }
.lab-main :is(button, .btn, summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lab-main .btn { transition: background-color 150ms, border-color 150ms, box-shadow 150ms; }
/* Family illustrations are part of the page, never behind instructional text. */
.prog-hero.fam-hero.d-writing.is-tint { background: var(--bg-subtle); border-color: var(--border-subtle); overflow: hidden; }
.fam-hero .prog-hero-copy { min-width: 0; }
.fam-hero .prog-hero-art { align-self: stretch; display: grid; align-items: center; }
.fam-hero .prog-hero-art img { width: 100%; height: auto; max-height: 430px; object-fit: contain; }
.fam-primary-doors { gap: 1rem; margin-block: 2rem; }
.fam-door-card { background: var(--bg-surface); box-shadow: none; border-color: var(--border-subtle); padding: 1.5rem; }
.fam-door-card:hover { border-color: var(--brand-accent); box-shadow: var(--shadow-card); }
.fam-door-card strong { font: 600 clamp(1.18rem, 1rem + .5vw, 1.5rem)/1.2 var(--font-display); }
.fam-door-ico { background: var(--teal-soft); color: var(--brand-accent); }
.fam-skill-cards { gap: 1.25rem; }
.fam-skill-cards > li { overflow: hidden; background: var(--bg-surface); box-shadow: var(--shadow-card); }
.fam-skill-cards > li > div { padding: 1.5rem; }
.fam-skill-cards > li img { background: var(--bg-subtle); }
.fam-skill-cards h3 { font: 600 1.5rem/1.25 var(--font-display); }
.fam-subnav { border-radius: var(--radius-lg); background: var(--bg-surface); }
@media (max-width: 580px) {
  .fam-door-card { padding: 1.15rem; }
  .fam-hero .prog-hero-art img { max-height: 280px; }
  .fam-skill-cards > li > div { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .lab-main .btn, .fam-door-card { transition: none; } }
@media print { .lab-main :is(.panel,.card), .fam-skill-cards > li { box-shadow: none; } }

/* /access-practice-lab/premium-platform.css */
/* ==========================================================================
   THELANGUAGEPAGE.COM — "Quiet Luxury EdTech" Design System (v1)
   Editorial precision, calm spatial rhythm, WCAG 2.2 AA, Light/Dark & Print.
   ========================================================================== */

:root {
  /* One palette: every --tlp-* value points at a ds.css token. */
  --tlp-bg: var(--bg-canvas);
  --tlp-surface: var(--bg-surface);
  --tlp-surface-2: var(--bg-subtle);
  --tlp-surface-3: var(--bg-interactive-hover);
  --tlp-border: var(--border-subtle);
  --tlp-border-strong: var(--border-strong);
  --tlp-ink: var(--text-primary);
  --tlp-ink-2: var(--text-secondary);
  --tlp-ink-3: var(--text-tertiary);

  --tlp-accent: var(--brand-primary);
  --tlp-accent-ink: var(--brand-primary);
  --tlp-accent-soft: var(--brand-soft);
  --tlp-on-accent: var(--on-brand);

  /* Proficiency ramp (Levels 1-6): ochre and terracotta through teal to navy and green */
  --tlp-level-1: var(--coral);
  --tlp-level-1-soft: color-mix(in srgb, var(--tlp-level-1) 10%, transparent);
  --tlp-level-2: var(--brand-gold);
  --tlp-level-2-soft: color-mix(in srgb, var(--tlp-level-2) 10%, transparent);
  --tlp-level-3: var(--reading-ink);
  --tlp-level-3-soft: color-mix(in srgb, var(--tlp-level-3) 10%, transparent);
  --tlp-level-4: var(--brand-accent);
  --tlp-level-4-soft: color-mix(in srgb, var(--tlp-level-4) 10%, transparent);
  --tlp-level-5: var(--brand-primary);
  --tlp-level-5-soft: color-mix(in srgb, var(--tlp-level-5) 10%, transparent);
  --tlp-level-6: var(--status-success-text);
  --tlp-level-6-soft: color-mix(in srgb, var(--tlp-level-6) 10%, transparent);

  --tlp-shadow: var(--shadow-card);
  --tlp-shadow-lg: var(--shadow-elevated);
  --tlp-radius: var(--radius-md);
  --tlp-radius-sm: var(--radius-sm);
  --tlp-ease: 150ms ease-out;
  --tlp-font-ui: var(--font);
  --tlp-font-serif: var(--font-display);
}
html, body {
  background-color: var(--tlp-bg);
  color: var(--tlp-ink);
  font-family: var(--tlp-font-ui);
  line-height: 1.6;
}

.tlp-tabular { font-variant-numeric: tabular-nums; }
.tlp-measure { max-width: 68ch; }
.tlp-muted { color: var(--tlp-ink-2); font-size: 0.92rem; }
.tlp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tlp-accent-ink);
  margin: 0 0 0.35rem;
}

/* Global Platform Control Bar (Role Switcher + L1 + Theme) */
.tlp-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  background: var(--tlp-surface);
  border-bottom: 1px solid var(--tlp-border);
  font-size: 0.85rem;
}

.tlp-role-pills {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--tlp-surface-2);
  border: 1px solid var(--tlp-border);
  gap: 2px;
}

.tlp-role-pill {
  border: 0;
  background: transparent;
  color: var(--tlp-ink-2);
  font: 600 0.82rem/1 var(--tlp-font-ui);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--tlp-ease), color var(--tlp-ease);
}
.tlp-role-pill[aria-pressed="true"] {
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  box-shadow: var(--shadow-card);
}

.tlp-control-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tlp-select-compact {
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font: 600 0.82rem/1.2 var(--tlp-font-ui);
}

.tlp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  font: 600 0.82rem/1 var(--tlp-font-ui);
  cursor: pointer;
  transition: border-color var(--tlp-ease), background-color var(--tlp-ease);
}
.tlp-icon-btn:hover { border-color: var(--tlp-accent); background: var(--tlp-accent-soft); }

/* Role-Scoped Chrome Restraint */
[data-tlp-role="student"] .tlp-teacher-only,
[data-tlp-role="family"] .tlp-teacher-only,
[data-tlp-role="family"] .tlp-student-only {
  display: none !important;
}

/* Studio / Module Shell */
.tlp-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 1.5rem) 3rem;
}

.tlp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--tlp-border);
}

.tlp-hero h1 {
  font-family: var(--tlp-font-serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.tlp-card {
  background: var(--tlp-surface);
  border: 1px solid var(--tlp-border);
  border-radius: var(--tlp-radius);
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  box-shadow: var(--tlp-shadow);
}

.tlp-card + .tlp-card { margin-top: 1.25rem; }

.tlp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tlp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 820px) { .tlp-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .tlp-grid-2 { grid-template-columns: 1fr; } }

/* Buttons & Badges */
.tlp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 0.9rem/1.1 var(--tlp-font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--tlp-ease), border-color var(--tlp-ease);
}
.tlp-btn-primary {
  background: var(--tlp-accent);
  color: var(--tlp-on-accent);
}
.tlp-btn-primary:hover { background: var(--brand-primary-hover); }
.tlp-btn-ghost {
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  border-color: var(--tlp-border-strong);
}
.tlp-btn-ghost:hover { border-color: var(--tlp-accent); background: var(--tlp-accent-soft); }
.tlp-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.tlp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  font: 700 0.74rem/1.2 var(--tlp-font-ui);
  letter-spacing: 0.02em;
}
.tlp-badge-accent { background: var(--tlp-accent-soft); color: var(--tlp-accent-ink); }
.tlp-badge-level-1 { background: var(--tlp-level-1-soft); color: var(--tlp-level-1); }
.tlp-badge-level-2 { background: var(--tlp-level-2-soft); color: var(--tlp-level-2); }
.tlp-badge-level-3 { background: var(--tlp-level-3-soft); color: var(--tlp-level-3); }
.tlp-badge-level-4 { background: var(--tlp-level-4-soft); color: var(--tlp-level-4); }
.tlp-badge-level-5 { background: var(--tlp-level-5-soft); color: var(--tlp-level-5); }
.tlp-badge-level-6 { background: var(--tlp-level-6-soft); color: var(--tlp-level-6); }

.tlp-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* Tabs */
.tlp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--tlp-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.tlp-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--tlp-ink-2);
  font: 600 0.88rem/1.2 var(--tlp-font-ui);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tlp-tab[aria-pressed="true"] {
  background: var(--tlp-accent-soft);
  color: var(--tlp-accent-ink);
  border-color: color-mix(in srgb, var(--tlp-accent) 30%, transparent);
}

/* Forms */
.tlp-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; }
.tlp-field > span { font: 600 0.85rem/1.2 var(--tlp-font-ui); color: var(--tlp-ink); }
.tlp-field input, .tlp-field textarea, .tlp-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--tlp-radius-sm);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  font: 400 0.95rem/1.55 var(--tlp-font-ui);
}

/* Bridge Trap Highlighting */
.tlp-passage {
  padding: 1.15rem;
  border-radius: var(--tlp-radius-sm);
  background: var(--tlp-surface-2);
  border: 1px solid var(--tlp-border);
  line-height: 1.85;
  font-size: 1.03rem;
}
.tlp-mark-poly {
  background: color-mix(in srgb, var(--brand-gold) 16%, transparent);
  border-bottom: 2px solid var(--brand-gold);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
}
.tlp-mark-conn {
  background: color-mix(in srgb, var(--tlp-accent) 14%, transparent);
  border-bottom: 2px solid var(--tlp-accent);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
}
.tlp-mark-cog {
  background: color-mix(in srgb, var(--brand-accent) 14%, transparent);
  border-bottom: 2px dotted var(--brand-accent);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
  cursor: help;
}

/* Sentence Architect Studio */
.tlp-sentence-stage {
  padding: 1.35rem;
  border-radius: var(--tlp-radius);
  background: var(--tlp-surface-2);
  border: 1px solid var(--tlp-border-strong);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1rem;
  transition: border-color var(--tlp-ease);
}
.tlp-sentence-stage.is-leveled {
  border-color: var(--tlp-accent);
}
.tlp-meter-track {
  height: 10px;
  border-radius: 999px;
  background: var(--tlp-surface-3);
  overflow: hidden;
  margin: 0.5rem 0;
}
.tlp-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--tlp-accent);
  transition: width var(--tlp-ease);
}
.tlp-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 820px) { .tlp-slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tlp-slots-grid { grid-template-columns: 1fr; } }

.tlp-slot {
  min-height: 86px;
  padding: 0.75rem;
  border-radius: var(--tlp-radius-sm);
  border: 2px dashed var(--tlp-border-strong);
  background: var(--tlp-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  transition: border-color var(--tlp-ease), background-color var(--tlp-ease);
}
.tlp-slot.is-over { border-color: var(--tlp-accent); background: var(--tlp-accent-soft); }
.tlp-slot.is-filled { border-style: solid; border-color: var(--tlp-accent); }

.tlp-block-tray { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tlp-block {
  padding: 0.65rem 0.95rem;
  border-radius: var(--tlp-radius-sm);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  font: 600 0.88rem/1.3 var(--tlp-font-ui);
  cursor: grab;
  touch-action: none;
  box-shadow: var(--tlp-shadow);
  text-align: left;
}
.tlp-block:hover { border-color: var(--tlp-accent); }
.tlp-block.is-used { opacity: 0.45; }

/* Resource Library Strip */
.tlp-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 900px) { .tlp-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .tlp-resource-grid { grid-template-columns: 1fr; } }

.tlp-resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem;
  border-radius: var(--tlp-radius);
  background: var(--tlp-surface);
  border: 1px solid var(--tlp-border);
  box-shadow: var(--tlp-shadow);
  transition: border-color var(--tlp-ease);
}
.tlp-resource-card:hover { border-color: var(--tlp-accent); }

/* Reclassification Radar Table */
.tlp-table-wrap { overflow-x: auto; }
.tlp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tlp-table th, .tlp-table td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--tlp-border);
}
.tlp-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tlp-ink-3);
}

/* Family Pride Card */
.tlp-pride-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--tlp-surface);
  border: 1px solid var(--tlp-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--tlp-shadow);
}
.tlp-pride-element {
  padding: 1rem 1.1rem;
  border-radius: var(--tlp-radius-sm);
  background: var(--tlp-surface-2);
  border: 1px solid var(--tlp-border);
  margin-top: 0.9rem;
}
.tlp-pride-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tlp-border);
}

/* Slide-Over Drawer & Modal */
.tlp-drawer-backdrop, .tlp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--text-primary) 45%, transparent);
  display: flex;
}
.tlp-drawer-backdrop { justify-content: flex-end; }
.tlp-modal-backdrop { align-items: center; justify-content: center; padding: 1rem; }

.tlp-drawer {
  width: min(460px, 100vw);
  height: 100%;
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  border-left: 1px solid var(--tlp-border-strong);
  padding: 1.35rem;
  overflow-y: auto;
  box-shadow: var(--tlp-shadow-lg);
}
.tlp-modal {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  border: 1px solid var(--tlp-border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--tlp-shadow-lg);
}
.tlp-drawer-head, .tlp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--tlp-border);
  margin-bottom: 1rem;
}

/* Diagnostics Overlay (?debug=1 or Ctrl+Shift+D) */
.tlp-debug-dock {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 950;
  width: min(420px, calc(100vw - 2rem));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  border: 1px solid var(--tlp-border-strong);
  border-radius: var(--tlp-radius);
  padding: 1rem;
  box-shadow: var(--tlp-shadow-lg);
  font-size: 0.82rem;
}

/* Focus & Reduced Motion */
:focus-visible {
  outline: 3px solid var(--tlp-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Print Stylesheets (Family Card, Reclassification Report) */
@media print {
  body { background: var(--bg-surface) !important; color: var(--text-primary) !important; }
  .no-print, .lab-top, .tlp-control-bar, .lab-footer, .tlp-debug-dock { display: none !important; }
  .tlp-card, .tlp-pride-card {
    box-shadow: none !important;
    border: 1px solid var(--border-strong) !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Publisher-Grade Studio Enhancements
   ========================================================================== */
.tlp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) { .tlp-split { grid-template-columns: 1fr; } }

.tlp-inspector {
  margin-top: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--tlp-radius-sm);
  background: var(--tlp-surface);
  border: 1px solid var(--tlp-accent);
  box-shadow: var(--tlp-shadow);
}

.tlp-mark-btn {
  cursor: pointer;
  border: 0;
  font: inherit;
  color: inherit;
  display: inline;
}
.tlp-mark-btn:hover { filter: brightness(0.95); }

.tlp-tier-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--tlp-surface-2);
  color: var(--tlp-ink-2);
  margin-left: 0.35rem;
}

.tlp-dim-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--tlp-surface-3);
  overflow: hidden;
  margin-top: 0.45rem;
}
.tlp-dim-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--tlp-accent);
  transition: width var(--tlp-ease);
}

.tlp-waveform {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.tlp-waveform span {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--tlp-accent);
  animation: tlp-wave 900ms ease-in-out infinite;
}
.tlp-waveform span:nth-child(2) { animation-delay: 150ms; }
.tlp-waveform span:nth-child(3) { animation-delay: 300ms; }
.tlp-waveform span:nth-child(4) { animation-delay: 450ms; }
@keyframes tlp-wave {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 18px; opacity: 1; }
}

.tlp-score-low { color: var(--tlp-level-1); font-weight: 700; }
.tlp-score-mid { color: var(--tlp-level-3); font-weight: 600; }
.tlp-score-high { color: var(--tlp-level-6); font-weight: 700; }
/* Integrated Studios: Skill Arcade & Dialogue Studio */
.tlp-tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.tlp-letter-tile {
  min-width: 48px;
  min-height: 48px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--tlp-radius-sm);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface-2);
  color: var(--tlp-ink);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background var(--tlp-ease), border-color var(--tlp-ease);
}
.tlp-letter-tile:hover:not(:disabled) {
  border-color: var(--tlp-accent);
  background: var(--tlp-accent-soft);
}
.tlp-letter-tile:disabled {
  opacity: 0.45;
  cursor: default;
}
.tlp-word-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--tlp-radius-sm);
  border: 2px dashed var(--tlp-border-strong);
  background: var(--tlp-surface);
  color: var(--tlp-ink);
  font-weight: 700;
  font-size: 1.25rem;
}
.tlp-word-slot.is-filled {
  border-style: solid;
  border-color: var(--tlp-accent);
  background: var(--tlp-accent-soft);
}
.tlp-feedback-box {
  padding: 0.85rem 1rem;
  border-radius: var(--tlp-radius-sm);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface-2);
  color: var(--tlp-ink);
  margin-top: 0.85rem;
}
.tlp-feedback-box.is-ok {
  border-color: var(--tlp-level-6);
  background: var(--tlp-level-6-soft);
}
.tlp-feedback-box.is-warn {
  border-color: var(--tlp-level-2);
  background: var(--tlp-level-2-soft);
}
.tlp-trail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 540px) {
  .tlp-trail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tlp-trail-cell {
  position: relative;
  min-height: 62px;
  padding: 0.45rem;
  border-radius: var(--tlp-radius-sm);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.78rem;
}
.tlp-trail-cell.is-boost {
  border-color: var(--tlp-level-4);
  background: var(--tlp-level-4-soft);
}
.tlp-trail-cell.is-finish {
  border-color: var(--tlp-level-6);
  background: var(--tlp-level-6-soft);
  font-weight: 700;
}
.tlp-trail-tokens {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.tlp-trail-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tlp-on-accent);
  background: var(--tlp-accent);
}
.tlp-trail-token.is-p2 {
  background: var(--tlp-level-1);
  color: var(--on-brand);
}
.tlp-dialogue-turn {
  padding: 0.75rem 1rem;
  border-radius: var(--tlp-radius-sm);
  border: 1px solid var(--tlp-border);
  background: var(--tlp-surface-2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.tlp-dialogue-turn.is-b {
  border-left: 3px solid var(--tlp-accent);
  background: var(--tlp-surface);
}
.tlp-cloze-blank {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  min-height: 36px;
  padding: 0.15rem 0.6rem;
  margin: 0 0.2rem;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--tlp-accent);
  background: var(--tlp-surface-2);
  color: var(--tlp-ink);
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
}
.tlp-cloze-blank.is-selected {
  border-style: solid;
  background: var(--tlp-accent-soft);
}
.tlp-flashcard-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  border-radius: var(--tlp-radius);
  border: 1px solid var(--tlp-border-strong);
  background: var(--tlp-surface-2);
  color: var(--tlp-ink);
}
.tlp-flashcard-icon {
  color: var(--tlp-accent);
}
