@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand and text (board 7 · Kleurtokens) */
  --brand: #1d7775;
  --brand-dark: #0f4f4d;
  --brand-soft: #e3f1ee;
  --brand-tint: #eaf3f1;
  --brand-line: #b9d3cf;
  --text: #233638;
  --text-secondary: #566967;
  --text-tertiary: #3c5250;
  --border: #dce7e5;
  --border-soft: #edf2f1;
  --background: #f4f8f7;
  --focus: #d39b2f;
  --info: #1f5a96;
  --warning: #7a4f00;
  --error: #ad2637;
  --white: #ffffff;
  --warning-soft: #fdf1dc;
  --warning-accent: #e0a73a;
  --error-soft: #fde8ea;
  --error-strong: #8c1d2b;
  --blocked: #c9d8d5;
  /* Exam status: badge background, text, dot and bar (board 7 · Examenstatus) */
  --status-todo-bg: #eef1f1;
  --status-todo-fg: #3c5250;
  --status-todo-dot: #8a9b98;
  --status-todo-bar: #c9d3d1;
  --status-busy-bg: #e6effa;
  --status-busy-fg: #1f5a96;
  --status-busy-dot: #4a86c5;
  --status-busy-bar: #4a86c5;
  --status-ready-bg: #0f4f4d;
  --status-ready-fg: #ffffff;
  --status-ready-dot: #9fd6cd;
  --status-ready-bar: #0f4f4d;
  font-family: Montserrat, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: .875rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.site-header form { margin: 0; }
.brand { color: var(--brand); text-decoration: none; font-weight: 700; line-height: 1.25; }
.brand span { display: block; }
.brand span + span { font-size: 1rem; }
.brand-school { font-size: .6875rem; letter-spacing: .06em; font-weight: 500; }
.main-nav { display: flex; gap: .25rem; flex: 1 1 auto; }
.main-nav a { text-decoration: none; padding: .625rem .875rem; border-radius: .5rem; color: var(--text-tertiary); font-weight: 500; font-size: .875rem; }
.main-nav a:hover { background: var(--background); color: var(--brand-dark); }
.main-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.breadcrumbs { font-size: .8125rem; color: #4d5e5c; margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--brand); }
.breadcrumbs span[aria-hidden] { margin: 0 .3rem; }
main { max-width: 1180px; margin: 2rem auto 4rem; padding: 0 1.5rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
h2 { font-size: 1.25rem; }
.eyebrow { color: #1d7775; font-weight: 700; font-size: .8rem; }
.card { background: #fff; border: 1px solid #dce7e5; border-radius: 1rem; padding: 2rem; }
.login-card { max-width: 460px; margin: 4rem auto; }
.muted { color: #566967; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input { width: 100%; padding: .75rem; border: 1px solid #9aadaa; border-radius: .4rem; font: inherit; }
button { border: 0; border-radius: .5rem; background: var(--brand); color: var(--white); padding: .75rem 1.25rem; font: inherit; font-weight: 600; cursor: pointer; }
/* Buttons: one primary action per screen; .button styles links like buttons. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6875rem 1.125rem; border: 0; border-radius: .5rem; background: var(--brand); color: var(--white); font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); color: var(--white); }
.button-secondary, .button.button-secondary { background: var(--white); color: var(--brand); border: 1px solid var(--brand-line); }
.button-secondary:hover, .button.button-secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.button-soft, .button.button-soft { background: var(--brand-tint); color: var(--brand-dark); border: 0; }
.button-soft:hover, .button.button-soft:hover { background: var(--brand-soft); color: var(--brand-dark); }
.button-danger, .button.button-danger { background: var(--error); color: var(--white); }
.button-compact { min-height: 44px; padding: .625rem 1rem; font-size: .875rem; }
.button svg { flex: none; }
.button-count { background: var(--brand-soft); color: var(--brand-dark); border-radius: .625rem; padding: .05rem .5rem; font-size: .75rem; }
/* A blocked button always sits next to text that says what is missing. */
.blocked-action { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.blocked-reason { margin: 0; font-size: .875rem; font-weight: 600; color: var(--warning); }
:focus-visible { outline: 3px solid #d39b2f; outline-offset: 3px; }
.error, .errorlist { color: #ad2637; }
.actions, .page-heading { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.page-heading { justify-content: space-between; margin-bottom: 1.5rem; }
.card + .card { margin-top: 1.5rem; }
a { color: #176360; }
.button { display: inline-block; padding: .75rem 1.25rem; background: #1d7775; color: white; border-radius: .5rem; text-decoration: none; font-weight: 600; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .75rem; border-bottom: 1px solid #dce7e5; vertical-align: top; }
th { color: #1d7775; font-size: .85rem; }
.table-scroll { overflow-x: auto; }
select, textarea { font: inherit; padding: .6rem; border: 1px solid #9aadaa; border-radius: .4rem; max-width: 100%; }
dt { font-weight: 600; } dd { margin: 0 0 .75rem; }
.class-grid { display: grid; }
.entry-heading { position: sticky; top: 0; z-index: 2; padding: .75rem 0; background: #f4f8f7; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.entry-heading h1 { font-size: 1.6rem; margin: .2rem 0; }
.entry-heading p { margin: 0; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.result-panel { position: sticky; top: 110px; padding: 1.25rem; font-size: .82rem; max-height: calc(100vh - 130px); overflow-y: auto; }
.summary-table td, .summary-table th { padding: .55rem .2rem; }
.summary-table small { display: block; font-size: .7rem; }
.summary-table td:last-child { white-space: nowrap; }
.exam-part { margin-bottom: 1.5rem; }
.score-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #edf2f1; gap: 1rem; }
.score-row label { margin: 0; }
.point-control { display: flex; gap: .65rem; align-items: center; white-space: nowrap; }
.point-control input { width: 100px; text-align: right; }
.goal-field { padding: 1rem 0; border-bottom: 1px solid #edf2f1; scroll-margin-top: 120px; }
.goal-field label { font-size: .85rem; }
.save-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; background: #e4f0ed; border-radius: .5rem; font-size: .85rem; }
.success { color: #176541; font-weight: 600; }
.review-item { margin-bottom: 1rem; }.review-item button { margin-top: .5rem; font-size: .75rem; }
.pupil-navigation { justify-content: space-between; margin-top: 2rem; }
summary { cursor: pointer; font-weight: 700; }
textarea { width: 100%; }
button:disabled, .button[aria-disabled="true"] { background: var(--blocked); color: var(--text-tertiary); border-color: var(--blocked); cursor: not-allowed; }
.export-list { padding-left: 1.1rem; } .export-list li { margin-bottom: .75rem; }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: #1d7775; }
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 1rem; background: #edf4f2; font-size: .8rem; }
/* Overview, class export and import review (boards 1, 2, 5, 6, 7) */
.overview { display: flex; flex-direction: column; gap: 1.5rem; }
.overview h1 { margin: .25rem 0 0; font-size: clamp(1.8rem, 4vw, 2.125rem); }
.overview .eyebrow { margin: 0; font-size: .8125rem; letter-spacing: .04em; }
.overview .lead { margin: .375rem 0 0; font-size: .9375rem; }
.overview-heading { align-items: flex-end; margin-bottom: 0; }
.heading-actions { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: 1rem; }
.panel-title { font-size: 1rem; margin: 1rem 1.25rem .25rem; }
.form-panel { padding: 1.5rem; }
.form-panel form > p { margin: 0 0 1rem; }
.mapping-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 1rem; }
.mapping-grid select { width: 100%; min-height: 44px; }
.empty-state { padding: 1.5rem; }
.empty-state h3 { margin-top: 0; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.section-heading h2 { margin: 0; }
.number, .number-cell { font-variant-numeric: tabular-nums; }
th.number, td.number { text-align: right; }
.strong { font-weight: 600; }

/* Status: badges, swatches and bars share the tokens of board 7. */
.status-badge { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-badge.status-todo { background: var(--status-todo-bg); color: var(--status-todo-fg); }
.status-badge.status-todo::before { background: var(--status-todo-dot); }
.status-badge.status-busy { background: var(--status-busy-bg); color: var(--status-busy-fg); }
.status-badge.status-busy::before { background: var(--status-busy-dot); }
.status-badge.status-ready { background: var(--status-ready-bg); color: var(--status-ready-fg); }
.status-badge.status-ready::before { background: var(--status-ready-dot); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.swatch.status-todo, .segment-bar .status-todo { background: var(--status-todo-bar); }
.swatch.status-busy, .segment-bar .status-busy { background: var(--status-busy-bar); }
.swatch.status-ready, .segment-bar .status-ready { background: var(--status-ready-bar); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem 1rem; font-size: .75rem; color: var(--text-tertiary); }
.legend li { display: flex; align-items: center; gap: .375rem; }
.segment-bar { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; background: var(--status-todo-bg); }
.segment-bar span { flex: 1 0 0; }
.segment-caption { margin: .5rem 0 0; font-size: .8125rem; color: var(--text-tertiary); }
.segment-caption strong { color: var(--brand-dark); }
.progress-track { display: flex; flex: 1 1 auto; height: 6px; border-radius: 4px; background: var(--status-todo-bg); overflow: hidden; }
.progress-track > span { display: block; height: 100%; background: var(--status-busy-bar); transition: width .3s; }
.progress-track > span.is-full, .progress-large > span { background: var(--brand); }
.progress-large { height: 8px; border-radius: 5px; }

/* Dashboard */
.workflow { padding: 1.25rem 1.5rem; }
.workflow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.workflow-step { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: .75rem; }
.workflow-step.is-active { background: var(--brand-soft); outline: 2px solid var(--brand); }
.workflow-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; background: var(--white); color: #4d5e5c; border: 2px solid var(--status-todo-bar); }
.is-done .workflow-dot { background: var(--brand); color: var(--white); border-color: var(--brand); }
.is-active .workflow-dot { color: var(--brand-dark); border-color: var(--brand); }
.workflow-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.workflow-label { font-weight: 600; font-size: .875rem; }
.workflow-detail { font-size: .75rem; color: #4d5e5c; }
.resume-card { background: var(--brand-dark); color: var(--white); border-radius: 1rem; padding: 1.375rem 1.625rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.resume-card p { margin: 0; }
.resume-eyebrow { font-size: .8125rem; font-weight: 600; color: #bfe0da; letter-spacing: .04em; }
.resume-name { margin-top: .25rem !important; font-size: 1.25rem; font-weight: 700; }
.resume-meta { margin-top: .125rem !important; font-size: .875rem; color: #d6ece8; }
.resume-button, .resume-button:hover { background: var(--white); color: var(--brand-dark); font-size: .9375rem; font-weight: 700; }
.classes { display: flex; flex-direction: column; gap: .875rem; }
.class-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.class-card { background: var(--white); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; gap: .875rem; }
.class-card-title { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.class-card-title h3 { margin: 0; font-size: 1.375rem; }
.class-card-title a { color: var(--text); text-decoration: none; }
.class-card-title a:hover { color: var(--brand); text-decoration: underline; }
.class-card-action { margin-top: auto; }
form.class-card-action .button, a.class-card-action { width: 100%; }
.hint { margin: 0; display: flex; align-items: center; gap: .5rem; padding: .5rem .625rem; border-radius: .5rem; font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.hint-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.hint-busy { background: var(--status-busy-bg); color: var(--status-busy-fg); }
.hint-busy .hint-dot { background: var(--status-busy-dot); }
.hint-ok, .hint-done { background: var(--brand-soft); color: var(--brand-dark); }
.hint-ok .hint-dot, .hint-done .hint-dot { background: var(--brand); }
.hint-start { background: var(--status-todo-bg); color: var(--status-todo-fg); }
.hint-start .hint-dot { background: var(--status-todo-dot); }

/* Class overview */
.quiet-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-radius: .75rem; background: var(--white); border: 1px dashed var(--brand-line); font-size: .875rem; color: var(--text-tertiary); }
.quiet-notice form { margin: 0; }
.button-compact.button { font-size: .8125rem; }
.table-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5625rem .875rem; border-radius: 999px; background: var(--white); color: var(--text); border: 1px solid #c9d8d5; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.filter-chip[aria-pressed="true"], .filter-chip[aria-current="page"] { background: var(--brand); color: var(--white); border-color: var(--brand); }
.chip-count { border-radius: .625rem; padding: 0 .4375rem; font-size: .75rem; background: var(--status-todo-bg); color: var(--text-tertiary); }
.filter-chip[aria-pressed="true"] .chip-count { background: var(--brand-dark); color: var(--white); }
.search-field { display: flex; align-items: center; gap: .5rem; margin: 0; background: var(--white); border: 1px solid #9aadaa; border-radius: .5rem; padding: 0 .75rem; min-height: 44px; flex: 0 1 260px; color: var(--text-secondary); font-weight: 400; }
.search-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-field input { border: 0; outline: none; padding: .5rem 0; background: transparent; font-size: .875rem; color: var(--text); }
.pupil-table { min-width: 760px; font-size: .875rem; }
.pupil-table th { padding: .875rem .75rem; font-size: .75rem; letter-spacing: .03em; text-transform: uppercase; border-bottom-color: var(--border); }
.pupil-table td { padding: .75rem; border-bottom-color: var(--border-soft); vertical-align: middle; }
.pupil-table th:first-child, .pupil-table td:first-child { padding-left: 1.25rem; }
.pupil-table th:last-child, .pupil-table td:last-child { padding-right: 1.25rem; }
.pupil-table tbody tr:last-child td { border-bottom: 0; }
.pupil-name { font-weight: 600; }
.row-note { display: block; font-weight: 500; font-size: .75rem; color: #4d5e5c; }
.points-cell { min-width: 160px; }
.points-progress { display: flex; align-items: center; gap: .625rem; }
.points-progress .number { min-width: 44px; font-size: .8125rem; color: var(--text-tertiary); }
.number-cell { color: var(--text-tertiary); }
.row-action { text-align: right; white-space: nowrap; }
.row-action a, .blocked-row a, .export-history a { font-weight: 600; text-decoration: none; }

/* Class results */
.results-toolbar-start { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; flex: 1 1 360px; }
.results-hint { margin: 0; }
.results-table { min-width: 980px; }
.results-table th { vertical-align: bottom; }
.results-table thead th { padding: 0; }
.results-table thead th.number { text-align: right; }
.sort-button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .125rem; width: 100%; min-height: 44px; padding: .75rem; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
th.number .sort-button { align-items: flex-end; text-align: right; }
.sort-label { display: inline-flex; align-items: center; gap: .375rem; }
.sort-button:hover { color: var(--brand-dark); background: var(--brand-tint); }
.sort-button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.results-table thead th:first-child .sort-button { padding-left: 1.25rem; }
.results-table thead th:last-child .sort-button { padding-right: 1.25rem; }
.col-weight { font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-secondary); }
.sort-icon { width: .625rem; height: .875rem; flex: none; opacity: .35; background: currentColor; clip-path: polygon(50% 0, 100% 38%, 0 38%, 0 62%, 100% 62%, 50% 100%); }
[aria-sort="ascending"] .sort-icon { opacity: 1; clip-path: polygon(50% 15%, 100% 75%, 0 75%); }
[aria-sort="descending"] .sort-icon { opacity: 1; clip-path: polygon(0 25%, 100% 25%, 50% 85%); }
.results-table th[aria-sort="ascending"], .results-table th[aria-sort="descending"] { color: var(--brand-dark); background: var(--brand-tint); }
.results-table .col-name { position: sticky; left: 0; z-index: 1; background: var(--white); min-width: 200px; }
.results-table thead .col-name { z-index: 2; }
.results-table th[aria-sort="ascending"].col-name, .results-table th[aria-sort="descending"].col-name { background: var(--brand-tint); }
.results-table.is-grouped .col-subgroup { display: none; }
.results-table td.pupil-name a { color: var(--text); text-decoration: none; }
.results-table td.pupil-name a:hover { color: var(--brand); text-decoration: underline; }
.results-table td.is-low { color: var(--error); font-weight: 600; }
.results-table td.is-empty { color: var(--status-todo-dot); }
.results-table tbody + tbody .group-row th, .results-table tbody + tbody .group-row td { border-top: 1px solid var(--border); }
.group-row th, .group-row td { background: var(--brand-soft); padding-top: .5rem; padding-bottom: .5rem; border-bottom-color: var(--brand-line); }
.group-row th.col-name { background: var(--brand-soft); text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--brand-dark); }
.group-toggle { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; cursor: pointer; font-weight: 700; }
.group-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: .25rem; }
.group-chevron { transition: transform .15s; }
.group-toggle[aria-expanded="false"] .group-chevron { transform: rotate(-90deg); }
.group-average { font-size: .8125rem; color: var(--brand-dark); font-weight: 600; }
.average-row th, .average-row td { border-top: 2px solid var(--border); border-bottom: 0; font-weight: 600; background: var(--brand-tint); padding: .75rem; }
.average-row th.col-name { background: var(--brand-tint); text-transform: none; letter-spacing: 0; font-size: .875rem; padding-left: 1.25rem; }
.results-low-swatch { background: var(--error); }

/* Class export */
.split-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.list-panel { overflow: hidden; }
.list-panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.select-all { display: flex; align-items: center; gap: .75rem; margin: 0; min-height: 44px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.list-title { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .625rem; }
.count-pill { display: inline-block; border-radius: .625rem; padding: .05rem .5625rem; font-size: .75rem; font-weight: 600; background: var(--status-todo-bg); color: var(--text-tertiary); }
.count-pill-strong { background: var(--brand-dark); color: var(--white); }
.pupil-list { list-style: none; margin: 0; padding: 0; }
.pupil-list > li { border-bottom: 1px solid var(--border-soft); }
.pupil-list > li:last-child { border-bottom: 0; }
.pupil-option { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .625rem 1.25rem; min-height: 44px; font-weight: 500; cursor: pointer; }
.pupil-option input, .select-all input { flex: none; width: 20px; height: 20px; margin: 0; }
.pupil-option-name { flex: 1 1 auto; }
.pupil-option .number { color: var(--text-tertiary); }
.mini-tag { font-size: .75rem; font-weight: 600; color: #176360; background: var(--brand-soft); border-radius: .375rem; padding: .125rem .5rem; white-space: nowrap; }
.list-empty { padding: 1rem 1.25rem; }
.blocked-row { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; padding: .625rem 1.25rem; min-height: 44px; }
.blocked-name { flex: 0 0 200px; font-weight: 500; color: var(--text-tertiary); }
.blocked-row a { margin-left: auto; font-size: .8125rem; }
.reason-tag { font-size: .75rem; font-weight: 600; border-radius: .375rem; padding: .1875rem .5625rem; }
.reason-tag.status-busy { background: var(--status-busy-bg); color: var(--status-busy-fg); }
.reason-tag.status-todo { background: var(--status-todo-bg); color: var(--status-todo-fg); }
.side-panel { padding: 1.25rem 1.375rem; display: flex; flex-direction: column; gap: .75rem; }
.side-panel p { margin: 0; }
.side-title { margin: 0; font-size: .9375rem; color: var(--text-tertiary); }
.side-title a { color: inherit; text-decoration: none; }
.side-count { font-size: 1.75rem; font-weight: 700; color: var(--brand-dark); line-height: 1.2; }
.progress-panel { border-color: var(--brand-line); }
.progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .125rem .625rem; white-space: nowrap; }
.pill-busy { background: var(--status-busy-bg); color: var(--status-busy-fg); }
.pill-ready { background: var(--brand-soft); color: var(--brand-dark); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-error { background: var(--error-soft); color: var(--error-strong); }
.warning-text { color: var(--warning); font-weight: 600; }
.export-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; font-size: .8125rem; }
.export-history li { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; }
.export-history form { margin: 0; }
.history-label { flex: 1 1 auto; color: var(--text) !important; font-weight: 500 !important; }
.link-button { background: none; color: #176360; padding: 0; font-size: inherit; min-height: 0; }
.link-button:hover { color: var(--brand-dark); text-decoration: underline; }
.result-summary .heading-actions { margin-top: .25rem; }

/* Import */
.import-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .25rem; font-size: .875rem; }
.import-steps li { display: flex; align-items: center; gap: .5rem; color: var(--text-secondary); }
.import-steps .is-current { font-weight: 700; color: var(--brand-dark); }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; border: 2px solid var(--status-todo-bar); background: var(--white); color: #4d5e5c; }
.is-done .step-dot { background: var(--brand); border-color: var(--brand); color: var(--white); }
.is-current .step-dot { border-color: var(--brand); color: var(--brand-dark); }
.import-steps .step-line { width: 40px; height: 2px; margin: 0 .375rem; background: var(--status-todo-bar); }
.import-steps .step-line.is-done { background: var(--brand); }
.count-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.count-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; text-align: left; padding: .875rem 1rem; border-radius: .75rem; min-height: 44px; background: var(--white); font-size: .8125rem; border: 1px solid #c9d8d5; color: var(--text-tertiary); }
.count-tile .tile-number { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.count-tile[aria-pressed="false"] { opacity: 1; border-style: dashed; }
.tile-need[aria-pressed="true"] { background: var(--warning-soft); color: #5a3d00; border: 2px solid var(--warning-accent); }
.tile-new[aria-pressed="true"] { color: var(--info); border: 2px solid var(--status-busy-dot); }
.tile-update[aria-pressed="true"] { color: var(--brand-dark); border: 2px solid var(--brand); }
.tile-same[aria-pressed="true"] { color: var(--text-tertiary); border: 2px solid #8a9b98; }
.import-table select { min-height: 44px; max-width: 260px; font-size: .8125rem; }
.import-table tr.needs-choice td { background: #fffaf0; }
.import-table tr.needs-choice select { border: 2px solid var(--warning-accent); color: #5a3d00; font-weight: 600; }
.kind-chip { display: inline-block; padding: .125rem .5625rem; border-radius: .375rem; font-size: .75rem; font-weight: 600; }
.kind-need { background: var(--warning-accent); color: #3a2600; }
.kind-new { background: var(--status-busy-bg); color: var(--info); }
.kind-update { background: var(--brand-soft); color: var(--brand-dark); }
.kind-same, .kind-skip { background: var(--status-todo-bg); color: var(--text-tertiary); }
.change-text { margin-top: .25rem; color: var(--text-tertiary); }
.table-footnote { margin: .75rem 0 0; }
.sticky-bar { position: sticky; bottom: 0; z-index: 3; margin: 1.5rem -1.5rem -4rem; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15, 79, 77, .08); }
.sticky-bar-inner { padding: .875rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.sticky-bar .blocked-reason:empty { visibility: hidden; }
@media (max-width: 640px) {
  .overview-heading .heading-actions, .heading-actions .button { width: 100%; }
  .blocked-name { flex-basis: 100%; }
}
@media (max-width: 900px) { .entry-grid { grid-template-columns: 1fr; } .result-panel { position: static; max-height: none; } }

/* Report comments */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.block { display: block; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-heading h2 { margin: 0; }
.card-intro { margin: 0; flex: 1 1 360px; }
.comment-text { white-space: pre-wrap; font: inherit; font-size: .9rem; line-height: 1.55; background: #f8fbfa; border: 1px solid #dce7e5; border-radius: .5rem; padding: 1rem 1.15rem; margin: 0; }
.missing-box { background: #fdf7ea; border: 1px solid #f0dcae; border-radius: .5rem; padding: 1rem 1.15rem; }
.comments-table .number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter span { position: absolute; inset: 0 auto 0 0; border-radius: 1rem; background: #1d7775; }
.meter span.low { background: #ad2637; }
.meter i { position: absolute; top: -.2rem; bottom: -.2rem; width: 1px; background: #9aadaa; }
.tag-strong { background: #e3f3ea; color: #176541; }
.tag-fallback { background: #eaf3f1; color: #176360; }
.tag-weak { background: #fbe7ea; color: #ad2637; }
.tag-neutral { background: #f1f4f4; color: #566967; }
.score-low { color: #ad2637; font-weight: 700; }
.comments-table abbr { text-decoration: none; cursor: help; }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: .25rem; }
.field { margin-bottom: 1rem; }
.field label { font-size: .85rem; margin-bottom: .25rem; }
.field-label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .25rem; }
.field-label label { margin: 0; }
.field .hint { font-size: .75rem; color: #566967; margin: .2rem 0 0; }
.field-error { font-size: .8rem; color: #ad2637; margin: .25rem 0 0; font-weight: 600; }
.field:has(.field-error:not([hidden])) input, .field:has(.field-error:not([hidden])) textarea { border-color: #ad2637; background: #fff8f9; }
.field textarea { resize: vertical; padding: .55rem .65rem; font-size: .88rem; }
.chip { font-family: ui-monospace, monospace; font-size: .72rem; padding: .05rem .4rem; border-radius: .3rem; background: #eaf3f1; color: #176360; font-weight: 500; }
.column-label { color: #1d7775; font-weight: 700; font-size: .8rem; }
.review-grid { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem .75rem; align-items: center; }
.review-grid .goal-codes { font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 500; color: #566967; margin: 0; }
.inline-field { display: flex; align-items: center; gap: .75rem; }
.inline-field label { margin: 0; }
.names-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.input-suffix { display: flex; align-items: center; gap: .4rem; }
.number-input { text-align: right; }
.card-error { margin: 0 0 1rem; padding: .75rem 1rem; background: #fbe7ea; border-radius: .5rem; }

/* Report comments: shared page pieces (rc- prefix keeps them apart from the rest of the site) */
.rc-crumbs { font-size: .82rem; color: #4d5e5c; margin-bottom: 1rem; }
.rc-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.rc-heading h1 { margin: .25rem 0 0; font-size: 2rem; }
.rc-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.rc-subtitle { margin: .35rem 0 0; color: #566967; }
.rc-heading-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.rc-icon { flex: none; }
.rc-button, .rc-button-outline, .rc-button-soft, .rc-button-danger { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.1rem; border-radius: .5rem; font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; box-sizing: border-box; }
.rc-button { border: 0; background: #1d7775; color: #fff; }
.rc-button:disabled, .rc-button-soft:disabled { opacity: .5; cursor: not-allowed; }
.rc-button-outline { border: 1px solid #b9d3cf; background: #fff; color: #1d7775; }
.rc-button-outline:hover { border-color: #1d7775; }
.rc-button-soft { border: 0; background: #eaf3f1; color: #0f4f4d; }
.rc-button-danger { border: 0; background: transparent; color: #8c1d2b; }
.rc-button-danger:hover { background: #fbe7ea; }
.rc-button-small { border: 0; background: #1d7775; color: #fff; font: inherit; font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: .5rem; min-height: 36px; }
.copy-button.copied, .copy-button.copied:hover { background: #e3f3ea; color: #176541; }
.tag { display: inline-block; justify-self: start; padding: .12rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }

/* Report comments: class table (board 9) */
.rc-table-card { background: #fff; border: 1px solid #dce7e5; border-radius: 1rem; overflow-x: auto; }
.comments-table { min-width: 980px; font-size: .88rem; }
.comments-table th { padding: .75rem .4rem; font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; }
.comments-table td { padding: .55rem .25rem; border-bottom-color: #edf2f1; vertical-align: middle; }
.comments-table .rc-first { padding-left: 1rem; }
.comments-table .rc-last { padding-right: 1rem; }
.comments-table tbody tr:last-child td { border-bottom: 0; }
.comments-table tr[data-row-toggle] { cursor: pointer; }
.comments-table tr[data-row-toggle]:hover td { background: #fbfdfc; }
.comments-table tr.rc-incomplete { color: #566967; }
.rc-name { font-weight: 600; color: #233638; text-decoration: none; }
.rc-name:hover { text-decoration: underline; }
.rc-disclosure { width: 1.5rem; height: 1.5rem; padding: 0; margin: 0 0 0 .3rem; background: transparent; color: #566967; border-radius: .3rem; vertical-align: middle; }
.rc-disclosure::before { content: "▸"; }
.rc-disclosure[aria-expanded="true"]::before { content: "▾"; }
.rc-pct { display: inline-block; min-width: 44px; padding: .1rem .4rem; border-radius: .4rem; font-size: .82rem; font-variant-numeric: tabular-nums; color: #3c5250; text-align: right; }
.rc-pct-strong { background: #e3f3ea; color: #176541; font-weight: 700; }
.rc-pct-weak { background: #fdf1d6; color: #7a4f00; font-weight: 600; }
.rc-pct-low { background: #fbe7ea; color: #ad2637; font-weight: 700; }
.rc-pct-empty { color: #8a9b98; }
.rc-total { font-weight: 700; padding-left: .5rem !important; }
.rc-level { font-size: .82rem; color: #3c5250; padding-left: .5rem !important; }
.rc-missing { font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.comments-table tr.has-detail:has(+ tr.detail:not([hidden])) td { border-bottom-color: transparent; background: #f8fbfa; }
.comments-table tr.detail td { background: #f8fbfa; padding: 0 1rem 1rem; border-bottom: 1px solid #dce7e5; cursor: auto; }
.comments-table tr.detail .comment-text { background: #fff; font-size: .82rem; }
.rc-detail { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.rc-detail .comment-text { flex: 1 1 520px; min-width: 0; }
.rc-why { flex: 0 1 260px; font-size: .82rem; color: #3c5250; display: flex; flex-direction: column; gap: .5rem; }
.rc-why p { margin: 0; }
.rc-why a { font-weight: 600; }
.rc-footnote { font-size: .82rem; color: #566967; margin: 1rem 0 0; }

/* Report comments: template editor (board 10) */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; align-items: start; }
.rc-editor-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.card.rc-section { padding: 1.25rem 1.4rem; margin: 0; }
.rc-section h2 { margin: 0; font-size: 1.05rem; }
.rc-section-head { margin-bottom: .9rem; }
.rc-section-head p, .rc-section-note { margin: .15rem 0 0; font-size: .82rem; color: #566967; }
.rc-section-note { margin-bottom: .75rem; }
.rc-code { font-size: .8rem; background: #eaf3f1; color: #176360; padding: .05rem .4rem; border-radius: .25rem; font-weight: 500; }
.rc-zones { margin-bottom: 1rem; }
.rc-zone-bar { display: flex; height: 28px; border-radius: .5rem; overflow: hidden; font-size: .75rem; font-weight: 600; }
.rc-zone-bar span { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.rc-zone-weak { background: #fdf1d6; color: #7a4f00; padding-left: .6rem; }
.rc-zone-neutral { background: #eef1f1; color: #3c5250; justify-content: center; }
.rc-zone-strong { background: #e3f3ea; color: #176541; padding-left: .6rem; }
.rc-zone-scale { position: relative; display: flex; justify-content: space-between; height: 1.2rem; margin-top: .25rem; font-size: .7rem; color: #566967; font-variant-numeric: tabular-nums; }
.rc-tick { position: absolute; top: 0; transform: translateX(-50%); }
.threshold-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.threshold-grid .number-input { width: 72px; }
.rc-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.rc-level-cell { display: flex; align-items: center; gap: .35rem; border: 1px solid #dce7e5; border-radius: .5rem; padding: .3rem .5rem; }
.rc-level-cell:focus-within { border-color: #1d7775; }
.rc-level-cell input { border: 0; padding: .35rem .25rem; background: transparent; min-width: 0; font-size: .88rem; }
.rc-level-cell > input { flex: 1 1 auto; }
.rc-level-bound { display: inline-flex; align-items: center; gap: .1rem; font-size: .75rem; color: #566967; white-space: nowrap; }
.rc-level-bound input { width: 2.6rem; text-align: right; font-size: .75rem; color: #566967; border-bottom: 1px dashed #c9d8d5; border-radius: 0; padding: .2rem .1rem; }
.rc-group { border: 1px solid #dce7e5; border-radius: .75rem; margin-top: .6rem; }
.rc-group[open] { border-color: #b9d3cf; background: #fbfdfc; }
.rc-group summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem .9rem; cursor: pointer; list-style: none; font-weight: 700; font-size: .88rem; }
.rc-group summary::-webkit-details-marker { display: none; }
.rc-group summary::after { content: "▸"; color: #566967; font-weight: 400; }
.rc-group[open] summary::after { content: "▾"; }
.rc-group-count { font-weight: 500; color: #566967; font-size: .82rem; }
.rc-group-body { padding: 0 .9rem .9rem; }
.rc-group:has(.field-error:not([hidden])) { border-color: #ad2637; }
.rc-group textarea, .rc-group input:not([type="radio"]) { width: 100%; background: #fff; }
.rc-group textarea:focus { border: 2px solid #1d7775; outline: 0; padding: calc(.55rem - 1px) calc(.65rem - 1px); }
.rc-in-preview { font-size: .75rem; font-weight: 500; color: #566967; }
.editor-preview { position: sticky; top: 1rem; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.editor-preview h2 { margin: 0; font-size: 1rem; }
.editor-preview .comment-text { position: relative; font-size: .82rem; max-height: calc(100vh - 260px); overflow-y: auto; }
.rc-cases { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.rc-pill { display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: .35rem .8rem; border-radius: 999px; border: 1px solid #c9d8d5; background: #fff; color: #233638; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.rc-cases input:checked + .rc-pill, .rc-cases input:checked + label + .rc-pill-select { background: #1d7775; border-color: #1d7775; color: #fff; }
.rc-cases input:focus-visible + .rc-pill { outline: 3px solid #d39b2f; outline-offset: 2px; }
.rc-pill-select { max-width: 100%; padding-right: .5rem; }
.rc-pill-select option, .rc-pill-select optgroup { background: #fff; color: #233638; }
.rc-mark { background: #fdf1d6; border-radius: 3px; box-shadow: 0 0 0 2px #fdf1d6; }
.preview-facts { font-size: .75rem; color: #566967; margin: 0; }
.rc-save-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; padding: .75rem 0; background: #fff; border-top: 1px solid #dce7e5; box-shadow: 0 0 0 100vmax #fff, 0 -8px 24px rgba(15, 79, 77, .08); clip-path: inset(-24px -100vmax 0 -100vmax); }
.rc-save-bar p { margin: 0; font-size: .88rem; font-weight: 600; color: #3c5250; }
.rc-save-bar p[data-state="dirty"] { color: #1f5a96; }
.rc-save-bar p[data-state="error"] { color: #ad2637; }
.rc-save-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Report comments: pupil feedback (board 3) */
.rc-tabs { display: flex; gap: .25rem; border-bottom: 1px solid #dce7e5; margin-bottom: 1.25rem; overflow-x: auto; }
.rc-tabs a { padding: .75rem 1rem; color: #3c5250; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.rc-tabs a:hover { color: #0f4f4d; }
.rc-tabs a[aria-current="page"] { color: #0f4f4d; font-weight: 700; border-bottom-color: #1d7775; }
.rc-pupil-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.rc-pupil-main { flex: 999 1 560px; min-width: 0; }
.rc-pupil-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.rc-comment-card .card-heading { align-items: flex-start; flex-wrap: nowrap; }
.rc-comment-card .card-heading > div { flex: 1 1 auto; }
.rc-comment-card .card-heading > button { flex: none; }
.rc-comment-card h2 { font-size: 1.2rem; }
.rc-card-intro { margin: .15rem 0 0; font-size: .82rem; color: #566967; }
.rc-card-note { margin: .9rem 0 0; font-size: .75rem; color: #566967; }
.rc-result { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.rc-result > .comment-text, .rc-result > .missing-box { flex: 1 1 280px; min-width: 0; font-size: .82rem; }
.missing-box p { margin: 0; }
.missing-box p + p { margin-top: .5rem; }
.rc-explain { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .82rem; }
.level-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin: 0; }
.level-line strong { font-size: 1rem; }
.rc-why-list, .rc-review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.rc-why-list li { display: grid; grid-template-columns: minmax(6rem, 1fr) 2.6rem 3.6rem 5.6rem; align-items: center; gap: .5rem; }
.rc-why-pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 7px; background: #edf2f1; border-radius: 4px; }
.rc-review-title { margin: .4rem 0 0; font-weight: 700; }
.rc-review-title span { font-weight: 500; color: #566967; }
.rc-review-list { gap: .3rem; }
.rc-review-list li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; color: #566967; }
.rc-review-list li.rc-named { color: #233638; font-weight: 600; }
.rc-goal-scores { display: flex; flex: none; gap: .5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-review-list li.rc-named .rc-goal-scores { color: #ad2637; font-weight: 700; }
.card.rc-totals { padding: 1.25rem 1.4rem; margin: 0; }
.rc-totals h2 { margin: 0; font-size: .95rem; color: #3c5250; }
.rc-total-big { margin: .1rem 0 .9rem; font-size: 2.5rem; font-weight: 700; line-height: 1.2; color: #0f4f4d; font-variant-numeric: tabular-nums; }
.rc-total-big span { font-size: 1rem; font-weight: 500; color: #566967; }
.rc-totals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .82rem; }
.rc-totals li > div { display: flex; justify-content: space-between; gap: .5rem; }
.rc-part-score { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-bar { display: flex; height: 6px; margin-top: .25rem; border-radius: 4px; background: #eef1f1; overflow: hidden; }
.rc-bar span { background: #1d7775; }
.rc-bar span.low { background: #ad2637; }
.rc-bar span.partial { opacity: .45; }
.rc-totals-missing { margin: .9rem 0 0; font-size: .8rem; color: #7a4f00; }
.rc-pupil-main > .card + .card { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
  .names-grid { grid-template-columns: 1fr; }
  .rc-why-list li { grid-template-columns: minmax(0, 1fr) 40px 70px; }
  .rc-why-list li .tag { grid-column: 1 / -1; }
}
.rc-review-none { margin: 0; color: #566967; }
.rc-review-rest summary { cursor: pointer; color: #566967; font-weight: 600; margin-bottom: .3rem; }

/* Examenanalyse. Diverging pair validated for colour-vision deficiency: orange = lower,
   teal = higher, grey = equal. Every colour is paired with a label, number or position. */
:root {
  --an-low: #c8642d;
  --an-high: #008f84;
  --an-mid: #c9d3d1;
  --an-neutral: #eef1f1;
  --an-soft: #7fb9b3;
  --an-band: #9fd6cd;
  --an-grid: #c9d3d1;
}
.analysis { display: flex; flex-direction: column; gap: 1.25rem; }
.analysis .rc-heading, .analysis .rc-tabs { margin-bottom: 0; }
.analysis h2 { margin: 0; font-size: 1.0625rem; color: var(--brand-dark); }
.an-scope { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: 0; }
.an-scope label { font-size: .75rem; color: var(--text-secondary); margin-bottom: .25rem; }
.an-scope select { min-height: 44px; min-width: 10rem; background: var(--white); }
.an-scope .button { min-height: 44px; }
.an-reset { font-size: .875rem; font-weight: 600; align-self: center; }
.an-notice { display: flex; gap: .625rem; align-items: center; margin: 0; padding: .625rem .875rem; border-radius: .75rem; background: var(--warning-soft); color: var(--warning); font-size: .875rem; font-weight: 500; }
.an-notice svg { flex: none; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.an-tile { background: var(--white); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.25rem; }
.an-tile p { margin: 0; }
.an-tile-label { font-size: .8125rem; font-weight: 600; color: var(--text-secondary); }
.an-tile-value { font-size: 2.25rem; font-weight: 700; color: var(--brand-dark); line-height: 1.15; margin-top: .25rem !important; font-variant-numeric: tabular-nums; }
.an-tile-value span { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.an-tile-text { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); line-height: 1.25; margin-top: .35rem !important; }
.an-tile-note { font-size: .8125rem; color: var(--text-secondary); margin-top: .25rem !important; }
.an-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.an-row > * { flex: 1 1 420px; min-width: 0; }
.an-row > .an-wide { flex-grow: 2; }
.an-card { padding: 1.125rem 1.25rem 1.25rem; }
.an-card-intro { margin: .125rem 0 .875rem; font-size: .8125rem; color: var(--text-secondary); }
.an-legend { margin-bottom: .75rem; }
.swatch.an-low, .an-split .an-low { background: var(--an-low); }
.swatch.an-high, .an-split .an-high { background: var(--an-high); }
.swatch.an-mid, .an-split .an-mid { background: var(--an-mid); }
.swatch.an-neutral { background: var(--an-neutral); border: 1px solid var(--border); }
.an-swatch { width: 16px; height: 16px; border: 1px solid var(--border); }
.an-legend-gap { margin-left: .75rem; gap: .3rem !important; }
.an-legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--an-high); }
.an-legend-dot.is-flagged { width: 12px; height: 12px; background: var(--an-low); }
.an-legend-dot.is-dark { background: var(--brand-dark); }
.an-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-secondary); margin-top: .375rem; }

/* Histogram of totals */
.an-hist { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--an-grid); }
.an-hist-pass { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed #8a9b98; }
.an-hist-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.an-hist-bar { width: 100%; background: var(--an-high); border-radius: 4px 4px 0 0; }
.an-hist-bar.is-below { background: var(--an-low); }

/* Spread rows: name, IQR band with median, value */
.an-spreads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .875rem; }
.an-spreads li, .an-spread-axis { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) 3.5rem; gap: .75rem; align-items: center; }
.an-spread-axis .an-axis { margin: 0; }
.an-spread-axis { margin-top: .375rem; }
.an-spread-name { font-size: .875rem; font-weight: 600; line-height: 1.25; }
.an-spread-name small, .an-bar-name small { display: block; font-size: .75rem; font-weight: 500; color: var(--text-secondary); }
.an-spread { position: relative; height: 22px; background: var(--border-soft); border-radius: 6px; }
.an-spread-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px dashed #8a9b98; }
.an-spread-band { position: absolute; top: 4px; bottom: 4px; background: var(--an-band); border-radius: 4px; }
.an-spread-band.is-class { background: var(--blocked); }
.an-spread-median { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--brand-dark); border-radius: 2px; }
.an-spread-median.is-class { width: 2px; background: var(--text-secondary); }
.an-spread-value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.an-profile .an-spread { background: transparent; }
.an-profile .an-spread::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--border-soft); }
.an-profile-dot { position: absolute; top: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--brand-dark); box-shadow: 0 0 0 2px var(--white); }
.an-profile-dot.is-low { background: var(--an-low); }

/* Flag lists */
.an-section-title { margin: 0 0 .75rem !important; font-size: 1.1875rem !important; }
.an-flag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.an-flags { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.an-flags h3 { margin: 0 0 .25rem; font-size: .9375rem; }
.an-flag { display: flex; gap: .75rem; align-items: flex-start; min-height: 44px; padding: .5rem .75rem; border-radius: .625rem; background: var(--background); color: var(--text); text-decoration: none; font-size: .8125rem; line-height: 1.4; }
.an-flag:hover { background: var(--brand-tint); }
.an-flag strong { display: block; font-weight: 600; }
.an-flag-key { min-width: 2.75rem; font-weight: 700; font-size: .875rem; color: var(--brand-dark); }
.an-more { font-size: .8125rem; font-weight: 600; margin-top: auto; padding-top: .25rem; }

/* Question scatter */
.an-scatter-card { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.an-scatter-main { flex: 2 1 520px; min-width: 0; }
.an-scatter-help { flex: 1 1 260px; min-width: 0; font-size: .8125rem; color: var(--text-tertiary); }
.an-scatter-help h3 { margin: 0 0 .5rem; font-size: .9375rem; color: var(--text); }
.an-scatter-help p { margin: 0 0 .625rem; }
.an-scatter-frame { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .375rem; }
.an-scatter-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .75rem; color: var(--text-secondary); text-align: center; }
.an-scatter { position: relative; height: 340px; border-left: 1px solid var(--an-grid); border-bottom: 1px solid var(--an-grid); }
.an-scatter-zone { position: absolute; left: 0; bottom: 0; width: 40%; background: var(--error-soft); }
.an-scatter-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--an-grid); }
.an-scatter-line.is-zero { border-top-style: solid; }
.an-scatter-split { position: absolute; left: 40%; top: 0; bottom: 0; border-left: 1px dashed var(--an-grid); }
.an-quadrant { position: absolute; font-size: .6875rem; font-weight: 600; color: var(--text-secondary); }
.an-quadrant.is-check { left: .5rem; bottom: .375rem; color: var(--error-strong); }
.an-quadrant.is-tl { left: .5rem; top: .375rem; }
.an-quadrant.is-tr { right: .5rem; top: .375rem; }
.an-quadrant.is-br { right: .5rem; bottom: .375rem; }
.an-dot { position: absolute; width: 24px; height: 24px; margin: 0 0 -12px -12px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.an-dot-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--an-high); box-shadow: 0 0 0 2px var(--white); }
.an-dot.is-flagged .an-dot-mark { width: 12px; height: 12px; background: var(--an-low); }
.an-dot:hover .an-dot-mark, .an-dot:focus-visible .an-dot-mark { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--brand-dark); }
.an-dot-label { position: absolute; left: 20px; top: -2px; font-size: .6875rem; font-weight: 700; color: var(--text); white-space: nowrap; pointer-events: none; }

/* Question table */
.an-qtable { min-width: 900px; font-size: .8125rem; }
.an-qtable th, .an-qtable td { padding: .5rem .5rem; vertical-align: middle; border-bottom-color: var(--border-soft); }
.an-qtable thead th { font-size: .75rem; color: var(--text-secondary); white-space: nowrap; }
.an-qtable tbody th[scope="row"] { font-size: .875rem; white-space: nowrap; }
.an-qtable tbody th[scope="row"] a { font-weight: 700; text-decoration: none; display: inline-block; min-width: 3rem; padding: .375rem 0; }
.an-qsection th { padding-top: 1rem !important; color: var(--brand-dark); font-size: .8125rem; }
.an-qsection th span { margin-right: 1rem; }
.an-qsection th .muted { font-weight: 500; }
.an-qtable tr.is-flagged { background: #fffaf6; }
.an-meanbar { display: flex; align-items: center; gap: .625rem; min-width: 9rem; }
.an-meanbar strong { width: 2.75rem; text-align: right; font-variant-numeric: tabular-nums; }
.an-track { position: relative; display: block; flex: 1; height: 10px; background: var(--border-soft); border-radius: 5px; }
.an-track > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 5px; }
.an-track-tall { height: 16px; border-radius: 4px; }
.an-track-tall > span { border-radius: 4px; }
.an-track > .is-strong { background: var(--brand-dark); }
.an-track > .is-middle { background: var(--brand); }
.an-track > .is-weak, .an-track > .is-soft { background: var(--an-soft); }
.an-track > .is-low { background: var(--an-low); }
.an-split { display: flex; gap: 2px; height: 10px; min-width: 8rem; }
.an-split span:first-child { border-radius: 4px 0 0 4px; }
.an-split span:last-child { border-radius: 0 4px 4px 0; }
.an-disc { display: flex; align-items: center; gap: .5rem; white-space: nowrap; font-weight: 600; color: var(--text-tertiary); }
.an-disc-track { position: relative; width: 4.5rem; height: 6px; background: var(--border-soft); border-radius: 3px; }
.an-disc-dot { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--brand); }
.an-disc-dot.is-low { background: var(--an-low); }
.an-class-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(14px, 1fr)); gap: 2px; min-width: 9rem; }
.an-class-cells > span { position: relative; height: 20px; border-radius: 3px; }
.an-qtable td, .an-qtable th, .an-heat td { position: relative; }
.an-class-cells > span.is-muted { opacity: .45; }
.an-pill { display: inline-flex; align-items: center; gap: .3rem; }
.an-flag-line { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }

/* Question detail */
.an-question-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.an-question-head .rc-eyebrow { color: var(--text-secondary); }
.analysis .an-question-title { font-size: 1.75rem; margin-top: .125rem; }
.an-question-title span { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.an-jump { display: flex; gap: .5rem; align-items: center; margin: 0; flex-wrap: wrap; }
.an-jump select { min-height: 44px; background: var(--white); }
.an-jump .button { min-height: 44px; min-width: 44px; justify-content: center; }
.an-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.an-goals li { font-size: .8125rem; font-weight: 500; background: var(--brand-soft); color: var(--brand-dark); padding: .3rem .75rem; border-radius: 999px; }
.an-bins { height: 210px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--an-grid); }
.an-bin { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; min-width: 0; }
.an-bin-count { font-size: .6875rem; font-weight: 600; color: var(--text-secondary); }
.an-bin-bar { width: 100%; max-width: 48px; border-radius: 4px 4px 0 0; background: var(--an-soft); }
.an-bin-bar.is-zero { background: var(--an-low); }
.an-bin-bar.is-full { background: var(--an-high); }
.an-bins-axis { display: flex; gap: 3px; margin-top: .375rem; }
.an-bins-axis span { flex: 1; text-align: center; font-size: .6875rem; color: var(--text-secondary); min-width: 0; }
.an-axis-title { margin: .375rem 0 0; text-align: center; font-size: .75rem; color: var(--text-secondary); }
.an-meters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .875rem; }
.an-meter-label { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 600; margin-bottom: .25rem; }
.an-explain { margin: 1rem 0 0; font-size: .8125rem; color: var(--text-tertiary); background: var(--background); padding: .625rem .75rem; border-radius: .625rem; }
.an-bars, .an-strips, .an-devs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.an-bars li, .an-strips li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6.5rem; gap: .75rem; align-items: center; font-size: .8125rem; }
.an-bars li.is-small { opacity: .55; }
.an-bar-name { font-weight: 700; font-size: .875rem; line-height: 1.2; }
.an-bar-value { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-ref-track i { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--text-tertiary); }
.an-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.an-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .75rem; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.an-zeros { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .375rem .75rem; margin: 0; font-size: .8125rem; }
.an-zeros dt { font-weight: 700; }
.an-zeros dd { margin: 0; color: var(--text-tertiary); }

/* Groups */
.an-heat { border-collapse: separate; border-spacing: 3px; min-width: 760px; }
.an-heat th, .an-heat td { border: 0; padding: .375rem .5rem; vertical-align: middle; }
.an-heat thead th { font-size: .75rem; color: var(--text-secondary); text-align: center; line-height: 1.25; }
.an-heat thead th:first-child { text-align: left; }
.an-heat tbody th { font-size: .875rem; color: var(--text); white-space: nowrap; }
.an-heat tbody td { text-align: center; border-radius: 4px; font-weight: 700; font-size: .875rem; min-width: 4.5rem; height: 46px; font-variant-numeric: tabular-nums; }
.an-heat tbody td.number { font-weight: 500; color: var(--text-secondary); background: none; }
.an-heat td small { display: block; font-size: .6875rem; font-weight: 600; opacity: .85; }
.an-heat tr.is-small { opacity: .55; }
.an-heat tr.is-all th { font-weight: 700; }
.an-cross { min-width: 0; }
.an-cross tbody td { min-width: 2.75rem; padding: .375rem .25rem; }
.an-cross thead th { padding: .25rem; }
.an-cross-all { background: var(--background); }
.an-strip { position: relative; height: 34px; border-bottom: 1px solid var(--border-soft); }
.an-strip-mid { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--an-grid); }
.an-strip-band { position: absolute; top: 10px; height: 14px; background: var(--brand-soft); border-radius: 4px; }
.an-strip-median { position: absolute; top: 5px; height: 24px; width: 3px; margin-left: -1.5px; background: var(--brand-dark); border-radius: 2px; }
.an-strip-dot { position: absolute; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(29, 119, 117, .55); box-shadow: 0 0 0 1.5px var(--white); }
.an-strip-dot.is-low { background: var(--an-low); }
.an-strip-dot:hover, .an-strip-dot:focus-visible { background: var(--brand-dark); z-index: 1; }
.an-strips li { grid-template-columns: 6.5rem minmax(0, 1fr) 3.5rem; }
.an-devs a { display: grid; grid-template-columns: 3.5rem 3.25rem minmax(0, 1fr) 7.5rem; gap: .625rem; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; font-size: .8125rem; }
.an-devs a:hover .an-dev-q { text-decoration: underline; }
.split-main .an-devs a { grid-template-columns: 3.5rem minmax(0, 1fr) 9rem; }
.an-dev-q { font-weight: 700; color: var(--brand-dark); }
.an-dev-track { position: relative; height: 12px; background: var(--border-soft); border-radius: 3px; }
.an-dev-track span { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.an-dev-track i { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px solid var(--text-tertiary); }

/* Pupils */
.an-outliers .an-card { display: flex; flex-direction: column; gap: .75rem; }
.an-outliers .an-card-intro { margin: 0; }
.an-pupil-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.an-pupil-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .125rem .75rem; padding: .5rem .75rem; min-height: 52px; border: 1px solid var(--border-soft); border-radius: .625rem; color: var(--text); text-decoration: none; font-size: .75rem; }
.an-pupil-list a:hover { background: var(--background); }
.an-pupil-list a[aria-current] { background: var(--brand-soft); border-color: var(--brand); }
.an-pupil-name, .an-pupil-total { font-size: .875rem; font-weight: 700; }
.an-pupil-total { text-align: right; font-variant-numeric: tabular-nums; }
.an-pupil-why { text-align: right; font-weight: 600; color: var(--error-strong); }
.an-pupil-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 1.75rem; }
.analysis .an-pupil-head h2 { font-size: 1.5rem; }
.an-pupil-head p { margin: .125rem 0 0; }
.an-pupil-head .an-more { flex-basis: 100%; }
.an-pupil-facts { display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 0; }
.an-pupil-facts dt { font-size: .75rem; font-weight: 600; color: var(--text-secondary); }
.an-pupil-facts dd { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.an-pupil-facts dd.is-main { color: var(--brand-dark); }
.an-pupil-facts dd span { font-size: .9375rem; font-weight: 600; }
@media (max-width: 640px) {
  .an-spreads li, .an-spread-axis { grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr) 3rem; gap: .5rem; }
  .an-bars li { grid-template-columns: 4.5rem minmax(0, 1fr) 5.5rem; }
  .an-strips li { grid-template-columns: 4.5rem minmax(0, 1fr) 2.5rem; }
  .an-devs a { grid-template-columns: 3rem 3rem minmax(0, 1fr) 5.5rem; }
  .an-scatter { height: 280px; }
  .an-quadrant { display: none; }
}
.an-th-note { font-weight: 500; color: var(--text-secondary); }

/* Niveaugroepen: <50 keeps the "below" orange; the passing bands step from light to dark teal. */
.an-band-0 { background: var(--an-low); }
.an-band-1 { background: #9fd6cd; }
.an-band-2 { background: #6fbcb2; }
.an-band-3 { background: #3c9f95; }
.an-band-4 { background: #1d7775; }
.an-band-5 { background: #0f4f4d; }
.an-band-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .375rem; vertical-align: baseline; }
.an-band-table { min-width: 640px; font-size: .875rem; }
.an-band-table th, .an-band-table td { padding: .5rem .625rem; vertical-align: middle; border-bottom-color: var(--border-soft); }
.an-band-table thead th { font-size: .75rem; color: var(--text-secondary); white-space: nowrap; }
.an-band-table td .muted { font-size: .75rem; }
.an-band-table tr.is-all th, .an-band-table tr.is-all td { border-top: 1px solid var(--border); background: var(--background); }
.an-band-heading { margin-bottom: .875rem; }
.an-band-bar { display: flex; gap: 2px; height: 12px; flex: 0 1 320px; min-width: 160px; }
.an-band-bar span:first-child { border-radius: 4px 0 0 4px; }
.an-band-bar span:last-child { border-radius: 0 4px 4px 0; }
.an-band-columns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.an-band-column { min-width: 0; border-top: 1px solid var(--border); padding-top: .5rem; }
.an-band-column h3 { display: flex; align-items: center; gap: .25rem; margin: 0 0 .375rem; font-size: .875rem; }
.an-band-column h3 .chip-count { margin-left: auto; }
.an-band-column.is-empty h3 { color: var(--text-secondary); }
.an-band-column ol { list-style: none; margin: 0; padding: 0; }
.an-band-column a { display: flex; justify-content: space-between; gap: .5rem; padding: .3125rem .375rem; border-radius: .375rem; color: var(--text); text-decoration: none; font-size: .8125rem; line-height: 1.35; }
.an-band-column a:hover { background: var(--brand-tint); }
.an-band-column a span:first-child { min-width: 0; overflow-wrap: anywhere; }
.an-band-column a .number { color: var(--text-secondary); white-space: nowrap; }
@media (max-width: 900px) { .an-band-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .an-band-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-band-count { display: inline-flex; align-items: baseline; gap: .25rem; min-height: 32px; padding: .25rem .375rem; margin: -.25rem -.375rem; border-radius: .375rem; color: var(--text); text-decoration: none; }
.an-band-count:hover { background: var(--brand-tint); }
.an-band-count:hover strong { text-decoration: underline; }
.an-band-class { font-size: .6875rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.an-band-column:target { background: var(--brand-tint); border-radius: .375rem; box-shadow: 0 0 0 .375rem var(--brand-tint); }
.an-band-column:focus { outline: none; }
.results-index { min-width: 640px; }
.results-index .pupil-name a { color: var(--text); text-decoration: none; }
.results-index .pupil-name a:hover { color: var(--brand); text-decoration: underline; }
.status-badge.status-none { background: var(--white); color: var(--text-secondary); border: 1px dashed var(--status-todo-dot); }
.status-badge.status-none::before { background: transparent; border: 1px solid var(--status-todo-dot); }
.pupil-title { display: flex; align-items: center; gap: .375rem; }
.edit-link { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: .5rem; color: var(--text-secondary); }
.edit-link:hover { background: var(--brand-tint); color: var(--brand-dark); }
.edit-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
