/* ioev.flow in Material 3 with the flow brand (Figma ioev.flow: variabelen "ioev.flow · kleur", pagina 10
   Schermen). Every colour is a token below, named after the Figma variable; rules use tokens only. */
:root {
  --primary: #3e5035; --on-primary: #ffffff; --primary-container: #d4e9c5; --on-primary-container: #2b3b24;
  --secondary: #536342; --secondary-container: #d8dece; --on-secondary-container: #243021;
  --tertiary: #517485; --tertiary-container: #dbe4e6; --on-tertiary-container: #3c5567;
  --surface: #f5f3e4; --lowest: #ffffff; --low: #efeddf; --container: #e9e8d9; --high: #e3e2d3; --highest: #dddccd;
  --on-surface: #243021; --on-surface-variant: #4f5645; --outline: #7d8471; --outline-variant: #cfd2c0;
  --error: #ba1a1a; --scrim: rgba(0, 0, 0, .32);
  --s-backlog: #645e52; --s-backlog-c: #ebe1d2; --s-todo: #406373; --s-todo-c: #c3e8fc;
  --s-bezig: #944a12; --s-bezig-c: #ffdbc8; --s-review: #576243; --s-review-c: #dbe8c0;
  --s-klaar: #3e5035; --s-klaar-c: #d4e9c5; --on-status-c: #243021;
  --font: "Barlow", "Avenir Next", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --primary: #b8cdaa; --on-primary: #24351c; --primary-container: #3a4c31; --on-primary-container: #d4e9c5;
  --secondary: #bacda3; --secondary-container: #33473a; --on-secondary-container: #d8dece;
  --tertiary: #a8ccdf; --tertiary-container: #274b5b; --on-tertiary-container: #c3e8fc;
  --surface: #15211a; --lowest: #101a14; --low: #1a281f; --container: #1d2d22; --high: #23362a; --highest: #2a3f31;
  --on-surface: #f5f3e4; --on-surface-variant: #c4cbb8; --outline: #8f9a85; --outline-variant: #3a4d3c;
  --error: #ffb4ab;
  --s-backlog: #cfc5b7; --s-backlog-c: #4c463b; --s-todo: #a8ccdf; --s-todo-c: #274b5b;
  --s-bezig: #ffb68b; --s-bezig-c: #753400; --s-review: #bfcba5; --s-review-c: #404a2d;
  --s-klaar: #b8cdaa; --s-klaar-c: #3a4c31; --on-status-c: #f5f3e4;
  color-scheme: dark } }
:root[data-theme="dark"] {
  --primary: #b8cdaa; --on-primary: #24351c; --primary-container: #3a4c31; --on-primary-container: #d4e9c5;
  --secondary: #bacda3; --secondary-container: #33473a; --on-secondary-container: #d8dece;
  --tertiary: #a8ccdf; --tertiary-container: #274b5b; --on-tertiary-container: #c3e8fc;
  --surface: #15211a; --lowest: #101a14; --low: #1a281f; --container: #1d2d22; --high: #23362a; --highest: #2a3f31;
  --on-surface: #f5f3e4; --on-surface-variant: #c4cbb8; --outline: #8f9a85; --outline-variant: #3a4d3c;
  --error: #ffb4ab;
  --s-backlog: #cfc5b7; --s-backlog-c: #4c463b; --s-todo: #a8ccdf; --s-todo-c: #274b5b;
  --s-bezig: #ffb68b; --s-bezig-c: #753400; --s-review: #bfcba5; --s-review-c: #404a2d;
  --s-klaar: #b8cdaa; --s-klaar-c: #3a4c31; --on-status-c: #f5f3e4;
  color-scheme: dark }

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--surface); color: var(--on-surface); font: 16px/1.4 var(--font); -webkit-font-smoothing: antialiased }
[hidden] { display: none !important }
a { color: var(--primary) }
h1, h2, h3 { margin: 0; font-weight: 600 }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em }
.ic { font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 400; font-size: 24px; line-height: 1;
      display: inline-block; width: 1em; overflow: hidden; white-space: nowrap; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; flex: none }
.ic.s16 { font-size: 16px } .ic.s18 { font-size: 18px } .ic.s20 { font-size: 20px }
.leeg { color: var(--on-surface-variant); padding: 24px; margin: 0 }

/* State layers (M3): hover 8 %, pressed 10 % of the content colour; dragged 16 %. */
.st { position: relative; overflow: hidden; isolation: isolate; cursor: pointer }
.st::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; z-index: -1; pointer-events: none }
.st:hover::before { opacity: .08 } .st:active::before { opacity: .10 }
.st:disabled { cursor: default; opacity: .38 } .st:disabled::before { opacity: 0 }

/* ---------- navigation: bar below 840, collapsed rail from 840 (M3 breakpoints) ---------- */
.rail { display: none }
.navbar { position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; justify-content: space-between; height: 64px;
          padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: var(--container); box-sizing: content-box }
.dest { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; text-decoration: none; color: var(--on-surface-variant);
        font-size: 12px; font-weight: 500; border-radius: 16px; padding-top: 2px }
.dest.st::before { display: none }
.dest .pill { display: grid; place-items: center; width: 56px; height: 32px; border-radius: 16px; position: relative; overflow: hidden }
.dest:hover .pill { background: color-mix(in srgb, var(--on-surface-variant) 8%, transparent) }
.dest[aria-current="page"] { color: var(--secondary); font-weight: 600 }
.dest[aria-current="page"] .pill { background: var(--secondary-container); color: var(--on-secondary-container) }
@media (min-width: 600px) {
  .navbar { justify-content: center; gap: 8px }
  .navbar .dest { flex: none; flex-direction: row; gap: 4px; padding: 0 16px; height: 40px; align-self: center; border-radius: 20px; font-size: 14px }
  .navbar .dest .pill { width: auto; height: auto; background: none !important }
  .navbar .dest[aria-current="page"] { background: var(--secondary-container); color: var(--on-secondary-container) }
  .navbar .dest:hover { background: color-mix(in srgb, currentColor 8%, transparent) }
}
@media (min-width: 840px) {
  .navbar { display: none }
  .rail { display: flex; position: fixed; inset: 0 auto 0 0; width: 96px; z-index: 20; flex-direction: column; align-items: center; gap: 12px;
          padding: 72px 0 16px; background: var(--surface) }
  .rail .fab { margin-bottom: 24px }
  .rail .dest { flex: none; width: 96px }
  .app { margin-left: 96px }
  .fab-los { display: none !important }
}

/* ---------- top app bar ---------- */
.appbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; height: 64px; padding: 8px 8px 8px 16px; background: var(--surface) }
.logo { display: flex; align-items: center }
.logo img { height: 24px; width: auto; display: block }
.spacer { flex: 1 }
.icbtn { width: 40px; height: 40px; border-radius: 20px; border: 0; background: none; color: var(--on-surface-variant); display: grid; place-items: center; padding: 0; flex: none }
.avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; margin-left: 4px }
.zoek { display: none; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 28px; background: var(--high); color: var(--on-surface-variant) }
.zoek input { border: 0; background: none; outline: none; width: 100%; font-size: 16px; color: var(--on-surface) }
.zoek.open { display: flex; position: absolute; inset: 8px 8px auto 8px; z-index: 2 }
@media (min-width: 600px) { .appbar { padding: 12px 16px 12px 24px } .logo img { height: 28px } }
@media (min-width: 1200px) { .zoek { display: flex; width: 400px } .zoek-knop { display: none } }

/* ---------- board ---------- */
.kop { padding: 4px 16px 12px; display: grid; gap: 6px }
.kop h1 { font-size: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.kop .sub { font-size: 14px; color: var(--on-surface-variant) }
.badge { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 8px; background: var(--s-bezig-c); color: var(--on-status-c) }
.voortgang { display: flex; gap: 4px; height: 4px; margin-top: 4px }
.voortgang b { background: var(--primary); border-radius: 2px }
.voortgang i { flex: 1; background: var(--secondary-container); border-radius: 2px }
@media (min-width: 600px) { .kop { padding: 8px 24px 12px } .kop h1 { font-size: 28px } }

.chips { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none }
.chips::-webkit-scrollbar { display: none }
@media (min-width: 600px) { .chips { padding: 0 24px 12px } }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--outline-variant);
        background: none; color: var(--on-surface-variant); font-size: 14px; font-weight: 500; white-space: nowrap; flex: none }
.chip[aria-pressed="true"] { background: var(--secondary-container); color: var(--on-secondary-container); border-color: transparent; padding-left: 8px }
.chip select { appearance: none; border: 0; background: none; font-weight: 500; font-size: 14px; color: inherit; padding: 0 22px 0 0; cursor: pointer; outline: none }
.chip.menu { position: relative; padding-right: 8px }
.chip.menu .ic { position: absolute; right: 6px; pointer-events: none }
.chip.menu.gekozen { background: var(--secondary-container); color: var(--on-secondary-container); border-color: transparent }

.tabs { display: flex; border-bottom: 1px solid var(--outline-variant) }
.tab { flex: 1; border: 0; background: none; height: 48px; font-size: 14px; font-weight: 500; color: var(--on-surface-variant); position: relative }
.tab[aria-selected="true"] { color: var(--primary); font-weight: 600 }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 48px; margin-left: -24px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary) }
@media (min-width: 600px) { .tabs { display: none } }

.kolommen { display: grid; gap: 8px; padding: 12px 16px 96px }
.kolom { display: none; flex-direction: column; min-width: 0 }
.kolom.actief { display: flex }
.kolom > header { display: none }
.kaarten { display: grid; gap: 8px; align-content: start }
@media (min-width: 600px) {
  .kolommen { display: flex; gap: 16px; padding: 0 24px 104px; overflow-x: auto; align-items: stretch; scroll-snap-type: x proximity }
  .kolom, .kolom.actief { display: flex; flex: 0 0 320px; background: var(--low); border-radius: 16px; overflow: hidden; scroll-snap-align: start; min-height: 60vh }
  .kolom::before { content: ""; height: 4px; background: var(--kleur) }
  .kolom > header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 16px }
  .kolom > header h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--kleur) }
  .kolom > header .n { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: var(--highest); color: var(--on-surface-variant) }
  .kolom > header .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--kleur) }
  .kaarten { padding: 0 8px 8px }
  .kolom.drop { outline: 2px dashed var(--primary); outline-offset: -2px }
}
@media (min-width: 840px) { .kolommen { padding-bottom: 24px } }
@media (min-width: 1200px) { .kolommen { overflow: visible } .kolom, .kolom.actief { flex: 1 1 0 } }

.kaart { display: grid; gap: 8px; padding: 16px; border-radius: 12px; border: 1px solid var(--outline-variant); background: var(--lowest);
         color: var(--on-surface); text-align: left; width: 100%; cursor: pointer }
.kaart.gekozen { border: 2px solid var(--primary); padding: 15px }
.kaart.sleept { opacity: .5 }
.kaart .top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-surface-variant) }
.kaart .top .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--kleur) }
.kaart .titel { font-size: 15px; font-weight: 500; line-height: 20px }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 500; color: var(--on-surface-variant) }
.meta span { display: inline-flex; align-items: center; gap: 4px }
.meta .hoog { color: var(--s-bezig) }
.werkt { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 8px; border-radius: 8px; background: var(--tertiary-container);
         color: var(--on-tertiary-container); font-size: 12px; font-weight: 500 }
.meer { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--primary); font-size: 14px; font-weight: 500; padding: 8px; border-radius: 20px; justify-self: start }

/* ---------- FAB ---------- */
.fab { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--primary-container); color: var(--on-primary-container);
       box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 8px rgba(0,0,0,.1) }
.fab-los { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 15 }
.fab-los span { display: none }
@media (min-width: 600px) { .fab-los { display: flex; width: auto; gap: 12px; padding: 0 20px 0 16px; right: 24px; bottom: calc(88px + env(safe-area-inset-bottom)) }
  .fab-los span { display: inline; font-weight: 600 } }

/* ---------- task: full page below 1200, standard side sheet of 400 next to the board from 1200 ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: var(--surface); display: flex; flex-direction: column }
.sheet .s-top { display: flex; align-items: center; gap: 4px; height: 64px; padding: 8px 8px 8px 4px; flex: none }
.sheet .s-top .mono { font-size: 18px; color: var(--on-surface) }
.sheet .s-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; display: grid; gap: 16px; align-content: start }
.sheet h2.titel { font-size: 22px; line-height: 28px; cursor: text }
.sheet h2.titel input { width: 100%; font-size: 22px; font-weight: 600; border: 0; border-bottom: 2px solid var(--primary); background: none; outline: none; padding: 0 }
@media (min-width: 600px) { .sheet .s-body { padding: 8px 24px 16px } .sheet h2.titel { font-size: 28px; line-height: 34px } }
@media (min-width: 1200px) {
  .sheet { left: auto; width: 400px; border-left: 1px solid var(--outline-variant) }
  .sheet .s-top { padding: 12px 12px 0 24px } .sheet .s-top .terug { display: none } .sheet .s-top .mono { font-size: 14px; color: var(--on-surface-variant) }
  .sheet h2.titel { font-size: 24px; line-height: 30px }
  body.met-sheet .app { margin-right: 400px }
}
@media (max-width: 1199px) { .sheet .s-top .sluit { display: none } body.met-sheet { overflow: hidden } }
.statusrij { display: flex; gap: 8px; flex-wrap: wrap }
.statusmenu { position: relative; display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--outline); border-radius: 20px; padding: 0 12px 0 16px; gap: 8px; font-size: 14px; font-weight: 500 }
.statusmenu .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--kleur) }
.statusmenu select { appearance: none; border: 0; background: none; font-weight: 500; font-size: 14px; padding-right: 20px; cursor: pointer; outline: none }
.statusmenu .ic { position: absolute; right: 10px; pointer-events: none }
.tonal { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 24px 0 16px; border-radius: 20px; border: 0; background: var(--secondary-container);
         color: var(--on-secondary-container); font-size: 14px; font-weight: 500 }
.filled { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 24px 0 16px; border-radius: 20px; border: 0; background: var(--primary);
          color: var(--on-primary); font-size: 14px; font-weight: 500 }
.text-btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 20px; border: 0; background: none; color: var(--primary); font-size: 14px; font-weight: 500 }
.outlined { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 24px 0 16px; border-radius: 20px; border: 1px solid var(--outline); background: none; color: var(--primary); font-size: 14px; font-weight: 500 }
.besteed { background: var(--container); border-radius: 12px; padding: 16px; display: grid; gap: 8px }
.besteed .getal { display: flex; align-items: baseline; gap: 8px } .besteed .getal b { font-size: 32px; font-weight: 600; line-height: 1 }
.besteed .getal span, .besteed .sub { color: var(--on-surface-variant); font-size: 14px }
.velden { display: grid }
.veld { display: grid; grid-template-columns: 20px 96px 1fr; align-items: center; gap: 12px; min-height: 40px; font-size: 14px }
.veld .ic { color: var(--on-surface-variant) }
.veld > span { color: var(--on-surface-variant) }
.veld select, .veld input { border: 0; background: none; font-weight: 500; font-size: 14px; padding: 6px 0; width: 100%; outline: none; cursor: pointer; min-width: 0 }
.veld select:hover, .veld input:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); border-radius: 4px }
.veld .vast { font-weight: 500 }
.loghead { display: flex; align-items: baseline; gap: 8px } .loghead h3 { font-size: 18px } .loghead span { font-size: 13px; color: var(--on-surface-variant) }
.log { display: grid }
.logregel { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--outline-variant); font-size: 14px; line-height: 20px }
.logregel:last-child { border-bottom: 0 }
.logregel .wie { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--on-surface-variant) }
.logregel .wie .spacer { flex: 1 }
.logregel .min { padding: 2px 8px; border-radius: 8px; background: var(--high); color: var(--on-surface); font-size: 12px; font-weight: 500 }
.logregel.status { color: var(--on-surface-variant) }
.stap { flex: none; display: grid; grid-template-columns: 1fr 76px auto; gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--container); align-items: center }
.stap input { height: 48px; border: 1px solid var(--outline); border-radius: 4px; background: none; padding: 0 12px; font-size: 16px; min-width: 0 }
.stap input:focus { border: 2px solid var(--primary); padding: 0 11px; outline: none }
.stap .rond { width: 48px; height: 48px; border-radius: 24px; padding: 0; justify-content: center }
.stap .rond span { display: none }
@media (min-width: 600px) { .stap { padding: 16px 24px 24px; grid-template-columns: 1fr 84px auto } .stap .rond { width: auto; border-radius: 20px; height: 40px; padding: 0 24px 0 16px } .stap .rond span { display: inline } }
@media (min-width: 1200px) { .stap { background: var(--surface); border-top: 1px solid var(--outline-variant); grid-template-columns: 84px 1fr; }
  .stap .tekst { grid-column: 1 / -1 } .stap .rond { justify-self: end; white-space: nowrap } }

/* ---------- lists (backlog) and projects ---------- */
.lijst { display: grid; gap: 8px; padding: 0 16px 96px }
@media (min-width: 600px) { .lijst { padding: 0 24px 104px; max-width: 960px } }
.groep { font-size: 16px; font-weight: 600; color: var(--on-surface-variant); margin: 12px 0 0 }
.raster { display: grid; gap: 16px; grid-template-columns: 1fr }
@media (min-width: 600px) { .raster { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (min-width: 1200px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.pkaart { display: grid; gap: 12px; padding: 20px; border-radius: 12px; border: 1px solid var(--outline-variant); background: var(--lowest) }
.pkaart .top { display: flex; gap: 8px; font-size: 12px; color: var(--on-surface-variant); align-items: center }
.pkaart h3 { font-size: 22px }
.pkaart .map { font-family: var(--mono); font-size: 12px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.balk { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden }
.balk i { background: var(--kleur); border-radius: 4px; min-width: 4px }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px }
.legenda span { display: inline-flex; align-items: center; gap: 4px } .legenda .nul { color: var(--on-surface-variant) }
.legenda .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--kleur) }
.cijfers { display: flex; gap: 24px; padding-top: 8px; border-top: 1px solid var(--outline-variant); flex-wrap: wrap }
.cijfers div { display: grid; gap: 2px } .cijfers small { font-size: 12px; color: var(--on-surface-variant) } .cijfers b { font-size: 16px; font-weight: 600 }
.pleeg { display: grid; gap: 8px; padding: 20px; border-radius: 12px; border: 1px dashed var(--outline-variant); justify-items: start }
.pleeg small { color: var(--on-surface-variant); font-size: 12px } .pleeg p { margin: 0; color: var(--on-surface-variant); font-size: 14px }

[data-s="Backlog"] { --kleur: var(--s-backlog) } [data-s="Todo"] { --kleur: var(--s-todo) } [data-s="Bezig"] { --kleur: var(--s-bezig) }
[data-s="Review"] { --kleur: var(--s-review) } [data-s="Klaar"] { --kleur: var(--s-klaar) }

/* ---------- dialog and snackbar ---------- */
.dlg { border: 0; border-radius: 28px; padding: 24px; background: var(--high); color: var(--on-surface); width: min(560px, calc(100vw - 32px)) }
.dlg::backdrop { background: var(--scrim) }
.dlg h2 { font-size: 24px; font-weight: 400; margin-bottom: 16px }
.dlg form { display: grid; gap: 16px }
.dlg label { display: grid; gap: 4px; font-size: 12px; color: var(--on-surface-variant) }
.dlg input, .dlg select { height: 48px; border: 1px solid var(--outline); border-radius: 4px; background: none; padding: 0 12px; font-size: 16px; color: var(--on-surface) }
.dlg .twee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.dlg .knoppen { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px }
.dlg .fout { color: var(--error); font-size: 14px; margin: 0 }
.snack { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 50; background: var(--on-surface); color: var(--surface);
         padding: 14px 16px; border-radius: 4px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 2px 6px rgba(0,0,0,.2) }
@media (min-width: 840px) { .snack { bottom: 24px } }
