/* Componentklassen — hoort bij de partials in templates/components/.
 *
 * Eén klasse hier, één partial daar. Zit een stukje UI op twee schermen, dan
 * hoort het hier en niet in een pagina-specifiek blok.
 * Alles in tokens (tokens.css); geen losse hex-waarden.
 */

/* ---------------------------------------------------------------- kruimels */
.kruimels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ruimte-2);
    margin-bottom: var(--ruimte-4);
    font-size: var(--tekst-s);
    color: var(--kleur-tekst-dof);
}

.kruimels__deel {
    color: var(--kleur-tekst-zacht);
    text-decoration: none;
}

.kruimels__deel:hover {
    color: var(--kleur-primair);
}

.kruimels__deel--laatst {
    font-weight: 600;
    color: var(--kleur-tekst);
}

.kruimels__pijl {
    color: var(--kleur-rand);
}

/* ------------------------------------------------------------------ badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ruimte-1);
    padding: 0.15rem var(--ruimte-2);
    border-radius: var(--rond-vol);
    font-size: var(--tekst-xs);
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    background: var(--kleur-neutraal-zacht);
    color: var(--kleur-neutraal);
}

.badge--goed {
    background: var(--kleur-goed-zacht);
    color: var(--kleur-goed);
}

.badge--waarschuwing {
    background: var(--kleur-waarschuwing-zacht);
    color: var(--kleur-waarschuwing);
}

.badge--fout {
    background: var(--kleur-fout-zacht);
    color: var(--kleur-op-fout-zacht);
}

.badge--info {
    background: var(--kleur-primair-zacht);
    color: var(--kleur-op-primair-zacht);
}

/* ------------------------------------------------------------------ kaarten */
.kaartraster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--ruimte-4);
}

.kaartlijst {
    display: flex;
    flex-direction: column;
    gap: var(--ruimte-3);
}

.kaart {
    display: block;
    padding: var(--ruimte-4);
    background: var(--kleur-oppervlak);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-groot);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kaart:hover {
    border-color: var(--kleur-primair);
    box-shadow: var(--schaduw-2);
}

.kaart__kop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ruimte-3);
}

.kaart__kop-rechts { display: flex; align-items: center; gap: var(--ruimte-2); flex: none; }

.kaart__titel {
    margin: 0;
    font-size: var(--tekst-l);
    font-weight: 600;
    color: var(--kleur-tekst);
}
.kaart__titel a { color: inherit; }
.kaart__titel a:hover { color: var(--kleur-primair); }

.kaart__tekst {
    margin: var(--ruimte-2) 0 0;
    font-size: var(--tekst-m);
    color: var(--kleur-tekst-zacht);
}

.kaart__voet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ruimte-2);
    margin-top: var(--ruimte-3);
    font-size: var(--tekst-xs);
    color: var(--kleur-tekst-dof);
}

/* ---------------------------------------------------------------- lege staat */
.lege-staat {
    padding: var(--ruimte-7) var(--ruimte-5);
    text-align: center;
    background: var(--kleur-oppervlak-laag);
    border: 1px dashed var(--kleur-rand);
    border-radius: var(--rond-groot);
}

.lege-staat__titel {
    margin: 0 0 var(--ruimte-2);
    font-size: var(--tekst-l);
    font-weight: 600;
    color: var(--kleur-tekst);
}

.lege-staat__tekst {
    margin: 0 0 var(--ruimte-4);
    color: var(--kleur-tekst-zacht);
}

/* ------------------------------------------------------------- stappenlijst */
.stap {
    display: flex;
    align-items: flex-start;
    gap: var(--ruimte-4);
    padding: var(--ruimte-4);
    background: var(--kleur-oppervlak);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond);
}

.stap--ontoegankelijk {
    background: var(--kleur-oppervlak-laag);
    border-style: dashed;
    color: var(--kleur-tekst-dof);
}

.stap__nummer {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: var(--rond-vol);
    background: var(--kleur-primair-zacht);
    color: var(--kleur-op-primair-zacht);
    font-size: var(--tekst-s);
    font-weight: 700;
}

.stap__inhoud {
    flex: 1 1 auto;
    min-width: 0;
}

.stap__titel {
    margin: 0;
    font-size: var(--tekst-m);
    font-weight: 600;
}

.stap__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ruimte-2);
    margin-top: var(--ruimte-2);
    font-size: var(--tekst-xs);
    color: var(--kleur-tekst-dof);
}

.stap__acties {
    display: flex;
    align-items: center;
    gap: var(--ruimte-1);
}

/* -------------------------------------------------------------- knopvormen */
.knop-mini {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-klein);
    background: var(--kleur-oppervlak);
    color: var(--kleur-tekst-zacht);
    font-size: var(--tekst-s);
    line-height: 1;
    cursor: pointer;
}

.knop-mini:hover:not(:disabled) {
    border-color: var(--kleur-primair);
    color: var(--kleur-primair);
}

.knop-mini:disabled {
    opacity: 0.35;
    cursor: default;
}

.knop-mini--gevaar:hover:not(:disabled) {
    border-color: var(--kleur-fout);
    color: var(--kleur-fout);
}

.inline-formulier {
    display: inline;
}

/* ------------------------------------------------------------ paginakoppen */
.sectiekop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ruimte-3);
    margin: var(--ruimte-6) 0 var(--ruimte-4);
}

.sectiekop:first-child {
    margin-top: 0;
}

.sectiekop__titel {
    margin: 0;
    font-size: var(--tekst-xl);
    font-weight: 600;
    color: var(--kleur-tekst);
}

.sectiekop__tel {
    font-size: var(--tekst-s);
    font-weight: 400;
    color: var(--kleur-tekst-dof);
}

/* ------------------------------------------------------------------- zoeken */
.filterbalk {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ruimte-3);
    align-items: flex-end;
    padding: var(--ruimte-4);
    margin-bottom: var(--ruimte-5);
    background: var(--kleur-oppervlak);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond);
}

.filterbalk__veld {
    display: flex;
    flex-direction: column;
    gap: var(--ruimte-1);
    font-size: var(--tekst-xs);
    color: var(--kleur-tekst-dof);
}

.filterbalk__veld--breed {
    flex: 1 1 16rem;
}

/* ------------------------------------------------------- inleidende tekst */
.lead {
    max-width: 60ch;
    margin: 0 0 var(--ruimte-5);
    color: var(--kleur-tekst-zacht);
    font-size: var(--tekst-l);
    line-height: 1.6;
}

/* --------------------------------------------------------- formuliervelden */
.formulierraster {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--ruimte-6);
}

@media (max-width: 60rem) {
    .formulierraster {
        grid-template-columns: 1fr;
        gap: var(--ruimte-5);
    }
}

.veld {
    margin-bottom: var(--ruimte-4);
}

.veld__label {
    display: block;
    margin-bottom: var(--ruimte-1);
    font-size: var(--tekst-m);
    font-weight: 500;
    color: var(--kleur-tekst);
}

.veld__verplicht {
    color: var(--kleur-fout);
}

.veld__hint {
    margin: var(--ruimte-1) 0 0;
    font-size: var(--tekst-xs);
    color: var(--kleur-tekst-dof);
}

.veld__fout {
    margin: var(--ruimte-1) 0 0;
    font-size: var(--tekst-xs);
    font-weight: 500;
    color: var(--kleur-fout);
}

.veld--fout .form-input {
    border-color: var(--kleur-fout);
}

/* ---------------------------------------------------------- bestanden kiezen */
.dropzone {
    display: block;
    padding: var(--ruimte-6) var(--ruimte-5);
    margin-bottom: var(--ruimte-3);
    text-align: center;
    background: var(--kleur-oppervlak-laag);
    border: 2px dashed var(--kleur-rand);
    border-radius: var(--rond-groot);
    color: var(--kleur-tekst-dof);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dropzone:hover,
.dropzone--actief {
    border-color: var(--kleur-primair);
    background: var(--kleur-primair-zacht);
    color: var(--kleur-op-primair-zacht);
}

.dropzone__tekst {
    display: block;
    font-size: var(--tekst-l);
    font-weight: 500;
    color: var(--kleur-tekst);
}

.dropzone__hint {
    display: block;
    margin-top: var(--ruimte-1);
    font-size: var(--tekst-xs);
}

.dropzone__invoer {
    display: block;
    width: 100%;
    margin-top: var(--ruimte-3);
    font-size: var(--tekst-xs);
}

.bestandenlijst {
    list-style: none;
    margin: 0 0 var(--ruimte-4);
    padding: 0;
}

.bestandenlijst__regel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ruimte-3);
    padding: var(--ruimte-2) var(--ruimte-3);
    margin-bottom: var(--ruimte-2);
    background: var(--kleur-oppervlak);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-klein);
    font-size: var(--tekst-m);
    word-break: break-word;
}

.bestandenlijst__naam {
    flex: 1 1 auto;
    min-width: 10rem;
}

/* De rolkiezer per bestand (leerling/docent/bron, ADR-0018): precies één
   optie actief, net als een radiogroep, maar als drie kleine knopjes zodat
   je 'm meteen kunt bijstellen zonder een keuzelijst te openen. */
.rolkiezer {
    display: inline-flex;
    flex: none;
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-klein);
    overflow: hidden;
}

.rolkiezer__optie {
    padding: 3px var(--ruimte-2);
    background: var(--kleur-oppervlak);
    border: 0;
    border-left: 1px solid var(--kleur-rand);
    font-size: var(--tekst-xs);
    color: var(--kleur-tekst-dof);
    cursor: pointer;
}

.rolkiezer__optie:first-child {
    border-left: 0;
}

.rolkiezer__optie:hover {
    color: var(--kleur-tekst);
}

.rolkiezer__optie--actief {
    background: var(--kleur-primair-zacht);
    color: var(--kleur-op-primair-zacht);
    font-weight: 600;
}

/* -------------------------------------------------------------- detailblad */
.detailraster {
    display: grid;
    grid-template-columns: clamp(20rem, 30vw, 30rem) minmax(0, 1fr);
    gap: var(--ruimte-5);
    align-items: start;
}

@media (max-width: 64rem) {
    .detailraster {
        grid-template-columns: 1fr;
    }
}

.metalijst {
    list-style: none;
    margin: 0 0 var(--ruimte-5);
    padding: 0;
    font-size: var(--tekst-m);
    color: var(--kleur-tekst);
}

.metalijst li {
    display: flex;
    align-items: center;
    gap: var(--ruimte-2);
    padding: var(--ruimte-2) 0;
    border-bottom: 1px solid var(--kleur-oppervlak-hoog);
}

.metalijst__naam {
    flex: 0 0 8rem;
    color: var(--kleur-tekst-dof);
}

.citaat {
    margin: 0 0 var(--ruimte-5);
    padding: var(--ruimte-4);
    background: var(--kleur-oppervlak-laag);
    border-left: 4px solid var(--kleur-primair);
    border-radius: 0 var(--rond) var(--rond) 0;
    font-size: var(--tekst-m);
    font-style: italic;
    line-height: 1.6;
    color: var(--kleur-tekst-zacht);
}

/* --------------------------------------------------------- eindtermkoppeling */
/* Eén regel per koppeling (components/eindterm_koppeling.html), dicht tenzij je
   hem openklapt. Als raster met open kaarten vulden tien eindtermen het halve
   scherm en stonden er gaten tussen kaarten van ongelijke hoogte. De klap is
   dezelfde als op de tijdlijn: .klapbaar + data-klap (static/js/schil.js). */
.koppelingenlijst {
    display: flex;
    flex-direction: column;
    gap: var(--ruimte-2);
}

.koppeling {
    background: var(--kleur-oppervlak);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-klein);
    overflow: hidden;
}

.koppeling__kop {
    display: flex;
    align-items: center;
    gap: var(--ruimte-3);
    width: 100%;
    padding: var(--ruimte-2) var(--ruimte-3);
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.koppeling__kop:hover {
    background: var(--kleur-oppervlak-laag);
}

.koppeling__nr {
    flex: none;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--kleur-oppervlak-midden);
    font-size: var(--tekst-xxs);
    font-weight: 700;
    color: var(--kleur-tekst-dof);
}

.koppeling__titel {
    flex: 1;
    min-width: 0;
    font-size: var(--tekst-m);
    font-weight: 600;
    color: var(--kleur-tekst);
}

.koppeling__rechts {
    display: flex;
    align-items: center;
    gap: var(--ruimte-2);
    flex: none;
}

.koppeling__lijf {
    display: none;
    padding: var(--ruimte-3);
    border-top: 1px solid var(--kleur-oppervlak-hoog);
}

.klapbaar--open > .koppeling__lijf {
    display: block;
}

.klapbaar--open > .koppeling__kop .klap-pijl {
    transform: rotate(180deg);
}

.koppeling__categorie {
    margin: 0;
    font-size: var(--tekst-s);
    color: var(--kleur-tekst-dof);
}

.koppeling__punten {
    margin: var(--ruimte-2) 0 0;
    padding-left: var(--ruimte-5);
    font-size: var(--tekst-m);
    color: var(--kleur-tekst-zacht);
}

.rechtvaardiging {
    margin: var(--ruimte-3) 0 0;
    padding: var(--ruimte-3);
    background: var(--kleur-goed-zacht);
    border-radius: var(--rond-klein);
    font-size: var(--tekst-m);
    color: var(--kleur-goed);
}

.rechtvaardiging__kop {
    display: block;
    margin-bottom: var(--ruimte-1);
    font-size: var(--tekst-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --------------------------------------------------- uitklapbaar keuzepaneel */
.keuzepaneel {
    margin-top: var(--ruimte-5);
    padding-top: var(--ruimte-4);
    border-top: 1px solid var(--kleur-rand);
}

.keuzepaneel__knop {
    font-size: var(--tekst-m);
    font-weight: 600;
    color: var(--kleur-primair);
    cursor: pointer;
}

.keuzelijst {
    list-style: none;
    max-height: 24rem;
    margin: var(--ruimte-3) 0;
    padding: 0;
    overflow-y: auto;
}

.keuze {
    display: flex;
    align-items: flex-start;
    gap: var(--ruimte-3);
    padding: var(--ruimte-3);
    margin-bottom: var(--ruimte-2);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-klein);
    font-size: var(--tekst-m);
    cursor: pointer;
}

.keuze:hover {
    border-color: var(--kleur-primair);
    background: var(--kleur-oppervlak-laag);
}

.keuze input {
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--kleur-primair);
}

.keuze__id,
.keuze__categorie {
    display: block;
    font-size: var(--tekst-xs);
    color: var(--kleur-tekst-dof);
}

.keuze__titel {
    display: block;
    color: var(--kleur-tekst);
}

/* ------------------------------------------------------------------ meldingen */
.meldingen {
    margin-bottom: var(--ruimte-4);
}

.melding {
    padding: var(--ruimte-3) var(--ruimte-4);
    margin-bottom: var(--ruimte-2);
    border-radius: var(--rond);
    border: 1px solid var(--kleur-rand);
    background: var(--kleur-oppervlak-laag);
    font-size: var(--tekst-m);
}

.melding--success {
    background: var(--kleur-goed-zacht);
    border-color: var(--kleur-goed);
    color: var(--kleur-goed);
}

.melding--error {
    background: var(--kleur-fout-zacht);
    border-color: var(--kleur-fout);
    color: var(--kleur-op-fout-zacht);
}

/* Neutrale melding met een icoon ernaast: de profielherinnering op het
   dashboard. Geen fout, geen succes — een duwtje. */
.melding--info {
    display: flex;
    align-items: center;
    gap: var(--ruimte-2);
    margin-bottom: var(--ruimte-5);
    border-color: var(--kleur-primair);
    background: var(--kleur-primair-zacht);
}

.melding--warning {
    background: var(--kleur-waarschuwing-zacht);
    border-color: var(--kleur-waarschuwing);
    color: var(--kleur-waarschuwing);
}

/* --- Het bewerkvenster (ADR-0026): het Vue-eiland voor slepen en neerzetten */

.samensteller__hint {
  color: var(--kleur-tekst-dof);
  font-size: var(--tekst-m);
  margin-bottom: var(--ruimte-3);
}

.stap--sleepbaar { cursor: grab; }
.stap--sleepbaar:active { cursor: grabbing; }

.stap__greep {
  color: var(--kleur-tekst-dof);
  font-size: var(--tekst-l);
  line-height: 1;
  user-select: none;
}

.stap--gepakt { opacity: 0.45; }

.stap--doel {
  border-color: var(--kleur-primair);
  box-shadow: inset 0 2px 0 0 var(--kleur-primair);
}

/* Drie knoppen rechtsboven passen niet altijd op één regel. */
.bewerkvenster__knoppen { flex-wrap: wrap; justify-content: flex-end; }
.bewerkvenster__stand {
  font-size: var(--tekst-s); color: var(--kleur-tekst-dof);
  margin: calc(-1 * var(--ruimte-3)) 0 var(--ruimte-4);
}
.bewerkvenster__formulier { margin-bottom: var(--ruimte-5); }
/* De onopgeslagen-staat: zichtbaar, maar geen alarm — dit is de gewone
   toestand tijdens het werken. */
.bewerkvenster__staat {
  display: flex; align-items: center; gap: var(--ruimte-2);
  margin-top: var(--ruimte-3); padding: var(--ruimte-3) var(--ruimte-4);
  border-radius: var(--rond);
  background: var(--kleur-primair-zacht); color: var(--kleur-op-primair-zacht);
  font-size: var(--tekst-m);
}
.knop-tekst {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}
.voorraad__uitleg { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); margin: 0 0 var(--ruimte-3); }
/* "Uit de bibliotheek" in het toevoegmenu van het venster: de voorraadkast
   licht even op en het zoekveld krijgt de focus (bewerkvenster.js). */
.voorraad--aandacht { animation: voorraad-aandacht 1.2s ease-out; }
@keyframes voorraad-aandacht {
  0%, 40% { box-shadow: inset 0 0 0 3px var(--kleur-primair); }
  100% { box-shadow: none; }
}
/* Het toevoegmenu als losse knop onder een lijst (components/toevoegmenu.html). */
.toevoegmenu--groot { margin-top: var(--ruimte-4); }

/* ==========================================================================
 * De schil van fase 2b: topbar met de drie flows, flow-zijbalk links,
 * metadatapaneel rechts, en de tijdlijn van een lesprogramma.
 * Ontworpen op een laptop van 1080 hoog: alleen het canvas scrollt.
 * ========================================================================== */

html, body { height: 100%; }
body.schil { overflow: hidden; background: var(--kleur-achtergrond); }

/* --- Iconen (Material Symbols, zelfde laadroute als Inter) --------------- */

.msym {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1;
  display: inline-block; vertical-align: -4px; font-size: 20px;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.msym--klein { font-size: 16px; vertical-align: -3px; }
.msym--groot { font-size: 28px; }

/* --- Topbar -------------------------------------------------------------- */

.topbar {
  height: var(--hoogte-topbar);
  background: var(--kleur-topbar);
  color: var(--kleur-op-donker);
  display: flex; align-items: center; gap: var(--ruimte-4);
  padding: 0 var(--ruimte-4);
}
.topbar__logo {
  display: flex; align-items: center; gap: var(--ruimte-2);
  font-weight: 700; font-size: var(--tekst-l); color: var(--kleur-op-donker-fel);
}
.topbar__logo .msym { color: var(--kleur-topbar-accent); }
.topbar__logo:hover { text-decoration: none; }
.flowtabs { display: flex; gap: var(--ruimte-1); height: 100%; margin-left: var(--ruimte-3); }
.flowtab {
  display: flex; align-items: center; gap: 7px;
  padding: 0 var(--ruimte-4);
  color: var(--kleur-topbar-tekst); font-weight: 600; font-size: var(--tekst-s);
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.flowtab:hover { color: var(--kleur-op-donker-fel); text-decoration: none; }
/* Waar je bent staat in `aria-current="page"` (base.html), niet in een
   klasse: dan kan de markering niet los raken van wat een schermlezer
   voorleest. Zelfde afspraak bij .navitem hieronder. */
.flowtab[aria-current] { color: var(--kleur-op-donker-fel); border-bottom-color: var(--kleur-topbar-accent); }
/* Inloggen is geen flow: geen onderlijn, geen actieve staat — een gewone
   knop aan de rechterkant van de topbar. */
.topbar__inloggen {
  display: flex; align-items: center; gap: var(--ruimte-2);
  padding: var(--ruimte-1) var(--ruimte-3);
  border-radius: var(--rond);
  background: var(--kleur-topbar-hoog);
  color: var(--kleur-topbar-tekst); font-weight: 600; font-size: var(--tekst-s);
}
.topbar__inloggen:hover { color: var(--kleur-op-donker-fel); text-decoration: none; }
.topbar__rechts { margin-left: auto; display: flex; align-items: center; gap: var(--ruimte-3); position: relative; }
.topbar__gebruiker {
  display: flex; align-items: center; gap: var(--ruimte-2);
  background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--kleur-topbar-tekst); padding: var(--ruimte-1);
  border-radius: var(--rond-klein);
}
.topbar__gebruiker:hover { color: var(--kleur-op-donker-fel); background: var(--kleur-topbar-hoog); }
/* Het (?)- en het feedbackknopje links van het gebruikersmenu (ADR-0031).
   Zelfde knopstijl als de gebruiker; het menu hangt rechts uit, want dit
   staat aan de rechterrand van de topbar. */
.topbar__hulp { display: flex; align-items: center; gap: var(--ruimte-1); margin-left: auto; }
.topbar__hulp + .topbar__rechts { margin-left: 0; }
.topbar__hulp .topbar__gebruiker:disabled { opacity: 0.5; cursor: default; }
.topbar__hulp a.topbar__gebruiker:hover { text-decoration: none; }
/* Een menu aan de rechterrand klapt naar links uit, anders valt het buiten
   het scherm. Los daarvan --breed, voor de rondleidingen: die titels zijn
   lange zinnen en mogen niet over drie regels breken. */
.menu.menu--rechts { left: auto; right: 0; top: calc(100% + 6px); }
.menu.menu--breed { min-width: 22rem; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--kleur-primair); color: var(--kleur-op-primair);
  font-size: var(--tekst-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* De hamburger vouwt de zijbalk in (schil.js). Hij staat vóór het logo, waar
   je hem verwacht, en verdwijnt op schermen zonder zijbalk — een knop zonder
   werking hoort er niet te staan (templates/CLAUDE.md). */
.topbar__hamburger {
  display: flex; align-items: center; flex: none;
  background: none; border: 0; cursor: pointer;
  color: var(--kleur-topbar-tekst); padding: var(--ruimte-1);
  border-radius: var(--rond-klein);
}
.topbar__hamburger:hover { color: var(--kleur-op-donker-fel); background: var(--kleur-topbar-hoog); }
body:not(:has(.zijbalk)) .topbar__hamburger { display: none; }

/* Met de zijbalk dicht is dit het enige wat nog zegt met welke klas je bezig
   bent; op breed scherm doet de klas-switcher in de zijbalk dat al. */
.topbar__programma {
  display: none; align-items: center; gap: 6px; flex: none;
  margin-left: var(--ruimte-3); padding: var(--ruimte-1) var(--ruimte-3);
  border-radius: var(--rond); background: var(--kleur-topbar-hoog);
  color: var(--kleur-topbar-tekst); font-weight: 600; font-size: var(--tekst-s);
  white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis;
}
.topbar__programma:hover { color: var(--kleur-op-donker-fel); text-decoration: none; }

/* --- Raamwerk: zijbalk | canvas | paneel --------------------------------- */

.raam { display: flex; height: calc(100vh - var(--hoogte-topbar)); }

/* Het scherm achter de lade: alleen op smal scherm, en alleen als de zijbalk
   erover ligt. */
.zijbalk-scherm { display: none; }

.zijbalk {
  width: var(--breedte-zijbalk); flex: none;
  background: var(--kleur-oppervlak);
  border-right: 1px solid var(--kleur-oppervlak-hoog);
  padding: var(--ruimte-4) var(--ruimte-3);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--ruimte-1);
}
.zijbalk__kop {
  font-size: var(--tekst-xxs); font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--kleur-tekst-dof);
  margin: var(--ruimte-4) var(--ruimte-2) var(--ruimte-2);
}
.zijbalk__kop:first-child { margin-top: 0; }
/* Een korte uitleg tussen de links, zoals "nog in ontwikkeling" bij de openbare tools. */
.zijbalk__tekst {
  font-size: var(--tekst-xs); line-height: 1.45; color: var(--kleur-tekst-dof);
  margin: 0 var(--ruimte-2) var(--ruimte-2);
}
.navitem {
  display: flex; align-items: center; gap: var(--ruimte-3);
  padding: var(--ruimte-2) var(--ruimte-3);
  border-radius: var(--rond-klein);
  color: var(--kleur-tekst-zacht); font-weight: 500;
}
.navitem:hover { background: var(--kleur-oppervlak-laag); text-decoration: none; }
.navitem[aria-current] {
  background: var(--kleur-primair-zacht);
  color: var(--kleur-op-primair-zacht); font-weight: 600;
}

/* Zijbalk in- en uitvouwen (notities 09-09-2026).
   Zonder klasse op <body> beslist de breedte: breed staat hij open, onder
   800px dicht. Klikt de docent op de hamburger, dan legt schil.js `zijbalk-open`
   of `zijbalk-dicht` vast en wint die keuze van de breedte. */
body.zijbalk-dicht .zijbalk { display: none; }

@media (max-width: 50rem) {
  body:not(.zijbalk-open) .zijbalk { display: none; }
  /* Open op smal scherm is een lade over het canvas: het canvas is hier al
     smal genoeg, daar kan geen kolom van 244px meer naast. */
  body.zijbalk-open .zijbalk {
    position: fixed; top: var(--hoogte-topbar); bottom: 0; left: 0; z-index: 50;
    box-shadow: var(--schaduw-2);
  }
  body.zijbalk-open .zijbalk-scherm {
    display: block; position: fixed; inset: var(--hoogte-topbar) 0 0 0;
    z-index: 45; background: var(--kleur-sluier);
  }
  /* Ruimte maken in de topbar: het logo en de gebruikersnaam zijn de twee
     dingen die je hier niet nodig hebt — de hamburger staat op de plek van het
     logo en de avatar zegt genoeg. */
  .topbar__logo { display: none; }
  .topbar__programma { display: flex; }
  .topbar__gebruiker > span:not(.avatar):not(.msym) { display: none; }
  .flowtabs { margin-left: var(--ruimte-2); }
  .flowtab { padding: 0 var(--ruimte-3); }
}

.canvas {
  flex: 1; overflow-y: auto; min-width: 0;
  padding: var(--ruimte-5) clamp(var(--ruimte-5), 2.5vw, var(--ruimte-7)) var(--ruimte-7);
}
.canvas__binnen { max-width: var(--breedte-leeskolom); }
.canvas__binnen--breed { max-width: var(--breedte-inhoud); }
/* Een leeszaalpagina staat niet tegen de rand van het canvas: een artikel dat
   je van begin tot eind leest heeft links een marge nodig, zoals een pagina in
   een boek. Op smal scherm is die ruimte er niet en vervalt hij. */
.canvas__binnen--leeszaal { padding-left: var(--ruimte-6); }
@media (max-width: 900px) {
  .canvas__binnen--leeszaal { padding-left: 0; }
}

/* --- Klas-switcher en menu's --------------------------------------------- */

.klas-switcher { position: relative; margin-bottom: var(--ruimte-2); }
.klas-switcher__knop {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: var(--ruimte-3);
  background: var(--kleur-oppervlak-laag);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond); padding: var(--ruimte-3); font: inherit;
}
.klas-switcher__knop:hover { border-color: var(--kleur-rand); }
.klas-switcher__naam { font-weight: 700; display: block; color: var(--kleur-tekst); }
.klas-switcher__sub { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); display: block; }
.klas-switcher__pijl { margin-left: auto; color: var(--kleur-tekst-dof); }

.menu {
  display: none; position: absolute; z-index: 40;
  top: calc(100% + 4px); left: 0; min-width: 100%;
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond); box-shadow: var(--schaduw-2);
  padding: var(--ruimte-1);
}
.menu-open > .menu { display: block; }
.menu a, .menu button {
  display: flex; align-items: center; gap: var(--ruimte-3);
  width: 100%; text-align: left;
  padding: var(--ruimte-2) var(--ruimte-3);
  border-radius: var(--rond-klein); color: var(--kleur-tekst);
  background: none; border: 0; font: inherit; cursor: pointer;
  white-space: nowrap;
}
.menu a:hover, .menu button:hover:not(:disabled) { background: var(--kleur-oppervlak-laag); text-decoration: none; }
.menu button:disabled { color: var(--kleur-tekst-dof); cursor: not-allowed; }
.menu__vink { margin-left: auto; color: var(--kleur-primair); }
.menu__hint { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); padding: var(--ruimte-1) var(--ruimte-3) var(--ruimte-2); }
.menu hr { border: 0; border-top: 1px solid var(--kleur-oppervlak-hoog); margin: var(--ruimte-1); }
.menu__nieuw { color: var(--kleur-primair); font-weight: 600; }
.menu-anker { position: relative; }

/* --- Metadatapaneel rechts ------------------------------------------------ */

.paneel {
  width: 0; flex: none; overflow: hidden;
  background: var(--kleur-oppervlak);
  border-left: 1px solid var(--kleur-oppervlak-hoog);
  transition: width 0.18s ease;
}
.paneel--open { width: var(--breedte-paneel); }
.paneel__binnen { width: var(--breedte-paneel); height: 100%; display: flex; flex-direction: column; }
.paneel__kop { padding: var(--ruimte-4) var(--ruimte-5) var(--ruimte-3); border-bottom: 1px solid var(--kleur-oppervlak-hoog); }
.paneel__sluit { float: right; background: none; border: 0; cursor: pointer; color: var(--kleur-tekst-dof); padding: var(--ruimte-1); border-radius: var(--rond-klein); }
.paneel__sluit:hover { background: var(--kleur-oppervlak-laag); color: var(--kleur-tekst); }
.paneel__titel { font-size: var(--tekst-xl); font-weight: 750; margin: var(--ruimte-2) 0 var(--ruimte-2); }
.paneel__body { flex: 1; overflow-y: auto; padding: var(--ruimte-4) var(--ruimte-5); }
.paneel__voet { padding: var(--ruimte-3) var(--ruimte-5) var(--ruimte-4); border-top: 1px solid var(--kleur-oppervlak-hoog); display: flex; flex-direction: column; gap: var(--ruimte-2); }
.paneel__voet .btn { width: 100%; text-align: center; }
.p-veld { margin-bottom: var(--ruimte-4); }
.p-veld__etiket {
  font-size: var(--tekst-xxs); font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--kleur-tekst-dof);
  margin-bottom: var(--ruimte-1);
}
.p-veld__waarde { color: var(--kleur-tekst-zacht); line-height: 1.55; }
.p-veld__waarde ul { margin-left: 18px; }
.p-chips { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }

/* --- Chips (compacte badges in de nieuwe schermen) ------------------------ */

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600;
  border-radius: var(--rond-vol); padding: 2px 9px;
  background: var(--kleur-oppervlak-midden); color: var(--kleur-tekst-zacht);
  white-space: nowrap; border: 0;
}
.chip--gedeeld { background: var(--kleur-goed-zacht); color: var(--kleur-goed); }
/* Dekking is een ander begrip dan delen; zelfde toon, eigen naam, zodat de
   betekenis niet aan één kleurklasse vastkleeft. */
.chip--gedekt { background: var(--kleur-goed-zacht); color: var(--kleur-goed); }
.chip--eindterm { background: var(--kleur-primair-zacht); color: var(--kleur-op-primair-zacht); }
.chip--extern { font-style: italic; color: var(--kleur-tekst-dof); }
.chip--opdracht { background: var(--kleur-cat-opdracht); color: var(--kleur-op-cat-opdracht); }
.chip--oefening { background: var(--kleur-cat-oefening); color: var(--kleur-op-cat-oefening); }
.chip--context { background: var(--kleur-cat-context); color: var(--kleur-op-cat-context); }
.chip--theorie { background: var(--kleur-primair-zacht); color: var(--kleur-op-primair-zacht); }
.chip--docentinfo { background: var(--kleur-waarschuwing-zacht); color: var(--kleur-waarschuwing); }
/* Slides zijn voor de docent, net als docentinformatie: dezelfde toon. */
.chip--presentatie { background: var(--kleur-waarschuwing-zacht); color: var(--kleur-waarschuwing); }

/* --- Paginakop in het canvas ---------------------------------------------- */

.paginakop { display: flex; align-items: flex-start; gap: var(--ruimte-4); margin-bottom: var(--ruimte-5); }
/* Een maat groter dan een titel in een lijst: dit is het scherm ván dit item
   (notities 07-09-2026). */
.paginakop__titel { font-size: var(--tekst-2xl); line-height: 1.2; font-weight: 800; letter-spacing: -0.3px; color: var(--kleur-tekst); }
.paginakop__sub { color: var(--kleur-tekst-zacht); margin-top: 3px; max-width: 60ch; }
.paginakop__acties { margin-left: auto; display: flex; gap: var(--ruimte-2); flex: none; position: relative; align-items: flex-start; }
/* De omschrijving sluit de kop af; haar eigen ondermarge zou bovenop die van
   de paginakop komen en de kop losweken van de inhoud eronder. */
.paginakop .lead:last-child { margin-bottom: 0; }

/* Het soortlabel boven de titel en het eigenaarschap — components/soortlabel.html
   en components/eigenaar.html. Het label is klein en dof (een categorie, geen
   boodschap); "van jou" springt eruit, want dát is wat je wilt weten. */
.soortlabel { display: flex; align-items: center; gap: var(--ruimte-2); margin: 0 0 2px; font-size: var(--tekst-xs); line-height: 1.4; }
.soortlabel__soort { font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--kleur-tekst-dof); }
.soortlabel .eigenaar::before { content: '·'; margin-right: var(--ruimte-2); color: var(--kleur-rand); }
.eigenaar { color: var(--kleur-tekst-dof); white-space: nowrap; }
.eigenaar--jij { color: var(--kleur-primair); font-weight: 600; }

/* De leesbalk boven andermans werk — components/leesbalk.html. Bewust een
   kleur die nergens in Mijn lessen voorkomt: dit is hét signaal dat je niet in
   eigen werk zit, en dat mag opvallen (plan-bewerken-en-delen §5). */
.leesbalk {
  display: flex; align-items: flex-start; gap: var(--ruimte-3);
  padding: var(--ruimte-3) var(--ruimte-4); margin-bottom: var(--ruimte-4);
  border: 1px solid var(--kleur-waarschuwing); border-radius: var(--rond);
  background: var(--kleur-waarschuwing-zacht); color: var(--kleur-waarschuwing);
  font-size: var(--tekst-m); line-height: 1.5;
}
.leesbalk__icoon { flex: none; margin-top: 1px; }
.leesbalk__tekst { margin: 0; }
.leesbalk a { color: inherit; text-decoration: underline; font-weight: 600; }
.leesbalk .eigenaar { color: inherit; font-weight: 600; white-space: normal; }

/* --- Tijdlijn: lesprogramma -> module -> les -> bouwsteen ------------------ */

.tijdlijn { position: relative; padding-left: 34px; }
.tijdlijn::before {
  content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: var(--kleur-oppervlak-hoog);
}
.rail-blok { position: relative; margin-bottom: var(--ruimte-4); }
.rail-blok__stip {
  position: absolute; left: -34px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--kleur-primair); color: var(--kleur-op-primair);
  font-weight: 700; font-size: var(--tekst-s);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--kleur-achtergrond);
}
.module-kaart {
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond-groot); box-shadow: var(--schaduw-1);
}
.module-kaart__kop {
  padding: var(--ruimte-3) var(--ruimte-4); cursor: pointer;
  border-radius: var(--rond-groot);
}
.module-kaart__kop:hover { background: var(--kleur-oppervlak-laag); }
/* `width: fit-content` is hier geen opmaak maar het klikvlak: de titel is een
   link en de rest van de kop klapt open. Een blok-link zou de volle breedte van
   de kaart vullen, waardoor je halverwege de kaart ineens navigeert in plaats
   van uitklapt — afhankelijk van de muishoogte. Het klikvlak moet precies de
   tekst zijn die je ziet onderstrepen. */
.module-kaart__titel {
  display: block; width: fit-content; max-width: 100%;
  font-size: var(--tekst-l); font-weight: 700; color: var(--kleur-tekst);
}
a.module-kaart__titel:hover { text-decoration: underline; }
.module-kaart__meta { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); margin-top: 1px; }
.klap-pijl { transition: transform 0.15s; color: var(--kleur-tekst-dof); }
.les-blok--open > .les-blok__rij .klap-pijl { transform: rotate(180deg); }
.module-kaart__lessen { display: none; padding: 2px var(--ruimte-4) var(--ruimte-3); }
.klapbaar--open .module-kaart__lessen { display: block; }

/* De modulekop met acties ernaast: de klap-knop mag geen knoppen bevatten
   (geen knop in een knop), dus kop en acties staan naast elkaar in één rij. */
.module-kaart__rij { display: flex; align-items: center; }
.module-kaart__rij .module-kaart__kop { flex: 1 1 auto; min-width: 0; border-radius: var(--rond-groot) 0 0 var(--rond-groot); }
.module-kaart__acties {
  display: flex; align-items: center; gap: 2px;
  padding-right: var(--ruimte-3); flex: none;
}
.module-kaart__leeg { padding: var(--ruimte-2) 0; }
.klapbaar--open > .module-kaart > .module-kaart__rij .klap-pijl { transform: rotate(180deg); }
.lege-staat__acties { justify-content: center; }

.les-blok {
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond-klein);
  margin-top: var(--ruimte-2); background: var(--kleur-oppervlak);
  position: relative;
}
.les-blok__rij { display: flex; align-items: center; }
.les-blok__kop {
  flex: 1; display: flex; align-items: center; gap: var(--ruimte-2);
  min-width: 0; text-align: left;
  padding: var(--ruimte-2) var(--ruimte-3);
  cursor: pointer;
}
.les-blok__kop:hover { background: var(--kleur-oppervlak-laag); }
.les-blok__nr {
  font-size: var(--tekst-xxs); font-weight: 700; color: var(--kleur-tekst-dof);
  background: var(--kleur-oppervlak-midden);
  border-radius: 5px; padding: 2px 7px; flex: none;
}
.les-blok__titel { font-weight: 600; color: var(--kleur-tekst); }
a.les-blok__titel:hover { text-decoration: underline; }
.les-blok__meta { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); }
.les-blok__leeg { padding: var(--ruimte-2); font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); }
.les-blok__acties { display: flex; align-items: center; gap: 2px; padding-right: var(--ruimte-2); flex: none; }
.les-blok__inhoud { display: none; border-top: 1px solid var(--kleur-oppervlak-hoog); padding: var(--ruimte-2) var(--ruimte-3) var(--ruimte-3); }
.les-blok--open .les-blok__inhoud { display: block; }

/* Een lesblok dat zélf op de rail staat: het moduledetail toont de lessen als
   hoofdniveau, dus krijgen ze het gewicht van een modulekaart één niveau
   hoger. Het volgnummer zit dan in de stip, niet in de chip. */
.les-blok--hoofd {
  margin-top: 0; border-radius: var(--rond-groot); box-shadow: var(--schaduw-1);
}
.les-blok--hoofd > .les-blok__rij > .les-blok__kop {
  display: block; padding: var(--ruimte-3) var(--ruimte-4);
  border-radius: var(--rond-groot) 0 0 var(--rond-groot);
}
/* Zelfde reden als bij .module-kaart__titel: blok voor de regelval,
   fit-content zodat het klikvlak de tekst is en niet de hele kaartbreedte. */
.les-blok--hoofd .les-blok__titel {
  display: block; width: fit-content; max-width: 100%;
  font-size: var(--tekst-l); font-weight: 700;
}
.les-blok--hoofd .les-blok__meta { display: block; margin-top: 1px; }
.les-blok--hoofd > .les-blok__inhoud { padding: var(--ruimte-2) var(--ruimte-4) var(--ruimte-3); }

.bouwsteen-rij {
  display: flex; align-items: center; gap: var(--ruimte-3); width: 100%;
  text-align: left; padding: 7px var(--ruimte-2);
  border: 0; background: none; font: inherit; cursor: pointer;
  border-radius: var(--rond-klein);
}
.bouwsteen-rij:hover { background: var(--kleur-primair-zacht); }
.bouwsteen-rij--geselecteerd { background: var(--kleur-primair-zacht); outline: 1.5px solid var(--kleur-primair); }
.bouwsteen-rij__icoon { color: var(--kleur-tekst-dof); flex: none; }
.bouwsteen-rij__titel {
  font-weight: 550; color: var(--kleur-tekst); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bouwsteen-rij__rechts { margin-left: auto; display: flex; align-items: center; gap: var(--ruimte-2); flex: none; }

.rij-toevoegen {
  display: flex; align-items: center; gap: var(--ruimte-2); width: 100%;
  padding: 7px var(--ruimte-2); margin-top: 2px;
  border: 0; background: none; font: inherit;
  color: var(--kleur-tekst-dof); cursor: pointer;
  border-radius: var(--rond-klein); font-weight: 550;
}
.rij-toevoegen:hover { color: var(--kleur-primair); background: var(--kleur-oppervlak-laag); }
.knop-spook {
  display: flex; align-items: center; justify-content: center; gap: var(--ruimte-2);
  width: 100%; padding: var(--ruimte-3);
  background: none; border: 1.5px dashed var(--kleur-rand);
  border-radius: var(--rond-groot); color: var(--kleur-tekst-zacht);
  font: inherit; font-weight: 600; cursor: pointer;
}
.knop-spook:hover { border-color: var(--kleur-primair); color: var(--kleur-primair); background: var(--kleur-oppervlak); text-decoration: none; }

/* --- Vraagstuk-kaarten (bibliotheek) -------------------------------------- */

.vraagstuk-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--ruimte-4); }
.vraagstuk-kaart {
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: 14px; padding: var(--ruimte-4);
  box-shadow: var(--schaduw-1); color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.vraagstuk-kaart:hover { box-shadow: var(--schaduw-2); transform: translateY(-2px); text-decoration: none; }
.vraagstuk-kaart--dof { opacity: 0.62; }
.vraagstuk-kaart--dof:hover { opacity: 1; }
.vraagstuk-kaart__titel { font-size: var(--tekst-l); font-weight: 750; margin-bottom: var(--ruimte-1); color: var(--kleur-tekst); }
.vraagstuk-kaart__tekst { color: var(--kleur-tekst-zacht); font-size: var(--tekst-s); line-height: 1.5; }
.vraagstuk-kaart__voet {
  display: flex; align-items: center; gap: var(--ruimte-3);
  font-size: var(--tekst-xs); color: var(--kleur-tekst-dof);
  margin-top: auto; padding-top: var(--ruimte-4);
}
.vraagstuk-kaart__pijl { margin-left: auto; color: var(--kleur-primair); }
.tegel {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--ruimte-3);
  background: var(--kleur-primair-zacht); color: var(--kleur-primair);
}
.tegel--groot { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 0; }
.tegel--groen { background: var(--kleur-tegel-groen); color: var(--kleur-op-tegel-groen); }
.tegel--rood { background: var(--kleur-fout-zacht); color: var(--kleur-fout); }
.tegel--amber { background: var(--kleur-waarschuwing-zacht); color: var(--kleur-waarschuwing); }
.tegel--paars { background: var(--kleur-tegel-paars); color: var(--kleur-op-tegel-paars); }
.tegel--teal { background: var(--kleur-cat-oefening); color: var(--kleur-op-cat-oefening); }
.sectiekop-dof {
  font-size: var(--tekst-xs); font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--kleur-tekst-dof);
  margin: var(--ruimte-6) 0 var(--ruimte-3);
}

/* --- Item-kaarten (bibliotheek-tabs, eindterm-detail) ---------------------- */

.item-kaart {
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond-groot);
  padding: var(--ruimte-3) var(--ruimte-4);
  box-shadow: var(--schaduw-1); margin-bottom: var(--ruimte-2);
  display: flex; align-items: center; gap: var(--ruimte-3);
  width: 100%; text-align: left; font: inherit; cursor: pointer; color: inherit;
}
.item-kaart:hover { border-color: var(--kleur-primair); text-decoration: none; }
.item-kaart--geselecteerd { border-color: var(--kleur-primair); outline: 1px solid var(--kleur-primair); }
.item-kaart__titel { font-weight: 650; display: block; color: var(--kleur-tekst); }
.item-kaart__meta { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); margin-top: 2px; display: block; }
.item-kaart__rechts { margin-left: auto; display: flex; align-items: center; gap: var(--ruimte-2); flex: none; }

/* --- Dekking -------------------------------------------------------------- */

.dekking-balk {
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond-groot);
  padding: var(--ruimte-4); margin-bottom: var(--ruimte-4);
  display: flex; align-items: center; gap: var(--ruimte-5);
}
.dekking-balk__cijfer { font-size: 26px; font-weight: 800; color: var(--kleur-primair); }
.dekking-balk__staaf { flex: 1; height: 8px; border-radius: var(--rond-vol); background: var(--kleur-oppervlak-midden); overflow: hidden; }
.dekking-balk__staaf > div { height: 100%; background: var(--kleur-primair); border-radius: var(--rond-vol); }
.dekking-groep { margin-bottom: var(--ruimte-5); }
.dekking-groep__kop {
  font-size: var(--tekst-s); font-weight: 750; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--kleur-tekst-dof);
  margin-bottom: var(--ruimte-2);
}
.dekking-rij {
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond-klein);
  padding: var(--ruimte-3) var(--ruimte-4); margin-bottom: var(--ruimte-2);
  display: flex; align-items: center; gap: var(--ruimte-3);
}
.dekking-rij__et { font-weight: 700; color: var(--kleur-tekst-dof); flex: none; width: 46px; }
.dekking-rij__via { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); margin-top: 2px; display: block; }
.dekking-rij__status { margin-left: auto; flex: none; }

/* --- Landingspagina -------------------------------------------------------- */

.landing-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ruimte-4); margin-top: var(--ruimte-5); }
/* Tegels: de kolom groeit niet verder dan 340px, dus twee kaarten worden geen
   twee brede balken. Onder 260px beschikbare breedte één kolom. */
.landing-raster--tegels { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 340px)); }
.landing-kaart {
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: 14px; padding: var(--ruimte-5);
  box-shadow: var(--schaduw-1); color: inherit; display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}
.landing-kaart:hover { box-shadow: var(--schaduw-2); transform: translateY(-2px); text-decoration: none; }
.landing-kaart__titel { font-size: var(--tekst-xl); font-weight: 750; margin: var(--ruimte-3) 0 var(--ruimte-1); color: var(--kleur-tekst); }
.landing-kaart__tekst { color: var(--kleur-tekst-zacht); line-height: 1.5; }


/* --- Linkgedrag in de schil ----------------------------------------------- */
/* De browserstandaard onderstreept alles; in de schil onderstrepen we alleen
   echte tekstlinks, en pas bij hover. Kaarten en navigatie nooit. */

body.schil a { text-decoration: none; }
body.schil .canvas a:hover { text-decoration: underline; }
body.schil a.landing-kaart:hover, body.schil a.landing-kaart:hover *,
body.schil a.vraagstuk-kaart:hover, body.schil a.vraagstuk-kaart:hover *,
body.schil a.item-kaart:hover, body.schil a.item-kaart:hover *,
body.schil .navitem:hover,
body.schil .menu a:hover, body.schil .btn:hover, body.schil .knop-mini:hover,
body.schil .kaart:hover, body.schil .kaart:hover * { text-decoration: none; }

/* ==========================================================================
 * Het bewerkvenster: de samenstelling links, de voorraadkast ("Bibliotheek")
 * in het rechterslot van de schil (lessons/bewerken.html, ADR-0026). Het
 * canvas houdt alleen wat er in de samenstelling zit; de voorraad staat
 * ernaast en duwt niets uit beeld.
 * ========================================================================== */

/* --- Het voorraadpaneel --------------------------------------------------- */
/* Leunt op de paneelklassen hierboven. De kop blijft een blok — `.paneel__sluit`
   drijft naar rechts, en een float doet in een flexcontainer niets. Wat er wél
   bij komt: een rij acties, een zoekbalk, en een body met de canvas-achtergrond,
   anders staan witte kaarten op een wit paneel. */
.voorraad .paneel__body { background: var(--kleur-achtergrond); }

/* In 400–520px passen de gewone knopmaten niet naast elkaar. Geen nieuwe
   knopsoort — alleen compacter binnen dit paneel. */
.voorraad .btn { padding: var(--ruimte-2) var(--ruimte-3); font-size: var(--tekst-m); }

.voorraad__zoek { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }
.voorraad__zoek .form-input {
  flex: 1 1 9rem; min-width: 0;
  padding: var(--ruimte-2) var(--ruimte-3); font-size: var(--tekst-m);
}
.voorraad__zoek .btn { flex: none; }

.kandidaat {
  display: flex; align-items: flex-start; gap: var(--ruimte-3);
  padding: var(--ruimte-3);
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--rond);
}
.kandidaat:hover { border-color: var(--kleur-primair); }
.kandidaat__inhoud { flex: 1 1 auto; min-width: 0; }
.kandidaat__titel { font-size: var(--tekst-m); font-weight: 600; color: var(--kleur-tekst); }
.kandidaat__titel:hover { text-decoration: underline; }
.kandidaat__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-2);
  margin-top: var(--ruimte-2);
  font-size: var(--tekst-xs); color: var(--kleur-tekst-dof);
}
/* Het flexitem is het formulier om de knop heen, niet de knop zelf. */
.kandidaat .inline-formulier { flex: none; }

/* --- De preview-modal: één bestand bekijken zonder weg te navigeren ------- */
/* Breed, want hier staat een document in beeld en geen lopende tekst. */
.bestandmodal {
  margin: auto; /* de globale reset haalt de standaard-centrering van <dialog> weg */
  width: min(64rem, calc(100vw - 2 * var(--ruimte-5)));
  max-height: min(80vh, 56rem);
  border: 1px solid var(--kleur-rand); border-radius: var(--rond-groot);
  padding: 0; background: var(--kleur-oppervlak); color: var(--kleur-tekst);
  box-shadow: var(--schaduw-2);
}
.bestandmodal::backdrop { background: var(--kleur-sluier-sterk); }

/* Wegklikken met onopgeslagen werk (bewerkvenster.js). Smaller dan de
   preview-modal: dit is een vraag, geen venster om in te lezen. */
.verlaatmodal {
  margin: auto; /* de globale reset haalt de standaard-centrering van <dialog> weg */
  width: min(30rem, calc(100vw - 2 * var(--ruimte-5)));
  border: 1px solid var(--kleur-rand); border-radius: var(--rond-groot);
  padding: var(--ruimte-5); background: var(--kleur-oppervlak); color: var(--kleur-tekst);
  box-shadow: var(--schaduw-2);
}
.verlaatmodal::backdrop { background: var(--kleur-sluier-sterk); }
.verlaatmodal__titel { font-size: var(--tekst-l); font-weight: 700; margin-bottom: var(--ruimte-2); }
.verlaatmodal__tekst { color: var(--kleur-tekst-zacht); line-height: 1.55; }
.verlaatmodal__knoppen {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  align-items: center; gap: var(--ruimte-2); margin-top: var(--ruimte-5);
}
/* "Blijven" is de uitweg, niet de bedoeling: stiller dan de twee echte keuzes,
   en op een eigen regel links erboven. Naast de knoppen zou hij op deze breedte
   toch afbreken, en zo houden de twee echte keuzes rechtsonder dezelfde
   volgorde als rechtsboven in het venster. */
.verlaatmodal__blijven {
  flex: 1 0 100%; text-align: left;
  background: none; border: 0; padding: var(--ruimte-2) 0;
  font: inherit; color: var(--kleur-tekst-dof); cursor: pointer;
  text-decoration: underline;
}
.verlaatmodal__blijven:hover { color: var(--kleur-tekst); }
.bestandmodal__kop {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--ruimte-3); padding: var(--ruimte-3) var(--ruimte-5);
  border-bottom: 1px solid var(--kleur-oppervlak-hoog);
}
.bestandmodal__titel { font-weight: 700; word-break: break-word; }
.bestandmodal__frame {
  /* Blijft binnen de max-height van .bestandmodal (80vh) minus de kopbalk. */
  display: block; width: 100%; height: min(72vh, 48rem); max-height: calc(80vh - 4rem);
  border: 0; background: var(--kleur-oppervlak-laag);
}

/* De kale pagina in dat frame draagt zelf geen schil. */
.kale-pagina { padding: var(--ruimte-4); background: var(--kleur-oppervlak-laag); }
.leesweergave__document {
  display: block; width: 100%; height: min(60vh, 42rem);
  border: 1px solid var(--kleur-rand); border-radius: var(--rond-klein);
  background: var(--kleur-oppervlak-laag);
}
.leesweergave__afbeelding {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--kleur-rand); border-radius: var(--rond-klein);
}
.leesweergave__kop {
  display: flex; justify-content: flex-end; gap: var(--ruimte-2);
  margin-bottom: var(--ruimte-3);
}
.leesweergave__voet {
  display: flex; justify-content: flex-end; gap: var(--ruimte-2);
  margin-top: var(--ruimte-4); padding: var(--ruimte-3) 0 0;
  border-top: 1px solid var(--kleur-oppervlak-hoog);
}

/* De bestandsnaam is de weg naar het brondocument; het oog ernaast opent de
   preview. Op het detailscherm duwt de naam de badges naar rechts. */
.bestandenlijst__naam { flex: 1; }
.bestandenlijst__regel .knop-mini, .bestand-rij .knop-mini { flex: none; }

/* Een weblink toont zijn paginatitel als naam; de URL eronder zegt van welke
   site hij komt — dat is bij extern materiaal het eerste wat een docent wil
   weten voordat hij klikt. */
.weblink__adres {
  display: block; font-size: var(--tekst-xs);
  color: var(--kleur-tekst-dof); word-break: break-all;
}

/* Dezelfde twee wegen in het metadatapaneel, waar de regels smaller zijn. */
.bestand-rij {
  display: flex; align-items: center; gap: var(--ruimte-3);
  margin-bottom: var(--ruimte-2); font-size: var(--tekst-s);
}
.bestand-rij__naam { flex: 1; word-break: break-word; }

/* De leestekst van de bouwsteen zelf staat op het detailscherm dichtgevouwen:
   tot tientallen kilobytes tekst duwden bestanden en weblinks van het scherm.
   Een echte <details>, dus openklappen hoeft geen JavaScript. */
.inhoudpaneel {
    margin: 0 0 var(--ruimte-5);
    padding: var(--ruimte-3);
    background: var(--kleur-oppervlak-laag);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--rond-klein);
}

.inhoudpaneel[open] > summary {
    margin-bottom: var(--ruimte-3);
}

/* Dezelfde opmaak voor de inhoudssectie op het detailscherm. */
.inhoudtekst { line-height: 1.65; color: var(--kleur-tekst-zacht); }
.inhoudtekst h1, .inhoudtekst h2, .inhoudtekst h3 {
  color: var(--kleur-tekst); font-size: var(--tekst-l); margin: var(--ruimte-4) 0 var(--ruimte-2);
}
.inhoudtekst table { border-collapse: collapse; margin: var(--ruimte-3) 0; }
.inhoudtekst th, .inhoudtekst td {
  border: 1px solid var(--kleur-rand); padding: var(--ruimte-1) var(--ruimte-2);
  font-size: var(--tekst-s);
}

/* --- Leesweergave van een les --------------------------------------------- */
.subkop { margin: var(--ruimte-5) 0 var(--ruimte-3); font-size: var(--tekst-l); font-weight: 600; color: var(--kleur-tekst); }
.subkop--ruim { margin-top: var(--ruimte-6); }
.kaartlijst--los { margin-top: var(--ruimte-4); }

.leerdoelenlijst {
  margin: 0; padding-left: 1.4rem; color: var(--kleur-tekst-zacht);
  display: flex; flex-direction: column; gap: var(--ruimte-1);
}

/* Een kaart om een lijst rijen heen. Op het lesdetail zijn de bouwstenen het
   hoofdniveau; ze horen dan op dezelfde witte kaart te staan als binnen een
   lesblok, niet los op het canvas. */
.rijenkaart {
  display: flex; flex-direction: column; gap: 2px;
  list-style: none; margin: 0;
  padding: var(--ruimte-2) var(--ruimte-3);
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-oppervlak-hoog);
  border-radius: var(--rond-groot); box-shadow: var(--schaduw-1);
}
.rijenkaart__link {
  display: block; padding: 7px var(--ruimte-2);
  border-radius: var(--rond-klein); font-weight: 550;
  color: var(--kleur-tekst);
}
.rijenkaart__link:hover { background: var(--kleur-primair-zacht); }

/* Een genummerde bouwsteen-rij: het volgnummer voor de klikbare rij. */
.lesrij { display: flex; align-items: center; gap: var(--ruimte-3); }
.lesrij .stap__nummer { flex: none; }
.lesrij .bouwsteen-rij { flex: 1 1 auto; min-width: 0; }

/* --- Toevoegen aan: een verwijzing, geen kopie (ADR-0027) ----------------- */
/* components/toevoeg_kiezer.html: label, keuzelijst en knop als één geheel in
   de paginakop, naast de zip en Bewerken. */
.toevoeg-kiezer { display: flex; gap: var(--ruimte-2); align-items: center; }
.toevoeg-kiezer__label { font-size: var(--tekst-s); color: var(--kleur-tekst-dof); white-space: nowrap; }
.toevoeg-kiezer .form-input {
  width: auto; max-width: 16rem;
  padding: var(--ruimte-2) var(--ruimte-3); font-size: var(--tekst-m);
}

/* --- Afkomst en varianten (ADR-0027) -------------------------------------- */
/* components/soortlabel.html: "MODULE · van jou · variant van Staalproductie
   van de SLO-ontwikkelgroep". components/varianten_sectie.html en
   varianten_lijst.html: per variant wie, wat verschilt, hoe vaak gebruikt —
   als rijen op een kaart (detail) of als korte lijst ín een kaart (bieb). */
.soortlabel__afkomst { color: var(--kleur-tekst-dof); }
.soortlabel__afkomst::before { content: '·'; margin-right: var(--ruimte-2); color: var(--kleur-rand); }
.soortlabel__afkomst a { color: inherit; text-decoration: underline; }
.varianten { list-style: none; }
.varianten__rij {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px var(--ruimte-2); border-radius: var(--rond-klein);
}
.varianten__rij:hover { background: var(--kleur-oppervlak-laag); }
.varianten__wie { display: flex; align-items: center; gap: var(--ruimte-2); font-weight: 550; color: var(--kleur-tekst); }
.varianten__wie a { color: inherit; }
.varianten__wie a:hover { text-decoration: underline; }
.varianten__wie .msym { color: var(--kleur-tekst-dof); }
.varianten__verschil { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); }
.varianten--in-kaart {
  margin: var(--ruimte-2) 0 0; padding: var(--ruimte-1) 0 0 var(--ruimte-2);
  border-left: 2px solid var(--kleur-oppervlak-hoog);
}
.varianten--in-kaart .varianten__rij { padding: 4px var(--ruimte-2); }

/* --- Net verschoven -------------------------------------------------------- */
/* De kruimels komen terug op een anker (#les-3, #module-7 — zie
   readers.lessen._eigen_kruimels en schil.js). Het scherm springt naar dat
   blok; deze gloed laat zien wélk blok het was. */
@keyframes net-verschoven {
  from { background: var(--kleur-primair-zacht); border-color: var(--kleur-primair); }
  to { background: transparent; border-color: transparent; }
}
.stap:target,
.les-blok:target,
.rail-blok:target .module-kaart {
  animation: net-verschoven 1.6s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .stap:target,
  .les-blok:target,
  .rail-blok:target .module-kaart { animation: none; outline: 2px solid var(--kleur-primair); }
}

/* --- Bestandsrol: de indeling per bestand (ADR-0018) ----------------------- */
.bestandsrol { display: flex; align-items: center; gap: var(--ruimte-2); }
.bestandsrol .form-input {
  width: auto; max-width: 14rem;
  padding: var(--ruimte-1) var(--ruimte-2); font-size: var(--tekst-s);
}
/* Het label hoort bij de keuzelijst maar zou de rij dubbel zo breed maken;
   voorleessoftware leest hem wel. */
.enkel-voorlezen {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.bestandenlijst__rollen {
  display: flex; justify-content: flex-end;
  margin-top: var(--ruimte-3);
}

/* --- Verwijderen: alleen in het bewerkformulier (ADR-0019) ----------------- */
.verwijder-sectie {
  margin-top: var(--ruimte-5); padding-top: var(--ruimte-4);
  border-top: 1px dashed var(--kleur-rand);
}
.btn-gevaar {
  background: var(--kleur-oppervlak); color: var(--kleur-fout);
  border: 1px solid var(--kleur-fout);
}
.btn-gevaar:hover { background: var(--kleur-fout-zacht); }

.voetnoot-hint { font-size: var(--tekst-xs); margin-top: var(--ruimte-5); }

/* ------------------------------------------------------------------- profiel */
.profiel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: var(--ruimte-5);
    align-items: start;
}

.profiel__kaart,
.profiel__zij {
    padding: var(--ruimte-5);
}

/* .btn is een <a>: zonder inline-block doet de marge niets en schuift de
   knop over de tekst erboven. */
.profiel__zij .btn {
    display: inline-block;
    margin-top: var(--ruimte-4);
    text-decoration: none;
}

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

/* ==========================================================================
 * Versies vergelijken en overstappen (ADR-0029): het merkje op de tijdlijn,
 * het vergelijkvenster (lessons/versies.html + components/versies_*.html)
 * en de bevestigingspagina (lessons/overstappen_bevestigen.html).
 * ======================================================================= */

/* --- Het merkje en het ⑂-knopje ------------------------------------------ */
.knop-mini--versies { text-decoration: none; }
.knop-mini--versies .msym { font-size: 17px; vertical-align: 0; }
.knop-mini--klein { height: 1.5rem; min-width: 1.5rem; }
.knop-mini--klein .msym { font-size: 15px; }
.knop-mini--signaal { border-color: var(--kleur-signaal-lijn); background: var(--kleur-signaal-zacht); color: var(--kleur-signaal); }
.knop-mini--signaal:hover { border-color: var(--kleur-signaal); color: var(--kleur-signaal); }
.knop-mini--nieuw { position: relative; }
.knop-mini--nieuw::after { content: ''; position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--kleur-tekst-dof); box-shadow: 0 0 0 2px var(--kleur-oppervlak); }
.merkje { display: inline-flex; align-items: center; gap: 4px; font-size: var(--tekst-xs); font-weight: 600; color: var(--kleur-signaal); background: var(--kleur-signaal-zacht); border-radius: var(--rond-vol); padding: 2px 9px 2px 6px; white-space: nowrap; text-decoration: none; }
.merkje:hover { text-decoration: none; background: var(--kleur-signaal-lijn); color: var(--kleur-op-signaal); }
.merkje .msym { font-size: 15px; vertical-align: 0; }
.module-kaart__titelrij { display: flex; align-items: center; gap: var(--ruimte-3); flex-wrap: wrap; }
.chip--maker { background: var(--kleur-signaal-zacht); color: var(--kleur-signaal); }
.btn-signaal { background: var(--kleur-signaal); color: var(--kleur-op-signaal); }
.btn-signaal:hover:not(:disabled) { background: var(--kleur-signaal-hover); }
.btn--klein { padding: .35rem .7rem; font-size: var(--tekst-s); }
/* De knop op rijhoogte: even hoog als de kleine icoonknoppen (.knop-mini--klein). */
.btn--rij { flex: none; height: 1.5rem; padding: 0 .55rem; gap: 4px; font-size: var(--tekst-xs); line-height: 1; border-radius: var(--rond-klein); white-space: nowrap; }
.btn--rij .msym { font-size: 15px; }

/* Terugknop (components/terug_knop.html) op module-, les- en
   bouwsteendetail en op de 404: zwevend rechtsonder, altijd in beeld tijdens
   het scrollen. Blijft onder de preview-modal (z-index 1000) en de zijbalk-
   lade (z-index 50); wat extra ruimte tot de rand houdt hem los van het canvas.
   Staat het paneel rechts open, dan schuift hij mee naar links, even snel als
   het paneel opengaat — anders ligt hij over de voet van het paneel. */
.terugknop {
  position: fixed;
  right: var(--ruimte-6);
  bottom: var(--ruimte-6);
  z-index: 40;
  box-shadow: var(--schaduw-2);
  text-decoration: none;
}
body:has(.paneel--open) .terugknop { right: calc(var(--breedte-paneel) + var(--ruimte-6)); }
/* Met .btn erbij: style.css laadt na dit bestand en zijn .btn heeft een eigen
   transition. Die overgangen staan hier dus ook, want transition vervangt de
   hele lijst. */
.btn.terugknop { transition: background-color 0.2s ease, transform 0.1s ease, right 0.18s ease; }

/* De markering vóór de titel: wat is dit ten opzichte van jouw versie. */
.mark { display: inline-flex; align-items: center; gap: 3px; flex: none; font-size: var(--tekst-xxs); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.mark .msym { font-size: 14px; vertical-align: 0; }
.mark--nieuw { background: var(--kleur-goed-zacht); color: var(--kleur-goed); }
.mark--weg { background: var(--kleur-oppervlak-midden); color: var(--kleur-tekst-dof); }
.mark--jij { background: var(--kleur-primair-zacht); color: var(--kleur-op-primair-zacht); }
.mark--gewijzigd { background: var(--kleur-signaal-zacht); color: var(--kleur-signaal); }

/* --- Het vergelijkvenster: één raster, twee kolommen ------------------------
 * Links wat je gebruikt, rechts wat een andere versie anders doet. Elke les
 * is een groep met een kader over béide kolommen; daarin per bouwsteen een
 * groep, daarin de bestanden. Een groep is een subgrid van het raster: zo
 * blijft de scheidslijn tussen links en rechts op elk niveau recht, ook met
 * een kader en een inspringing. Zonder subgrid (oude browser) zijn het twee
 * gewone kolommen per groep — dan verspringt de lijn een paar pixels per
 * niveau, meer niet. */
.vgl { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--ruimte-4); row-gap: var(--ruimte-2); align-items: start; }
.vgl-cel { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vgl-breed { grid-column: 1 / -1; }
.vgl-kop { margin-bottom: var(--ruimte-2); }
.vgl-groep { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-template-columns: subgrid; row-gap: 3px; align-items: start; }
.vgl-groep--les { border: 1px solid var(--kleur-rand); border-radius: var(--rond); background: var(--kleur-oppervlak-laag); padding: var(--ruimte-2); }
.vgl-groep--bouwsteen { border: 1px solid var(--kleur-oppervlak-hoog); border-radius: var(--rond-klein); background: var(--kleur-oppervlak); padding: 3px; margin-left: var(--ruimte-5); }
.vgl-groep--bestand { margin-left: var(--ruimte-5); }
.vgl-groep--nieuw { box-shadow: inset 3px 0 0 var(--kleur-goed); }
.vgl-groep__inhoud { grid-column: 1 / -1; display: none; }
.klapbaar--open > .vgl-groep__inhoud { display: grid; grid-template-columns: 1fr 1fr; grid-template-columns: subgrid; row-gap: 3px; align-items: start; }
.vgl-groep .klap-pijl { transition: transform 0.15s; }
.vgl-groep.klapbaar--open > .vgl-cel .klap-pijl { transform: rotate(180deg); }
.vgl-leeg { flex: 1; display: flex; align-items: center; min-height: 36px; border: 1px dashed var(--kleur-rand); border-radius: var(--rond-klein); color: var(--kleur-tekst-dof); font-size: var(--tekst-xs); padding: 7px var(--ruimte-3); line-height: 1.4; }
.vgl-leeg--gelijk { border-style: solid; border-color: transparent; }
/* Zweef je boven Toevoegen, dan zegt het lege vak waar het landt. */
.vgl-leeg--landt { border-color: var(--kleur-goed); border-style: solid; background: var(--kleur-goed-zacht); color: var(--kleur-goed); font-weight: 600; }
.vgl-leeg--landt .vgl-leeg__tekst { display: none; }
.vgl-leeg--landt::before { content: 'komt hier'; }
/* Het formulier om een knop heen mag de rij niet breken. */
.vgl-actie { display: contents; }
/* Alles in dit venster op rijhoogte: ook de (i) uit les_info/bouwsteen_info. */
.vgl .knop-mini { width: 1.5rem; height: 1.5rem; min-width: 1.5rem; }
.vgl .knop-mini .msym { font-size: 15px; }

.mijnkaart { padding: var(--ruimte-3) var(--ruimte-4); border: 1px solid var(--kleur-oppervlak-hoog); border-radius: var(--rond-groot); background: var(--kleur-oppervlak); display: flex; flex-direction: column; gap: var(--ruimte-2); }
.mijnkaart__titel { font-weight: 700; font-size: var(--tekst-l); }
.mijnkaart__meta { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); }
.versierij { display: flex; flex-direction: column; gap: 3px; padding: var(--ruimte-2) var(--ruimte-3); border: 1px solid var(--kleur-oppervlak-hoog); border-radius: var(--rond); background: var(--kleur-oppervlak); }
.versierij--maker { background: var(--kleur-signaal-zacht); border-color: var(--kleur-signaal-lijn); }
.versierij--verborgen { opacity: .55; }
.versierij__kop { display: flex; align-items: center; gap: var(--ruimte-2); flex-wrap: wrap; }
.versierij__wie { font-weight: 700; }
.versierij__wie .eigenaar { color: inherit; }
.versierij__update { color: var(--kleur-signaal); }
.versierij__acties { margin-left: auto; display: flex; gap: var(--ruimte-1); align-items: center; }
.versierij__wijz { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); }
.versierij--maker .versierij__wijz { color: var(--kleur-signaal); }
.versie__gebruik { font-size: var(--tekst-xs); color: var(--kleur-tekst-dof); font-weight: 500; }
.wie { display: inline-flex; align-items: center; gap: 4px; font-size: var(--tekst-xs); font-weight: 600; color: var(--kleur-tekst-zacht); flex: none; }
.wie--maker { color: var(--kleur-signaal); }
.wie .eigenaar { color: inherit; }

/* Boomrijen: dezelfde anatomie als een bouwsteenrij op de tijdlijn — de
 * kop (etiket, nummer of icoon, titel, van wie) is de klapzone, rechts
 * staan de (i), de knop en de chevron. */
.boomrij { display: flex; align-items: center; gap: var(--ruimte-2); padding: 5px var(--ruimte-3); border-radius: var(--rond-klein); background: var(--kleur-oppervlak); border: 1px solid var(--kleur-oppervlak-hoog); min-height: 36px; }
.boomrij__kop { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--ruimte-2); }
.boomrij__kop[data-klap] { cursor: pointer; }
.boomrij--les { font-weight: 600; }
.boomrij--bestand { font-size: var(--tekst-s); color: var(--kleur-tekst-zacht); border-color: transparent; background: transparent; min-height: 30px; padding-top: 3px; padding-bottom: 3px; }
/* Rechts mag een titel afbreken, maar niet woord voor woord: eerst de
 * wie-chip naar de volgende regel, dan pas de titel. */
.vgl-cel--alts .boomrij__kop { flex-wrap: wrap; }
.vgl-cel--alts .boomrij__titel { white-space: normal; flex: 1 1 10rem; }
.boomrij--alt { border-style: dashed; }
.boomrij--dof { color: var(--kleur-tekst-dof); }
.boomrij--dof .boomrij__titel { color: var(--kleur-tekst-zacht); }
.boomrij--nieuw { box-shadow: inset 3px 0 0 var(--kleur-goed); }
.boomrij__icoon { color: var(--kleur-tekst-dof); flex: none; }
.boomrij__titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kleur-tekst); }
.boomrij__rechts { margin-left: auto; display: flex; gap: var(--ruimte-2); align-items: center; flex: none; }
/* Rood: dit verdwijnt zodra je klikt (zweven of focus op de knop ernaast). */
.boomrij--vervalt { background: var(--kleur-fout-zacht); border-color: var(--kleur-fout); }
.boomrij--vervalt .boomrij__titel { text-decoration: line-through; color: var(--kleur-fout); }
/* Terug na een actie: de rij waar je landt licht even op (zie net-verschoven). */
.boomrij:target { animation: net-verschoven 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .boomrij:target { animation: none; outline: 2px solid var(--kleur-primair); }
}

/* --- De bevestigingspagina ------------------------------------------------- */
.bevestiging { max-width: 640px; display: flex; flex-direction: column; gap: var(--ruimte-4); }
.bevestiging__blok { background: var(--kleur-oppervlak); border: 1px solid var(--kleur-oppervlak-hoog); border-radius: var(--rond-groot); padding: var(--ruimte-4) var(--ruimte-5); }
.bevestiging__blok p { color: var(--kleur-tekst-zacht); margin: 0 0 var(--ruimte-3); }
.bevestiging__blok--waarschuwing { border-color: var(--kleur-fout); }
.bevestiging__blok--waarschuwing .bevestiging__kop { color: var(--kleur-fout); }
.bevestiging__kop { font-size: var(--tekst-xl); font-weight: 750; margin: 0 0 var(--ruimte-2); }
.bevestiging__lijst { margin: 0 0 var(--ruimte-3) var(--ruimte-5); color: var(--kleur-tekst-zacht); }
.bevestiging__knoppen { display: flex; gap: var(--ruimte-2); justify-content: flex-end; }
.keuze { display: flex; gap: var(--ruimte-3); align-items: flex-start; padding: var(--ruimte-3); border: 1px solid var(--kleur-rand); border-radius: var(--rond); margin-bottom: var(--ruimte-2); cursor: pointer; }
.keuze:has(input:checked) { border-color: var(--kleur-primair); background: var(--kleur-primair-zacht); }
.keuze input { margin-top: 3px; }
.keuze small { display: block; color: var(--kleur-tekst-dof); }

/* De versiebalk: je kijkt naar een versie die je zelf niet gebruikt. */
.versiebalk { border-color: var(--kleur-signaal-lijn); background: var(--kleur-signaal-zacht); color: var(--kleur-signaal); }
.versiebalk .btn-secondary { background: var(--kleur-oppervlak); color: var(--kleur-signaal); border: 1px solid var(--kleur-signaal-lijn); }
.leesbalk__acties { margin-left: auto; display: flex; gap: var(--ruimte-2); flex: none; align-items: center; }

/* Smal scherm: één kolom, links boven rechts; de lege vakken blijven staan,
 * want "niet in jouw versie" en "gelijk in alle versies" zijn de betekenis. */
@media (max-width: 1100px) {
  .vgl, .vgl-groep, .klapbaar--open > .vgl-groep__inhoud { grid-template-columns: 1fr; }
}

/* --- Wachtscherm (components/wachtscherm.html) ---------------------------- */
/* Over de hele pagina zolang een achtergrondtaak loopt: de docent ziet dat er
   iets gebeurt in plaats van een leeg of oud scherm. Dezelfde sluier als de
   dialogen hierboven. */
.wachtscherm {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: var(--ruimte-5); background: var(--kleur-sluier-sterk);
}
.wachtscherm__kaart {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(26rem, 100%); padding: var(--ruimte-6) var(--ruimte-5);
  background: var(--kleur-oppervlak); color: var(--kleur-tekst);
  border: 1px solid var(--kleur-rand); border-radius: var(--rond-groot); box-shadow: var(--schaduw-2);
}
.wachtscherm__ring {
  width: 2.5rem; height: 2.5rem; margin-bottom: var(--ruimte-4);
  border: 3px solid var(--kleur-primair-zacht); border-top-color: var(--kleur-primair);
  border-radius: 50%; animation: wachtscherm-draai 0.9s linear infinite;
}
.wachtscherm__titel { margin: 0 0 var(--ruimte-2); font-size: var(--tekst-l); font-weight: 700; }
.wachtscherm__tekst { margin: 0; color: var(--kleur-tekst-zacht); line-height: 1.55; }
@keyframes wachtscherm-draai { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wachtscherm__ring { animation: none; } }

/* --- Publiceerregel (components/publiceerregel.html) ---------------------- */
/* Eén regel in de publicatieboom van het publiceerscherm. De inspringing zegt
   het niveau (module → les → bouwsteen); de toestand zegt wat er gebeurt:
   gewoon = gaat mee, --uit = blijft privé, --al = stond er al in, --anders =
   van een collega en dus niet aan jou. */
.pubregel {
  display: flex; gap: var(--ruimte-3); align-items: flex-start;
  padding: var(--ruimte-3); margin-bottom: var(--ruimte-2);
  background: var(--kleur-oppervlak); border: 1px solid var(--kleur-rand);
  border-left: 3px solid var(--kleur-goed); border-radius: var(--rond);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.pubregel--diep1 { margin-left: var(--ruimte-6); }
.pubregel--diep2 { margin-left: calc(var(--ruimte-6) * 2); }
.pubregel--uit { border-left-color: var(--kleur-rand-sterk); background: var(--kleur-oppervlak-laag); }
.pubregel--al { border-left-color: var(--kleur-primair); }
.pubregel--anders { border-left-color: var(--kleur-rand); opacity: 0.7; }

.pubregel__vink { display: flex; align-items: center; min-height: 1.5rem; }
.pubregel__vink input { width: 1.1rem; height: 1.1rem; accent-color: var(--kleur-primair); }
.pubregel__geenvink { color: var(--kleur-tekst-dof); }

.pubregel__inhoud { flex: 1; min-width: 0; }
.pubregel__kop { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); align-items: baseline; margin: 0; }
.pubregel__soort {
  font-size: var(--tekst-xs); font-weight: 700; letter-spacing: 0.04em;
  color: var(--kleur-tekst-dof);
}
.pubregel__titel { font-size: var(--tekst-m); font-weight: 600; color: var(--kleur-tekst); }
label.pubregel__titel { cursor: pointer; }
.pubregel__meta {
  margin: var(--ruimte-1) 0 0; font-size: var(--tekst-s); color: var(--kleur-tekst-dof);
}
.pubregel__bestanden {
  margin: var(--ruimte-2) 0 0; padding-left: var(--ruimte-4);
  font-size: var(--tekst-s); color: var(--kleur-tekst-zacht);
}
.pubregel__gevolg {
  margin: var(--ruimte-2) 0 0; padding: var(--ruimte-1) var(--ruimte-2);
  font-size: var(--tekst-s); color: var(--kleur-op-primair-zacht);
  background: var(--kleur-primair-zacht); border-radius: var(--rond-klein);
}

/* De kaart van een interactieve les op het bouwsteendetail
   (components/interactief_kaart.html, ADR-0037). */
.interactief-kaart {
  margin: var(--ruimte-4) 0;
  padding: var(--ruimte-3) var(--ruimte-4);
  border-radius: var(--rond);
  background: var(--kleur-primair-zacht);
  color: var(--kleur-op-primair-zacht);
}
.interactief-kaart .sectiekop__titel { display: flex; align-items: center; gap: var(--ruimte-1); margin-top: 0; }
.interactief-kaart__acties { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin-top: var(--ruimte-2); }

/* --- "Nieuwe bouwsteen": de stapper, het AI-label en de rij in de les ------ */

/* De stapper boven elk venster (components/stapper.html): vijf stappen op
   een lijn, de huidige met aria-current="step" — dat attribuut stuurt de
   opmaak, net als bij de flowtabs. */
.stapper {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-2);
  list-style: none; margin: calc(-1 * var(--ruimte-3)) 0 var(--ruimte-5); padding: 0;
}
.stapper__stap {
  display: inline-flex; align-items: center; gap: var(--ruimte-2);
  font-size: var(--tekst-s); color: var(--kleur-tekst-dof);
}
.stapper__stap + .stapper__stap::before {
  content: ''; width: 1.5rem; height: 1px; background: var(--kleur-rand);
}
.stapper__nr {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; border: 1.5px solid var(--kleur-rand);
  font-size: var(--tekst-xs); font-weight: 700; background: var(--kleur-oppervlak);
}
.stapper__stap--klaar { color: var(--kleur-tekst-zacht); }
.stapper__stap--klaar .stapper__nr {
  border-color: var(--kleur-goed); background: var(--kleur-goed-zacht); color: var(--kleur-goed);
}
.stapper__stap[aria-current] { color: var(--kleur-tekst); font-weight: 700; }
.stapper__stap[aria-current] .stapper__nr {
  border-color: var(--kleur-primair); background: var(--kleur-primair); color: var(--kleur-op-primair);
}

/* Het AI-label (components/ai_badge.html): klein, geen lap tekst (P8). */
.ai-badge {
  display: inline-flex; align-items: center; padding: 0 5px;
  border: 1px solid var(--kleur-ai); border-radius: var(--rond-klein);
  background: var(--kleur-ai-zacht); color: var(--kleur-ai);
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.5;
  cursor: default; white-space: nowrap;
}

/* Een verzoek dat nog aandacht vraagt, als rij in zijn les
   (components/generatie_rij.html): een link, gestippeld omkaderd, want het
   is (nog) geen bouwsteen. */
.generatie-rij {
  text-decoration: none; margin-top: 2px;
  outline: 1.5px dashed var(--kleur-ai); outline-offset: -1.5px;
}
.generatie-rij:hover { background: var(--kleur-ai-zacht); }
.generatie-rij .bouwsteen-rij__icoon { color: var(--kleur-ai); }
.generatie-rij--loopt .bouwsteen-rij__icoon { animation: generatie-draai 1.2s linear infinite; }
@keyframes generatie-draai { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .generatie-rij--loopt .bouwsteen-rij__icoon { animation: none; }
}

/* components/plakvoorbeeld.html: de afbeelding die met de feedback meegaat. */
.plakvoorbeeld {
  display: flex; align-items: flex-start; gap: var(--ruimte-3);
  margin-bottom: var(--ruimte-3);
}
.plakvoorbeeld__plaatje {
  max-width: 320px; max-height: 200px;
  border: 1px solid var(--kleur-rand); border-radius: var(--rond-klein);
}

/* components/nieuwsbrief.html: inschrijven onderaan de openbare tools. */
.nieuwsbrief {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--ruimte-4); align-items: center; margin-top: var(--ruimte-5);
}
.nieuwsbrief__kop { font-size: var(--tekst-l); margin: 0 0 var(--ruimte-1); }
.nieuwsbrief__rechts { display: grid; gap: var(--ruimte-2); }
.nieuwsbrief__rij { display: flex; gap: var(--ruimte-2); }
.nieuwsbrief__rij .form-input { flex: 1; min-width: 0; }
@media (max-width: 800px) { .nieuwsbrief { grid-template-columns: minmax(0, 1fr); } }
