/* Basisstijl. Kleuren en maten komen uit /theme.css (design tokens).
   Vormgeving: richting C "Werkplaats" (ARCUHN Brand Bible v3, §05 toegankelijkheid,
   §06 kleur, §07 typografie). Uitleg per token: docs/vormgeving.md. */

/* Lettertypen zelf gehost (SIL Open Font License, zie LETTERTYPEN.txt): geen externe server. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anonymous Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/anonymous-pro-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Anonymous Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/anonymous-pro-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Anonymous Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/anonymous-pro-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0; font-family: var(--font-basis); line-height: 1.6;
  background: var(--color-achtergrond); color: var(--color-tekst);
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--color-hoofd); text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-accent); outline-offset: 2px;
}
h1, h2, h3 { color: var(--color-hoofd); line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
code, .geheim { font-family: var(--font-mono); }
.geheim { word-break: break-all; background: var(--color-vlak); padding: .2em .4em; border-radius: var(--maat-radius); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--color-achtergrond); padding: .5rem; z-index: 10; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: .75rem var(--maat-ruimte); border-bottom: 1px solid var(--color-rand);
}
.merk { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--color-hoofd); }
.top nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.top nav a { text-decoration: none; padding: .25rem 0; }
.top nav a[aria-current="page"] { font-weight: 700; border-bottom: 3px solid var(--color-accent); }
.uitloggen { margin-left: auto; }
/* Team-menu op een groot scherm: hooguit 6 ingangen, groepen klappen open (5 nov 2026) */
.top .hoofdmenu > ul { flex-wrap: nowrap; gap: .25rem 1.25rem; align-items: center; }
.top .hoofdmenu > ul > li > a, .navgroep > summary, .top .rechts > a { display: inline-flex; align-items: center; gap: .3rem; line-height: 1.5; padding: .25rem 0; border-bottom: 3px solid transparent; }
.navgroep { position: relative; }
.navgroep > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.navgroep > summary::-webkit-details-marker { display: none; }
.navgroep > summary::after { content: " \25BE"; font-size: .8em; }
.navgroep.actief > summary { font-weight: 700; border-bottom: 3px solid var(--color-accent); }
.top nav .navgroep-lijst { display: block; position: absolute; top: calc(100% + .35rem); left: -.75rem; z-index: 30; min-width: 13rem;
  margin: 0; padding: .35rem 0; list-style: none; background: var(--color-achtergrond); border: 1px solid var(--color-rand); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.top nav .navgroep-lijst a { display: block; padding: .5rem .9rem; white-space: nowrap; }
.top nav .navgroep-lijst a[aria-current="page"] { border-bottom: 0; box-shadow: inset 3px 0 0 var(--color-accent); }
.top .rechts { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.top .rechts > a { text-decoration: none; white-space: nowrap; }
.top .rechts > a[aria-current="page"] { font-weight: 700; border-bottom: 3px solid var(--color-accent); }
.top .rechts .uitloggen { margin-left: 0; }
.talen-top { margin-left: auto; font-size: .95rem; }
.terug-web { font-size: .95rem; }
.vraagtabel th[scope="row"] { text-align: left; font-weight: 600; min-width: 9rem; }
.vraagtabel input { min-width: 7rem; }
p.tekst, dd.tekst { white-space: pre-line; } /* uitleg en antwoorden: regels blijven regels */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0 1rem; }
.tabs a { text-decoration: none; padding: .25rem 0; }
.tabs a[aria-current="page"] { font-weight: 700; border-bottom: 3px solid var(--color-accent); }
.schets { margin: .75rem 0; }
.schets-titel { font-weight: 600; margin: .5rem 0 .25rem; }
button[hidden], .schets[hidden] { display: none; }
.schets-gereedschap { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.schets-gereedschap button[aria-pressed="true"] { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.schets-kleur { flex: none; width: 2.75rem; height: 2.75rem; min-height: 0; border: 1px solid var(--color-rand); border-radius: 50%; padding: 0; cursor: pointer; }
.schets-kleur-0 { background: #2e2e2e; }
.schets-kleur-1 { background: #4a0404; }
.schets-kleur-2 { background: #455a38; }
.schets-kleur-3 { background: #3f5f80; }
.schets-doek { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border: 1px solid var(--color-rand); background: #f6f3eb; touch-action: none; cursor: crosshair; }
.schets-detail { margin: 0; }
.schets-svg { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--color-rand); }
.talen-top a { text-decoration: none; padding: .25rem .2rem; }
.talen-top a[aria-current="true"] { font-weight: 700; border-bottom: 2px solid var(--color-accent); }

main { width: 100%; max-width: var(--maat-breedte); margin: 0 auto; padding: 1.5rem var(--maat-ruimte); flex: 1; }
.voet {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding: 1rem var(--maat-ruimte); border-top: 1px solid var(--color-rand); color: var(--color-tekst-zacht); font-size: .9rem;
}
.band { margin: 0; padding: .5rem var(--maat-ruimte); background: var(--color-vlak); border-bottom: 1px solid var(--color-rand); }

.kaart { background: var(--color-achtergrond); border: 1px solid var(--color-rand); border-radius: var(--maat-radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.kaart.smal { max-width: 32rem; margin-left: auto; margin-right: auto; }
.kaart.nadruk { border: 2px solid var(--color-accent); }

label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input:not([type=hidden]):not([type=color]):not([type=file]), select {
  width: 100%; max-width: 28rem; font: inherit; padding: .55rem .65rem;
  border: 1px solid var(--color-tekst-zacht); border-radius: var(--maat-radius); background: var(--color-achtergrond); color: var(--color-tekst);
}
input[type=color] { width: 4rem; height: 2.5rem; padding: 0; border: 1px solid var(--color-tekst-zacht); border-radius: var(--maat-radius); }
.rij { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rij label { margin: 0; }
.rij select, .rij input { width: auto; }

.knop, .knop-licht {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  border-radius: var(--maat-radius); padding: .55rem 1rem; margin-top: .75rem;
}
.knop { background: var(--color-hoofd); color: var(--color-op-hoofd); border: 2px solid var(--color-hoofd); }
.knop-licht { background: var(--color-achtergrond); color: var(--color-hoofd); border: 2px solid var(--color-hoofd); }
.knop-licht.aan { background: var(--color-vlak); }
.knop.groot { width: 100%; font-size: 1.1rem; padding: .8rem 1rem; }
.knop:disabled { opacity: .6; cursor: wait; }
td .knop-licht, .schakel .knop-licht, .rij .knop-licht { margin-top: 0; padding: .3rem .6rem; }
.schakel { display: inline-block; margin: .15rem; }
.acties form { display: inline-block; margin: .15rem; }

.melding { padding: .75rem 1rem; border-radius: var(--maat-radius); background: var(--color-vlak); border-left: 4px solid var(--color-tekst-zacht); }
.melding.goed { border-left-color: var(--color-goed); }
.melding.fout { border-left-color: var(--color-fout); color: var(--color-fout); }
.melding.fout ul { margin: 0; padding-left: 1.2rem; }
.label-fout { color: var(--color-fout); font-weight: 700; }
.label-goed { color: var(--color-goed); font-weight: 700; }
.klein { font-size: .9rem; color: var(--color-tekst-zacht); }
.reserve { margin: 1rem 0; }
.reserve summary { cursor: pointer; color: var(--color-hoofd); font-weight: 600; }
.stappen { padding-left: 1.25rem; }

.tabel-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--color-rand); vertical-align: top; }
th { background: var(--color-vlak); }
tr.uit td { color: var(--color-tekst-zacht); }
table.log td:nth-child(2) { white-space: nowrap; font-family: var(--font-mono); font-size: .85rem; }
tr.ernst-alarm td { background: var(--color-vlak); }
dl.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
dl.gegevens dt { font-weight: 600; }
dl.gegevens dd { margin: 0; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; list-style: none; padding: 0; }
.tegels a { display: block; padding: 1rem; border: 1px solid var(--color-rand); border-radius: var(--maat-radius); text-decoration: none; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Ronde 2: trajecten */
textarea { width: 100%; font: inherit; font-family: var(--font-mono); padding: .55rem .65rem; border: 1px solid var(--color-tekst-zacht); border-radius: var(--maat-radius); }
.lijst { list-style: none; padding: 0; margin: 0; }
.lijst li { padding: .6rem 0; border-bottom: 1px solid var(--color-rand); }
.lijst li:last-child { border-bottom: 0; }
.label { display: inline-block; font-size: .8rem; padding: .05rem .4rem; border-radius: var(--maat-radius); background: var(--color-vlak); border: 1px solid var(--color-rand); }
.fase h2 { margin-top: 1.5rem; }
.stap.bij-klant { border-left: 4px solid var(--color-goed); }
.stap h3 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.checklist li { margin: .25rem 0; }
.vink { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; font: inherit; color: var(--color-tekst);
  background: var(--color-achtergrond); border: 1px solid var(--color-rand); border-radius: var(--maat-radius); padding: .6rem .7rem; cursor: pointer; min-height: 44px; }
.vink[aria-checked="true"] { background: var(--color-vlak); }
.vink:disabled { cursor: default; }
.vakje { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.4rem; height: 1.4rem;
  border: 2px solid var(--color-hoofd); border-radius: 4px; color: var(--color-hoofd); font-weight: 700; }
.knop:disabled { opacity: .5; cursor: not-allowed; }

/* Mijn dag en uren */
.dag { list-style: none; padding: 0; margin: 0; }
.dagitem .item-titel { font-size: 1.15rem; margin: .1rem 0; }
.reden { margin: 0; font-size: .85rem; font-weight: 700; color: var(--color-tekst-zacht); }
.reden-0 { color: var(--color-fout); }
.plan fieldset { border: 0; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.plan legend { font-weight: 600; margin-bottom: .3rem; }
.plan .knop-licht { margin-top: 0; }
.plan input[type=date] { width: auto; }
.afgerond { text-align: center; color: var(--color-tekst-zacht); margin: 2rem 0 1rem; }
.timer p { margin: 0 0 .5rem; }
.band.waarschuwing { border-left: 4px solid var(--color-fout); }

/* Interne postbus: eigen kleur en label, zodat het nooit lijkt op iets voor de klant */
.intern { background: var(--color-vlak); border: 2px dashed var(--color-accent); }
.label-intern { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-op-hoofd); background: var(--color-accent); padding: .1rem .5rem; border-radius: var(--maat-radius); vertical-align: middle; }
.berichten { list-style: none; padding: 0; margin: 0 0 1rem; }
.bericht { background: var(--color-achtergrond); border: 1px solid var(--color-rand); border-radius: var(--maat-radius); padding: .6rem .8rem; margin: .5rem 0; }
.bericht p { margin: 0 0 .3rem; }
.bericht .tekst { white-space: pre-wrap; }
.bericht .verborgen { font-style: italic; color: var(--color-tekst-zacht); }
.bericht .acties { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bericht .acties .knop-licht { margin-top: 0; padding: .25rem .6rem; }

/* Foto's */
.fotos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; }
.fotos img { width: 100%; height: 9rem; object-fit: cover; border-radius: var(--maat-radius); border: 1px solid var(--color-rand); }
.fotos span { display: block; }
#wachtrij:not([hidden]) { border-left: 4px solid var(--color-accent); font-weight: 600; position: sticky; top: 0; z-index: 5; }
form.wacht .vink { border-left: 4px solid var(--color-accent); }
.wacht-label { display: block; font-style: italic; }

/* Ronde 3: klantportaal */
.statuszin { font-size: 1.1rem; font-weight: 600; padding: .75rem 1rem; background: var(--color-vlak); border-left: 4px solid var(--color-accent); border-radius: var(--maat-radius); }
.knoppen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.knoppen .knop, .knoppen .knop-licht { margin-top: 0; }
.tijdlijn { list-style: none; padding: 0; margin: 0; }
.tijdlijn li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--color-rand); }
.tijdlijn li:last-child { border-bottom: 0; }
.tl-teken { flex: none; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.tl-klaar .tl-teken { background: var(--color-goed); color: var(--color-op-hoofd); }
.tl-nu { background: var(--color-vlak); border-left: 4px solid var(--color-accent); padding-left: .5rem; }
.tl-nu .tl-teken { color: var(--color-accent); }
.tl-later { color: var(--color-tekst-zacht); }
.tl-later .tl-titel strong { font-weight: 400; }
.tl-titel, .tl-fase { margin: 0; }
.tl-inhoud p { margin: .25rem 0; }
.wie { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.wie img { border-radius: 50%; object-fit: cover; }
.wie p { margin: 0; }

/* Berichten met de klant: andere kleur en label dan de interne postbus */
.voor-klant { border: 2px solid var(--color-hoofd); }
.label-klant, .label-klant-boven, .label-klant-klein { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-op-hoofd); background: var(--color-hoofd); padding: .1rem .5rem; border-radius: var(--maat-radius); vertical-align: middle; }
.label-klant-boven { margin: .75rem 0 0; }
.label-klant-klein { text-transform: none; letter-spacing: 0; font-weight: 600; }
.bericht.van-klant { border-left: 4px solid var(--color-accent); }
.bericht.eigen { border-left: 4px solid var(--color-hoofd); }

.inline { display: inline-block; margin: 0 .25rem; }
.inline .knop-licht { margin-top: 0; padding: .25rem .6rem; }
.vinkje { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.vinkje input { width: auto; }
.keuzerondjes { border: 0; padding: 0; margin: .75rem 0; }
.keuzerondjes label { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: .25rem 0; }
.keuzerondjes input { width: auto; }
.waarom h4 { margin: .75rem 0 .25rem; }
.akkoord-tekst { white-space: pre-wrap; padding: .75rem; border: 1px solid var(--color-rand); border-radius: var(--maat-radius); background: var(--color-vlak); }
.geheim-klein code { word-break: break-all; }
.opties { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: .5rem 0; }
.opties figure { margin: 0; }
.opties img { width: 100%; max-height: 16rem; object-fit: cover; border-radius: var(--maat-radius); border: 1px solid var(--color-rand); }
.opties .optie.gekozen { border: 3px solid var(--color-goed); }
fieldset.optie { border: 1px solid var(--color-rand); border-radius: var(--maat-radius); margin: .75rem 0; }

/* Ronde 4: dashboard van de leiding */
.cijfers { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0 0 .5rem; }
.cijfer { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid var(--color-rand); border-radius: var(--maat-radius); text-decoration: none; color: inherit; min-height: 7rem; }
.cijfer-kant { font-weight: 600; color: var(--color-hoofd); }
.cijfer-getal { font-size: 1.75rem; font-weight: 700; }
.cijfer.leeg .cijfer-getal { font-size: 1rem; font-weight: 600; color: var(--color-tekst-zacht); }
.uitdienst summary { cursor: pointer; color: var(--color-hoofd); }

/* Ronde 5: aanvraagformulier (honeypot buiten beeld, niet voor schermlezers) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Ronde 6f: menubalk onderaan op de telefoon (hooguit 5 knoppen, rest onder "Meer") */
.onderbalk { display: none; }
@media (max-width: 760px) {
  .top nav { display: none; }
  .top .rechts > a { display: none; }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .onderbalk {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--color-achtergrond); border-top: 1px solid var(--color-rand);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .onderbalk > ul { display: flex; list-style: none; margin: 0; padding: 0; }
  .onderbalk > ul > li { flex: 1 1 0; min-width: 0; }
  .onderbalk a, .onderbalk summary {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-height: 3.5rem; padding: .35rem .15rem; text-decoration: none; color: var(--color-tekst-zacht);
    font-size: .72rem; line-height: 1.1; text-align: center; cursor: pointer; list-style: none;
  }
  .onderbalk summary::-webkit-details-marker { display: none; }
  .onderbalk span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .onderbalk [aria-current="page"] { color: var(--color-hoofd); font-weight: 700; }
  .onderbalk [aria-current="page"] .icoon { stroke-width: 2.4; }
  .meer { position: relative; }
  .meer-lijst {
    position: absolute; right: .25rem; bottom: calc(100% + .25rem); min-width: 12rem; margin: 0; padding: .35rem 0; list-style: none;
    background: var(--color-achtergrond); border: 1px solid var(--color-rand); border-radius: var(--maat-radius);
  }
  .meer-lijst a { display: block; min-height: 0; padding: .7rem 1rem; font-size: 1rem; text-align: left; color: inherit; }
}

/* Team-menu: drie delen, het midden echt in het midden (5 nov 2026). Past het
   niet op één regel (smaller dan 1180px), dan het telefoonmenu onderaan. */
.top-links { display: flex; align-items: center; gap: 1rem; }
.top-drie { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 2rem; padding: .9rem var(--maat-ruimte); }
.top-drie .top-links { justify-self: start; }
.top-drie .hoofdmenu { justify-self: center; }
.top-drie .hoofdmenu > ul { justify-content: center; gap: 0 1.5rem; }
.top-drie .rechts { justify-self: end; margin-left: 0; gap: 1.5rem; }
.top-drie .uitloggen button { min-height: 0; padding: .25rem 0; margin: 0; background: none; border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; color: var(--color-tekst); font: inherit; font-weight: 400; line-height: 1.5; cursor: pointer; }
.top-drie .uitloggen button:hover, .top-drie .rechts > a:hover, .top-drie .hoofdmenu > ul > li > a:hover, .top-drie .navgroep > summary:hover { border-bottom-color: var(--color-rand); }
@media (min-width: 761px) and (max-width: 1180px) {
  .modus-team .top-drie { display: flex; justify-content: space-between; }
  .modus-team .top-drie .rechts > a { display: none; }
  .modus-team .top nav { display: none; }
  .modus-team .top .rechts > a { display: none; }
  body.modus-team { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .modus-team .onderbalk {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--color-achtergrond); border-top: 1px solid var(--color-rand);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modus-team .onderbalk > ul { display: flex; list-style: none; margin: 0; padding: 0; }
  .modus-team .onderbalk > ul > li { flex: 1 1 0; min-width: 0; }
  .modus-team .onderbalk a, .modus-team .onderbalk summary {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-height: 3.5rem; padding: .35rem .15rem; text-decoration: none; color: var(--color-tekst-zacht);
    font-size: .72rem; line-height: 1.1; text-align: center; cursor: pointer; list-style: none;
  }
  .modus-team .onderbalk summary::-webkit-details-marker { display: none; }
  .modus-team .onderbalk span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modus-team .onderbalk [aria-current="page"] { color: var(--color-hoofd); font-weight: 700; }
  .modus-team .onderbalk [aria-current="page"] .icoon { stroke-width: 2.4; }
  .modus-team .meer { position: relative; }
  .modus-team .meer-lijst {
    position: absolute; right: .25rem; bottom: calc(100% + .25rem); min-width: 12rem; margin: 0; padding: .35rem 0; list-style: none;
    background: var(--color-achtergrond); border: 1px solid var(--color-rand); border-radius: var(--maat-radius);
  }
  .modus-team .meer-lijst a { display: block; min-height: 0; padding: .7rem 1rem; font-size: 1rem; text-align: left; color: inherit; }
  .modus-team .onderbalk { background: var(--color-vlak); border-top: 0; }
  .modus-team .onderbalk [aria-current="page"] { color: var(--color-tekst); box-shadow: inset 0 3px 0 var(--color-accent); }
}


/* Ronde 6d: handleiding */
.hulp-lijst li { padding: .6rem 0; border-bottom: 1px solid var(--color-rand); }
.hulp-stappen li { margin: .4rem 0; }
.hulp-beeld { max-width: 100%; height: auto; border: 1px solid var(--color-rand); border-radius: var(--maat-radius); }

/* Ronde 7b: bouwstenen */
.bouwblok { border-top: 1px solid var(--color-rand); margin-top: .75rem; padding-top: .5rem; }
.schaal { display: flex; gap: 1rem; flex-wrap: wrap; margin: .25rem 0 .5rem; }
.schaal label { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; }

/* Ronde 7c: Best Before Date — verlopen tegel wordt grijs */
.cijfer.verlopen { filter: grayscale(1); background: var(--color-vlak); border-style: dashed; }
.cijfer .vers { color: var(--color-tekst-zacht); }

/* Rondgang: niets mag breder worden dan de telefoon */
select { max-width: 100%; }
.gegevens dd, .gegevens dt, .tekst { overflow-wrap: anywhere; }

/* ===== Ronde 7: vormgeving C "Werkplaats" =====
   Paper als ondergrond, Charcoal voor tekst en knoppen, dunne Brass-lijnen.
   Status: Moss = klaar/akkoord, Clay = van jou nodig, Slate = komt nog,
   Oxblood = te laat/urgent. Clay, Slate en Brass alleen als lijn of vlak,
   nooit als kleine tekst; een status heeft altijd ook een woord of teken. */
body { font-size: 1.0625rem; line-height: 1.5; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem); line-height: 1.15; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
main { padding-top: 1.25rem; }
p, li { max-width: 65ch; }
td, .cijfer-getal, .tabulair { font-variant-numeric: tabular-nums; }

/* Kleine systeemlabels: Anonymous Pro, hoofdletters, ruime spatiëring (Brand Bible §07) */
.label, .label-intern, .label-klant, .label-klant-boven, .cijfer-kant, .systeemlabel {
  font-family: var(--font-mono); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.label { background: transparent; border: 1px solid var(--color-tekst-zacht); color: var(--color-tekst); padding: .1rem .45rem; }
.label-klant-klein { font-family: var(--font-basis); }
.cijfer-kant { color: var(--color-tekst); }
.merk { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; }

/* Kaarten: geen schaduw, een dunne lijn; vlakken in Oat */
.kaart { border-color: var(--color-rand); }
.kaart.nadruk, .kaart.nodig { border: 1px solid var(--color-rand); border-top: 4px solid var(--color-nodig, #a95f49); background: var(--color-vlak); }
.top { border-bottom-color: var(--color-rand); }
th { font-weight: 600; }

/* Knoppen: Charcoal, groot genoeg om te tikken (44px) */
.knop, .knop-licht { min-height: 44px; padding: .6rem 1.1rem; }
.knoppen .knop { flex: 1 1 100%; text-align: center; }
@media (min-width: 761px) { .knoppen .knop { flex: 0 0 auto; } }

/* Voortgangsbalk bovenaan een traject: alleen beeld, de tekst "Stap x van y" staat er altijd bij */
.voortgang { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 .75rem; }
.voortgang span { height: 6px; }
.vg-klaar { background: var(--color-goed); }
.vg-nu { background: var(--color-nodig, #a95f49); }
.vg-later { background: var(--color-straks, #8095aa); opacity: .45; }

/* Statuszin en tijdlijn in het portaal */
.statuszin { background: var(--color-vlak); border-left: 0; border-top: 4px solid var(--color-nodig, #a95f49); border-radius: var(--maat-radius); }
.tl-klaar .tl-teken { background: transparent; color: var(--color-goed); border: 2px solid var(--color-goed); }
.tl-nu { border-left-color: var(--color-nodig, #a95f49); }
.tl-nu .tl-teken { color: var(--color-tekst); }
.tl-later .tl-teken { color: var(--color-tekst-zacht); }
.stap.bij-klant { border-left-color: var(--color-goed); }

/* Meldingen: een lijn aan de zijkant plus het woord; Oxblood alleen voor fout/te laat */
.melding { border-radius: var(--maat-radius); }
.melding.fout { color: var(--color-fout); }

/* Interne postbus blijft herkenbaar anders dan alles voor de klant */
.intern { border: 2px dashed var(--color-accent); }

/* Telefoon eerst: onderbalk in Oat, actief item met een Moss-lijn bovenaan */
@media (max-width: 760px) {
  .onderbalk { background: var(--color-vlak); border-top: 0; }
  .onderbalk [aria-current="page"] { color: var(--color-tekst); box-shadow: inset 0 3px 0 var(--color-accent); }
  .meer-lijst { background: var(--color-achtergrond); }
  dl.gegevens { grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
  dl.gegevens dd { margin-bottom: .5rem; }
  h1 { margin-bottom: .75rem; }
}
@media (min-width: 761px) { dl.gegevens { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); } }

/* ===== Klant en team nooit in dezelfde kleur (ronde 7, vaste regel) =====
   Klantportaal = licht (Paper). Team en leiding = donker (Charcoal). Plus een
   vast label bovenaan, zodat kleur nooit het enige verschil is (WCAG 1.4.1).
   Onderbouwing: modusfouten voorkom je door modi duidelijk verschillend te
   laten zien (Norman 1983, Communications of the ACM). Contrast: zie docs/vormgeving.md. */
.modus { display: inline-block; padding: .15rem .5rem; border: 1px solid currentColor; color: var(--color-tekst); }
.modus-team {
  color-scheme: dark;
  --color-achtergrond: #2e2e2e;  /* Charcoal */
  --color-vlak: #3a3a3a;         /* Charcoal, iets lichter: kaarten en vlakken */
  --color-tekst: #ded8cc;        /* Oat: 9,57:1 op Charcoal, 8,02:1 op het vlak */
  --color-tekst-zacht: #b5afa4;  /* 6,23:1 en 5,22:1 */
  --color-hoofd: #ded8cc;        /* knoppen en koppen in Oat */
  --color-op-hoofd: #2e2e2e;     /* Charcoal op een Oat-knop: 9,57:1 */
  --color-accent: #b98a57;       /* Aged Brass: focusrand en lijnen, 4,42:1 */
  --color-rand: #6b655b;         /* dunne lijnen */
  --color-fout: #a95f49;         /* geen Oxblood op donker (1,2:1): Clay als vlak of lijn, met het woord erbij */
}
.modus-team textarea, .modus-team input, .modus-team select { background: var(--color-achtergrond); color: var(--color-tekst); }
textarea { background: var(--color-achtergrond); color: var(--color-tekst); }
/* Statuskleuren op donker alleen als lijn of vlak: de tekst blijft Oat */
.modus-team .label-goed, .modus-team .label-fout, .modus-team .reden-0 { color: var(--color-tekst); border-left: 4px solid var(--color-goed); padding-left: .35rem; }
.modus-team .label-fout, .modus-team .reden-0 { border-left-color: var(--color-nodig, #a95f49); }
.modus-team .melding.fout { color: var(--color-tekst); border-left-color: var(--color-nodig, #a95f49); }
.modus-team .label-intern { background: var(--color-tekst); color: var(--color-achtergrond); }
.modus-team .vg-later { opacity: .6; }
.modus-team .cijfer.verlopen { filter: none; opacity: 1; }

/* Rondgang: tabellen en lange woorden blijven binnen de telefoon */
.kaart > table, main > table { display: block; overflow-x: auto; max-width: 100%; }
.tabel-scroll { max-width: 100%; }
/* Verborgen labels (.vh) in een tabel blijven binnen de scrollbox */
.tabel-scroll, .kaart > table, td, th { position: relative; }
main { overflow-wrap: break-word; min-width: 0; }

/* Ronde 7 (2 nov): nieuw in de postbus = stipje met aantal. Signaalrood #ec7a62
   (Clay/Oxblood-familie, lichter): 4,87:1 op Charcoal, 4,08:1 op het teamvlak
   (WCAG 1.4.11 vraagt 3:1), het getal in Charcoal erop 4,87:1. Nooit alleen
   kleur: altijd het getal, en voor schermlezers "x nieuw". */
.stip { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
  border-radius: .625rem; background: var(--color-signaal, #ec7a62); color: #2e2e2e; font-family: var(--font-mono); font-weight: 700;
  font-size: .75rem; line-height: 1; margin-left: .35rem; vertical-align: middle; }
.onderbalk a, .onderbalk summary { position: relative; }
.onderbalk .stip { position: absolute; top: .2rem; left: calc(50% + .45rem); margin: 0; }

/* Ronde 7 (2 nov): Mijn dag als startplek. Gelijke tegels in een raster:
   2 naast elkaar op de telefoon, 3 op een groter scherm. */
.snel ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 761px) { .snel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.snel li, .snel form { display: flex; margin: 0; }
.snel-tegel { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-height: 7.5rem; width: 100%;
  padding: 1rem; border: 1px solid var(--color-rand); border-radius: var(--maat-radius); background: var(--color-vlak);
  color: var(--color-tekst); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.snel-tegel strong { font-size: 1.05rem; font-weight: 600; }
.snel-tegel span:not(.stip) { font-size: .9rem; color: var(--color-tekst-zacht); }
.snel-tegel .icoon { width: 1.75rem; height: 1.75rem; }
.snel-tegel:hover { border-color: var(--color-accent); }
.snel-tegel.loopt { border: 2px solid var(--color-accent); }
.melding.nieuw { display: flex; align-items: center; gap: .5rem; }
.melding.nieuw .stip { margin-left: 0; }
.dag-trajecten li { display: flex; flex-direction: column; gap: .35rem; }
.dag-trajecten .voortgang { margin: 0; }

/* Ronde 7 (2 nov): "Op deze pagina" bovenaan lange pagina's, en duidelijk
   onderscheid tussen blokken: een kop met een lijn erboven en ruimte. */
.opdeze { margin: 0 0 1.5rem; padding: .75rem 0; border-top: 1px solid var(--color-rand); border-bottom: 1px solid var(--color-rand); }
.opdeze .systeemlabel { margin: 0 0 .5rem; color: var(--color-tekst-zacht); }
.opdeze ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.opdeze a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .75rem; border: 1px solid var(--color-rand);
  border-radius: var(--maat-radius); text-decoration: none; color: var(--color-tekst); background: var(--color-vlak); }
.opdeze a:hover { border-color: var(--color-accent); }
main > section.kaart, main > details.kaart { scroll-margin-top: 1rem; }
main > section.kaart > h2 { padding-bottom: .5rem; border-bottom: 1px solid var(--color-rand); }
main > section.kaart + section.kaart { margin-top: 1.75rem; }

/* Dashboard: vier even grote tegels (2×2 op de telefoon, 4 naast elkaar breder). */
.cijfers { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (min-width: 900px) { .cijfers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cijfers li { display: flex; }
.cijfers .cijfer { flex: 1; min-height: 11rem; }
.cijfer-kant { text-transform: none; letter-spacing: 0; font-family: var(--font-basis); font-weight: 600; font-size: 1rem; }

/* Pauze: de spelletjes (alleen team, telefoon eerst) */
#pauze-melding:empty { display: none; }
#pauze-menu [aria-pressed="true"] { background: var(--color-hoofd); color: var(--color-op-hoofd); }
.pauze-venster { max-width: 30rem; }
.game { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
.game__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.lcd { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; padding: .15rem .45rem; background: #2e2e2e; color: #ec7a62; border: 1px solid var(--color-rand); }
.dlg__m { font-size: .9rem; color: var(--color-tekst-zacht); }
.nav__b { font: inherit; min-height: 44px; min-width: 44px; padding: .4rem .8rem; cursor: pointer; border: 2px solid var(--color-hoofd);
  background: var(--color-achtergrond); color: var(--color-hoofd); border-radius: var(--maat-radius); font-weight: 600; }
.nav__b.is-primary, .nav__b.is-on { background: var(--color-hoofd); color: var(--color-op-hoofd); }
.snake__cv { width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; border: 1px solid var(--color-rand); touch-action: none; }
.check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; }
.pad { display: grid; grid-template-columns: repeat(3, 3rem); grid-template-areas: ". u ." "l d r"; gap: .35rem; justify-content: center; }
.pad .u { grid-area: u; } .pad .l { grid-area: l; } .pad .d { grid-area: d; } .pad .r { grid-area: r; }
.ms { display: grid; gap: 2px; justify-content: center; }
.ms button { width: 28px; height: 28px; padding: 0; font: 700 .9rem var(--font-mono); border: 1px solid var(--color-rand);
  background: var(--color-vlak); color: var(--color-tekst); cursor: pointer; }
.ms button.o { background: var(--color-achtergrond); }
.ms button.boom { background: #a95f49; }
.face { font-size: 1.2rem; }
.np { width: 100%; min-height: 14rem; font-family: var(--font-basis); }
.calc { display: flex; flex-direction: column; gap: .5rem; max-width: 18rem; }
.calc__scr { font: 700 1.6rem var(--font-mono); text-align: right; padding: .5rem .75rem; background: #2e2e2e; color: #ded8cc; border: 1px solid var(--color-rand); overflow: hidden; }
.calc__keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.calc__keys .zero { grid-column: span 2; }
.calc__keys .eq { grid-column: span 2; }

/* Klantportaal (feedback 2 nov). Op licht haalt Signaalrood maar 2,99:1;
   daarom is het stipje voor de klant Oxblood #4a0404 met het getal in Paper:
   14,45:1 op Paper, 11,3:1 op Oat (WCAG 1.4.11 vraagt 3:1). */
.modus-klant .stip { background: var(--color-fout, #4a0404); color: #f6f3eb; }
.aanzet, .verzoek-rij { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.aanzet p, .verzoek-rij p { margin: 0; flex: 1 1 14rem; }
.aanzet .knop, .verzoek-rij .knop, .verzoek-rij .knop-licht { margin-top: 0; }
.status-open { border-color: var(--color-nodig, #a95f49); border-width: 2px; }
.status-klaar { border-color: var(--color-goed); border-width: 2px; }
.gesprek h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.tekst.kort { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }

/* Gegevens: kort overzicht met aantallen (alles in detail in de download) */
.tellingen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.tellingen strong { font-family: var(--font-mono); font-size: 1.2rem; margin-right: .35rem; }

/* Vinkjes en rondjes nooit over de volle breedte */
.vinkje input[type=checkbox], .vinkje input[type=radio], .keuzerondjes input[type=radio], .keuzerondjes input[type=checkbox] { width: auto; flex: none; margin: 0; }
.vinkje { justify-content: flex-start; }

/* Vinkjes en rondjes: nooit over de volle breedte (sterker dan de regel voor velden) */
input[type=checkbox]:not([type=hidden]):not([type=color]):not([type=file]),
input[type=radio]:not([type=hidden]):not([type=color]):not([type=file]) { width: auto; max-width: none; flex: none; margin: 0; padding: 0; }
.vinkje, .keuzerondjes label { display: flex; align-items: center; gap: .5rem; }
