/* AD Board: tokens en knoppen komen uit projecten/absurdosdigital/site/assets/site.css (donker), de lichte set is nieuw. */
@font-face {
  font-family: "Fredoka";
  src: url(assets/fredoka-latin.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #120e1c;
  --surface: #1a1527;
  --card: #221b33;
  --col: rgba(255, 244, 230, .025);
  --line: rgba(255, 244, 230, .1);
  --line-strong: rgba(255, 244, 230, .22);
  --ink: #fff4e6;
  --ink-soft: rgba(255, 244, 230, .72);
  --ink-mute: rgba(255, 244, 230, .55);
  --veld: rgba(0, 0, 0, .28);
  --hover: rgba(255, 244, 230, .06);
  --pink: #e05d71;
  --pink-knop: #c94860;
  --pink-knop-dark: #93304a;
  --blue: #2f8fc9;
  --blue-knop: #2679ab;
  --blue-knop-dark: #195377;
  --sky: #7cc4f0;
  --orange: #eda014;
  --warn: #f2b53a;
  --rood: #ff8a7a;
  --lime: #c6e85a;
  --purple: #5b3aa8;
  --drag-shadow: 0 28px 48px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 244, 230, .14);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --top-h: 64px;
}
/* licht: crème vlak, paarse inkt; knoppen houden dezelfde kleur (wit erop haalt 4,5:1) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6eee2; --surface: #fffaf2; --card: #ffffff; --col: rgba(29, 23, 41, .03);
    --line: rgba(29, 23, 41, .1); --line-strong: rgba(29, 23, 41, .24);
    --ink: #1d1729; --ink-soft: rgba(29, 23, 41, .74); --ink-mute: rgba(29, 23, 41, .62);
    --veld: rgba(29, 23, 41, .05); --hover: rgba(29, 23, 41, .05);
    --warn: #9a5c00; --rood: #c0362c;
    --drag-shadow: 0 28px 48px -18px rgba(40, 24, 60, .35), 0 0 0 1px rgba(29, 23, 41, .1);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6eee2; --surface: #fffaf2; --card: #ffffff; --col: rgba(29, 23, 41, .03);
  --line: rgba(29, 23, 41, .1); --line-strong: rgba(29, 23, 41, .24);
  --ink: #1d1729; --ink-soft: rgba(29, 23, 41, .74); --ink-mute: rgba(29, 23, 41, .62);
  --veld: rgba(29, 23, 41, .05); --hover: rgba(29, 23, 41, .05);
  --warn: #9a5c00; --rood: #c0362c;
  --drag-shadow: 0 28px 48px -18px rgba(40, 24, 60, .35), 0 0 0 1px rgba(29, 23, 41, .1);
}

* { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  transition: background-color .3s ease, color .3s ease;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: inherit; font-size: .72rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-mute); }
[hidden] { display: none !important; }

/* ---------- kopbalk ---------- */
.top {
  display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  min-height: var(--top-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand b { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.demo { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--orange); color: #2b1a00; }
.zoek {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); width: min(280px, 34vw);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.zoek:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--hover); }
.zoek svg { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }
.zoek input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; }
.zoek input::-webkit-search-cancel-button { display: none; }
.zoek .wis { width: 28px; height: 28px; margin-right: -4px; border: 0; border-radius: 50%; background: var(--hover); color: var(--ink-soft); display: grid; place-items: center; flex: none; position: relative; }
.zoek .wis::after { content: ""; position: absolute; inset: -8px; }
.zoek .wis svg { width: 14px; height: 14px; stroke-width: 2.4; }
.zoek .wis:not([hidden]) ~ kbd { display: none; }
.icoon {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; flex: none; color: var(--ink); text-decoration: none;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.icoon:active { transform: scale(.94); }
.icoon svg { width: 18px; height: 18px; }
.icoon.klein { width: 36px; height: 36px; }
@media (hover: hover) and (pointer: fine) { .icoon:hover { background: var(--hover); } }
#thema .maan { display: none; }
:root[data-theme="light"] #thema .zon { display: none; }
:root[data-theme="light"] #thema .maan { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #thema .zon { display: none; }
  :root:not([data-theme="dark"]) #thema .maan { display: block; }
}

/* klei-knop, zelfde als de site */
.btn {
  --c: var(--pink-knop); --cd: var(--pink-knop-dark);
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; color: #fff; background: var(--c);
  padding: 9px 16px 8px; border-radius: 999px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 4px 0 var(--cd), inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 6px rgba(0,0,0,.12);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; stroke-width: 2.6; }
.btn kbd { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.35); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cd), inset 0 2px 0 rgba(255,255,255,.28); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--cd), inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 6px rgba(0,0,0,.12); }
  .btn:hover:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cd), inset 0 2px 0 rgba(255,255,255,.28); }
}
.link { background: none; border: 0; padding: 8px 2px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.link.gevaar { color: var(--rood); }

/* ---------- filters: projecten en mensen ---------- */
.filters { padding: 0 16px 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px -6px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  --pc: var(--ink-mute);
  display: inline-flex; align-items: center; flex: none; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); transition: border-color .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip .kies { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 12px 6px 8px; min-height: 40px; font-weight: 600; border-radius: 999px; }
.chip.alles .kies { padding-left: 14px; }
.chip[data-aan] { border-color: color-mix(in srgb, var(--pc) 70%, transparent); background: color-mix(in srgb, var(--pc) 16%, var(--surface)); }
@media (hover: hover) and (pointer: fine) { .chip:not([data-aan]):hover { border-color: var(--line-strong); } }
.chip .st { margin: 0 6px 0 -4px; }
.chip.plus .kies { padding: 6px 14px; color: var(--ink-soft); font-weight: 500; }
.chip .tel { font-size: .78rem; color: var(--ink-mute); font-weight: 500; }
.scheid { width: 1px; background: var(--line); flex: none; margin: 6px 4px; }
.chip.mens .kies { padding: 4px 12px 4px 4px; }

/* voortgangsring: aandeel afgeronde fases */
.ring {
  --p: 0; width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--pc) calc(var(--p) * 1turn), color-mix(in srgb, var(--pc) 22%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px); mask: radial-gradient(circle, transparent 6px, #000 6.5px);
  transition: --p .8s var(--ease-out);
}
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

/* statusbadge */
.st {
  font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; min-height: 26px; position: relative;
}
button.st::after { content: ""; position: absolute; inset: -8px -4px; }
.st.prospect { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1.5px currentColor; }
.st.klant { background: var(--lime); color: #1d2a05; }
.st.eigen { background: var(--sky); color: #0b2a3d; }
.st.intern { background: #cdbdff; color: #24124f; }
.st.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.25); } }

/* ---------- avatars (klei) ---------- */
.ava {
  --uc: var(--ink-mute);
  width: 28px; height: 28px; border-radius: 50%; border: 0; flex: none; position: relative; padding: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .78rem; line-height: 1;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--uc) 55%, #fff) 0%, var(--uc) 48%, color-mix(in srgb, var(--uc) 72%, #000) 100%);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--uc) 55%, #000);
  transition: transform .16s var(--ease-out);
}
.ava.leeg { background: none; box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--ink-mute); }
.ava.leeg svg { width: 12px; height: 12px; stroke-width: 2.6; }
button.ava::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
button.ava:active { transform: scale(.88); }
.ava.wissel { animation: wissel .45s var(--spring); }
@keyframes wissel { 0% { transform: scale(.6) rotate(-30deg); } 100% { transform: none; } }

/* ---------- tabs (alleen mobiel) ---------- */
.tabs { display: none; }

/* ---------- board ---------- */
.board {
  flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom)); overflow-x: auto;
}
.kolom {
  display: flex; flex-direction: column; min-height: 0; border-radius: 24px; background: var(--col); border: 1px solid var(--line);
}
.kolom > header { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 10px; flex-wrap: wrap; }
.kolom h2 { font-size: 1.05rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.kolom h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc) 25%, transparent); }
.kolom[data-kolom="backlog"] { --kc: var(--ink-mute); }
.kolom[data-kolom="doing"] { --kc: var(--pink); }
.kolom[data-kolom="bespreken"] { --kc: var(--orange); }
.kolom[data-kolom="done"] { --kc: var(--lime); }
.kolom .aantal { font-size: .85rem; font-weight: 600; color: var(--ink-mute); font-variant-numeric: tabular-nums; display: inline-block; }
.kolom .aantal.tik { animation: tik .5s var(--spring); }
@keyframes tik { 40% { transform: translateY(-4px) scale(1.3); color: var(--lime); } }
.kolom .sub { width: 100%; font-size: .8rem; color: var(--ink-mute); }
.lijst {
  flex: 1; min-height: 72px; overflow-y: auto; overscroll-behavior-y: contain; padding: 4px 10px 8px;
  display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin;
}
.lijst:empty::before {
  content: attr(data-leeg); display: grid; place-items: center; text-align: center; min-height: 88px; padding: 12px;
  border: 1.5px dashed var(--line); border-radius: 18px; color: var(--ink-mute); font-size: .9rem;
}
.slepen .lijst:empty::before { border-color: var(--line-strong); }
.kolom > footer { padding: 2px 10px 10px; display: flex; gap: 6px; align-items: center; }
.erbij {
  flex: 1; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 14px;
  border: 0; background: none; color: var(--ink-mute); font-weight: 500; text-align: left;
  transition: background-color .2s ease, color .2s ease;
}
.erbij svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .erbij:hover { background: var(--hover); color: var(--ink); } }
.archief-knop { color: var(--ink-mute); }

/* ---------- kaart ---------- */
.card {
  --pc: var(--ink-mute);
  position: relative; flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 11px 12px 10px 20px; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  display: grid; gap: 6px; outline-offset: 2px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.card::before { content: ""; position: absolute; left: 8px; top: 11px; bottom: 11px; width: 4px; border-radius: 4px; background: var(--pc); }
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: var(--line-strong); } }
.card .c-proj { font-size: .75rem; font-weight: 600; color: var(--ink-mute); display: flex; align-items: center; gap: 6px; }
.card .c-titel { font-size: .98rem; font-weight: 600; line-height: 1.3; text-wrap: pretty; overflow-wrap: anywhere; }
.card .c-oms { font-size: .85rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .c-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.card .c-meta .ava { margin-left: auto; }
.tag {
  font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.tag svg { width: 12px; height: 12px; }
.tag.laat { background: color-mix(in srgb, var(--rood) 18%, transparent); color: var(--rood); }
.tag.binnenkort { color: var(--warn); }
.tag.stil { color: var(--warn); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.tag.hoog { color: #2b1a00; background: var(--orange); }
.tag.claude { color: var(--ink-mute); background: none; box-shadow: inset 0 0 0 1px var(--line); }
a.tag { text-decoration: none; }
a.tag::after { content: ""; position: absolute; }

/* afgerond: compact, één regel */
.card.af { padding: 8px 10px 8px 12px; display: flex; align-items: center; gap: 10px; }
.card.af::before { display: none; }
.card.af .vink { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: #1d2a05; display: grid; place-items: center; flex: none; }
.card.af .vink svg { width: 13px; height: 13px; stroke-width: 3; }
.card.af .c-titel { flex: 1; min-width: 0; font-weight: 500; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.card.af .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
.card.af .ava { width: 24px; height: 24px; font-size: .7rem; }
.vink path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.card.net-af .vink { animation: vink-in .4s var(--spring); }
.card.net-af .vink path { animation: teken .45s .12s var(--ease-out) backwards; }
@keyframes vink-in { from { transform: scale(0); } }
@keyframes teken { from { stroke-dashoffset: 24; } }

/* slepen */
.card.slot { background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; }
.card.slot > * { visibility: hidden; }
.card.slot::before { display: none; }
.ghost {
  position: fixed !important; left: 0; top: 0; z-index: 100; margin: 0; pointer-events: none; cursor: grabbing;
  box-shadow: var(--drag-shadow); will-change: transform; transform-origin: 50% 40%;
}
.slepen, .slepen * { cursor: grabbing !important; }
.card.nieuw { animation: nieuw .5s var(--ease-out); }
@keyframes nieuw { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.card.flits { animation: flits 1.2s ease; }
@keyframes flits { 0%, 40% { box-shadow: 0 0 0 3px var(--pc); } }

/* ---------- dialogen (zelfde als de Zeg hoi-pop-up van de site) ---------- */
.dlg {
  margin: auto; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  opacity: 0; transform: scale(.96) translateY(8px);
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), overlay .25s allow-discrete, display .25s allow-discrete;
}
.dlg[open] { opacity: 1; transform: none; }
@starting-style { .dlg[open] { opacity: 0; transform: scale(.96) translateY(8px); } }
.dlg::backdrop { background: rgba(8, 6, 14, 0); transition: background .25s ease, overlay .25s allow-discrete, display .25s allow-discrete; }
.dlg[open]::backdrop { background: rgba(8, 6, 14, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@starting-style { .dlg[open]::backdrop { background: rgba(8, 6, 14, 0); } }
.dlg-in { padding: 22px 22px 18px; display: grid; gap: 14px; position: relative; }
.dlg h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; padding-right: 44px; }
.x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hover); display: grid; place-items: center; z-index: 1; transition: transform .16s var(--ease-out); }
.x:active { transform: scale(.94); }
.x svg { width: 18px; height: 18px; }
.k-titel, .k-oms { width: 100%; background: none; border: 0; outline: none; resize: none; field-sizing: content; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; }
.k-titel { font-size: 1.45rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; padding-right: 44px; }
.k-oms { color: var(--ink-soft); min-height: 2.6em; }
.k-titel:focus, .k-oms:focus { background: var(--veld); }
.kaart-dlg .dlg-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--pc, var(--line)); border-radius: 28px 28px 0 0; }
.velden { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.lbl { font-size: .85rem; color: var(--ink-mute); font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px; min-height: 34px; font-weight: 500; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.seg button:active { transform: scale(.95); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.seg button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.seg button .ava { width: 22px; height: 22px; font-size: .66rem; margin-left: -6px; }
.rij { display: flex; gap: 8px; align-items: center; min-width: 0; }
.dlg input:not([type="search"]), .dlg textarea.vak {
  font-size: 16px; background: var(--veld); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; outline: none; min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rij input { flex: 1; }
.dlg input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--hover); }
.dlg input[type="date"] { flex: 0 1 auto; }
.veld { display: grid; gap: 6px; font-size: .85rem; color: var(--ink-mute); font-weight: 500; }
.veld input { color: var(--ink); }
.n-titel { font-size: 1.15rem !important; padding: 12px 14px !important; }
.hint { font-size: .82rem; color: var(--ink-mute); margin-top: -6px; }
.hint code { font-family: inherit; font-weight: 600; color: var(--ink-soft); background: var(--hover); padding: 0 5px; border-radius: 5px; }
.dlg-voet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.meta { font-size: .8rem; color: var(--ink-mute); }
.kleuren { display: flex; gap: 8px; flex-wrap: wrap; }
.kleuren button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--k); position: relative; transition: transform .16s var(--ease-out); }
.kleuren button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--k); }
.kleuren button:active { transform: scale(.9); }

/* archief */
.archief-dlg { width: min(620px, calc(100vw - 24px)); }
.archief-dlg input[type="search"] { font-size: 16px; background: var(--veld); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; outline: none; }
.archief-lijst { display: grid; gap: 4px; max-height: min(60dvh, 560px); overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.archief-lijst details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.archief-lijst summary { cursor: pointer; padding: 10px 4px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; list-style: none; }
.archief-lijst summary::-webkit-details-marker { display: none; }
.archief-lijst summary span { color: var(--ink-mute); font-weight: 500; font-size: .85rem; }
.archief-lijst summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s ease; color: var(--ink-mute); }
.archief-lijst details[open] summary::before { transform: rotate(90deg); }
.archief-lijst summary b { margin-right: auto; font-weight: 600; }
.a-rij { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; border: 0; background: none; text-align: left; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .a-rij:hover { background: var(--hover); } }
.a-rij .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
.a-rij > span:not(.ava) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-rij time { font-size: .8rem; color: var(--ink-mute); }
.a-rij .ava { width: 22px; height: 22px; font-size: .64rem; }
.leeg-melding { color: var(--ink-mute); padding: 20px 4px; text-align: center; }

/* statusmenu */
.menu {
  position: fixed; inset: auto; margin: 0; padding: 6px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); min-width: 210px;
  opacity: 0; transform: scale(.96) translateY(-4px); transform-origin: top left;
  transition: opacity .16s var(--ease-out), transform .2s var(--ease-out), overlay .2s allow-discrete, display .2s allow-discrete;
}
.menu:popover-open { opacity: 1; transform: none; }
@starting-style { .menu:popover-open { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 12px; text-align: left; font-weight: 500; min-height: 40px; }
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }
.menu button .st { min-width: 92px; justify-content: center; }
.menu button .ok { margin-left: auto; width: 16px; height: 16px; opacity: 0; }
.menu button[aria-checked="true"] .ok { opacity: 1; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 16px 32px -12px rgba(0,0,0,.5);
  animation: toast-in .35s var(--ease-out);
}
.toast button { border: 0; background: color-mix(in srgb, var(--bg) 14%, transparent); color: inherit; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.toast.weg { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* klei-confetti, zelfde als de hero van de site */
.ball {
  position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: 300;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.25); will-change: transform, opacity;
}

/* ---------- mobiel: één kolom per scherm, tabs erboven ---------- */
@media (max-width: 820px) {
  .top { gap: 8px; }
  .brand b { font-size: 1.1rem; }
  .zoek { width: auto; flex: 1 1 0; min-width: 0; max-width: 220px; }
  .zoek kbd, .btn kbd, #nieuw span { display: none; }
  #nieuw { width: 40px; padding: 0; flex: none; }
  .tabs {
    display: flex; gap: 4px; margin: 0 16px 10px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  }
  .tabs button {
    flex: 1; border: 0; background: none; border-radius: 999px; min-height: 36px; font-weight: 600; font-size: .85rem; color: var(--ink-mute);
    display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background-color .25s ease, color .25s ease;
  }
  .tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
  .tabs .n { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
  .board {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px;
    padding-inline: 16px; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
  }
  .board::-webkit-scrollbar { display: none; }
  .slepen .board { scroll-snap-type: none; }
  .kolom { flex: 0 0 calc(100vw - 44px); scroll-snap-align: start; }
}
@media (max-width: 420px) { .brand b { display: none; } }

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

/* ---------- ik en inloggen ---------- */
.ik { border: 0; background: none; padding: 0; width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%; }
.ik .ava { width: 32px; height: 32px; font-size: .85rem; }
.ik:active .ava { transform: scale(.92); }
.menu-kop { padding: 8px 10px 6px; font-size: .85rem; color: var(--ink-mute); }
#ik-menu { transform-origin: top right; min-width: 200px; }
body.uit > :not(.login, .toasts, script) { display: none !important; }
.login { flex: 1; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.login-in { width: min(400px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center; }
.login-merk { width: 88px; height: 88px; animation: zweef 4s ease-in-out infinite; }
@keyframes zweef { 50% { transform: translateY(-6px) rotate(-3deg); } }
.login h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.login-tekst { color: var(--ink-soft); max-width: 32ch; text-wrap: balance; }
.login form { width: 100%; display: grid; gap: 12px; margin-top: 6px; }
.login input { font-size: 16px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.login input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--hover); }
.login .btn { min-height: 48px; font-size: 1.05rem; }
.login .btn:disabled { opacity: .6; pointer-events: none; }
.login-msg { min-height: 1.4em; color: var(--ink-soft); font-size: .95rem; }
.login-msg.fout { color: var(--rood); }
.login.bezig form { display: none; }

/* QR om in te loggen op je telefoon: altijd zwart op wit, anders scant de camera slecht */
.qr-dlg { width: min(380px, calc(100vw - 24px)); }
.qr-dlg .dlg-in { justify-items: center; text-align: center; }
.qr-dlg h2 { padding: 0 44px; }
.qr-tekst { color: var(--ink-soft); max-width: 28ch; }
.qr-tekst b { font-variant-numeric: tabular-nums; color: var(--ink); }
.qr { width: 240px; height: 240px; padding: 14px; background: #fff; border-radius: 20px; display: grid; place-items: center; transition: opacity .3s ease, filter .3s ease; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.verlopen { opacity: .25; filter: blur(3px); }

/* sleutels voor Claude Code */
.sleutel-dlg code { font-size: .85em; background: var(--hover); padding: 1px 6px; border-radius: 6px; }
.sleutel-nieuw { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--lime) 14%, transparent); }
.sleutel-nieuw input { font-family: ui-monospace, monospace; font-size: 14px !important; }
.sleutel-lijst { display: grid; gap: 2px; }
.s-rij { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.s-rij span { flex: 1; min-width: 0; }
.s-rij small { color: var(--ink-mute); display: block; }

/* ---------- weergave: board of voortgang ---------- */
.weergave { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-right: auto; margin-left: 8px; }
.weergave button { border: 0; background: none; border-radius: 999px; min-height: 34px; padding: 0 12px; font-weight: 600; font-size: .9rem; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 6px; transition: background-color .25s ease, color .25s ease; }
.weergave button svg { width: 16px; height: 16px; }
.weergave button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
body.v-voortgang .tabs, body.v-voortgang .board { display: none !important; }
body.v-voortgang .chip.mens, body.v-voortgang .scheid { display: none; }

.voortgang { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; }
.totaal { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.stat { background: var(--col); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; min-height: 76px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--ink-mute); }
.stat .ring { --pc: var(--lime); width: 44px; height: 44px; -webkit-mask: radial-gradient(circle, transparent 15px, #000 15.5px); mask: radial-gradient(circle, transparent 15px, #000 15.5px); }
.stat.let { border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.stat.let b { color: var(--warn); }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 14px; align-items: start; }
.tegel { --pc: var(--ink-mute); background: var(--col); border: 1px solid var(--line); border-radius: 24px; padding: 16px 16px 12px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.tegel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--pc); }
.tegel > header { display: flex; align-items: center; gap: 10px; }
.t-naar { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; margin-right: auto; text-align: left; }
.t-naar h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.t-naar .pijl { width: 16px; height: 16px; color: var(--ink-mute); transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .t-naar:hover .pijl { transform: translateX(3px); color: var(--ink); } }
.t-midden { display: flex; gap: 16px; align-items: center; }
.t-ring { --p: 0; position: relative; width: 84px; height: 84px; flex: none; display: grid; place-items: center; text-align: center; }
.t-ring .ring { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask: radial-gradient(circle, transparent 32px, #000 33px); mask: radial-gradient(circle, transparent 32px, #000 33px); }
.t-ring b { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; }
.t-cijfers { flex: 1; min-width: 0; display: grid; gap: 8px; }
.balk { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--hover); gap: 2px; }
.balk i { display: block; height: 100%; min-width: 4px; transition: flex-grow .6s var(--ease-out); }
.balk .doing { background: var(--pink); } .balk .bespreken { background: var(--orange); } .balk .backlog { background: var(--line-strong); } .balk .done { background: var(--lime); }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--ink-soft); }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.legenda span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.let-op { font-size: .82rem; font-weight: 600; color: var(--warn); }
.route { list-style: none; padding: 0; margin: 0; display: grid; }
.fase { display: flex; align-items: center; gap: 10px; min-height: 40px; position: relative; }
.fase:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: -10px; width: 2px; background: var(--line); border-radius: 2px; }
.fase.af:not(:last-child)::after { background: var(--pc); }
.bol { width: 28px; height: 28px; border-radius: 50%; flex: none; border: 2px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; color: #fff; position: relative; z-index: 1; padding: 0; transition: background-color .25s ease, border-color .25s ease, transform .16s var(--ease-out); }
.bol::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.bol svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s var(--spring); }
.bol:active { transform: scale(.88); }
.fase.af .bol { background: var(--pc); border-color: var(--pc); }
.fase.af .bol svg { opacity: 1; transform: none; }
.fase.nu .bol { border-color: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 22%, transparent); }
@media (hover: hover) and (pointer: fine) { .fase:not(.af) .bol:hover { border-color: var(--pc); } .fase:not(.af) .bol:hover svg { opacity: .35; transform: none; color: var(--pc); } }
.f-titel { flex: 1; min-width: 0; font-weight: 500; }
.fase.af .f-titel { color: var(--ink-soft); }
.fase.nu .f-titel { font-weight: 700; }
.fase time { font-size: .78rem; color: var(--ink-mute); }
.fase .nu-label { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 20%, transparent); }
.f-veld { flex: 1; min-width: 0; font-size: 16px; background: var(--veld); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; outline: none; }
.f-veld:focus { border-color: var(--line-strong); }
.f-weg { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--hover); color: var(--rood); display: grid; place-items: center; flex: none; }
.f-weg svg { width: 14px; height: 14px; }
.tegel > footer { display: flex; gap: 14px; border-top: 1px solid var(--line); padding-top: 4px; margin: 0 -2px; }
.tegel > footer .link { font-size: .88rem; text-decoration: none; color: var(--ink-mute); }
@media (hover: hover) and (pointer: fine) { .tegel > footer .link:hover { color: var(--ink); } }
.tegel.bewerk > footer [data-bewerk] { color: var(--ink); font-weight: 600; }
.tegel.vier { animation: vier .7s var(--spring); }
@keyframes vier { 30% { transform: scale(1.015); } }
@media (max-width: 820px) {
  .weergave { margin-left: 2px; }
  .weergave button { padding: 0 10px; }
  .weergave button span { display: none; }
  .totaal { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 12px; min-height: 0; }
  .stat b { font-size: 1.4rem; }
}
#thema-menu { display: none; }
@media (max-width: 480px) { body:not(.is-demo) #thema { display: none; } #thema-menu { display: flex; } }

/* voorbeeld weekmail */
.weekmail-dlg { width: min(640px, calc(100vw - 24px)); }
.weekmail-dlg .dlg-in { gap: 10px; }
#weekmail-frame { width: 100%; height: min(64dvh, 680px); border: 0; border-radius: 18px; background: #120e1c; }
.weekmail-dlg .qr-tekst { max-width: none; }

/* wie is er: de ander naast je eigen avatar, groen stipje als hij het board open heeft */
.anderen { display: flex; gap: 2px; }
.anderen button { border: 0; background: none; padding: 0; width: 36px; height: 40px; display: grid; place-items: center; position: relative; }
.anderen .ava { width: 30px; height: 30px; font-size: .8rem; opacity: .55; filter: saturate(.6); transition: opacity .3s ease, filter .3s ease; }
.anderen .er .ava { opacity: 1; filter: none; }
.anderen i { position: absolute; right: 2px; bottom: 6px; width: 11px; height: 11px; border-radius: 50%; background: #2af241; box-shadow: 0 0 0 2px var(--bg); transform: scale(0); transition: transform .35s var(--spring); }
.anderen .er i { transform: none; }
.anderen .er i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2af241; animation: puls 2s ease-out infinite; }
@keyframes puls { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
