:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #f6f7fb;
    --panel: #ffffff;
    --border: #d8dbe8;
    --text: #1f2430;
    --muted: #667085;
    --accent: #2a62ff;
    --accent-weak: #e8efff;
    --danger: #b42318;
    --success: #027a48;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --student-audio-play-size: 1.55rem;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.side-nav {
    background: #101828;
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.brand-mark-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 0.75rem;
    background: white;
    color: inherit;
    overflow: hidden;
}

.brand-mark-link:hover {
    text-decoration: none;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.side-nav a {
    color: rgba(255, 255, 255, 0.88);
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
}

.side-nav .nav-cta {
    background: white;
    color: #101828;
    font-weight: 800;
}

.side-nav .nav-cta.active,
.side-nav .nav-cta:hover {
    background: #f4f7ff;
    color: #101828;
}

.side-nav a.active,
.side-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.main-panel {
    padding: 2rem;
    max-width: 1200px;
}

h1, h2 {
    margin-top: 0;
}

.lede {
    color: var(--muted);
    max-width: 75ch;
}

.panel,
.metric-card,
.placement-card,
.result-banner {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.panel,
.placement-card,
.result-banner {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.narrow {
    max-width: 480px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.metric-card {
    padding: 1rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
}

.metric-label {
    color: var(--muted);
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.actions.wrap {
    flex-wrap: wrap;
}

button,
.button-link {
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font: inherit;
    cursor: pointer;
}

button.primary,
.button-link {
    background: var(--accent);
    color: white;
}

button.secondary {
    background: var(--accent-weak);
    color: var(--accent);
}

button.danger {
    background: #fee4e2;
    color: var(--danger);
}

button.left {
    text-align: left;
}

.input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    font: inherit;
    background: white;
}

.input.large {
    min-height: 140px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.subtle,
.status {
    color: var(--muted);
}

.pill {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-weak);
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.row-actions {
    display: flex;
    gap: 0.75rem;
}

.result-banner {
    border-left: 4px solid var(--success);
}

.completion-result {
    align-content: start;
    background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
    border: 1px solid #b9e7ca;
    border-left: 4px solid var(--success);
    display: grid;
    gap: 0.6rem;
    min-height: 0;
}

.completion-result h2,
.completion-result p {
    margin: 0;
}

@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .main-panel {
        padding: 1rem;
    }
}


.student-prompt {
    font-size: 1.1rem;
    line-height: 1.6;
}

.reading-page-shell {
    align-content: start;
    display: grid;
    gap: 1rem;
}

.reading-page-header {
    display: grid;
    gap: 0.35rem;
}

.reading-page-header h1,
.reading-page-header .lede {
    margin: 0;
}

.reading-page-shell > .panel,
.reading-page-shell > details.panel {
    margin-bottom: 0;
}

.student-hint {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.answer-guide {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0.75rem;
    color: var(--text);
    display: grid;
    gap: 0.35rem;
    line-height: 1.5;
    padding: 0.8rem 0.9rem;
}

.answer-guide strong {
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.question-picture-card {
    align-self: start;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    display: grid;
    gap: 0.6rem;
    margin: 0;
    max-width: 360px;
    padding: 0.75rem;
    width: min(100%, 360px);
}

.passage-picture-card {
    max-width: 440px;
    width: min(100%, 440px);
}

.question-picture-card img {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border: 1px solid #dbe6ff;
    border-radius: 0.6rem;
    display: block;
    object-fit: cover;
    width: 100%;
}

.question-picture-card figcaption {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.reading-answer-choices {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.reading-answer-choice {
    align-items: stretch;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 0.55rem;
    min-height: 96px;
    padding: 0.75rem;
    text-align: left;
}

.reading-answer-choice:hover,
.reading-answer-choice:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
    outline: none;
}

.reading-answer-choice img {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border: 1px solid #dbe6ff;
    border-radius: 0.55rem;
    display: block;
    object-fit: cover;
    width: 100%;
}

.reading-child-session {
    display: grid;
    gap: 0.9rem;
    overflow: hidden;
}

.reading-child-grid {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
}

.reading-child-grid.no-question-picture {
    grid-template-columns: 1fr;
}

.reading-child-reading {
    display: grid;
    gap: 0.85rem;
}

.reading-child-picture {
    display: grid;
    margin: 0;
}

.reading-child-picture img {
    aspect-ratio: 3 / 2;
    background: #fffdf4;
    border: 1px solid #d7dfef;
    border-radius: 0.75rem;
    display: block;
    object-fit: cover;
    width: 100%;
}

.reading-child-task {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.reading-picture-choice-task {
    display: grid;
    gap: 1rem;
}

.reading-sentence-strip {
    background: #fffaf0;
    border: 1px solid #eadfc9;
    border-radius: 0.5rem;
    color: #172033;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.65;
    padding: 0.85rem 1rem;
}

.reading-question-prompt {
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.25;
    margin: 0;
}

.reading-child-choices {
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.reading-child-choice {
    align-items: center;
    border-color: #cfd8e8;
    border-radius: 0.7rem;
    gap: 0.65rem;
    grid-template-columns: 1fr;
    min-height: 4.4rem;
    padding: 0.85rem 1.05rem;
}

.reading-child-choice img {
    grid-column: 1 / -1;
}

.reading-child-choice .choice-text {
    font-size: 1.35rem;
    line-height: 1.25;
}

.reading-picture-choices {
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reading-picture-choice {
    border-radius: 0.7rem;
    min-height: 0;
    padding: 0.55rem;
}

.reading-picture-choice img {
    aspect-ratio: 4 / 3;
    border-radius: 0.55rem;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.type-instead-panel,
.reading-help-panel {
    border: 1px solid #dbe6ff;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
}

.type-instead-panel summary,
.reading-help-panel summary {
    color: #174ea6;
    cursor: pointer;
    font-weight: 700;
}

.type-instead-panel[open],
.reading-help-panel[open] {
    display: grid;
    gap: 0.75rem;
}

.type-instead-submit-row {
    margin-top: 0;
}

.reading-help-actions {
    margin-top: 0.25rem;
}

.admin-review-preview .reading-answer-choice {
    cursor: pointer;
}

.selected-review-choice {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.review-choice-editor {
    margin-bottom: 1rem;
}

.warning-pill {
    background: #fff7ed;
    color: #9a3412;
}

.choice-marker {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.choice-text {
    font-size: 1rem;
    line-height: 1.35;
}

.glossary-panel {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff8e7;
    border: 1px solid #f3d89a;
    border-radius: 0.75rem;
}

.glossary-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.glossary-list {
    display: grid;
    gap: 0.5rem;
}

.glossary-item {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.glossary-item summary {
    cursor: pointer;
    font-weight: 600;
}

.teacher-panel summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.reading-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
    gap: 1rem;
}

.reading-passage,
.reading-work {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.passage-box {
    background: #fffef8;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
    white-space: pre-wrap;
}

.inner-panel {
    margin: 0;
    box-shadow: none;
}

.glossary-item.static {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.captions .caption-surface {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #0f172a;
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    min-height: 120px;
}

.caption-line .label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.caption-line .text {
    font-size: 1.05rem;
    line-height: 1.5;
}

.teacher-panel summary {
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 960px) {
    .reading-layout {
        grid-template-columns: 1fr;
    }

    .reading-child-grid {
        grid-template-columns: 1fr;
    }

    .reading-sentence-strip {
        font-size: 1.3rem;
    }

    .reading-picture-choices {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@supports selector(.shell:has(.student-reading-mode)) {
    .shell:has(.student-reading-mode) {
        grid-template-columns: 1fr;
    }

    .shell:has(.student-reading-mode) .side-nav {
        display: none;
    }

    .shell:has(.student-reading-mode) .main-content {
        max-width: none;
        padding: 1.25rem;
    }
}

.student-reading-mode {
    color: #172033;
    gap: 0.85rem;
    margin: 0 auto;
    max-width: 880px;
}

.student-reading-page-actions {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 3rem;
}

.student-reading-back-link {
    align-items: center;
    background: #ffffff;
    border: 2px solid #cad7ef;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 1.08rem;
    font-weight: 850;
    gap: 0.45rem;
    justify-self: start;
    min-height: 3rem;
    padding: 0.45rem 0.9rem 0.45rem 0.75rem;
}

.student-reading-back-link:hover,
.student-reading-back-link:focus-visible {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    outline: none;
    text-decoration: none;
}

.student-back-icon {
    border-bottom: 0.42rem solid transparent;
    border-right: 0.6rem solid currentColor;
    border-top: 0.42rem solid transparent;
    display: inline-block;
    height: 0;
    width: 0;
}

.student-reading-mode > .panel,
.student-reading-topbar {
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.08);
}

.student-reading-topbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cad7ef;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.85rem 1rem;
}

.student-reading-home,
.student-reading-big-action {
    border-radius: 0.5rem;
    font-weight: 800;
    min-height: 3.25rem;
}

.student-reading-home {
    align-items: center;
    background: #eaf1ff;
    color: #1d4ed8;
    display: inline-flex;
    justify-content: center;
    padding: 0 1rem;
}

.student-reading-home:hover {
    text-decoration: none;
}

.student-reading-title {
    min-width: 0;
}

.student-reading-title span,
.student-reading-kicker {
    color: #31527a;
    display: block;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 0.2rem;
    text-transform: uppercase;
}

.student-reading-title h1 {
    font-size: 1.75rem;
    line-height: 1.15;
    margin: 0;
}

.student-reading-step {
    align-items: center;
    background: #fff8e8;
    border: 2px solid #f3d08a;
    border-radius: 0.5rem;
    color: #7a4a08;
    display: grid;
    justify-items: center;
    min-width: 4.75rem;
    padding: 0.45rem 0.7rem;
}

.student-reading-step strong {
    font-size: 1.55rem;
    line-height: 1;
}

.student-reading-step span {
    font-size: 0.9rem;
    font-weight: 750;
}

.student-reading-picker,
.student-reading-start,
.student-reading-guide {
    display: grid;
    gap: 1rem;
}

.student-reading-picker h2,
.student-reading-start h2,
.student-reading-guide h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin: 0;
}

.student-reading-picker p,
.student-reading-start p,
.student-reading-guide p {
    font-size: 1.25rem;
    line-height: 1.45;
    margin: 0;
}

.student-reading-picker-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.student-reading-pick-card {
    background: #ffffff;
    border: 2px solid #cad7ef;
    border-radius: 0.5rem;
    color: #172033;
    display: grid;
    gap: 0.55rem;
    min-height: 9rem;
    padding: 1rem;
}

.student-reading-pick-card:hover,
.student-reading-pick-card:focus-visible {
    border-color: #2a62ff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
    outline: none;
    text-decoration: none;
}

.student-reading-pick-card span {
    color: #31527a;
    font-size: 0.95rem;
    font-weight: 800;
}

.student-reading-pick-card strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.student-reading-pick-card em {
    align-self: end;
    color: #1d4ed8;
    font-style: normal;
    font-weight: 850;
}

.student-reading-start {
    justify-items: start;
    padding: 1.5rem;
}

.student-reading-big-action {
    font-size: 1.35rem;
    padding: 0.9rem 1.2rem;
}

.student-reading-guide {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.student-reading-work-title {
    color: #10203a;
    font-size: 2rem;
    grid-column: 2;
    justify-self: center;
    line-height: 1.15;
    margin: 0;
    max-width: min(34rem, 100%);
    text-align: center;
}

.student-reading-tutor-panel {
    background: transparent;
    border: 0;
    display: flow-root;
    min-height: 8.25rem;
}

.student-spelling-guide .student-reading-tutor-panel {
    align-items: start;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 8.25rem;
    position: relative;
    row-gap: 0.75rem;
}

.student-spelling-guide .student-reading-tutor-panel.is-now-spell {
    grid-template-columns: auto minmax(0, 1fr);
}

.student-reading-tutor-stage {
    background:
        linear-gradient(90deg, rgba(172, 125, 77, 0.14) 0 1px, transparent 1px 34px),
        linear-gradient(to bottom, transparent 0 64%, rgba(111, 79, 50, 0.18) 64% 66%, transparent 66%),
        linear-gradient(to bottom, #fff7df 0 64%, #d9b27b 64% 100%);
    border: 1px solid #cfdaee;
    border-radius: 0.5rem;
    float: left;
    height: 8.25rem;
    margin: 0 1rem 0.45rem 0;
    overflow: hidden;
    position: relative;
    transition: box-shadow 160ms ease, outline-color 160ms ease, transform 160ms ease;
    width: 10rem;
}

.student-spelling-guide .student-reading-tutor-panel:has(.student-spelling-cue-word.is-active) .student-reading-tutor-stage {
    box-shadow:
        0 0 0 0.3rem rgba(245, 196, 82, 0.2),
        0 0.55rem 1rem rgba(113, 85, 36, 0.15);
    outline: 3px solid rgba(245, 196, 82, 0.72);
    outline-offset: 0.25rem;
}

.student-spelling-guide .student-reading-tutor-stage {
    float: none;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

.student-spelling-guide .student-reading-tutor-copy {
    align-self: start;
    grid-column: 2;
    grid-row: 1;
}

.student-reading-tutor-stage::before {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent),
        #c88445;
    border: 1px solid rgba(102, 63, 30, 0.3);
    border-radius: 0.28rem 0.28rem 0.08rem 0.08rem;
    bottom: 2.15rem;
    box-shadow:
        -0.65rem 1.15rem 0 -0.88rem #8b5b34,
        0.65rem 1.15rem 0 -0.88rem #8b5b34,
        inset 0 -0.28rem 0 rgba(92, 55, 27, 0.16);
    content: "";
    height: 1.45rem;
    position: absolute;
    right: 0.85rem;
    width: 4.5rem;
    z-index: 0;
}

.student-reading-tutor-stage::after {
    background: rgba(68, 55, 44, 0.18);
    border-radius: 999px;
    bottom: 0.7rem;
    content: "";
    height: 0.42rem;
    left: 1.05rem;
    position: absolute;
    right: 1.05rem;
    z-index: 0;
}

.student-reading-tutor-sprite {
    display: block;
    left: 0;
    object-fit: contain;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform-origin: center bottom;
    user-select: none;
    will-change: transform;
    z-index: 1;
}

.student-reading-tutor-copy {
    min-width: 0;
}


.student-reading-tutor-words {
    --student-tutor-font-size: 1.35rem;
    --student-tutor-line-height: 1.35;
    align-items: start;
    column-gap: 0.75rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

.student-reading-tutor-play {
    align-items: center;
    appearance: none;
    aspect-ratio: 1 / 1;
    background: #1d4ed8;
    border: 2px solid #123a9a;
    border-radius: 50% !important;
    box-shadow: 0 0.25rem 0.7rem rgba(29, 78, 216, 0.18);
    box-sizing: border-box;
    display: inline-grid;
    flex: 0 0 var(--student-audio-play-size);
    font-size: var(--student-audio-play-size);
    height: 1em !important;
    inline-size: 1em !important;
    line-height: var(--student-tutor-line-height);
    margin-top: 0.17em;
    max-height: 1em !important;
    max-width: 1em !important;
    min-height: 1em !important;
    min-width: 1em !important;
    padding: 0 !important;
    place-items: center;
    width: 1em !important;
}

.student-reading-tutor-play:hover,
.student-reading-tutor-play:focus-visible {
    background: #2563eb;
    border-color: #0f2f83;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 0.25rem 0.7rem rgba(29, 78, 216, 0.22);
    outline: none;
}

.student-reading-tutor-lines {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.student-reading-tutor-copy p {
    color: #172033;
    line-height: var(--student-tutor-line-height);
    margin: 0;
}

.student-reading-tutor-segment {
    display: block;
}

.student-reading-tutor-segment.student-spelling-inline-segment {
    display: inline;
}

.student-spelling-inline-segment + .student-spelling-inline-segment {
    margin-left: 0.28em;
}

.student-spelling-segment-gap {
    display: inline-block;
    width: 0.28em;
}

.student-spelling-letter-row {
    align-items: baseline;
    column-gap: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.15rem;
}

.student-spelling-letter-segment {
    display: inline-flex;
}

.student-spelling-letter-row .student-reading-spoken-word {
    margin-right: 0;
    min-width: 0.7em;
    text-align: center;
}

.student-reading-spoken-word {
    border-radius: 0.24rem;
    display: inline-block;
    margin-right: 0.18em;
    padding: 0 0.05em;
    transition: background-color 120ms ease, color 120ms ease, opacity 120ms ease;
}

.student-reading-spoken-word:last-child {
    margin-right: 0;
}

.student-reading-spoken-separator {
    display: inline-block;
}

.student-reading-spoken-word.is-spoken {
    color: #334155;
}

.student-reading-spoken-word.is-active {
    background: rgba(245, 196, 82, 0.5);
    box-shadow: 0 0 0 2px rgba(245, 196, 82, 0.2);
    color: #071327;
}

.student-reading-lesson-copy {
    font-size: 1.05rem;
    font-weight: 650;
    white-space: pre-line;
}

.student-reading-instruction-copy {
    font-size: var(--student-tutor-font-size);
    font-weight: 750;
    margin-top: 0.35rem !important;
    white-space: pre-line;
}

.student-reading-progress {
    background: #dce7fb;
    border-radius: 999px;
    height: 0.35rem;
    overflow: hidden;
}

.student-reading-progress span {
    background: #2f7d4e;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.student-reading-mode .reading-child-session {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.student-reading-mode .reading-picture-choice-task,
.student-reading-mode .reading-child-grid,
.student-reading-mode .reading-child-grid.no-question-picture {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

.student-reading-mode .reading-child-reading,
.student-reading-mode .reading-child-task {
    gap: 0.7rem;
}

.student-reading-mode .reading-child-picture img {
    background: #fffdf4;
    max-height: 360px;
    object-fit: contain;
}

.student-reading-mode .reading-sentence-strip {
    --reading-sentence-font-size: 2.45rem;
    --reading-sentence-line-height: 1.35;
    align-items: start;
    background:
        radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.78), transparent 34%),
        linear-gradient(90deg, rgba(126, 88, 38, 0.07), transparent 14%, transparent 86%, rgba(126, 88, 38, 0.05)),
        linear-gradient(180deg, #fffdf2, #fff5d8);
    border: 1px solid #e5d2a8;
    border-radius: 0.45rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(139, 105, 56, 0.1);
    column-gap: 0.55rem;
    display: grid;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0;
    font-weight: 400;
    grid-template-columns: auto minmax(0, 1fr);
    letter-spacing: 0;
    line-height: 0;
    padding: 1.25rem 1.55rem;
    position: relative;
}

.student-reading-mode .reading-sentence-play {
    align-items: center;
    appearance: none;
    aspect-ratio: 1 / 1;
    background: #1d4ed8;
    border: 2px solid #123a9a;
    border-radius: 50% !important;
    box-shadow: 0 0.35rem 0.9rem rgba(29, 78, 216, 0.22);
    box-sizing: border-box;
    display: inline-grid;
    font-size: var(--reading-sentence-font-size);
    height: 2.7rem !important;
    inline-size: 2.7rem !important;
    line-height: var(--reading-sentence-line-height);
    margin-right: 0;
    margin-top: 0.17em;
    max-height: 2.7rem !important;
    max-width: 2.7rem !important;
    min-height: 2.7rem !important;
    min-width: 2.7rem !important;
    padding: 0 !important;
    place-items: center;
    position: relative;
    top: 0;
    width: 2.7rem !important;
}

.student-reading-mode .reading-sentence-play:hover,
.student-reading-mode .reading-sentence-play:focus-visible {
    background: #2563eb;
    border-color: #0f2f83;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 0.35rem 0.9rem rgba(29, 78, 216, 0.24);
    outline: none;
}

.student-reading-mode .reading-play-icon {
    border-bottom: 0.18em solid transparent;
    border-left: 0.28em solid #ffffff;
    border-top: 0.18em solid transparent;
    display: block;
    height: 0;
    margin-left: 0.06em;
    width: 0;
}

.student-reading-mode .reading-sentence-text {
    display: block;
    min-width: 0;
}

.student-reading-mode .reading-sentence-word {
    border-radius: 0.28rem;
    color: #071327;
    display: inline-block;
    font-size: var(--reading-sentence-font-size);
    line-height: var(--reading-sentence-line-height);
    margin-right: 0.22em;
    padding: 0 0.06em;
    transition: background-color 120ms ease, color 120ms ease, opacity 120ms ease;
}

.student-reading-mode .reading-sentence-word:last-child {
    margin-right: 0;
}

.student-reading-mode .reading-sentence-word.is-spoken {
    color: #342f2a;
}

.student-reading-mode .reading-sentence-word.is-active {
    background: rgba(245, 196, 82, 0.48);
    box-shadow: 0 0 0 2px rgba(245, 196, 82, 0.2);
    color: #111827;
}

.student-reading-mode .reading-question-prompt {
    font-size: 1.8rem;
    line-height: 1.15;
    margin-top: 0.25rem;
}

.student-reading-mode .reading-question-word,
.student-reading-mode .reading-title-word,
.student-reading-mode .reading-tutor-word {
    border-radius: 0.28rem;
    display: inline-block;
    margin-right: 0.18em;
    padding: 0 0.04em;
    transition: background-color 120ms ease, color 120ms ease;
}

.student-reading-mode .reading-question-word:last-child,
.student-reading-mode .reading-title-word:last-child,
.student-reading-mode .reading-tutor-word:last-child {
    margin-right: 0;
}

.student-reading-mode .reading-answer-choices {
    gap: 0.7rem;
}

.student-reading-mode .reading-child-choice,
.student-reading-mode .reading-answer-choice {
    border-color: #d4dbea;
    border-radius: 0.5rem;
    border-width: 2px;
    min-height: 4.9rem;
    padding: 0.75rem 0.85rem;
}

.student-reading-mode .reading-picture-choice {
    background: transparent;
    border-color: transparent;
    min-height: 0;
    padding: 0;
}

.student-reading-mode .reading-child-session {
    overflow: visible;
}

.student-reading-mode .reading-answer-choice {
    overflow: visible;
    position: relative;
}

.student-reading-mode .reading-picture-choice img {
    border-radius: 0.45rem;
}

.student-reading-mode .reading-answer-choice:hover,
.student-reading-mode .reading-answer-choice:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.student-reading-mode .reading-answer-choice.is-not-yet {
    animation: reading-choice-not-yet 420ms cubic-bezier(0.18, 0.9, 0.22, 1.08) both;
    background: #fff7ed;
    border-color: #f59e0b;
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.16),
        0 0.45rem 1rem rgba(180, 83, 9, 0.12);
}

.student-reading-mode .reading-picture-choice.is-not-yet {
    background: transparent;
}

.student-reading-mode .reading-choice-not-yet-pulse {
    animation: reading-choice-not-yet-pulse 900ms ease-out both;
    border: 3px solid rgba(245, 158, 11, 0.72);
    border-radius: inherit;
    box-shadow:
        0 0 0.65rem rgba(245, 158, 11, 0.38),
        0 0 1.2rem rgba(251, 191, 36, 0.22);
    content: "";
    inset: -0.16rem;
    pointer-events: none;
    position: absolute;
}

.student-reading-mode .reading-choice-feedback {
    align-items: center;
    background: #fff7ed;
    border: 2px solid #fed7aa;
    border-radius: 0.55rem;
    color: #7c2d12;
    display: flex;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.25;
    margin-top: 0.65rem;
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
}

.student-reading-mode .reading-child-choice .choice-text {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.student-reading-mode .reading-picture-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-reading-mode .student-reading-help {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.2rem 0 0;
}

.student-reading-help-title {
    color: #31527a;
    font-size: 1rem;
    font-weight: 850;
    margin-right: 0.1rem;
}

.student-reading-mode .reading-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.student-reading-mode .reading-help-actions button {
    background: #f4f7ff;
    border: 1px solid #dbe5ff;
    border-radius: 0.5rem;
    color: #1d4ed8;
    font-weight: 800;
    min-height: 2.65rem;
    padding: 0.45rem 0.75rem;
}

.student-question-dazzle {
    --dazzle-gold: #f4b62b;
    --dazzle-green: #2f855a;
    align-items: center;
    display: inline-grid;
    min-height: 3.1rem;
    min-width: 9.2rem;
    place-items: center;
    position: relative;
}

.student-question-dazzle-badge {
    animation: student-dazzle-pop 780ms cubic-bezier(0.18, 0.9, 0.22, 1.18) both;
    background: linear-gradient(180deg, #fffef7 0%, #fff0b8 100%);
    border: 2px solid rgba(214, 152, 22, 0.45);
    border-radius: 999px;
    box-shadow: 0 0.55rem 1rem rgba(149, 92, 12, 0.14);
    color: #14532d;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    padding: 0.58rem 0.9rem;
    position: relative;
    z-index: 2;
}

.student-question-dazzle-spark {
    --spark-color: #fff2a8;
    --spark-delay: 0ms;
    --spark-life: 1280ms;
    --spark-rotation: 220deg;
    --spark-size: 0.72rem;
    animation: student-dazzle-spark var(--spark-life) cubic-bezier(0.14, 0.79, 0.26, 0.99) var(--spark-delay) both;
    color: var(--spark-color);
    font-size: calc(var(--spark-size) + var(--spark-size-boost, 0rem));
    font-weight: 900;
    left: var(--spark-left, 50%);
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    text-shadow:
        0 0 0.35rem currentColor,
        0 0 0.85rem currentColor,
        0 0 1.65rem currentColor,
        0 0 2.2rem rgba(255, 255, 255, 0.92);
    top: var(--spark-top, 50%);
    transform: translate(-50%, -50%) scale(0);
    user-select: none;
    z-index: 2;
}

.student-question-dazzle-spark.spark-1 { --spark-left: 12%; --spark-top: 1%; --spark-x: -1.2rem; --spark-y: -2.2rem; --spark-delay: 12ms; --spark-size: 0.72rem; --spark-rotation: 260deg; }
.student-question-dazzle-spark.spark-2 { --spark-left: 34%; --spark-top: -2%; --spark-x: -0.45rem; --spark-y: -2.55rem; --spark-delay: 55ms; --spark-size: 0.56rem; --spark-rotation: -180deg; }
.student-question-dazzle-spark.spark-3 { --spark-left: 63%; --spark-top: 0%; --spark-x: 0.45rem; --spark-y: -2.35rem; --spark-delay: 22ms; --spark-size: 0.8rem; --spark-rotation: 320deg; }
.student-question-dazzle-spark.spark-4 { --spark-left: 87%; --spark-top: 7%; --spark-x: 1.35rem; --spark-y: -1.9rem; --spark-delay: 86ms; --spark-size: 0.58rem; --spark-rotation: -260deg; }
.student-question-dazzle-spark.spark-5 { --spark-left: 101%; --spark-top: 23%; --spark-x: 2.25rem; --spark-y: -0.9rem; --spark-delay: 32ms; --spark-size: 0.76rem; --spark-rotation: 240deg; }
.student-question-dazzle-spark.spark-6 { --spark-left: 103%; --spark-top: 52%; --spark-x: 2.55rem; --spark-y: 0.05rem; --spark-delay: 74ms; --spark-size: 0.52rem; --spark-rotation: -160deg; }
.student-question-dazzle-spark.spark-7 { --spark-left: 98%; --spark-top: 82%; --spark-x: 2rem; --spark-y: 1.25rem; --spark-delay: 116ms; --spark-size: 0.66rem; --spark-rotation: 360deg; }
.student-question-dazzle-spark.spark-8 { --spark-left: 75%; --spark-top: 104%; --spark-x: 1.05rem; --spark-y: 2.25rem; --spark-delay: 48ms; --spark-size: 0.82rem; --spark-rotation: -300deg; }
.student-question-dazzle-spark.spark-9 { --spark-left: 50%; --spark-top: 106%; --spark-x: 0.05rem; --spark-y: 2.45rem; --spark-delay: 95ms; --spark-size: 0.54rem; --spark-rotation: 220deg; }
.student-question-dazzle-spark.spark-10 { --spark-left: 22%; --spark-top: 101%; --spark-x: -1.05rem; --spark-y: 2rem; --spark-delay: 136ms; --spark-size: 0.74rem; --spark-rotation: -240deg; }
.student-question-dazzle-spark.spark-11 { --spark-left: 0%; --spark-top: 77%; --spark-x: -2.2rem; --spark-y: 1.1rem; --spark-delay: 68ms; --spark-size: 0.58rem; --spark-rotation: 310deg; }
.student-question-dazzle-spark.spark-12 { --spark-left: -2%; --spark-top: 46%; --spark-x: -2.5rem; --spark-y: -0.15rem; --spark-delay: 108ms; --spark-size: 0.8rem; --spark-rotation: -200deg; }
.student-question-dazzle-spark.spark-13 { --spark-left: 2%; --spark-top: 18%; --spark-x: -2.05rem; --spark-y: -1.25rem; --spark-delay: 42ms; --spark-size: 0.62rem; --spark-rotation: 380deg; }
.student-question-dazzle-spark.spark-14 { --spark-left: 48%; --spark-top: 3%; --spark-x: 0.1rem; --spark-y: -1.8rem; --spark-delay: 148ms; --spark-size: 0.48rem; --spark-rotation: -220deg; }
.student-question-dazzle-spark.spark-15 { --spark-left: 91%; --spark-top: 40%; --spark-x: 1.7rem; --spark-y: -0.2rem; --spark-delay: 154ms; --spark-size: 0.5rem; --spark-rotation: 280deg; }
.student-question-dazzle-spark.spark-16 { --spark-left: 58%; --spark-top: 95%; --spark-x: 0.35rem; --spark-y: 1.7rem; --spark-delay: 182ms; --spark-size: 0.58rem; --spark-rotation: -340deg; }
.student-question-dazzle-spark.spark-17 { --spark-left: 9%; --spark-top: 56%; --spark-x: -1.55rem; --spark-y: 0.35rem; --spark-delay: 166ms; --spark-size: 0.5rem; --spark-rotation: 210deg; }
.student-question-dazzle-spark.spark-18 { --spark-left: 81%; --spark-top: 9%; --spark-x: 1.1rem; --spark-y: -1.35rem; --spark-delay: 196ms; --spark-size: 0.46rem; --spark-rotation: -260deg; }
.student-question-dazzle-spark.spark-19 { --spark-left: 19%; --spark-top: -3%; --spark-x: -0.85rem; --spark-y: -1.6rem; --spark-delay: 205ms; --spark-size: 0.44rem; --spark-rotation: 260deg; }
.student-question-dazzle-spark.spark-20 { --spark-left: 42%; --spark-top: 2%; --spark-x: -0.18rem; --spark-y: -2.05rem; --spark-delay: 224ms; --spark-size: 0.64rem; --spark-rotation: -320deg; }
.student-question-dazzle-spark.spark-21 { --spark-left: 71%; --spark-top: -3%; --spark-x: 0.72rem; --spark-y: -1.9rem; --spark-delay: 238ms; --spark-size: 0.5rem; --spark-rotation: 300deg; }
.student-question-dazzle-spark.spark-22 { --spark-left: 96%; --spark-top: 13%; --spark-x: 1.75rem; --spark-y: -1.28rem; --spark-delay: 214ms; --spark-size: 0.62rem; --spark-rotation: -240deg; }
.student-question-dazzle-spark.spark-23 { --spark-left: 105%; --spark-top: 35%; --spark-x: 2.05rem; --spark-y: -0.55rem; --spark-delay: 246ms; --spark-size: 0.46rem; --spark-rotation: 220deg; }
.student-question-dazzle-spark.spark-24 { --spark-left: 102%; --spark-top: 67%; --spark-x: 2.1rem; --spark-y: 0.62rem; --spark-delay: 265ms; --spark-size: 0.7rem; --spark-rotation: -280deg; }
.student-question-dazzle-spark.spark-25 { --spark-left: 91%; --spark-top: 96%; --spark-x: 1.55rem; --spark-y: 1.8rem; --spark-delay: 228ms; --spark-size: 0.48rem; --spark-rotation: 340deg; }
.student-question-dazzle-spark.spark-26 { --spark-left: 66%; --spark-top: 108%; --spark-x: 0.7rem; --spark-y: 2.05rem; --spark-delay: 252ms; --spark-size: 0.58rem; --spark-rotation: -180deg; }
.student-question-dazzle-spark.spark-27 { --spark-left: 38%; --spark-top: 103%; --spark-x: -0.38rem; --spark-y: 1.85rem; --spark-delay: 275ms; --spark-size: 0.44rem; --spark-rotation: 280deg; }
.student-question-dazzle-spark.spark-28 { --spark-left: 12%; --spark-top: 92%; --spark-x: -1.45rem; --spark-y: 1.62rem; --spark-delay: 232ms; --spark-size: 0.66rem; --spark-rotation: -300deg; }
.student-question-dazzle-spark.spark-29 { --spark-left: -4%; --spark-top: 66%; --spark-x: -2.05rem; --spark-y: 0.55rem; --spark-delay: 242ms; --spark-size: 0.48rem; --spark-rotation: 220deg; }
.student-question-dazzle-spark.spark-30 { --spark-left: -5%; --spark-top: 32%; --spark-x: -1.95rem; --spark-y: -0.68rem; --spark-delay: 262ms; --spark-size: 0.62rem; --spark-rotation: -260deg; }
.student-question-dazzle-spark.spark-31 { --spark-left: 6%; --spark-top: 4%; --spark-x: -1.3rem; --spark-y: -1.58rem; --spark-delay: 286ms; --spark-size: 0.42rem; --spark-rotation: 360deg; }
.student-question-dazzle-spark.spark-32 { --spark-left: 28%; --spark-top: 7%; --spark-x: -0.55rem; --spark-y: -1.28rem; --spark-delay: 302ms; --spark-size: 0.54rem; --spark-rotation: -220deg; }
.student-question-dazzle-spark.spark-33 { --spark-left: 76%; --spark-top: 92%; --spark-x: 0.98rem; --spark-y: 1.45rem; --spark-delay: 312ms; --spark-size: 0.42rem; --spark-rotation: 300deg; }
.student-question-dazzle-spark.spark-34 { --spark-left: 52%; --spark-top: 100%; --spark-x: 0.08rem; --spark-y: 1.38rem; --spark-delay: 318ms; --spark-size: 0.5rem; --spark-rotation: -340deg; }

.student-question-dazzle-spark.spark-2,
.student-question-dazzle-spark.spark-7,
.student-question-dazzle-spark.spark-12,
.student-question-dazzle-spark.spark-17,
.student-question-dazzle-spark.spark-23,
.student-question-dazzle-spark.spark-29,
.student-question-dazzle-spark.spark-34 {
    --spark-color: #ffffff;
}

.student-question-dazzle-spark.spark-4,
.student-question-dazzle-spark.spark-9,
.student-question-dazzle-spark.spark-15,
.student-question-dazzle-spark.spark-20,
.student-question-dazzle-spark.spark-26,
.student-question-dazzle-spark.spark-31 {
    --spark-color: #fbcfe8;
}

.student-question-dazzle-spark.spark-5,
.student-question-dazzle-spark.spark-10,
.student-question-dazzle-spark.spark-14,
.student-question-dazzle-spark.spark-22,
.student-question-dazzle-spark.spark-27,
.student-question-dazzle-spark.spark-32 {
    --spark-color: #c4b5fd;
}

.student-question-dazzle-spark.spark-6,
.student-question-dazzle-spark.spark-11,
.student-question-dazzle-spark.spark-16,
.student-question-dazzle-spark.spark-21,
.student-question-dazzle-spark.spark-25,
.student-question-dazzle-spark.spark-30 {
    --spark-color: #fde68a;
}

.student-question-dazzle-halo {
    border-radius: inherit;
    display: block;
    inset: 0;
    min-height: 0;
    min-width: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.student-question-dazzle-halo .student-question-dazzle-spark {
    --spark-life: 1380ms;
    --spark-size-boost: 1.1rem;
}

.student-question-dazzle-halo::before {
    animation: student-dazzle-halo 1050ms ease-out both;
    border: 0.18rem solid rgba(255, 247, 173, 0.42);
    border-radius: inherit;
    box-shadow:
        0 0 0.75rem rgba(255, 247, 173, 0.44),
        0 0 1.4rem rgba(244, 182, 43, 0.34);
    content: "";
    inset: -0.12rem;
    position: absolute;
}

.student-question-dazzle-halo::after {
    animation: student-dazzle-halo-ring 1180ms cubic-bezier(0.18, 0.9, 0.22, 1.08) both;
    border: 2px solid rgba(244, 182, 43, 0.82);
    border-radius: inherit;
    box-shadow:
        0 0 0 0.18rem rgba(255, 230, 152, 0.22),
        0 0 1rem rgba(244, 182, 43, 0.52),
        0 0 1.8rem rgba(236, 72, 153, 0.16);
    content: "";
    inset: -0.06rem;
    position: absolute;
}

@keyframes student-dazzle-pop {
    0% {
        opacity: 0;
        transform: scale(0.78);
    }
    58% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes student-dazzle-halo {
    0% {
        opacity: 0;
        transform: scale(0.78);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.48);
    }
}

@keyframes student-dazzle-halo-ring {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    22% {
        opacity: 1;
        transform: scale(1.01);
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes student-dazzle-spark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
    }
    12% {
        opacity: 1;
    }
    48% {
        opacity: 1;
        transform:
            translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y)))
            scale(1.18)
            rotate(var(--spark-rotation));
    }
    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y)))
            scale(0.34)
            rotate(var(--spark-rotation));
    }
}

@keyframes reading-choice-not-yet {
    0% {
        transform: translateX(0);
    }

    24% {
        transform: translateX(-0.18rem);
    }

    48% {
        transform: translateX(0.16rem);
    }

    72% {
        transform: translateX(-0.08rem);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes reading-choice-not-yet-pulse {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-question-dazzle-badge,
    .student-question-dazzle-halo::before,
    .student-question-dazzle-halo::after,
    .student-question-dazzle-spark,
    .student-reading-mode .reading-answer-choice.is-not-yet,
    .student-reading-mode .reading-choice-not-yet-pulse {
        animation: none;
    }

    .student-question-dazzle-spark {
        display: none;
    }
}

.student-worksheet-footer {
    display: block;
    min-height: clamp(3.75rem, 9vh, 6rem);
}

.student-rhyming-mode {
    inline-size: min(100%, 760px);
    max-width: 920px;
    min-inline-size: min(100%, 42rem);
}

.student-rhyming-guide {
    margin-bottom: 0.35rem;
}

.student-rhyming-mode .student-reading-instruction-copy {
    white-space: pre-line;
}

.student-rhyming-mode .student-rhyming-session {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 0.75rem;
    padding: 0;
}

.student-rhyming-target {
    display: grid;
    gap: 0.35rem;
}

.student-rhyming-target p {
    color: #31415d;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.student-rhyming-target-word {
    --student-rhyme-word-font-size: clamp(1.55rem, 2.2vw, 1.8rem);
    align-items: center;
    background: linear-gradient(180deg, #fffdf5 0%, #fff8df 100%);
    border: 2px solid #ead7a8;
    border-radius: 0.5rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    column-gap: 0.65rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1;
    min-height: 3.15rem;
    padding: 0.2rem 0.55rem;
}

.student-rhyming-target-word strong {
    color: #071327;
    font-size: var(--student-rhyme-word-font-size);
    font-weight: 850;
    line-height: 1.05;
}

.student-rhyming-word-play {
    align-items: center;
    appearance: none;
    aspect-ratio: 1 / 1;
    background: #1d4ed8;
    border: 2px solid #123a9a;
    border-radius: 50% !important;
    box-shadow: 0 0.25rem 0.7rem rgba(29, 78, 216, 0.2);
    box-sizing: border-box;
    color: #ffffff;
    display: inline-grid;
    flex: 0 0 1em;
    height: 1em !important;
    inline-size: 1em !important;
    margin-top: 0;
    max-height: 1em !important;
    max-width: 1em !important;
    min-height: 1em !important;
    min-width: 1em !important;
    padding: 0 !important;
    place-items: center;
    width: 1em !important;
}

.student-rhyming-word-play:hover,
.student-rhyming-word-play:focus-visible {
    background: #2563eb;
    border-color: #0f2f83;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 0.25rem 0.7rem rgba(29, 78, 216, 0.24);
    outline: none;
}

.student-rhyming-choices {
    display: grid;
    gap: 0.65rem;
}

.student-rhyming-choice {
    --student-rhyme-choice-font-size: clamp(1.55rem, 2.2vw, 1.8rem);
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 2px solid #d7e0f2;
    border-radius: 0.5rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    cursor: pointer;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 3.15rem;
    overflow: visible;
    padding: 0.2rem 0.55rem;
    position: relative;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.student-rhyming-choice:focus-within,
.student-rhyming-choice:hover {
    border-color: #2a62ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 0.45rem 0.9rem rgba(37, 99, 235, 0.08);
}

.student-rhyming-choice.is-correct {
    border-color: #2f7d4e;
    box-shadow: 0 0 0 3px rgba(47, 125, 78, 0.16);
}

.student-rhyming-choice.is-not-yet {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.student-rhyming-choice.is-locked {
    cursor: default;
}

.student-rhyming-choice .student-rhyming-word-play {
    align-self: center;
}

.student-rhyming-choice-pick {
    align-items: center;
    align-self: stretch;
    appearance: none;
    background: transparent;
    border: 0;
    color: #172033;
    cursor: pointer;
    display: flex;
    font-size: var(--student-rhyme-choice-font-size);
    font-weight: 850;
    inline-size: 100%;
    letter-spacing: 0;
    line-height: 1.05;
    min-height: 2.45rem;
    padding: 0;
    text-align: left;
    text-rendering: optimizeLegibility;
}

.student-rhyming-choice-pick:disabled {
    cursor: default;
}

.student-rhyming-choice-pick:focus-visible {
    outline: none;
}

.student-rhyming-feedback {
    background: #f4f7ff;
    border: 1px solid #dbe5ff;
    border-radius: 0.5rem;
    color: #172033;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    padding: 0.8rem 0.95rem;
}

.student-rhyming-feedback.is-correct {
    background: #ecfdf3;
    border-color: #9bd7ae;
    color: #14532d;
}

.student-rhyming-feedback.is-not-yet,
.student-rhyming-feedback.is-help {
    background: #fff8e8;
    border-color: #f3d08a;
    color: #7a4a08;
}

.student-rhyming-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
}

.student-rhyming-help {
    flex: 1 1 auto;
}

.student-rhyming-retry {
    color: #7a4a08;
    font-size: 1.2rem;
    font-weight: 850;
    margin-left: auto;
}

.student-rhyming-next {
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 850;
    min-height: 3rem;
    min-width: 8rem;
    padding: 0.65rem 1rem;
}

.student-spelling-mode {
    inline-size: min(100%, 920px);
    max-width: 920px;
    min-inline-size: min(100%, 42rem);
}

.student-spelling-guide {
    margin-bottom: 0.35rem;
}

.student-spelling-mode .student-spelling-session {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 1rem;
    inline-size: 100%;
    min-inline-size: 0;
    padding: 0;
}

.student-spelling-listen {
    --student-spelling-prompt-font-size: 2.75rem;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.student-spelling-listen p {
    color: #172033;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.2;
    margin: 0;
}

.student-spelling-big-play {
    align-items: center;
    appearance: none;
    aspect-ratio: 1 / 1;
    background: #1d4ed8;
    border: 2px solid #123a9a;
    border-radius: 50% !important;
    box-shadow: 0 0.25rem 0.7rem rgba(29, 78, 216, 0.2);
    box-sizing: border-box;
    color: #ffffff;
    display: inline-grid;
    flex: 0 0 1em;
    height: 1em !important;
    inline-size: 1em !important;
    max-height: 1em !important;
    max-width: 1em !important;
    min-height: 1em !important;
    min-width: 1em !important;
    padding: 0 !important;
    place-items: center;
    width: 1em !important;
}

.student-spelling-big-play:hover,
.student-spelling-big-play:focus-visible {
    background: #2563eb;
    border-color: #0f2f83;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 0.25rem 0.7rem rgba(29, 78, 216, 0.24);
    outline: none;
}

.student-spelling-context-listen {
    align-items: center;
    color: #31415d;
    display: flex;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    margin-top: -0.45rem;
}

.student-spelling-context-play {
    align-items: center;
    appearance: none;
    aspect-ratio: 1 / 1;
    background: #1d4ed8;
    border: 2px solid #123a9a;
    border-radius: 50% !important;
    box-shadow: 0 0.2rem 0.55rem rgba(29, 78, 216, 0.18);
    box-sizing: border-box;
    color: #ffffff;
    display: inline-grid;
    flex: 0 0 1em;
    height: 1em !important;
    inline-size: 1em !important;
    max-height: 1em !important;
    max-width: 1em !important;
    min-height: 1em !important;
    min-width: 1em !important;
    padding: 0 !important;
    place-items: center;
    width: 1em !important;
}

.student-spelling-context-play:hover,
.student-spelling-context-play:focus-visible {
    background: #2563eb;
    border-color: #0f2f83;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 0.2rem 0.55rem rgba(29, 78, 216, 0.22);
    outline: none;
}

.student-spelling-built-word {
    column-gap: var(--student-spelling-slot-gap, 0.65rem);
    display: grid;
    grid-template-columns: repeat(var(--student-spelling-letter-count, 3), minmax(0, 1fr));
    inline-size: 100%;
    max-inline-size: 100%;
    overflow: hidden;
}

.student-spelling-slot {
    align-items: center;
    background:
        radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.82), transparent 34%),
        linear-gradient(180deg, #fffdf2, #fff5d8);
    border: 2px solid #e5d2a8;
    border-radius: 0.5rem;
    color: #071327;
    display: grid;
    font-size: var(--student-spelling-slot-font-size, 3rem);
    font-weight: 900;
    min-height: var(--student-spelling-slot-height, 5.25rem);
    min-width: 0;
    place-items: center;
    text-transform: lowercase;
}

.student-spelling-built-word.is-correct .student-spelling-slot {
    background: #ecfdf3;
    border-color: #2f7d4e;
}

.student-spelling-built-word.is-not-yet .student-spelling-slot {
    border-color: #d97706;
}

.student-spelling-tiles {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(5, minmax(4.2rem, 1fr));
}

.student-spelling-tile {
    appearance: none;
    background: #ffffff;
    border: 2px solid #d4dbea;
    border-radius: 0.5rem;
    color: #172033;
    cursor: pointer;
    font-size: 2.45rem;
    font-weight: 900;
    line-height: 1;
    min-height: 5rem;
    padding: 0.7rem 0.5rem;
    text-transform: lowercase;
}

.student-spelling-tile:hover,
.student-spelling-tile:focus-visible {
    border-color: #2a62ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.student-spelling-tile.is-selected {
    background: #eaf1ff;
    border-color: #1d4ed8;
}

.student-spelling-tile.is-correct {
    background: #ecfdf3;
    border-color: #2f7d4e;
}

.student-spelling-tile:disabled {
    cursor: default;
    opacity: 0.72;
}

.student-spelling-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.student-dazzle-button-wrap {
    border-radius: 0.5rem;
    display: inline-flex;
    overflow: visible;
    position: relative;
}

.student-spelling-actions button,
.student-spelling-check {
    border-radius: 0.5rem;
    font-size: 1.18rem;
    font-weight: 850;
    min-height: 3rem;
    padding: 0.65rem 1rem;
}

.student-spelling-help {
    width: 100%;
}

.student-spelling-word-list-mode {
    max-width: 62rem;
}

.student-spelling-word-list {
    padding: 1.15rem;
}

.student-spelling-word-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.student-spelling-word-card {
    align-items: center;
    background: #ffffff;
    border: 2px solid #cad7ef;
    border-radius: 0.75rem;
    color: #10203a;
    display: flex;
    font-size: 1.45rem;
    font-weight: 850;
    justify-content: center;
    line-height: 1.15;
    min-height: 4.75rem;
    padding: 0.8rem;
    text-align: center;
}

.student-spelling-word-card:hover,
.student-spelling-word-card:focus-visible {
    border-color: #2a62ff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
    outline: none;
    text-decoration: none;
}

@media (max-width: 720px) {
    .student-reading-topbar {
        grid-template-columns: 1fr auto;
    }

    .student-reading-home {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .student-reading-title h1,
    .student-reading-picker h2,
    .student-reading-start h2,
    .student-reading-guide h2,
    .student-reading-mode .reading-question-prompt {
        font-size: 1.65rem;
    }

    .student-reading-mode .reading-sentence-strip {
        --reading-sentence-font-size: 1.75rem;
        padding: 0.95rem 1rem;
    }

    .student-reading-tutor-stage {
        height: 7.5rem;
        margin-right: 0.8rem;
        width: 8.5rem;
    }

    .student-spelling-guide .student-reading-tutor-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .student-spelling-guide .student-reading-tutor-stage {
        margin: 0;
    }

    .student-spelling-guide .student-reading-tutor-copy {
        grid-column: 1 / -1;
    }

    .student-reading-tutor-words {
        --student-tutor-font-size: 1.2rem;
    }

    .student-reading-mode .reading-help-actions,
    .student-reading-mode .reading-picture-choices {
        grid-template-columns: 1fr;
    }

    .student-reading-mode .reading-help-actions {
        display: grid;
        width: 100%;
    }

    .student-rhyming-target-word {
        --student-rhyme-word-font-size: 1.65rem;
    }

    .student-rhyming-choice {
        --student-rhyme-choice-font-size: 1.65rem;
    }

    .student-spelling-listen {
        --student-spelling-prompt-font-size: 2.25rem;
    }

    .student-spelling-slot,
    .student-spelling-tile {
        font-size: min(var(--student-spelling-slot-font-size, 2.15rem), 2.15rem);
        min-height: 4.35rem;
    }

    .student-spelling-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-spelling-word-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-spelling-word-card {
        font-size: 1.3rem;
        min-height: 4.25rem;
    }

    .student-rhyming-footer,
    .student-rhyming-next {
        width: 100%;
    }
}


.main-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    max-width: none;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

.nav-section-title {
    margin-top: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
}

.nav-user {
    margin-bottom: 0.25rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.lede.large {
    font-size: 1.05rem;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.hero-aside {
    display: grid;
    gap: 0.75rem;
}

.hero-visual {
    align-self: start;
}

.section-visual {
    margin: 1rem 0 1.25rem;
}

.mini-stat,
.feature-card,
.timeline-step {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.feature-grid,
.timeline-grid,
.two-col-grid {
    display: grid;
    gap: 1rem;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1rem 0;
}

.two-col-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card h2,
.feature-card h3,
.timeline-step h3 {
    margin-top: 0;
}

.tutor-section-heading,
.tutor-card-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.tutor-section-heading {
    margin-bottom: 1rem;
}

.tutor-section-heading h2 {
    margin: 0;
}

.eyebrow {
    margin: 0 0 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tutor-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tutor-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: center;
}

.live-lane-grid,
.house-grid,
.department-grid {
    display: grid;
    gap: 1rem;
}

.live-lane-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.house-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.department-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.live-lane-card,
.house-card,
.department-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #f8fafc;
    color: var(--text);
    padding: 1rem;
}

.live-lane-card {
    display: grid;
    gap: 0.45rem;
    min-height: 170px;
}

.live-lane-card:hover {
    border-color: rgba(42, 98, 255, 0.35);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.available-house-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
    border-color: #b9e7ca;
}

.planned-house-card {
    background: #f8fafc;
}

.house-path-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.live-lane-card span,
.live-lane-card small {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-lane-card strong {
    font-size: 1.2rem;
}

.live-lane-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.45;
}

.house-card h3,
.house-card p,
.department-card h3,
.department-card p {
    margin-top: 0;
}

.department-card {
    display: grid;
    gap: 0.9rem;
}

.department-card-topline {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: start;
}

.class-list {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
}

.class-list div {
    border-top: 1px solid var(--border);
    padding-top: 0.35rem;
}

.tutor-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tutor-chip-list span {
    border: 1px solid rgba(42, 98, 255, 0.18);
    border-radius: 999px;
    background: #eef4ff;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
}

.tutor-card {
    display: grid;
    gap: 0.6rem;
}

.tutor-card h3,
.tutor-card p {
    margin: 0;
}

.tutor-focus {
    color: var(--accent);
    font-weight: 700;
}

.hub-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 1rem;
    align-items: center;
}

.learning-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.learner-card {
    display: grid;
    gap: 1rem;
}

.skill-lane-grid,
.skill-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.skill-lane-card,
.skill-pick-card {
    display: grid;
    gap: 0.35rem;
    min-height: 135px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #f8fafc;
    color: var(--text);
}

.skill-lane-card:hover,
.skill-pick-card:hover {
    border-color: rgba(42, 98, 255, 0.35);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.skill-lane-card span,
.skill-pick-card span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skill-lane-card strong,
.skill-pick-card strong {
    font-size: 1.05rem;
}

.skill-lane-card em,
.skill-pick-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.4;
}

.primary-lane {
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border-color: rgba(42, 98, 255, 0.25);
}

.student-home {
    display: grid;
    gap: 1.5rem;
}

.student-welcome {
    display: grid;
    gap: 0.35rem;
}

.student-welcome h1 {
    font-size: clamp(2.4rem, 7vw, 4rem);
    line-height: 1;
    margin: 0;
}

.student-welcome p {
    color: var(--muted);
    font-size: 1.35rem;
    margin: 0;
}

.student-choice-list {
    display: grid;
    gap: 1rem;
}

.student-learner-panel {
    display: grid;
    gap: 1rem;
}

.student-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
}

.student-choice-card {
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    display: grid;
    gap: 0.8rem;
    grid-template-rows: auto auto 1fr auto;
    min-height: 360px;
    padding: 1.25rem;
}

.student-choice-card:hover {
    box-shadow: var(--shadow);
    text-decoration: none;
    transform: translateY(-1px);
}

.reading-choice {
    background: #f5fbff;
    border-color: #b9ddff;
}

.math-choice {
    background: #f7fff8;
    border-color: #b7e3c2;
}

.student-card-visual {
    aspect-ratio: 18 / 11;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.student-choice-card strong {
    font-size: 2.2rem;
    line-height: 1;
}

.student-choice-card em {
    color: var(--muted);
    font-size: 1.2rem;
    font-style: normal;
    line-height: 1.35;
}

.student-start-button {
    align-self: end;
    background: var(--accent);
    border-radius: 0.5rem;
    color: white;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    justify-content: center;
    padding: 0.8rem 1rem;
    width: fit-content;
}

.student-token-balance {
    align-items: center;
    background: #fff8e6;
    border: 1px solid #f4cd79;
    border-radius: 0.5rem;
    display: inline-flex;
    gap: 0.75rem;
    justify-self: start;
    padding: 0.7rem 0.9rem;
}

.student-token-balance span {
    color: #715414;
    font-weight: 800;
}

.student-token-balance strong {
    color: #1f2430;
    font-size: 1.35rem;
}

.simple-skill-picker {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.status-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
}

.live-pill {
    background: #eefaf3;
    border-color: #b9e7ca;
    color: #11683a;
}

.answer-submit-row {
    display: flex;
    justify-content: flex-start;
    margin: 0.75rem 0 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-weak);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.info-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.compact-list {
    gap: 0.25rem;
}

.secondary-link {
    background: var(--accent-weak);
    color: var(--accent) !important;
}

.secondary-link:hover {
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.85);
    padding: 1.25rem 2rem 2rem;
    display: grid;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.compact-panel {
    padding: 0.75rem 1rem;
}

.subnav a {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-weak);
    color: var(--accent);
}

.subnav a.active {
    background: var(--accent);
    color: white;
    text-decoration: none;
}

.section-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.token-pill {
    background: #eef7f1;
    color: #17663a;
}

.left {
    text-align: left;
}

.inner-panel {
    margin-top: 1rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 960px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    .site-footer {
        padding: 1rem;
    }
}

.main-content {
    display: grid;
    gap: 1.25rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.hero-copy,
.hero-aside {
    display: grid;
    gap: 1rem;
}

.hero-aside {
    align-content: start;
}

.large {
    font-size: 1.08rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
}

.feature-grid,
.timeline-grid,
.two-col-grid,
.checklist-grid {
    display: grid;
    gap: 1rem;
}

.feature-grid,
.checklist-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-grid,
.two-col-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card,
.timeline-step,
.mini-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.feature-card h3,
.timeline-step h3,
.mini-stat h3 {
    margin-top: 0;
}

.complete-card {
    border-color: rgba(2, 122, 72, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
}

.launch-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.checkbox-row {
    display: flex;
    gap: 0.65rem;
    align-items: start;
}

.checkbox-row input {
    margin-top: 0.2rem;
}

.status-banner {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    font-weight: 600;
}

.success-banner {
    background: #ecfdf3;
    border-color: #abefc6;
    color: var(--success);
}

.error-banner {
    background: #fef3f2;
    border-color: #fecdca;
    color: var(--danger);
}

.onboarding-form-panel {
    max-width: 560px;
}

.onboarding-page {
    display: grid;
    gap: 1.25rem;
}

.onboarding-heading {
    display: grid;
    gap: 0.35rem;
}

.onboarding-heading h1,
.onboarding-heading p {
    margin: 0;
}

.onboarding-next-panel {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.onboarding-next-panel h2,
.onboarding-next-panel p {
    margin-bottom: 0;
}

.onboarding-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.onboarding-step-list {
    display: grid;
    gap: 0.75rem;
}

.onboarding-step {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr;
    padding: 1rem;
}

.onboarding-step h3,
.onboarding-step p {
    margin: 0;
}

.onboarding-step p {
    color: var(--muted);
    margin-top: 0.25rem;
}

.onboarding-step-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.signup-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1.25rem;
    align-items: stretch;
}

.signup-pitch h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 0.75rem;
}

.signup-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.signup-proof div,
.choice-panel {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #f8fafc;
    padding: 0.85rem;
}

.signup-proof strong,
.signup-proof span {
    display: block;
}

.signup-proof span {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.signup-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.signup-visual-stack {
    display: grid;
    gap: 0.75rem;
}

.signup-steps li,
.signup-steps div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.75rem;
    align-items: center;
    background: #101828;
    border-radius: 0.9rem;
    color: white;
    padding: 0.9rem;
}

.signup-steps span {
    grid-row: span 2;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--accent);
    display: inline-grid;
    place-items: center;
    font-weight: 800;
}

.signup-steps em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.25rem;
    align-items: start;
}

.signup-form-panel {
    margin-bottom: 1.25rem;
}

.signup-form label {
    font-weight: 700;
}

.signup-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.form-section-label {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.choice-panel {
    display: grid;
    gap: 0.75rem;
}

.signup-submit {
    font-weight: 800;
    padding: 0.95rem 1rem;
}

.helper-note.center {
    text-align: center;
}

.compact-steps {
    align-content: start;
}

.compact-steps div {
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
}

.compact-steps em {
    color: var(--muted);
}

.signup-aside {
    position: sticky;
    top: 1rem;
}

.compact-visual {
    margin-bottom: 1rem;
}

.site-footer .brand-title {
    margin-bottom: 0.15rem;
}

.footer-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: white;
    object-fit: contain;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .signup-hero,
    .signup-layout,
    .onboarding-layout,
    .tutor-intro,
    .hub-hero-panel {
        grid-template-columns: 1fr;
    }

    .department-grid {
        grid-template-columns: 1fr;
    }

    .signup-aside {
        position: static;
    }
}

@media (max-width: 720px) {
    .actions {
        flex-direction: column;
    }

    .actions .button-link,
    .actions button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .student-choice-grid {
        grid-template-columns: 1fr;
    }

    .student-choice-card {
        min-height: 320px;
    }
}


code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    background: #f5f7fb;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.1rem 0.35rem;
}


.support-note {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid #cfe0ff;
    background: #f5f9ff;
    color: #24426f;
}

.empty-state,
.summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.info-list li + li {
    margin-top: 0.45rem;
}

.teacher-panel summary {
    cursor: pointer;
    font-weight: 600;
}

.glossary-panel {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #dfe6f5;
    background: #fafcff;
}

.glossary-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.student-hint {
    color: #344054;
    background: #f9fafb;
    border-left: 4px solid #98a2b3;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
}

.passage-box {
    white-space: pre-wrap;
    line-height: 1.7;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}


.empty-state {
    display: grid;
    gap: 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed var(--border);
    border-radius: 1rem;
    padding: 1.15rem;
}

.empty-state h2,
.empty-state h3 {
    margin: 0;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    max-width: 70ch;
}

.notice-card {
    background: #eff8ff;
    border: 1px solid #b2ddff;
    border-radius: 1rem;
    padding: 1rem;
}

.notice-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.next-step-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.4rem;
}

.helper-note {
    color: var(--muted);
    font-size: 0.96rem;
}

.panel .section-intro {
    margin-top: -0.35rem;
    color: var(--muted);
}

.soft-divider {
    height: 1px;
    background: var(--border);
    border: 0;
    margin: 1rem 0;
}

.inline-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kicker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.caption-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.teacher-panel ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}



.marketing-shot {
    margin: 0;
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(42, 98, 255, 0.12);
    box-shadow: var(--shadow);
}

.marketing-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
    background: #eef4ff;
}

.marketing-shot figcaption {
    color: var(--muted);
    font-size: 0.95rem;
}

.marketing-shot.tall img {
    min-height: 320px;
}

.marketing-shot.medium img {
    min-height: 260px;
}

.marketing-shot.wide img {
    min-height: 240px;
}

.marketing-shot.panorama {
    margin-top: 1rem;
}

.marketing-shot.panorama img {
    aspect-ratio: 22 / 7;
    min-height: 0;
    object-fit: cover;
}

.live-house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.live-lanes-panel {
    display: grid;
    gap: 1.25rem;
    overflow: hidden;
}

.live-house-card {
    display: grid;
    gap: 0.85rem;
    min-height: 0;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid #b9e7ca;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
    box-shadow: none;
}

.live-house-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.live-house-card-header h3 {
    margin: 0.55rem 0 0;
    font-size: 1.25rem;
}

.live-house-card-header strong {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.live-house-card p {
    margin: 0;
    color: #344054;
    line-height: 1.5;
}

.live-house-course-list {
    display: grid;
    gap: 0.4rem;
    padding-top: 0.35rem;
    color: var(--muted);
}

.live-house-course-list div {
    border-top: 1px solid rgba(17, 104, 58, 0.14);
    padding-top: 0.4rem;
}

@media (max-width: 640px) {
    .live-house-card-header {
        display: grid;
    }

    .live-house-card-header strong {
        white-space: normal;
    }
}

.marketing-shot.hero-visual img,
.marketing-shot.signup-visual img,
.marketing-shot.compact-visual img {
    min-height: 180px;
}

.pitch-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.pitch-aside {
    align-content: stretch;
}

.image-placeholder {
    display: grid;
    align-content: center;
    gap: 0.6rem;
    min-height: 220px;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px dashed #9db2df;
    background:
        linear-gradient(135deg, rgba(42,98,255,0.06) 0%, rgba(42,98,255,0.12) 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.6) 0 14px, rgba(255,255,255,0.85) 14px 28px);
    box-shadow: var(--shadow);
}

.image-placeholder.tall {
    min-height: 320px;
}

.image-placeholder.medium {
    min-height: 260px;
}

.image-placeholder.wide {
    min-height: 240px;
}

.image-placeholder.panorama {
    margin-top: 1rem;
    min-height: 200px;
}

.image-placeholder-title {
    font-weight: 700;
    color: #24426f;
}

.image-placeholder-copy {
    color: #42526b;
    max-width: 42ch;
}

.honesty-grid,
.roadmap-grid {
    align-items: stretch;
}

.honesty-card.good-card {
    border-color: rgba(2, 122, 72, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f4fff8 100%);
}

.honesty-card.caution-card {
    border-color: rgba(183, 110, 0, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
}

.honest-note {
    margin-top: 1rem;
}

.ad-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.ad-header,
.ad-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid var(--border);
}

.ad-footer {
    border-bottom: 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.ad-main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    display: grid;
    gap: 1.25rem;
}

.ad-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.ad-brand:hover {
    text-decoration: none;
}

.ad-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    border: 1px solid var(--border);
    background: white;
    object-fit: contain;
    flex: 0 0 auto;
}

.ad-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.ad-header-links a {
    color: var(--text);
}

.ad-header-links .ad-header-cta {
    color: white;
}

.secular-landing-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.landing-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #cfe0ff;
    background: #f5f9ff;
    color: #24426f;
    font-size: 0.92rem;
    font-weight: 600;
}

.landing-actions {
    align-items: center;
}

.landing-primary-cta {
    min-width: 220px;
    text-align: center;
}

.compact-note {
    margin-top: 0.25rem;
}

.landing-proof-grid {
    margin-top: 1rem;
}

.landing-proof-note {
    align-content: center;
}

.landing-cta-panel {
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

@media (max-width: 960px) {
    .ad-header,
    .ad-footer {
        flex-direction: column;
        align-items: start;
    }

    .ad-main {
        width: min(100%, calc(100% - 1rem));
        padding: 1rem 0 1.5rem;
    }
}


.site-status-banner {
  margin: 0 0 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.site-status-banner p {
  margin: 0;
}

.cookie-banner {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-copy {
  max-width: 46rem;
}

.cookie-banner-copy p {
  margin: 0.35rem 0 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
}

@media (max-width: 920px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}


.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: #101828;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    z-index: 1000;
}

.skip-link:focus {
    top: 1rem;
}

.student-work-directory {
    display: grid;
    gap: 1.25rem;
}

.student-work-directory-header h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.student-work-directory-header p {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
}

.student-work-directory-group {
    display: grid;
    gap: 0.75rem;
}

.student-work-directory-group h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #334155;
}

.student-work-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.student-work-directory-card span {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 800;
}
