/* The Reel-studio in the werkplek's look (de-gids-cms components/werkplek/WerkplekClient.tsx, WERKPLEK_STIJL):
   the dark bar with the steps as numbered pills, a light ground with white cards, the indigo of De Gids for
   what you do next. The same tokens, light and dark. */
@font-face { font-family: "Hanken Grotesk"; src: url("/hanken-grotesk.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --grond: #F8F8F8; --vlak: #FFFFFF; --lijn: #DCD3D4; --tekst: #141414; --tekst-2: #404854; --zacht: #5B6472;
  --accent: #4B3EFF; --accent-hover: #1000F5; --accent-zacht: #E9E7FF; --geel: #FFF7C2; --geel-tekst: #7A5E00;
  --goed: #1D7A46; --goed-zacht: #E3F4EA; --mis: #C2261C; --mis-zacht: #FDECEA; --balk: #131922;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grond: #141414; --vlak: #1F1F1F; --lijn: #434343; --tekst: #F2F2F2; --tekst-2: #DADADA; --zacht: #B5B5B5;
    --accent: #B3AEFF; --accent-hover: #CFCBFF; --accent-zacht: #2A2560; --geel: #3A3417; --geel-tekst: #F2DC5C;
    --goed: #7BD3A0; --goed-zacht: #16301F; --mis: #FF8A80; --mis-zacht: #3A1A18;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hanken Grotesk", Helvetica, Arial, sans-serif; color: var(--tekst); background: var(--grond); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
.zacht { color: var(--zacht); }
.klein { font-size: 13px; }

/* the bar */
.balk { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 20px; background: var(--balk); color: #fff; }
.balk a { color: #fff; text-decoration: none; }
.merk { font-size: 18px; font-weight: 700; }
.merk span { font-weight: 400; color: #C8D2E0; }
.stappen { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
.stap { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid #404854; border-radius: 18px; color: #8C96A5; white-space: nowrap; }
.stap.af { color: #C8D2E0; }
.stap.nu { background: #4B3EFF; border-color: #4B3EFF; color: #fff; }
.stap b { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.vul { flex: 1 1 auto; }
.links { display: flex; gap: 4px; }
.links a { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; color: #DFE9F7; }
.links a.aan, .links a:hover { background: #262F3D; }
.ik { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #C8D2E0; }
.balkknop { min-height: 32px; padding: 0 10px; border: 1px solid #404854; background: transparent; color: #DFE9F7; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 0; }
.balkknop:hover { border-color: #DFE9F7; }

/* the page */
main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 72px; }
main.kolom { width: min(720px, calc(100% - 32px)); padding-top: 40px; display: flex; flex-direction: column; gap: 18px; }
main.los { width: min(560px, calc(100% - 32px)); margin-top: 80px; background: var(--vlak); padding: 32px; border: 1px solid var(--lijn); border-radius: 7px; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.meta { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zacht); margin: 0 0 6px; }
.paneel { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 7px; padding: 18px; margin-bottom: 16px; }
.twee { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.vast { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
@media (max-width: 960px) { .twee { grid-template-columns: 1fr; } .vast { position: static; max-height: none; } }

/* the start: one field, as Beginnen in the werkplek */
.veld { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 7px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.veld:focus-within { border-color: var(--accent); }
.veld input { border: 0; padding: 4px 0; font-size: 17px; outline: none; background: transparent; }
.lijstje { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lijstje li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--lijn); }
.lijstje a.titel { font-weight: 600; color: var(--accent); text-decoration: none; }
.lijstje a.titel:hover { text-decoration: underline; }

/* buttons, fields, labels */
button { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 16px; border: 1px solid #4B3EFF; background: #4B3EFF; color: #fff; cursor: pointer; border-radius: 5px; }
button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.licht { background: transparent; color: var(--tekst); border-color: var(--lijn); min-height: 34px; font-weight: 500; }
button.licht:hover:not(:disabled) { background: var(--accent-zacht); border-color: var(--lijn); }
button.groot { width: 100%; min-height: 46px; font-size: 15px; }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #4B3EFF; outline-offset: 2px; }
input, textarea { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid var(--lijn); border-radius: 5px; background: var(--vlak); color: var(--tekst); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zacht); margin: 14px 0 4px; }
label.vink { text-transform: none; letter-spacing: 0; font-size: 14px; color: inherit; display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 8px; }
label.vink input { width: auto; }
.rij { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tussen { justify-content: space-between; }
.label { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-zacht); color: var(--accent); }
.label.grijs { background: var(--grond); color: var(--zacht); border: 1px solid var(--lijn); }
.label.goed { background: var(--goed-zacht); color: var(--goed); }
.label.mis { background: var(--mis-zacht); color: var(--mis); }
.label.let { background: var(--geel); color: var(--geel-tekst); }
.label.indigo { background: var(--accent-zacht); color: var(--accent); }
.melding { padding: 10px 14px; border-radius: 7px; background: var(--geel); color: var(--geel-tekst); margin-bottom: 12px; font-size: 14px; }
.melding.mis { background: var(--mis-zacht); color: var(--mis); }
.melding.goed { background: var(--goed-zacht); color: var(--goed); }
.melding ul { margin: 6px 0 0 18px; padding: 0; }

/* the draaiboek */
.scene .kopregel { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scene .nr { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11.5px; font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; }
.essentie { border-left: 3px solid #4B3EFF; padding: 4px 0 4px 12px; margin: 10px 0; }
.beelden { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.beelden img { width: 64px; height: 64px; object-fit: contain; background: var(--grond); border-radius: 5px; }
.beelden.groot img { width: 120px; height: 90px; object-fit: cover; }
.bevindingen { margin: 10px 0 0 18px; padding: 0; font-size: 13px; }
.bevindingen .mis { color: var(--mis); }

/* making */
pre.log { white-space: pre-wrap; font-size: 11px; margin: 0; max-height: 320px; overflow: auto; background: var(--grond); padding: 10px; border-radius: 5px; }
video.reel { width: 300px; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; display: block; }
.gesprek .beurt { padding: 10px 12px; border-radius: 7px; margin-bottom: 8px; font-size: 13px; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.gesprek .beurt.user { background: var(--accent-zacht); }
.gesprek .beurt.assistant { background: var(--grond); }
details summary { cursor: pointer; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--lijn); }
th { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zacht); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--mis); color: #fff; padding: 12px 18px; border-radius: 7px; font-weight: 600; max-width: 90vw; z-index: 30; cursor: pointer; }
/* while an action runs: the page dims, the progress panel on top does not */
.bezig > :not(#voortgang) { opacity: 0.55; pointer-events: none; }
#voortgang { border-color: var(--accent); margin-top: 14px; }
.draait { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-zacht); border-top-color: var(--accent); animation: draai 0.8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .draait { animation-duration: 2.4s; } }
.stappenlijst { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.stappenlijst li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; align-items: start; color: var(--zacht); font-size: 14px; }
.stappenlijst li .teken { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--lijn); font-size: 11px; font-weight: 700; }
.stappenlijst li.af { color: var(--tekst-2); }
.stappenlijst li.af .teken { background: var(--goed-zacht); border-color: var(--goed-zacht); color: var(--goed); }
.stappenlijst li.nu { color: var(--tekst); font-weight: 700; }
.stappenlijst li.nu .teken { border: 0; }
.stappenlijst li small { grid-column: 2; font-weight: 400; font-size: 12px; color: var(--zacht); }
.klok { margin-left: auto; font-variant-numeric: tabular-nums; }
.midden { display: grid; place-items: center; gap: 12px; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .m0 { margin: 0; }
.opsom { margin: 0 0 0 18px; padding: 0; } .rechts { text-align: right; } .pre { white-space: pre-wrap; }
@media (max-width: 560px) { main.kolom { padding-top: 24px; } .balk { padding: 10px 14px; } }
