:root {
    --ink: #17313a;
    --muted: #61747a;
    --surface: #ffffff;
    --surface-soft: #f3f7f6;
    --line: #dce7e5;
    --primary: #176b68;
    --primary-dark: #123c4a;
    --primary-light: #d9eeeb;
    --accent: #e3a73d;
    --danger: #c94747;
    --success: #23835d;
    --shadow: 0 14px 40px rgba(19, 58, 67, .09);
    --radius: 18px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 86px;
    color-scheme: light;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--surface-soft);
    color: var(--ink);
    line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 3px solid rgba(227, 167, 61, .75);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    transform: translateY(-150%);
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--primary-dark);
}
.brand__symbol {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    background: var(--primary);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
}
.brand__logo {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 19px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand--light, .brand--light small { color: #fff; }
.brand__compact-name { display: none !important; color: #fff; letter-spacing: .08em; }

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 17px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s, background .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(23, 107, 104, .18); }
.button--primary:hover { background: #115c5a; }
.button--secondary { border-color: var(--line); background: #fff; color: var(--primary-dark); }
.button--danger { background: var(--danger); color: #fff; }
.button--ghost { background: transparent; color: inherit; }
.button--small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button--wide { width: 100%; }

.public-header {
    display: flex;
    max-width: 1240px;
    height: 78px;
    margin: auto;
    padding: 0 28px;
    align-items: center;
    justify-content: space-between;
}
.public-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.public-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 28px 130px;
    background:
        radial-gradient(circle at 85% 25%, rgba(227, 167, 61, .22), transparent 24%),
        linear-gradient(125deg, #123c4a 0%, #176b68 100%);
    color: #fff;
}
.public-hero::after {
    position: absolute;
    right: -80px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 70px solid rgba(255,255,255,.05);
    border-radius: 50%;
    content: "";
}
.public-hero__inner { position: relative; z-index: 1; max-width: 1184px; margin: auto; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.public-hero .eyebrow { color: #9fd9d1; }
.public-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(37px, 5vw, 68px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.04;
}
.public-hero p:not(.eyebrow) { max-width: 690px; margin: 22px 0 0; color: #d5e7e6; font-size: 18px; }
.public-dashboard {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: -75px auto 60px;
    padding: 0 28px;
}
.public-footer {
    display: flex;
    max-width: 1184px;
    margin: 0 auto;
    padding: 26px 0 38px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: var(--radius);
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfdcda;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.assessment-time-field input[readonly] {
    border-color: #d9e3e1;
    background: #f2f6f5;
    color: var(--primary-dark);
    cursor: not-allowed;
    font-weight: 750;
}
.assessment-identification select:disabled {
    border-color: #d9e3e1;
    background: #f2f6f5;
    color: var(--primary-dark);
    cursor: not-allowed;
    opacity: 1;
}
#assessment-student option.is-evaluated {
    background: #fff3b0;
    color: #665000;
    font-weight: 750;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23,107,104,.11);
    outline: none;
}
.field-hint { color: var(--muted); font-size: 11px; }
.field-error { color: var(--danger); font-size: 12px; }

.section-heading {
    display: flex;
    margin: 34px 0 18px;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}
.section-heading h1, .section-heading h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; line-height: 1.1; }
.section-heading h1 { font-size: clamp(30px, 4vw, 42px); }
.section-heading h2 { font-size: 27px; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}
.metric-card::after {
    position: absolute;
    right: -25px;
    bottom: -37px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--card-color, var(--primary-light));
    content: "";
    opacity: .35;
}
.metric-card span { display: block; max-width: 130px; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin-top: 12px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.metric-card small { color: var(--muted); }
.metric-card--pending { --card-color: #d64545; }
.metric-card .pending-metric-value {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c83f4b;
}
.pending-metric-value i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d64545;
    box-shadow: 0 0 0 4px rgba(214, 69, 69, .12);
}
.average-metric-label,
.demographic-average-value { color: #cf5579; }

.assessment-path-panel { margin-bottom: 16px; }
.assessment-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 12px;
}
.assessment-path-card {
    display: grid;
    min-height: 104px;
    padding: 15px;
    align-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    background: #f9fbfb;
}
.assessment-path-card--syllable { border-left-color: #d85c78; background: #fff7f8; }
.assessment-path-card--letter { border-left-color: #a34272; background: #fff5fa; }
.assessment-path-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.assessment-path-card strong { font-family: Georgia, serif; font-size: 28px; }
.assessment-path-card small { color: var(--muted); font-size: 11px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}
.panel {
    grid-column: span 6;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(19,58,67,.045);
}
.panel--wide { grid-column: 1 / -1; }
.panel--four { grid-column: span 4; }
.panel--eight { grid-column: span 8; }
.panel__header { display: flex; padding: 20px 22px 0; align-items: start; justify-content: space-between; gap: 14px; }
.panel__header h2, .panel__header h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.panel__header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel__body { padding: 20px 22px 24px; }

.donut-layout { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.donut {
    display: grid;
    width: 172px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: var(--donut-background);
}
.donut__center {
    display: grid;
    width: 112px;
    aspect-ratio: 1;
    place-content: center;
    border-radius: 50%;
    background: #fff;
    text-align: center;
}
.donut__center strong { font-family: Georgia, serif; font-size: 31px; line-height: 1; }
.donut__center span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.chart-legend { display: grid; gap: 11px; }
.legend-item { display: grid; grid-template-columns: 11px 1fr auto; gap: 9px; align-items: center; font-size: 12px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--legend-color); }

.horizontal-bars { display: grid; gap: 13px; }
.bar-row__label { display: flex; margin-bottom: 5px; justify-content: space-between; gap: 16px; font-size: 11px; }
.bar-row__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.bar-track { overflow: hidden; height: 8px; border-radius: 99px; background: #e8efee; }
.bar-fill { display: block; width: var(--bar-value); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #55a99e); }

.comparison-list { display: grid; gap: 20px; }
.comparison-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.comparison-legend span,
.comparison-item__metrics span { display: flex; align-items: center; gap: 6px; }
.comparison-legend i,
.comparison-item__metrics i,
.demographic-level-breakdown i {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--level-color);
}
.comparison-legend span { color: var(--muted); font-size: 10px; font-weight: 700; }
.comparison-item { display: grid; gap: 9px; }
.comparison-item__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.comparison-item__label span { color: var(--ink); font-weight: 700; }
.comparison-item__label strong { color: var(--muted); font-size: 11px; }
.comparison-horizontal-track {
    display: flex;
    width: 100%;
    height: 26px;
    overflow: hidden;
    border: 4px solid #edf2f1;
    border-radius: 999px;
    background: #edf2f1;
}
.comparison-horizontal-segment {
    display: grid;
    width: var(--segment-value);
    min-width: 0;
    height: 100%;
    place-items: center;
    overflow: hidden;
    background: var(--segment-color);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}
.comparison-item__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 10px;
}
.comparison-item__metrics span { min-width: 0; }
.comparison-item__metrics small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.comparison-item__metrics strong { margin-left: auto; font-size: 9px; white-space: nowrap; }

.line-chart { overflow-x: auto; }
.line-chart svg { min-width: 580px; width: 100%; overflow: visible; }
.fluency-level-chart svg { min-width: 680px; }
.chart-grid { stroke: #e7eeee; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: var(--primary); stroke-width: 3; }
.chart-axis, .chart-label { fill: #718287; font-size: 10px; }
.chart-value { fill: var(--ink); font-size: 11px; font-weight: 700; }

.radar-chart { display: grid; place-items: center; }
.radar-chart svg { width: min(100%, 360px); }
.radar-grid { fill: none; stroke: #dce7e5; }
.radar-axis { stroke: #dce7e5; }
.radar-data { fill: rgba(23,107,104,.22); stroke: var(--primary); stroke-width: 3; }
.radar-label { fill: var(--muted); font-size: 9px; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    padding: 25px 18px;
    flex-direction: column;
    background:
        radial-gradient(circle at 30% 90%, rgba(227,167,61,.13), transparent 24%),
        var(--primary-dark);
    color: #dcebea;
    overflow-x: hidden;
    transition: width .22s ease, transform .22s ease;
}
.sidebar .brand { margin: 0 10px 35px; }
.main-nav { display: grid; gap: 5px; }
.nav-link {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    gap: 12px;
    border-radius: 11px;
    color: #c6d7d8;
    font-size: 14px;
    font-weight: 650;
}
.nav-link:hover, .nav-link.is-active { background: rgba(255,255,255,.09); color: #fff; }
.nav-link__marker { display: grid; width: 26px; height: 26px; place-items: center; color: #9fd9d1; font-size: 18px; }
.public-link { margin: auto 12px 0; color: #9fd9d1; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.app-shell__content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left .22s ease;
}
.app-shell.is-sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); padding-inline: 12px; }
.app-shell.is-sidebar-collapsed .app-shell__content { margin-left: var(--sidebar-collapsed-width); }
.app-shell.is-sidebar-collapsed .sidebar .brand {
    display: grid;
    margin: 0 0 28px;
    justify-items: center;
    gap: 5px;
}
.app-shell.is-sidebar-collapsed .brand__logo { width: 48px; height: 48px; }
.app-shell.is-sidebar-collapsed .brand__full-name,
.app-shell.is-sidebar-collapsed .nav-link__label { display: none; }
.app-shell.is-sidebar-collapsed .brand__compact-name { display: block !important; font-size: 16px; }
.app-shell.is-sidebar-collapsed .nav-link {
    padding-inline: 10px;
    justify-content: center;
}
.app-shell.is-sidebar-collapsed .nav-link__marker { width: 30px; height: 30px; }
.sidebar-backdrop { display: none; }
.topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    height: 72px;
    padding: 0 30px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    gap: 12px;
}
.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
}
.icon-button:hover { border-color: #aac9c5; background: var(--primary-light); }
.shell-menu-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.topbar__context { margin-right: auto; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--success); }
.environment-badge {
    margin-right: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.environment-badge--training {
    color: #6b3b00;
    background: #ffe0a3;
    border: 1px solid #e2a93b;
}
.environment-notice {
    display: grid;
    max-width: 430px;
    margin: 0 0 22px;
    padding: 12px 15px;
    gap: 3px;
    border-radius: 10px;
}
.environment-notice strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.environment-notice span { font-size: 12px; }
.environment-notice--training {
    color: #5c3500;
    background: #fff1cf;
    border: 1px solid #e2a93b;
}
.is-training-environment .topbar { border-top: 4px solid #e2a93b; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; }
.user-menu__text strong, .user-menu__text small { display: block; }
.user-menu__text strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.user-menu__text small { color: var(--muted); font-size: 10px; }
.main-content { max-width: 1500px; margin: auto; padding: 25px 30px 55px; }

.breadcrumb { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--primary); }
.page-header { display: flex; margin-bottom: 22px; align-items: end; justify-content: space-between; gap: 20px; }
.page-header h1 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.page-header p { margin: 5px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; }

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 42%) 1fr;
    background: #fff;
}
.login-panel { display: flex; padding: 42px clamp(30px, 6vw, 92px); flex-direction: column; justify-content: center; }
.login-panel .brand { position: absolute; top: 35px; }
.login-copy { max-width: 430px; margin-bottom: 28px; }
.login-copy h1 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 42px; font-weight: 500; line-height: 1.08; }
.login-copy p { color: var(--muted); }
.login-form { display: grid; max-width: 430px; gap: 17px; }
.password-field { position: relative; }
.password-field input { padding-right: 74px; }
.password-toggle { position: absolute; right: 7px; bottom: 6px; min-height: 32px; border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 700; }
.login-visual {
    position: relative;
    display: grid;
    overflow: hidden;
    padding: 60px;
    place-items: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(227,167,61,.28), transparent 25%),
        linear-gradient(145deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.login-visual::before, .login-visual::after {
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    content: "";
}
.login-visual::before { width: 520px; height: 520px; }
.login-visual::after { width: 750px; height: 750px; }
.login-visual__content { position: relative; z-index: 1; max-width: 520px; }
.login-visual blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 3.5vw, 47px); line-height: 1.15; }
.login-visual p { color: #cde1df; }

.form-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .span-full { grid-column: 1 / -1; }
.form-actions { display: flex; margin-top: 22px; justify-content: end; gap: 10px; }
.tabs { display: flex; overflow-x: auto; margin-bottom: 18px; gap: 7px; }
.tab { border: 1px solid var(--line); border-radius: 99px; padding: 9px 15px; background: #fff; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }

.privacy-note {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #bcdedb;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    background: #f2f9f8;
    color: var(--muted);
    line-height: 1.55;
}
.privacy-note strong { color: var(--ink); }
.import-student-list { display: grid; gap: 16px; }
.import-student-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    transition: opacity .2s ease, background .2s ease;
}
.import-student-card.is-excluded { opacity: .58; background: #f5f7f7; }
.import-student-card__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 13px;
}
.import-warning {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}
.import-warning span {
    padding: 5px 9px;
    border: 1px solid #efc26d;
    border-radius: 999px;
    background: #fff7df;
    color: #7b5710;
    font-size: 12px;
    font-weight: 700;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
th { background: #f7faf9; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfa; }
.table-action { color: var(--primary); font-weight: 750; }
.table-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.table-action {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.table-action--danger { color: var(--danger); }
.table-action:disabled { cursor: not-allowed; opacity: .38; }
.student-table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}
.student-table-actions .button { margin-left: auto; }
.student-list-toolbar {
    display: flex;
    margin-bottom: 12px;
    justify-content: flex-end;
}
.student-list-toolbar .check-field { margin: 0; }
.dashboard-student-panel {
    margin-top: 20px;
}
.class-teachers-panel {
    margin-top: 32px;
}
.teacher-history-list span {
    display: flex;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    flex-wrap: wrap;
}
.teacher-history-list em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}
.dashboard-student-table-scroll {
    max-height: 34vh;
    min-height: 220px;
    overflow: auto;
    overscroll-behavior: contain;
}
.dashboard-student-table-scroll thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
}
.student-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.student-status__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--status-color, #9aa7a7);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-color) 18%, transparent);
}
.student-status--insufficient { color: #a52828; font-weight: 700; }

.assessment-management-filters {
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
}
.assessment-management-filter-actions {
    display: flex;
    align-items: end;
    gap: 8px;
}
.assessment-management-panel { margin-top: 20px; }
.assessment-management-table { max-height: 58vh; overflow: auto; }
.assessment-management-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
}
.assessment-row--inactive { background: #f7f8f8; color: var(--muted); }
.assessment-status {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.assessment-status--active { background: #e0f3ea; color: var(--success); }
.assessment-status--inactive { background: #e9eeee; color: #667474; }
.assessment-cancellation-detail {
    display: block;
    max-width: 190px;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.35;
}
.table-action--restore { color: var(--success); }
.assessment-pagination {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}
.assessment-audit-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0;
    list-style: none;
}
.assessment-audit-list li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    min-height: 72px;
}
.assessment-audit-list__marker {
    position: relative;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--primary);
}
.assessment-audit-list__marker::after {
    position: absolute;
    top: 12px;
    left: 4px;
    width: 2px;
    height: 54px;
    background: var(--line);
    content: "";
}
.assessment-audit-list li:last-child .assessment-audit-list__marker::after {
    display: none;
}
.assessment-audit-list div { display: grid; align-content: start; gap: 4px; }
.assessment-audit-list span,
.assessment-audit-list p { margin: 0; color: var(--muted); font-size: 12px; }

.ranking-filter {
    grid-template-columns: repeat(6, minmax(135px, 1fr)) auto;
}
.ranking-method {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: #eaf5f3;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.ranking-method strong { color: var(--primary-dark); }
.ranking-scope-badge {
    display: inline-flex;
    width: max-content;
    margin: 4px 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dff2ee;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.ranking-podium {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 18px;
    margin-bottom: 20px;
}
.ranking-podium__secondary { display: grid; gap: 18px; }
.ranking-podium__card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 24px;
    align-content: center;
    justify-items: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 58, 67, .07);
}
.ranking-podium__card::after {
    position: absolute;
    right: -36px;
    bottom: -48px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--ranking-accent, #dcebea);
    opacity: .42;
    content: "";
}
.ranking-podium__card--1 {
    min-height: 386px;
    --ranking-accent: #f4c542;
    background: linear-gradient(145deg, #fffef8, #fff 62%);
}
.ranking-podium__card--2 { min-height: 184px; --ranking-accent: #b9c9ce; }
.ranking-podium__card--3 { min-height: 184px; --ranking-accent: #d89b72; }
.ranking-position {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ranking-medal {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 13px 0;
    place-items: center;
    border-radius: 50%;
    background: var(--ranking-accent);
    color: #17353d;
    font-family: Georgia, serif;
    font-size: 27px;
}
.ranking-podium__card h2 {
    max-width: 680px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.12;
}
.ranking-podium__card--1 h2 { font-size: clamp(30px, 3.4vw, 48px); }
.ranking-podium__card p { margin: 6px 0 12px; color: var(--muted); }
.ranking-podium__card > strong {
    position: relative;
    z-index: 1;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}
.ranking-podium__card--1 > strong { font-size: clamp(44px, 5vw, 70px); }
.ranking-podium__card small {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 11px;
}
.ranking-list-panel { margin-top: 0; }
.student-select-row { cursor: pointer; }
.student-select-row.is-selected {
    background: #e8f5f3;
    box-shadow: inset 4px 0 0 var(--primary);
}
.student-select-row:focus-visible {
    outline: 3px solid rgba(23, 107, 104, .25);
    outline-offset: -3px;
}
.student-select-row input[type="radio"] {
    accent-color: var(--primary);
    pointer-events: none;
}
.status-badge {
    display: inline-flex;
    border-radius: 99px;
    padding: 4px 8px;
    background: #edf1f2;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}
.status-badge--active { background: #e0f3ea; color: var(--success); }
.status-badge--blocked,
.status-badge--disabled { background: #fae6e6; color: var(--danger); }
.admin-grid {
    display: grid;
    grid-template-columns: minmax(390px, .85fr) minmax(520px, 1.35fr);
    gap: 22px;
    align-items: start;
}
.admin-editor { position: sticky; top: 92px; }
.admin-editor textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--ink);
    font: inherit;
}
.scope-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 52px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfa;
}
.scope-check-group {
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid #d8e5e3;
    border-radius: 9px;
    background: #fff;
}
.scope-check-group legend {
    padding: 0 6px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
}
.scope-check-option {
    display: flex;
    padding: 6px 4px;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink);
    font-size: 12px;
    cursor: pointer;
}
.scope-check-option + .scope-check-option {
    border-top: 1px solid #edf2f1;
}
.scope-check-option input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--primary);
}
.checkbox-group {
    margin: 0;
    border: 0;
    padding: 0;
}
.checkbox-group legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}
.checkbox-group > div { display: grid; gap: 7px; }
.checkbox-group label,
.check-field {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 12px;
}
.checkbox-group input,
.check-field input { accent-color: var(--primary); }
.block-manager { margin-top: 22px; }
.block-manager__layout {
    display: grid;
    grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr);
    gap: 22px;
}
.block-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.block-list-item small { display: block; margin-top: 3px; color: var(--muted); }
.block-list-item.is-inactive { opacity: .58; }
.admin-subeditor {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}
.section-heading--compact { margin: 18px 0 9px; }
.section-heading--compact h3 { margin: 0; font-size: 16px; }
.section-heading--compact p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.question-edit-row {
    display: grid;
    grid-template-columns: 28px 190px minmax(200px, 1fr) 32px;
    gap: 7px;
    margin-bottom: 7px;
    align-items: center;
}
.question-edit-row select,
.question-edit-row input { min-height: 39px; font-size: 11px; }
.question-number {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
}
.question-edit-row[data-level="G"] .question-number {
    background: #dff3e5;
    color: #1f6d3d;
}
.question-edit-row[data-level="R"] .question-number {
    background: #deecff;
    color: #245e9b;
}
.question-edit-row[data-level="I"] .question-number {
    background: #eee2fb;
    color: #6b35a5;
}
.icon-action {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #fae6e6;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

.student-profile { display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.student-monogram { display: grid; width: 82px; height: 82px; place-items: center; border-radius: 23px; background: var(--primary-light); color: var(--primary); font-family: Georgia, serif; font-size: 36px; }
.student-meta h2 { margin: 3px 0 10px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { border-radius: 99px; padding: 5px 10px; background: #edf3f2; color: var(--muted); font-size: 11px; }
.student-history-tabs {
    display: flex;
    margin: 18px 0 14px;
    gap: 8px;
}
.student-history-tab {
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}
.student-history-tab.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.student-history-tab--insufficiency {
    border-color: #e7a1a1;
    background: #fff0f0;
    color: #ae3030;
}
.student-history-tab--insufficiency.is-active {
    border-color: #c94747;
    background: #c94747;
    color: #fff;
}
.student-history-tab:disabled { cursor: not-allowed; opacity: .42; }
.insufficiency-history { display: grid; gap: 14px; }
.insufficiency-assessment-card { border-color: #ebc1c1; }
.insufficiency-badge {
    padding: 6px 10px;
    border-radius: 99px;
    background: #fae6e6;
    color: var(--danger);
    font-size: 10px;
    font-weight: 900;
}
.diagnostic-metrics--history {
    margin-bottom: 12px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.diagnostic-history-grid {
    display: grid;
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: 12px;
}
.diagnostic-history-grid > div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafcfc;
}
.diagnostic-history-grid h3 { margin: 0 0 8px; font-size: 12px; }
.diagnostic-history-grid ul { margin: 0; padding: 0; list-style: none; }
.diagnostic-history-grid li {
    display: flex;
    padding: 5px 0;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
}
.evolution-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 7px 11px; font-size: 12px; font-weight: 800; }
.evolution-status--up { background: #e0f3ea; color: var(--success); }
.evolution-status--down { background: #fae6e6; color: var(--danger); }
.evolution-status--stable { background: #edf1f2; color: var(--muted); }

.assessment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.is-hidden { display: none !important; }
.assessment-page-header { margin-bottom: 12px; }
.assessment-page-header h1 { font-size: 29px; }
.assessment-page-header p { margin-top: 2px; font-size: 12px; }
.assessment-identification { padding: 14px 16px; }
.assessment-identification .section-heading { margin-bottom: 10px; }
.assessment-identification .section-heading h2 { font-size: 20px; }
.assessment-identification .field label { margin-bottom: 4px; font-size: 10px; }
.assessment-identification select,
.assessment-identification input { min-height: 39px; padding: 7px 9px; font-size: 12px; }
.assessment-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}
.existing-assessment-notice {
    display: flex;
    margin-top: 16px;
    align-items: center;
    gap: 14px;
    border-color: #e8c46c;
    background: #fff9e8;
}
.existing-assessment-notice__mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: #f4c542;
    color: #493600;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 800;
}
.existing-assessment-notice .eyebrow { margin-bottom: 3px; color: #8a6500; }
.existing-assessment-notice h2 { margin: 0 0 4px; font-size: 21px; }
.existing-assessment-notice p:last-child { margin: 0; color: #70591b; }
.reading-panel {
    min-width: 0;
    padding: 14px;
    transition: background-color .8s ease, border-color .8s ease,
        box-shadow .8s ease;
}
.reading-panel.is-time-expired {
    border-color: #e4c35b;
    background: #fff9dc;
    box-shadow: 0 12px 30px rgba(180, 139, 19, .12);
}
.reading-panel.is-time-expired .word-card:not(.is-error):not(.is-stop) {
    background: #fffbed;
}
.reading-panel .section-heading { margin-bottom: 8px; }
.reading-panel .section-heading h2 { font-size: 21px; }
.assessment-workspace.is-diagnostic-mode { grid-template-columns: minmax(0, 1fr); }
.assessment-workspace.is-diagnostic-mode .assessment-side { display: none; }
.diagnostic-navigation {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 13px;
    gap: 7px;
}
.diagnostic-navigation__button {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}
.diagnostic-navigation__button:hover:not(:disabled),
.diagnostic-navigation__button.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.diagnostic-navigation__button--insufficient {
    border-color: #f0a4b6;
    background: #fde1e8;
    color: #9c2948;
}
.diagnostic-navigation__button--insufficient.is-selected {
    border-color: #c83d62;
    background: #c83d62;
    color: #fff;
}
.diagnostic-navigation__button:disabled { cursor: not-allowed; opacity: .48; }
.diagnostic-heading { align-items: flex-start; }
.diagnostic-heading p:not(.eyebrow) { max-width: 720px; font-size: 12px; }
.diagnostic-special-legend {
    padding: 6px 10px;
    border-radius: 99px;
    background: #eef3f3;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}
.syllable-category-list { display: grid; gap: 10px; }
.diagnostic-category {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.diagnostic-category > header {
    display: flex;
    padding: 8px 11px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.diagnostic-category > header h3 { margin: 0; font-size: 12px; }
.diagnostic-category > header span { color: var(--muted); font-size: 9px; }
.diagnostic-category--fricative > header { border-left: 5px solid #13addc; }
.diagnostic-category--vibrant > header { border-left: 5px solid #ef2424; }
.diagnostic-category--nasal > header { border-left: 5px solid #09ad58; }
.diagnostic-category--occlusive > header { border-left: 5px solid #cc60c0; }
.syllable-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(54px, 1fr));
}
.syllable-card {
    position: relative;
    display: grid;
    min-height: 54px;
    place-items: center;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}
.syllable-card strong { font-family: Georgia, serif; font-size: 20px; }
.syllable-card[data-category="FRICATIVE"] strong { color: #13addc; }
.syllable-card[data-category="VIBRANT"] strong { color: #ef2424; }
.syllable-card[data-category="NASAL"] strong { color: #09ad58; }
.syllable-card[data-category="OCCLUSIVE"] strong { color: #cc60c0; }
.syllable-card[aria-pressed="true"] {
    z-index: 1;
    background: #fff0f2;
    box-shadow: inset 0 0 0 3px var(--danger);
}
.multiple-sounds {
    position: absolute;
    top: 3px;
    left: 5px;
    color: #56646a;
    font-size: 10px;
    font-weight: 900;
}
.letter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(125px, 1fr));
    gap: 8px;
}
.letter-card {
    display: grid;
    min-height: 150px;
    padding: 10px;
    gap: 6px;
    border: 2px solid var(--line);
    border-radius: 11px;
    background: #fff;
}
.letter-card > span {
    min-height: 24px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.letter-card > strong {
    align-self: center;
    justify-self: center;
    font-family: Georgia, serif;
    font-size: 48px;
    line-height: 1;
}
.letter-card label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.2;
}
.letter-card input { accent-color: var(--primary); }
.letter-sound-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}
.letter-sound-options:has(.letter-sound-choice:only-child) {
    grid-template-columns: 1fr;
}
.letter-card .letter-sound-choice {
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}
.letter-sound-choice > span {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 2px;
}
.letter-sound-choice small { font-size: 8px; font-weight: 800; }
.letter-sound-icon {
    display: block;
    width: 42px;
    max-width: 100%;
    height: 42px;
    object-fit: contain;
}
.letter-card--fricative > strong { color: #13addc; }
.letter-card--vibrant > strong { color: #ef2424; }
.letter-card--nasal > strong { color: #09ad58; }
.letter-card--occlusive > strong { color: #cc60c0; }
.letter-card--vowel > strong,
.letter-card--vowel_fricative > strong { color: #087dcc; }
.letter-card--no_category > strong { color: #4e535a; }
.letter-card.has-difficulty { border-color: #e8a1a1; background: #fff8f8; }
.letter-card.is-complete { border-color: #78c9a5; background: #f2fbf7; }
.diagnostic-result-panel {
    display: grid;
    margin-top: 12px;
    padding: 13px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbfa;
}
.diagnostic-result-actions {
    display: grid;
    width: min(330px, 100%);
    gap: 10px;
}
.diagnostic-result-actions .button { width: 100%; }
.diagnostic-insufficiency-warning {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e9a6b3;
    border-radius: 9px;
    background: #fff0f3;
    color: #9d2940;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}
.diagnostic-insufficiency-warning.is-complete {
    border-color: #8bc9aa;
    background: #effaf4;
    color: #176a48;
}
.diagnostic-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 7px;
}
.diagnostic-metrics div {
    display: grid;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
}
.diagnostic-metrics span { color: var(--muted); font-size: 9px; }
.diagnostic-metrics strong { font-family: Georgia, serif; font-size: 20px; }
.diagnostic-analysis-grid {
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(280px, 1.3fr);
    gap: 10px;
    margin-top: 8px;
}
.diagnostic-analysis-grid > div { padding: 9px; border-radius: 8px; background: #fff; }
.diagnostic-analysis-grid h3 { margin: 0 0 6px; font-size: 10px; }
.diagnostic-analysis-grid ul { margin: 0; padding: 0; list-style: none; }
.diagnostic-analysis-grid li {
    display: flex;
    padding: 3px 0;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf2f1;
    font-size: 9px;
}
.diagnostic-item-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.diagnostic-item-tag {
    display: inline-flex;
    padding: 5px 7px;
    flex-direction: column;
    border-radius: 7px;
    background: #edf2f1;
    font-size: 11px;
    font-weight: 900;
}
.diagnostic-item-tag small { color: var(--muted); font-size: 7px; font-weight: 600; }
.diagnostic-item-tag--fricative { background: #dcf6fd; color: #087aa0; }
.diagnostic-item-tag--vibrant { background: #ffe2e2; color: #ad1d1d; }
.diagnostic-item-tag--nasal { background: #dcf7e8; color: #08783c; }
.diagnostic-item-tag--occlusive { background: #f9e1f7; color: #8e3a85; }
.diagnostic-item-tag--vowel,
.diagnostic-item-tag--vowel_fricative { background: #dfedfb; color: #125f9b; }
.diagnostic-item-tag--no_category { background: #e8e9eb; color: #454b50; }
.reading-toolbar {
    display: grid;
    grid-template-columns: auto auto auto auto 1fr;
    gap: 7px;
    align-items: center;
}
.reading-toolbar .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.reading-toolbar .field-hint { margin: 0; text-align: right; }
.reading-toolbar .button.is-selected {
    border-color: var(--danger);
    background: #fff0f0;
    color: var(--danger);
}
.assessment-timer {
    display: grid;
    min-width: 100px;
    padding: 6px 10px;
    border-radius: 9px;
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
}
.assessment-timer span, .assessment-timer small { color: #bcd4d2; font-size: 8px; }
.assessment-timer strong {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 24px;
    line-height: 1;
}
.assessment-timer strong.is-expired { color: #ff8f8f; }
.assessment-side { display: grid; gap: 10px; }
.assessment-summary-card { padding: 12px 14px; }
.reading-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.reading-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; background: var(--line); }
.legend-swatch--error { background: var(--danger); }
.legend-swatch--stop { background: var(--accent); }
.word-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
}
.word-card {
    display: grid;
    min-height: 69px;
    padding: 5px;
    grid-template-rows: auto 1fr auto;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f6f9f8;
    transition: border-color .15s, background .15s, transform .15s;
}
.word-card.is-read { border-color: #a8cfca; background: #edf8f5; }
.word-card.is-error { border-color: #e89494; background: #fff0f0; }
.word-card.is-stop { box-shadow: inset 0 0 0 2px var(--accent); }
.word-card__number { color: var(--muted); font-size: 8px; font-weight: 800; }
.word-card strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.05; }
.word-card div { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.word-card button {
    min-height: 21px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 8px;
    font-weight: 750;
}
.word-card [data-error][aria-pressed="true"] { border-color: var(--danger); background: var(--danger); color: #fff; }
.word-card [data-stop][aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.assessment-counts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 7px 0 9px;
}
.assessment-counts div, .preview-metrics div {
    display: grid;
    padding: 6px;
    border-radius: 7px;
    background: #f4f8f7;
}
.assessment-counts span, .preview-metrics span, .preview-level span { color: var(--muted); font-size: 10px; }
.assessment-counts strong { font-family: Georgia, serif; font-size: 18px; }
.assessment-summary-card .field label { margin-bottom: 4px; font-size: 10px; }
.assessment-summary-card .field select { min-height: 36px; padding: 6px 8px; font-size: 11px; }
.preview-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 8px 0 5px; }
.preview-metrics strong { margin-top: 2px; font-size: 10px; }
.preview-level { display: flex; padding: 7px 9px; align-items: center; justify-content: space-between; border-radius: 7px; background: var(--primary-light); }
.preview-level strong { margin-top: 0; color: var(--primary-dark); font-family: Georgia, serif; font-size: 17px; }
.comprehension-panel { padding: 12px 14px; }
.comprehension-panel .section-heading { margin-bottom: 3px; }
.comprehension-panel .section-heading h2 { font-size: 20px; }
.assessment-evidence-heading .eyebrow { margin-bottom: 2px; }
.assessment-evidence-heading h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.15;
}
.prosody-choice-list {
    display: grid;
    margin: 7px 0 3px;
    padding: 0;
    gap: 3px;
    border: 0;
}
.prosody-choice {
    display: grid;
    min-height: 28px;
    padding: 4px 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fbfa;
    cursor: pointer;
    font-size: 9px;
}
.prosody-choice:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: inset 3px 0 0 var(--primary);
}
.prosody-choice input { margin: 0; accent-color: var(--primary); }
.prosody-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prosody-choice span strong { margin-right: 4px; color: var(--primary-dark); }
.prosody-choice small { color: var(--muted); font-weight: 800; }
.prosody-choice:has(input:disabled) { cursor: not-allowed; opacity: .62; }
.comprehension-disclosure {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.comprehension-disclosure summary {
    display: flex;
    padding: 7px 9px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfa;
    cursor: pointer;
    list-style: none;
}
.comprehension-disclosure summary::-webkit-details-marker { display: none; }
.comprehension-disclosure summary > span:first-child { display: grid; gap: 1px; }
.comprehension-disclosure summary small {
    color: var(--primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.comprehension-disclosure summary strong {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 500;
}
.comprehension-disclosure__action::after {
    color: var(--primary);
    content: "Abrir questões ▾";
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.comprehension-disclosure[open] .comprehension-disclosure__action::after {
    content: "Recolher questões ▴";
}
.comprehension-disclosure #comprehension-questions { padding: 5px 3px 0; }
.comprehension-question {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    margin: 0;
    padding: 7px 0;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
}
.comprehension-question:last-child { border-bottom: 0; }
.comprehension-question legend { float: left; padding: 0; font-size: 10px; font-weight: 650; line-height: 1.15; }
.comprehension-question legend span {
    display: inline-block;
    margin-right: 7px;
    padding: 3px 7px;
    border-radius: 99px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 9px;
}
.comprehension-question[data-level="G"] legend span {
    background: #dff3e5;
    color: #1f6d3d;
}
.comprehension-question[data-level="R"] legend span {
    background: #deecff;
    color: #245e9b;
}
.comprehension-question[data-level="I"] legend span {
    background: #eee2fb;
    color: #6b35a5;
}
.comprehension-question label { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; white-space: nowrap; }
.comprehension-question input { accent-color: var(--primary); }
.assessment-submit { display: flex; min-height: 58px; padding: 10px 14px; align-items: center; justify-content: flex-end; gap: 12px; }
.assessment-submit .field-error { margin-right: auto; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.score-field { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fafcfc; }
.score-field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.score-field input { width: 100%; border: 0; border-bottom: 2px solid var(--line); background: transparent; font-family: Georgia, serif; font-size: 26px; }
.skills-list { display: grid; gap: 9px; margin-top: 18px; }
.skill-check { display: grid; grid-template-columns: auto 1fr 90px; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.skill-check input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--primary); }
.skill-check input[type="number"] { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.assessment-summary { position: sticky; top: 94px; align-self: start; }
.live-score { display: grid; margin: 18px 0; place-items: center; text-align: center; }
.live-score strong { font-family: Georgia, serif; font-size: 58px; line-height: 1; }
.live-score span { color: var(--muted); font-size: 12px; }

.loading-state, .empty-state { display: grid; min-height: 180px; place-content: center; justify-items: center; gap: 12px; color: var(--muted); text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.empty-state__mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 30px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.academic-list { margin-top: 20px; }
.academic-list-card .section-heading { margin-bottom: 16px; }
.academic-list-card .empty-state { min-height: 130px; }
.progression-toggle {
    display: flex;
    margin: 14px 0 20px;
    justify-content: flex-end;
}
.modal-dialog {
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(11, 42, 49, .28);
}
.modal-dialog::backdrop {
    background: rgba(11, 35, 42, .62);
    backdrop-filter: blur(3px);
}
.modal-dialog--confirmation { width: min(650px, calc(100vw - 32px)); }
.modal-dialog__content {
    max-height: calc(100vh - 32px);
    padding: 26px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.modal-dialog__header {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.modal-dialog__header h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}
.modal-dialog__header p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.modal-dialog__close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}
.modal-dialog__close:hover { border-color: var(--primary); color: var(--primary); }
.modal-dialog .field-hint { margin: 14px 0 0; }
.modal-dialog__error:not(:empty) {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #f2a3a3;
    border-radius: 11px;
    background: #fff0f0;
    color: #a72c2c;
    font-size: 13px;
    font-weight: 700;
}
.confirmation-summary {
    display: grid;
    margin: 0;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line);
}
.confirmation-summary > div {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 14px;
    padding: 12px 14px;
    background: #fff;
}
.confirmation-summary dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.confirmation-summary dd { margin: 0; font-size: 12px; }
.confirmation-student-list {
    max-height: 150px;
    margin: 0;
    padding-left: 18px;
    overflow-y: auto;
}
.confirmation-student-list li + li { margin-top: 4px; }
.irreversible-warning {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #efb8b8;
    border-radius: 11px;
    background: #fff1f1;
    color: #8f2929;
    font-size: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region { position: fixed; z-index: 1000; right: 18px; bottom: 18px; display: grid; gap: 10px; }
.toast { max-width: 380px; padding: 13px 16px; border-radius: 11px; box-shadow: var(--shadow); background: var(--ink); color: #fff; font-size: 13px; }
.toast--error { background: var(--danger); }
.toast--success { background: var(--success); }
.toast--warning { background: #f4c95d; color: #211a05; font-weight: 750; }

@media (min-width: 1300px) {
    .assessment-identification .section-heading { display: none; }
    .assessment-identification .form-grid--four {
        grid-template-columns:
            .65fr 1.05fr .8fr 1.2fr .75fr 1.1fr 1.2fr 1.05fr .8fr;
        gap: 9px;
    }
}

@media (max-width: 1100px) {
    .filter-panel { grid-template-columns: repeat(3, 1fr); }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .assessment-path-grid { grid-template-columns: 1fr; }
    .panel, .panel--four, .panel--eight { grid-column: 1 / -1; }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assessment-workspace { grid-template-columns: 1fr; }
    .assessment-side { grid-template-columns: 1fr; }
    .comprehension-panel, .assessment-submit { grid-column: auto; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-editor { position: static; }
    .letter-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .syllable-grid { grid-template-columns: repeat(8, minmax(52px, 1fr)); }
    .ranking-podium { grid-template-columns: 1fr; }
    .ranking-podium__secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ranking-podium__card--1 { min-height: 300px; }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .topbar { padding-inline: 20px; }
    .main-content { padding: 22px 20px 48px; }
    .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; }
    .filter-panel > .button { min-height: 46px; }
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-card { padding: 20px; }
    .form-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field input, .field select, .field textarea { min-height: 46px; }
    .tab, .diagnostic-navigation__button { min-height: 44px; }
    .table-wrap { overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
    th, td { padding: 12px; }
    .table-action { min-height: 38px; padding: 7px 5px; }
    .scope-check-option { min-height: 40px; align-items: center; }
    .scope-check-option input,
    .letter-card input { width: 20px; height: 20px; }
    .syllable-card { min-height: 60px; }
    .letter-card label { min-height: 34px; align-items: center; }
    .toast-region { right: 12px; bottom: 12px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .assessment-identification .form-grid--four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .assessment-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 38%);
    }
    .assessment-side {
        position: sticky;
        top: 84px;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
    .word-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .word-card button { min-height: 30px; }
    .reading-toolbar { grid-template-columns: auto auto auto auto minmax(110px, 1fr); }
    .app-shell:not(.is-sidebar-collapsed) .assessment-workspace {
        grid-template-columns: 1fr;
    }
    .app-shell:not(.is-sidebar-collapsed) .assessment-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
    }
    .app-shell:not(.is-sidebar-collapsed) .assessment-submit { grid-column: 1 / -1; }
    .app-shell:not(.is-sidebar-collapsed) .word-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 761px) and (max-width: 900px) {
    .assessment-identification .form-grid--four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .assessment-workspace { grid-template-columns: 1fr; }
    .word-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .word-card button { min-height: 34px; font-size: 9px; }
    .assessment-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assessment-submit { grid-column: 1 / -1; }
    .reading-toolbar { grid-template-columns: auto auto auto auto; }
    .reading-toolbar .field-hint { grid-column: 1 / -1; text-align: left; }
    .letter-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .syllable-grid { grid-template-columns: repeat(8, minmax(52px, 1fr)); }
}

@media (max-width: 760px) {
    .public-header { height: 68px; padding: 0 18px; }
    .public-header nav > a:first-child { display: none; }
    .public-hero { padding: 42px 20px 105px; }
    .public-dashboard { margin-top: -65px; padding: 0 14px; }
    .public-footer { margin: 0 18px; flex-direction: column; gap: 7px; }
    .filter-panel { grid-template-columns: 1fr; padding: 16px; }
    .ranking-podium__secondary { grid-template-columns: 1fr; }
    .ranking-podium__card--1,
    .ranking-podium__card--2,
    .ranking-podium__card--3 { min-height: 210px; }
    .ranking-podium__card--1 h2 { font-size: 31px; }
    .ranking-podium__card--1 > strong { font-size: 46px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-card:last-child { grid-column: 1 / -1; }
    .donut-layout { grid-template-columns: 1fr; justify-items: center; }
    .chart-legend { width: 100%; }

    .sidebar { width: min(280px, 86vw); transform: translateX(-105%); box-shadow: var(--shadow); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar.is-open + .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .sidebar-backdrop {
        position: fixed;
        z-index: 49;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(8, 31, 38, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    .app-shell__content { margin-left: 0; }
    .topbar { height: 64px; padding: 0 15px; }
    .icon-button { display: grid; }
    .topbar__context, .user-menu__text { display: none; }
    .environment-badge { margin-right: 8px; padding: 6px 8px; font-size: 9px; }
    .main-content { padding: 20px 15px 45px; }
    .page-header { align-items: start; flex-direction: column; }
    .form-grid, .form-grid--three, .form-grid--four { grid-template-columns: 1fr; }
    .scope-checklist { grid-template-columns: 1fr; }
    .score-grid { grid-template-columns: 1fr 1fr; }
    .assessment-layout { grid-template-columns: 1fr; }
    .assessment-summary { position: static; }
    .assessment-side { grid-template-columns: 1fr; }
    .reading-toolbar { grid-template-columns: 1fr 1fr; }
    .reading-toolbar .assessment-timer,
    .reading-toolbar .field-hint { grid-column: 1 / -1; }
    .reading-toolbar .field-hint { text-align: left; }
    .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .comprehension-question { grid-template-columns: 1fr 1fr; }
    .comprehension-question legend { grid-column: 1 / -1; }
    .login-page { grid-template-columns: 1fr; }
    .login-panel { min-height: 100vh; padding: 105px 25px 40px; }
    .login-visual { display: none; }
    .student-profile { grid-template-columns: 1fr; }
    .student-history-tabs { display: grid; grid-template-columns: 1fr; }
    .diagnostic-history-grid { grid-template-columns: 1fr; }
    .block-manager__layout { grid-template-columns: 1fr; }
    .admin-subeditor { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .question-edit-row { grid-template-columns: 28px 1fr 32px; }
    .question-edit-row input { grid-column: 2 / 4; }
    .diagnostic-navigation { display: grid; grid-template-columns: 1fr; }
    .syllable-grid { grid-template-columns: repeat(5, minmax(48px, 1fr)); }
    .letter-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .diagnostic-result-panel { grid-template-columns: 1fr; }
    .diagnostic-result-actions { width: 100%; }
    .diagnostic-analysis-grid { grid-template-columns: 1fr; }
    .diagnostic-metrics { grid-template-columns: 1fr; }
    .modal-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
    .modal-dialog__content { max-height: calc(100vh - 20px); padding: 20px; }
    .modal-dialog__header h2 { font-size: 24px; }
    .confirmation-summary > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 430px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card:last-child { grid-column: auto; }
    .score-grid { grid-template-columns: 1fr; }
    .skill-check { grid-template-columns: auto 1fr; }
    .skill-check input[type="number"] { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.race-performance-grid {
    overflow-x: auto;
}
.demographic-bar-chart {
    display: grid;
    min-width: min(100%, 960px);
    min-height: 455px;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem;
    align-items: stretch;
    padding: 12px 4px 2px;
}
.demographic-bar-item {
    display: grid;
    min-width: 175px;
    grid-template-rows: auto 180px auto auto 1fr;
    gap: .4rem;
    align-items: start;
    text-align: center;
}
.demographic-bar-item > strong { font-family: Georgia, serif; font-size: 1.2rem; }
.demographic-bar-item > span { min-height: 34px; font-weight: 700; line-height: 1.2; }
.demographic-bar-item > small { color: var(--muted); line-height: 1.2; }
.demographic-level-breakdown {
    display: grid;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    gap: 6px;
    text-align: left;
}
.demographic-level-breakdown > div { display: grid; gap: 1px; }
.demographic-level-breakdown span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.demographic-level-breakdown strong { padding-left: 15px; font-size: 10px; }
.demographic-protected { align-self: start; }
.demographic-bar-track {
    display: flex;
    height: 180px;
    align-items: end;
    overflow: hidden;
    border-radius: 10px 10px 4px 4px;
    background: #edf2f1;
}
.demographic-bar-track i {
    width: 100%;
    height: var(--bar-value);
    min-height: 0;
    border-radius: 10px 10px 0 0;
    background: var(--bar-color);
    transition: height .35s ease;
}
.race-performance-panel,
.atypical-performance-panel { margin-top: 18px; }
.privacy-summary {
    display: flex;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #cfe2df;
    border-radius: 14px;
    align-items: flex-start;
    gap: 12px;
    background: #edf7f5;
    color: var(--ink);
}
.dashboard-report-dialog { width: min(680px, calc(100vw - 32px)); }
.dashboard-report-scope {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    background: var(--surface-soft, #f3f8f7);
}
.dashboard-report-scope strong { display: block; color: var(--ink); }
.dashboard-report-scope p {
    margin: 5px 0 9px;
    color: var(--muted);
    font-size: 13px;
}
.dashboard-report-scope small { color: var(--primary-dark); font-weight: 700; }
.dashboard-report-scope small.is-missing { color: var(--danger); }

.unassessed-heading { margin-bottom: 14px; }
.unassessed-filter-bar {
    display: grid;
    max-width: 900px;
    grid-template-columns: minmax(170px, .7fr) minmax(240px, 1.2fr) auto;
    align-items: end;
    column-gap: 28px;
    row-gap: 18px;
}
.unassessed-filter-bar .field { margin: 0; }
.unassessed-filter-button { min-height: 46px; }
.unassessed-table-card { margin-top: 18px; overflow: hidden; }
.unassessed-table-card__header {
    display: flex;
    padding: 18px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: #f5faf9;
}
.unassessed-table-card__header h2 { margin: 3px 0 0; font-family: Georgia, serif; }
.pending-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c83f4b;
    font-size: 12px;
    font-weight: 850;
}
.pending-count i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #d64545;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, .12);
}
.unassessed-table-wrap { overflow-x: auto; }
.unassessed-table { min-width: 760px; table-layout: fixed; }
.unassessed-table th:first-child { width: 22%; }
.unassessed-table th:nth-child(2) { width: 34%; }
.unassessed-table th:nth-child(3) { width: 44%; }
.unassessed-table th { padding: 14px 18px; background: #eef6f5; }
.unassessed-table td { padding: 18px; vertical-align: top; }
.unassessed-locality-cell { background: #f5faf9; border-right: 1px solid var(--line); }
.unassessed-locality-cell > strong,
.unassessed-school-cell > strong { display: block; margin-bottom: 9px; }
.unassessed-school-cell { border-right: 1px solid var(--line); }
.unassessed-class-list { display: grid; gap: 9px; }
.unassessed-class-card {
    display: flex;
    width: 100%;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.unassessed-class-card > span { display: grid; gap: 6px; }
.unassessed-class-card:hover,
.unassessed-class-card:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23,107,104,.1);
    outline: none;
}
.unassessed-class-card em {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}
.unassessed-dialog-count { color: var(--muted); }
.unassessed-student-list {
    display: grid;
    max-height: 48vh;
    margin: 14px 0 0;
    padding: 0;
    overflow: auto;
    list-style-position: inside;
}
.unassessed-student-list li { padding: 10px 4px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
    .unassessed-filter-bar {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }
    .unassessed-filter-button {
        width: max-content;
        margin-top: 4px;
    }
}
.privacy-summary__icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.privacy-summary strong { color: var(--primary-dark); font-size: 13px; }
.privacy-summary p { max-width: 1050px; margin: 4px 0 2px; color: #465e65; font-size: 12px; }
.privacy-summary small { color: var(--muted); font-size: 10px; }
.teacher-tenure-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.teacher-tenure {
    display: grid;
    min-width: 220px;
    gap: .2rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7faf9;
}
.teacher-tenure.is-current {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
}
.teacher-tenure span,
.teacher-tenure small,
.student-teachers .field-hint { color: var(--muted); }
.student-teachers { display: grid; gap: .5rem; margin-top: .85rem; }
.tag--current { border-color: var(--primary); }
.teacher-history-list { display: grid; gap: .35rem; min-width: 230px; }
.teacher-history-list span { font-size: .82rem; color: var(--muted); }
.race-performance-card {
    display: grid;
    gap: .45rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #d6e1df);
    border-radius: 14px;
    background: #fff;
}
.race-performance-card strong { font-size: 1.35rem; }
.race-performance-meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efee;
}
.race-performance-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #177873;
}
.inline-options { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}
