/* Bamboo UGC-engine, "Studio" (opzet B): a left sidebar, soft cards, status tiles and one table.
   Brand: Assistant, olive #516D1E. Phones get a top bar and a bottom bar instead of the sidebar. */
@font-face {
  font-family: "Assistant";
  src: url("/static-assets/fonts/Assistant-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face { font-family: "Poppins"; src: url("/static-assets/fonts/Poppins-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/static-assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --olive-900: #172A21; --olive-800: #43591A; --olive-700: #516D1E; --olive-500: #728941;
  --olive-300: #9AAB75; --olive-100: #EBF2E7; --olive-50: #F0F4EA;
  --ink: #121212; --text-2: #3F473B; --muted: #5E6658;
  --page: #FFFFFF; --on-olive: #FFFFFF; --card: #F6F7F4; --hover: #FAFBF8; --neutral: #EEF0EB; --meter: #E3E8DB;
  --line: #E7EAE2; --line-strong: #D3D9CB; --dot: #B9C0B1; --placeholder: #687062;
  --red: #D56E6A; --red-ink: #A0403C; --red-50: #FBEFEE; --red-line: #EFCFCC;
  --kraft: #C8A96E; --kraft-50: #F8F2E6; --kraft-ink: #7A5A1C; --stop-ink: #555E51; --stop-dot: #9AA295;
  --video-bg: #111111; --swatch-edge: rgba(23, 42, 33, .08); --top-bg: rgba(255, 255, 255, .95);
  --select: rgba(154, 171, 117, .34); --ring: 0 0 0 3px rgba(154, 171, 117, .45);
  --shadow-sm: 0 1px 2px rgba(23, 42, 33, .05);
  --shadow: 0 1px 2px rgba(23, 42, 33, .04), 0 8px 24px rgba(23, 42, 33, .06);
  --shadow-btn: 0 6px 16px rgba(81, 109, 30, .22);
  --photo-bg: #F1F2EF;
  /* compact scale: 14px body, 12.5px smallest text; phones keep touch targets of 40px and more */
  --fs-xs: .78125rem; --fs-sm: .8125rem; --fs-body: .875rem; --fs-row: .90625rem;
  --fs-h3: .9375rem; --fs-h2: 1.125rem; --fs-h1: 1.75rem;
  --r-card: 12px; --r: 10px; --r-sm: 8px; --pill: 999px;
  --tap: 40px; --tap-sm: 32px; --chip: 30px;
  --sb-w: 224px; --gutter: 32px; --topbar-h: 56px;
}
@media (max-width: 960px) { :root { --tap: 44px; --tap-sm: 40px; --chip: 40px; --gutter: 16px; --fs-h1: 1.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--olive-700); accent-color: var(--olive-700);
}
::selection { background: var(--select); color: var(--olive-900); }
h1, h2, h3, h4 { color: var(--olive-900); margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.005em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-body); margin-top: 16px; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--olive-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--olive-900); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--olive-700); outline-offset: 2px; }
[hidden] { display: none !important; }
time, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill { fill: currentColor; stroke: none; }
.ic-sm { width: 15px; height: 15px; }
.ic-xs { width: 11px; height: 11px; stroke-width: 2.4; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.pre { white-space: pre-line; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); }
.label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--olive-900); }
.label .muted { font-weight: 500; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--pill); background: var(--olive-700); color: var(--on-olive); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-olive); }

/* shell ------------------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 20px 12px 14px; border-right: 1px solid var(--line); background: var(--page); }
.sb-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px; text-decoration: none; font-weight: 700; }
.sb-brand img { width: 108px; height: auto; }
.app-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--pill); background: var(--olive-100); color: var(--olive-700); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: var(--pill); color: var(--olive-900); text-decoration: none; font-weight: 600; font-size: var(--fs-body); transition: background-color .15s; }
.nav-item:hover { background: var(--card); color: var(--olive-900); }
.nav-item[aria-current="page"] { background: var(--olive-50); color: var(--olive-700); font-weight: 700; }
.nav-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px 21px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-sub a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: var(--pill); color: var(--text-2); font-size: var(--fs-sm); text-decoration: none; transition: background-color .15s; }
.nav-sub a:hover { background: var(--card); color: var(--olive-900); }
.nav-sub a[aria-current="true"] { background: var(--olive-50); color: var(--olive-700); font-weight: 700; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: var(--pill); background: var(--olive-700); color: var(--on-olive); font-size: var(--fs-xs); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.count-soft { background: var(--red-50); color: var(--red-ink); }
.count-plain { background: var(--neutral); color: var(--text-2); }
.sb-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.sb-beheer { align-self: flex-start; padding: 2px 8px; border-radius: var(--r-sm); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.sb-beheer:hover { color: var(--olive-900); text-decoration: underline; }
.sb-beheer[aria-current="page"] { color: var(--olive-700); font-weight: 700; }
.sb-budget { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-radius: var(--r-card); background: var(--card); color: inherit; text-decoration: none; }
.sb-budget:hover { background: var(--olive-50); color: inherit; }
.budget-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.budget-row strong { color: var(--olive-900); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.meter { display: block; height: 6px; border-radius: var(--pill); background: var(--meter); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--olive-500); }
.is-hoog .meter > i { background: var(--red); }
.is-hoog .budget-row strong { color: var(--red-ink); }
.main { min-width: 0; padding: 32px var(--gutter) 64px; }
.wrap { max-width: 1120px; }
.wrap-wide { max-width: 1180px; }
.topbar, .tabbar { display: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.h-sub { font-weight: 600; color: var(--muted); font-size: var(--fs-h2); margin-left: 6px; letter-spacing: 0; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-sm); margin-bottom: 4px; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-sm); padding: 0 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--olive-700); text-decoration: none; }
.link-quiet:hover { color: var(--olive-900); text-decoration: underline; }

/* buttons, chips, tags, badges ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--tap); padding: 0 16px; border-radius: var(--pill); border: 1px solid transparent; background: none; font-weight: 700; font-size: var(--fs-body); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn-sm { min-height: var(--tap-sm); padding: 0 12px; font-size: var(--fs-sm); }
.btn-lg { min-height: 46px; padding: 0 24px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--olive-700); color: var(--on-olive); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--olive-800); color: var(--on-olive); }
.btn-sm.btn-primary { box-shadow: none; }
.btn-secondary { background: var(--page); border-color: var(--line-strong); color: var(--olive-900); }
.btn-secondary:hover { border-color: var(--olive-300); background: var(--olive-50); color: var(--olive-900); }
.btn-ghost { color: var(--olive-700); }
.btn-ghost:hover { background: var(--olive-50); color: var(--olive-800); }
.btn-soft-red { background: var(--page); border-color: var(--red-line); color: var(--red-ink); }
.btn-soft-red:hover { background: var(--red-50); color: var(--red-ink); }
.btn-ghost-red { color: var(--red-ink); }
.btn-ghost-red:hover { background: var(--red-50); color: var(--red-ink); }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: var(--chip); padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--olive-900); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--olive-300); color: var(--olive-900); }
.chip > .ic { display: none; stroke-width: 2.2; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip[aria-current="true"], .chip:has(input:checked) { background: var(--olive-100); border-color: var(--olive-700); color: var(--olive-700); }
.chip[aria-current="true"] > .ic, .chip:has(input:checked) > .ic { display: block; }
.chip:has(input:focus-visible) { outline: 2px solid var(--olive-700); outline-offset: 2px; }
.chip-n { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] .chip-n { color: var(--olive-700); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--pill); background: var(--olive-100); color: var(--olive-700); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; vertical-align: middle; }
.tag-plain { background: var(--card); color: var(--text-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; background: var(--neutral); color: var(--text-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-maak { background: var(--kraft-50); color: var(--kraft-ink); }
.st-klaar { background: var(--olive-700); color: var(--on-olive); }
.st-ok { background: var(--olive-100); color: #3D5416; }
.st-af { background: var(--red-50); color: var(--red-ink); }
.st-stop { background: var(--neutral); color: var(--stop-ink); }
.st-note { background: var(--card); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }

/* forms ------------------------------------------------------------------------------------- */
.input, .textarea, select.input {
  width: 100%; min-height: var(--tap); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--page); font-size: var(--fs-body);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--olive-700); box-shadow: var(--ring); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.money { position: relative; display: block; }
.money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.money .input { padding-left: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); }
.seg label { position: relative; display: grid; place-items: center; min-width: 48px; height: 34px; padding: 0 14px; border-radius: var(--pill); font-weight: 700; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.seg label:hover { color: var(--olive-900); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--page); color: var(--olive-700); box-shadow: 0 1px 3px rgba(23, 42, 33, .12); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--olive-700); outline-offset: 1px; }

/* cards and messages -------------------------------------------------------------------------- */
.card { background: var(--card); border-radius: var(--r-card); padding: 16px 20px; }
.list-card { list-style: none; margin: 0; padding: 0; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; border-radius: var(--r-card); background: var(--card); color: var(--muted); text-align: center; }
.notice .lead { font-size: var(--fs-h3); color: var(--olive-900); font-weight: 600; }
.alert { color: var(--red-ink); font-weight: 600; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-box { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r); background: var(--red-50); border: 1px solid var(--red-line); }

/* opdrachten: status tiles, filters, table ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(var(--tiles, 6), minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.stats-4 { --tiles: 4; }
.stat { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--r-card); background: var(--card); border: 1px solid transparent; color: inherit; text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.stat:hover { border-color: var(--olive-300); color: inherit; }
.stat[aria-current="true"] { background: var(--page); border-color: var(--olive-700); box-shadow: 0 0 0 1px var(--olive-700), var(--shadow); }
.stat-n { font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--olive-900); font-variant-numeric: tabular-nums; }
.stat-l { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--text-2); }
.stat-l i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dot); }
.stat-maak i { background: var(--kraft); }
.stat-beoordelen { background: var(--olive-50); }
.stat-beoordelen .stat-n { color: var(--olive-700); }
.stat-beoordelen i, .stat-goedgekeurd i { background: var(--olive-700); }
.stat-goedgekeurd i { background: var(--olive-300); }
.stat-afgekeurd i { background: var(--red); }
.stat-gestopt i { background: var(--stop-dot); }
.stat-opmerking i { background: var(--olive-300); }

.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.f-top { display: flex; gap: 12px; align-items: center; }
.search { position: relative; flex: 1; max-width: 380px; }
.search .ic { position: absolute; left: 13px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 38px; border-radius: var(--pill); }
.f-row { display: flex; align-items: flex-start; gap: 14px; }
.f-label { display: flex; align-items: center; width: 56px; min-height: var(--chip); flex: none; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.f-row .chips { gap: 6px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 6px; }
.result strong { font-size: var(--fs-body); color: var(--olive-900); }
.result-tools { display: flex; gap: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0 4px; }
.pager-n { font-size: var(--fs-sm); color: var(--olive-700); }

.tbl-card { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
.runs { width: 100%; border-collapse: collapse; }
.runs thead th { padding: 9px 12px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-align: left; background: var(--card); border-bottom: 1px solid var(--line); white-space: nowrap; }
.grp-head th { padding: 14px 12px 6px; text-align: left; font-size: var(--fs-sm); font-weight: 700; color: var(--olive-900); background: var(--page); }
.grp + .grp .grp-head th { border-top: 1px solid var(--line); }
.grp-n { margin-left: 6px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.run { position: relative; transition: background-color .12s; }
.run:hover { background: var(--hover); }
.run td { padding: 9px 12px; vertical-align: middle; font-size: var(--fs-sm); border-top: 1px solid var(--line); }
.grp-head + .run td { border-top-color: transparent; }
.c-main { min-width: 220px; }
.om { display: flex; align-items: center; gap: 12px; }
.thumb { position: relative; flex: none; width: 44px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--page); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-maak img { opacity: .55; }
.thumb.is-maak::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--kraft); }
.thumb.is-stop img { filter: grayscale(1); opacity: .6; }
.om-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-t > span { color: var(--muted); line-height: 1.35; }
.om-t .om-reason { color: var(--red-ink); }
/* a long stop reason: its first sentence, the whole reason on a click; above the row link so the click opens it */
details.om-reason { position: relative; z-index: 1; }
.om-reason summary { cursor: pointer; list-style: none; }
.om-reason summary::-webkit-details-marker { display: none; }
.om-reason summary:hover .om-kort { text-decoration: underline; text-underline-offset: .2em; }
.om-reason:not([open]) .om-vol, .om-reason[open] .om-kort { display: none; }
.om-reason summary .ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; transition: transform .15s; }
.om-reason[open] summary .ic { transform: rotate(90deg); }
.row-link { font-size: var(--fs-row); font-weight: 700; line-height: 1.3; color: var(--olive-900); text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.row-link:hover { text-decoration: underline; color: var(--olive-900); }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--olive-700); outline-offset: -2px; border-radius: var(--r-sm); }
.vorm { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.vorm .ic { color: var(--olive-500); }
.pers { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); line-height: 1.3; }
.pers-foto { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--olive-100); }
.pers-ini { display: inline-grid; place-items: center; color: var(--olive-700); font-size: var(--fs-xs); font-weight: 800; }
.pers-stem { color: var(--muted); }
.pers-stem .pers-foto { background: var(--card); color: var(--olive-300); }
.vars { display: flex; flex-direction: column; gap: 5px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--page); border: 1.5px solid var(--line-strong); }
.dots .mark-ok { background: var(--olive-700); border-color: var(--olive-700); }
.dots .mark-bad { background: var(--red); border-color: var(--red); }
.dots .mark-todo { background: var(--olive-100); border-color: var(--olive-500); }
.dots .mark-busy { border-color: var(--kraft); }
.dots .mark-fail { border-color: var(--red-line); background: var(--red-50); }
.vars-t { color: var(--text-2); line-height: 1.3; }
.c-date { width: 1%; }
.date { white-space: nowrap; color: var(--text-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.c-chev { width: 36px; padding-left: 0 !important; color: var(--olive-300); }
.run:hover .c-chev, .fbrow:hover .c-chev { color: var(--olive-700); }

/* nieuwe opdracht ------------------------------------------------------------------------------ */
.no-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 36px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 34px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step .seg { align-self: flex-start; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: var(--fs-h2); font-weight: 700; color: var(--olive-900); line-height: 1.2; }
.step > .step-head { margin-bottom: 0; }
.step > legend.step-head { margin-bottom: 12px; }
.step-head::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--olive-100); color: var(--olive-700); font-size: var(--fs-sm); font-weight: 800; }
.step-head .opt { font-size: var(--fs-body); font-weight: 500; color: var(--muted); }
.choice { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--olive-300); box-shadow: var(--shadow); }
.choice:has(input:checked) { border-color: var(--olive-700); box-shadow: 0 0 0 1px var(--olive-700), var(--shadow); }
.choice:has(input:focus-visible) { outline: 2px solid var(--olive-700); outline-offset: 3px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.tick { position: absolute; top: 8px; right: 8px; z-index: 4; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--olive-700); color: var(--on-olive); opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s; }
.tick .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.choice:has(input:checked) .tick { opacity: 1; transform: none; }
.vorm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vorm-vis { display: block; height: 184px; background: var(--card); overflow: hidden; }
.vorm-vis img { width: 100%; height: 100%; object-fit: cover; }
.vis-product img { object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.choice:has(input:checked) .vorm-vis { background: var(--olive-50); }
.vorm-txt { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 16px; }
.vorm-txt strong { color: var(--olive-900); font-size: var(--fs-h3); }
.vorm-txt span { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
.prod-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.prod .pimg { display: block; aspect-ratio: 1; padding: 8px; background: var(--page); }
.prod .pimg img { width: 100%; height: 100%; object-fit: contain; }
.prod .ptxt { padding: 8px 12px 12px; border-top: 1px solid var(--line); flex: 1; }
.prod .ptxt strong { font-size: var(--fs-sm); line-height: 1.3; color: var(--olive-900); }
.prod .tick { top: 8px; right: 8px; }
.persona-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.persona-wrap { position: relative; display: flex; flex-direction: column; }
.persona { flex: 1; flex-direction: row; }
.persona .portrait { display: block; width: 128px; min-height: 160px; flex: none; align-self: stretch; background: var(--photo-bg); overflow: hidden; }
.persona .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.persona .portrait .ini { display: grid; place-items: center; height: 100%; color: var(--olive-700); font-size: 1.75rem; font-weight: 800; }
.persona-txt { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding: 12px 40px 58px 14px; }
.persona:not(:has(+ .play:not([hidden]))) .persona-txt { padding-bottom: 14px; }
.persona-txt strong { font-size: var(--fs-h3); color: var(--olive-900); }
.persona-txt > span:not(.bodies) { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
.persona-txt .bodies { margin-top: 6px; }
.persona-wrap .play { position: absolute; left: 142px; bottom: 12px; z-index: 5; }
.persona-wrap .stem-fout { position: absolute; left: 142px; right: 14px; bottom: -24px; }
.bodies { display: flex; flex-wrap: wrap; gap: 6px; }
.body { display: block; width: 40px; aspect-ratio: 2 / 3; flex: none; overflow: hidden; border-radius: 6px; background: var(--photo-bg); border: 1px solid var(--line); }
.body img { width: 100%; height: 100%; object-fit: contain; }
a.body:hover { border-color: var(--olive-300); }
.play { display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap-sm); padding: 0 12px 0 4px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--olive-900); font-size: var(--fs-sm); font-weight: 700; transition: background-color .15s, border-color .15s; }
.play:hover { border-color: var(--olive-300); background: var(--olive-50); }
.play .dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--olive-700); color: var(--on-olive); }
.play .dot .ic { width: 11px; height: 11px; }
.stem-fout { font-size: var(--fs-sm); color: var(--red-ink); }
.stem-chip { display: inline-flex; align-items: center; gap: 4px; }
.chip-play { display: grid; place-items: center; width: var(--chip); height: var(--chip); flex: none; padding: 0; border-radius: 50%; border: 0; background: var(--olive-700); color: var(--on-olive); cursor: pointer; transition: background-color .15s; }
.chip-play:hover { background: var(--olive-800); }
.chip-play[aria-busy="true"] { opacity: .6; cursor: progress; }
.chip-play .ic { width: 11px; height: 11px; }
.wens { max-width: 640px; }
.keuze-veld { max-width: 480px; }
.summary { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 16px; background: var(--card); }
.summary h2 { font-size: var(--fs-h2); }
.sum-list { display: flex; flex-direction: column; margin: 0; }
.sum-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-row:first-child { padding-top: 0; }
.sum-row dt { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.sum-row dd { margin: 0; font-size: var(--fs-body); font-weight: 700; line-height: 1.3; color: var(--olive-900); }
.sum-thumb { display: grid; place-items: center; width: 40px; height: 50px; flex: none; overflow: hidden; border-radius: var(--r-sm); background: var(--page); border: 1px solid var(--line); }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sum-round img { object-position: top center; }
.sum-kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-kv dt { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.sum-kv dd { margin: 0; min-width: 0; font-size: var(--fs-body); font-weight: 700; color: var(--olive-900); text-align: right; }
.cost { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); }
.cost-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cost-top span { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.cost-top strong { font-size: 1.1875rem; color: var(--olive-900); font-variant-numeric: tabular-nums; }
.cost-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.mbar { display: none; }

/* opdracht detail ------------------------------------------------------------------------------ */
.keuzes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 22px; }
.keuze { min-width: 0; }
.keuze dt { margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.keuze dd { margin: 0; font-weight: 600; color: var(--olive-900); }
.keuze dd .muted { display: block; font-weight: 400; }
.keuze-foto { display: flex; align-items: flex-start; gap: 10px; }
.keuze-foto img, .keuze-foto .avatar { width: 36px; height: 36px; flex: none; border-radius: 8px; object-fit: cover; background: var(--page); border: 1px solid var(--line); }
.keuze-foto .avatar { display: inline-grid; place-items: center; border-radius: 50%; object-position: top center; color: var(--olive-700); font-size: var(--fs-xs); font-weight: 800; }
.keuze-half { grid-column: span 2; }
.variants { display: flex; flex-direction: column; gap: 16px; }
.variant { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 14px 28px; padding: 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); scroll-margin-top: 24px; }
.video { display: block; width: 216px; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--video-bg); object-fit: contain; }
.video-empty { display: grid; place-items: center; background: var(--card); color: var(--kraft-ink); font-size: var(--fs-sm); font-weight: 700; }
.variant-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.variant-body > * { max-width: 640px; }
.variant-head { display: flex; align-items: center; gap: 12px; }
.variant-head h2 { font-size: var(--fs-h2); }
.reason { color: var(--red-ink); }
/* D83: why a variant was not made (one headline, plain sentences) and the calm Aandachtspunten of a made one */
.uitleg { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--red-50); border: 1px solid var(--red-line); }
.uitleg p { margin: 0; }
.uitleg-kop { font-weight: 700; color: var(--red-ink); }
.uitleg-zin { color: var(--text-2); }
.misging { display: grid; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--red-line); }
.misging-kop { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.misging-lijst { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text-2); }
.misging-ronde { font-weight: 600; color: var(--ink); }
.aandacht { display: grid; gap: 6px; }
.aandacht-kop { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--olive-900); }
.aandacht-lijst { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--text-2); }
.aandacht-lijst li { position: relative; padding-left: 16px; }
.aandacht-lijst li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--kraft); }
.aandacht-meer > summary { display: inline-flex; min-height: var(--tap-sm); align-items: center; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--olive-700); }
.aandacht-meer[open] > summary { margin-bottom: 4px; }
.notities p { margin: 0 0 6px; color: var(--text-2); }
.decided { color: var(--text-2); }
.decided .small { display: block; margin-top: 2px; }
.decision { display: grid; gap: 12px; }
.details > summary, .log > summary, .sub > summary { display: flex; align-items: center; gap: 6px; min-height: var(--tap-sm); cursor: pointer; font-weight: 700; color: var(--olive-900); list-style: none; }
.details > summary::-webkit-details-marker, .log > summary::-webkit-details-marker, .sub > summary::-webkit-details-marker { display: none; }
.details > summary::after, .log > summary::after, .sub > summary::after { content: ""; width: 7px; height: 7px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.verdict { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 20px; }
.variant[data-edit] .verdict > .btn, .variant:not([data-edit]) form[data-wijzig] { display: none; }
.decision-row, .comment-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.naam .input { width: 200px; }
.stills { display: flex; flex-wrap: wrap; gap: 10px; }
.still { display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); text-decoration: none; }
.still img { height: 84px; width: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: var(--fs-sm); color: var(--muted); }
.downloads a { display: inline-flex; align-items: center; min-height: var(--tap-sm); font-weight: 600; }
.details { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }
.details[open] > summary { margin-bottom: 4px; }
.details h3 { margin: 18px 0 8px; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.facts { display: grid; grid-template-columns: 104px 1fr; gap: 6px 14px; margin: 0; }
.facts dt { padding-top: 1px; color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; }
.hook { font-weight: 700; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.captions, .shots { list-style: none; margin: 0; padding: 0; }
.captions time, .log time { margin-right: 8px; color: var(--muted); font-size: var(--fs-sm); }
.notes { margin: 0; padding-left: 18px; }
.shots li { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.shot-head { font-size: var(--fs-sm); color: var(--muted); }
.shot-head strong { color: var(--olive-900); }
.prompt { margin: 0; padding: 10px 12px; max-height: 200px; overflow: auto; border-radius: var(--r-sm); background: var(--card); color: var(--text-2); font: .8125rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.locatie { display: flex; gap: 12px; align-items: flex-start; }
.locatie img { width: 72px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.block { margin-top: 22px; scroll-margin-top: 24px; }
.fb-list { list-style: none; margin: 12px 0 16px; padding: 0; }
.fb { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.fb + .fb { border-top: 1px solid var(--line); }
.fb .badge { flex: none; width: 116px; justify-content: center; }
.fb-meta { font-size: var(--fs-sm); color: var(--muted); }
.fb-meta strong { color: var(--olive-900); }
.comment { display: grid; gap: 10px; margin-top: 16px; max-width: 640px; }
.comment-row select.input { width: auto; }
.log { margin-top: 20px; }
.log ol { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow: auto; font-size: var(--fs-sm); }
.log li { padding: 4px 0; }
.log li + li { border-top: 1px solid var(--line); }

/* instellingen ------------------------------------------------------------------------------- */
.stabs { display: none; }
.ssec { margin-bottom: 44px; scroll-margin-top: 24px; }
.ssec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 40px; margin-bottom: 12px; }
.ssec-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.saved { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--olive-700); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.s-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; border-radius: var(--r-card); background: var(--card); scroll-margin-top: 24px; }
.s-card + .s-card, .budget-block + .s-card { margin-top: 14px; }
.s-card-wide { grid-column: 1 / -1; }
.grid-2 > .s-card + .s-card { margin-top: 0; }
.s-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.logo-box { display: grid; place-items: center; flex: 1; min-height: 132px; padding: 16px; border-radius: var(--r); background: var(--page); border: 1px solid var(--line); }
.logo-box img { width: 184px; height: auto; }
.font-box { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--page); border: 1px solid var(--line); }
.font-box .aa { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--olive-700); }
.font-box .ft { display: flex; flex-direction: column; gap: 2px; }
.font-box .ft b { font-family: "Poppins", sans-serif; font-weight: 800; font-size: var(--fs-h3); color: var(--olive-900); }
.font-box .ft span { font-family: "Poppins", sans-serif; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sw { display: flex; flex-direction: column; gap: 6px; }
.sw i { display: block; height: 44px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--swatch-edge); }
.sw strong { font-size: var(--fs-sm); color: var(--olive-900); line-height: 1.2; }
.sw span { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.prose { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); max-width: 80ch; }
.s-card .view + .view, .s-card .prose + .tags { margin-top: 12px; }
.sub { margin-top: 14px; padding: 4px 20px; border-radius: var(--r-card); background: var(--card); }
.sub > summary { min-height: 48px; font-size: var(--fs-h3); }
.sub[open] { padding-bottom: 20px; }
.sub .list-card { margin-top: 8px; }
.krow { display: grid; gap: 6px; padding: 12px 16px; scroll-margin-top: 24px; }
.krow + .krow { border-top: 1px solid var(--line); }
.krow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.krow-head h3 { font-size: var(--fs-body); }
.claims-group { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.claims-group:first-of-type { margin-top: 0; }
.group-h { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h3); }
.group-h .count { margin-left: 0; }
.claim { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px; padding: 14px 16px; scroll-margin-top: 24px; }
.claim + .claim { border-top: 1px solid var(--line); }
.claim-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.claim-x { font-size: var(--fs-row); font-weight: 600; line-height: 1.4; color: var(--olive-900); }
.claim-b { font-size: var(--fs-sm); color: var(--muted); }
.claim-act { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px; }
.claim-act form { margin: 0; }
.claim-wait { border-color: var(--red-line); border-left: 4px solid var(--red); }
.claim-wait .claim + .claim { border-top-color: var(--red-line); }
.srow-new { margin-bottom: 16px; }
.srow-new:not([data-edit]) { display: none; }
.prod-card, .persona-card { display: flex; flex-direction: column; overflow: hidden; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); scroll-margin-top: 24px; }
.pbody { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.pinfo { display: flex; flex-direction: column; gap: 8px; }
.pbody h3 { font-size: var(--fs-row); line-height: 1.3; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.srow[data-edit] .pbody { border-top: 0; }
/* the two route photos of a product (D48) side by side, each with its own Vervangen right under it */
.route-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; }
.route-photo { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.route-img { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--photo-bg); }
.route-img img { width: 100%; height: 100%; object-fit: contain; }
.route-leeg { border: 1px dashed var(--line-strong); color: var(--olive-300); }
.route-photo figcaption, .route-cap { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; color: var(--olive-900); }
.route-mist { font-weight: 600; color: var(--red-ink); }
.route-photo .upload { display: flex; margin-top: auto; }
.route-photo .upload > .btn { flex: 1; }
.tag-uit { background: var(--neutral); color: var(--stop-ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
/* Product toevoegen: the same two tiles, each a label around its file field; a chosen photo shows in its tile */
.route-pick { max-width: 380px; padding: 0; }
.route-pick .route-photo { cursor: pointer; }
.route-pick .route-photo > .btn { margin-top: auto; }
.route-pick .route-img:has(img:not([hidden])) { border-color: transparent; }
.route-pick .route-img:has(img:not([hidden])) > .ic { display: none; }
.route-pick .route-photo:has(input:focus-visible) > .btn { outline: 2px solid var(--olive-700); outline-offset: 2px; }
.persona-card { gap: 14px; padding: 16px; }
.persona-top { display: flex; gap: 16px; align-items: flex-start; }
.persona-card .portrait { display: block; width: 136px; aspect-ratio: 4 / 5; flex: none; overflow: hidden; border-radius: var(--r); background: var(--photo-bg); }
.persona-card .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.persona-card .portrait .ini { display: grid; place-items: center; height: 100%; color: var(--olive-700); font-size: 1.5rem; font-weight: 800; }
.persona-side { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.persona-card .body { width: 44px; }
.persona-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.persona-info p { font-size: var(--fs-body); line-height: 1.45; color: var(--text-2); }
.persona-info .play { align-self: flex-start; margin-top: 4px; }
.stem-act { display: flex; align-items: center; gap: 8px; }
.voice-row { align-items: center; }
.voice-row .angle-main p { font-size: var(--fs-sm); color: var(--muted); }
.voice-row .stem-fout, .voice-row .stem-audio { flex: 1 1 100%; }
.stem-audio { width: 100%; max-width: 360px; height: 36px; }
.budget-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; border-radius: var(--r-card); background: var(--card); }
.budget-card .big { font-size: 1.625rem; font-weight: 700; line-height: 1.1; color: var(--olive-900); font-variant-numeric: tabular-nums; }
.usage-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--fs-body); color: var(--text-2); font-variant-numeric: tabular-nums; }
.usage-row strong { font-size: 1.0625rem; color: var(--olive-900); }
.budget-block { scroll-margin-top: 24px; }
.budget-block > .card-foot { margin-top: 10px; justify-content: flex-start; }
.budget-block[data-edit] { padding: 16px 20px 20px; border-radius: var(--r-card); background: var(--card); }
.big-sm { font-size: 1rem; font-weight: 700; color: var(--olive-900); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.kv div { display: flex; flex-direction: column; gap: 4px; }
.kv dt { min-height: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.kv dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--olive-900); font-variant-numeric: tabular-nums; }
/* Instellingen > Higgsfield (D97): the three steps of Koppelen */
.hf-stappen { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.hf-stappen li::marker { font-weight: 700; color: var(--olive-700); }
.hf-stappen li > span { display: block; }
.hf-stappen li > .btn { margin-top: 8px; }
.hf-plak { display: grid; gap: 12px; }
.hf-card .card-foot { justify-content: flex-start; }
.hf-email { overflow-wrap: anywhere; }

/* instellingen: invalshoeken; beheer: vormen and beeldregels ----------------------------------- */
.angle { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px; padding: 14px 16px; scroll-margin-top: 24px; }
.angle + .angle { border-top: 1px solid var(--line); }
.angle-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.angle-main h3 { font-size: var(--fs-row); }
.angle-main p { max-width: 80ch; color: var(--text-2); line-height: 1.5; }
.angle .edit { flex: 1 1 100%; }
.vorm-card .vimg { aspect-ratio: 3 / 2; overflow: hidden; background: var(--card); }
.vimg a, .vimg img { display: block; width: 100%; height: 100%; }
.vimg img { object-fit: cover; }
.vimg-leeg { display: grid; place-items: center; height: 100%; color: var(--olive-300); }
.vimg-leeg .ic { width: 32px; height: 32px; }
.rules { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--text-2); }

/* inline editing: Bewerken turns a row or card into fields in place --------------------------- */
.srow .edit { display: none; }
.srow[data-edit] .edit { display: grid; gap: 12px; }
.srow[data-edit] .view { display: none !important; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-delete { margin-left: auto; }
.edit-inline { flex: 1 1 100%; }
.upload { display: inline-flex; gap: 4px; margin: 0; }
.js .js-hide { display: none; }

/* phones and small screens -------------------------------------------------------------------- */
@media (max-width: 1400px) { :root { --gutter: 32px; } }
@media (max-width: 1200px) {
  .stats { --tiles: 3; }
  .stats-4 { --tiles: 4; }
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .no-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keuzes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { display: block; }
  .sb { display: none; }
  .topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--topbar-h); padding: 0 16px; background: var(--top-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .topbar-brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
  .topbar-brand img { width: 68px; height: auto; }
  .top-budget { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 44px; padding: 4px 12px; border-radius: var(--r); background: var(--card); color: inherit; text-decoration: none; }
  .top-budget .budget-row { font-size: var(--fs-xs); }
  .top-budget .budget-row strong { font-size: var(--fs-sm); }
  .top-budget .meter { height: 4px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--page); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px; border-radius: var(--r); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
  .tabbar a[aria-current="page"] { background: var(--olive-50); color: var(--olive-700); }
  .tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; }
  .main { padding: 16px 16px 96px; }
  .page-head { margin-bottom: 16px; align-items: center; }
  .input, .textarea, select.input { font-size: 1rem; }
  .stats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: none; min-width: 120px; padding: 10px 12px; }
  .stat-n { font-size: 1.25rem; }
  .seg label { height: 40px; }
  .f-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .f-label { width: auto; min-height: 0; }
  .f-scroll { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .f-scroll::-webkit-scrollbar { display: none; }
  .search { max-width: none; }
  .no-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps { gap: 40px; }
  .summary { position: static; }
  .summary .btn-make { display: none; }
  .mbar { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 29; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--page); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23, 42, 33, .06); }
  .mbar-cost { display: flex; flex-direction: column; line-height: 1.2; }
  .mbar-cost span { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
  .mbar-cost strong { font-size: 1.0625rem; color: var(--olive-900); }
  .main:has(.mbar) { padding-bottom: 180px; }
  .stabs { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; gap: 4px; overflow-x: auto; margin: -8px -16px 24px; padding: 8px 16px; background: var(--page); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .stabs::-webkit-scrollbar { display: none; }
  .stabs a { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--pill); color: var(--text-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .stabs a[aria-current="true"] { background: var(--olive-50); color: var(--olive-700); font-weight: 700; }
  .stabs .count { margin-left: 0; }
  .ssec, .s-card, .srow, .claim, .variant, .block, .budget-block, .prod-card, .persona-card { scroll-margin-top: calc(var(--topbar-h) + 64px); }
  .variant { grid-template-columns: 1fr; padding: 14px; }
  .video { width: 200px; }
  .details-grid { grid-template-columns: 1fr; gap: 8px; }
  .keuzes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; padding: 16px; }
}
@media (max-width: 760px) {
  .runs thead { display: none; }
  .runs, .runs tbody, .runs tr, .runs td, .runs th { display: block; }
  .grp-head th { padding: 16px 16px 6px; }
  .runs .run { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; min-height: 96px; padding: 12px 36px 12px 72px; border-top: 1px solid var(--line); }
  .grp-head + .run { border-top-color: transparent; }
  .run td { padding: 0; border: 0; font-size: var(--fs-sm); }
  .c-main { flex: 0 0 100%; min-width: 0; }
  .om { display: block; }
  .thumb { position: absolute; left: 16px; top: 14px; }
  .c-vorm, .c-pers { margin-top: 6px; }
  .c-pers { flex: 1 1 calc(100% - 150px); min-width: 0; }
  .vorm { gap: 6px; }
  .vorm::after { content: "\00B7"; margin-left: 4px; color: var(--muted); }
  .pers-ini { display: none; }
  img.pers-foto { width: 22px; height: 22px; }
  .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pers { display: flex; gap: 6px; min-width: 0; }
  .c-status, .c-var { margin-top: 10px; }
  .vars { flex-direction: row; align-items: center; gap: 8px; }
  .c-date { flex: 0 0 100%; order: 9; width: auto; margin-top: 6px; }
  .c-date .date { font-size: var(--fs-xs); color: var(--muted); }
  .c-chev { position: absolute; right: 12px; top: 50%; margin-top: -10px; width: auto; }
  .vorm-grid { grid-template-columns: 1fr; gap: 12px; }
  .vorm-c { flex-direction: row; align-items: stretch; }
  .vorm-vis { width: 100px; height: auto; min-height: 108px; flex: none; }
  .vis-product img { padding: 8px; }
  .vorm-txt { justify-content: center; padding: 12px 40px 12px 14px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod .pimg { aspect-ratio: 4 / 3; }
  .persona-grid { grid-template-columns: 1fr; gap: 12px; }
  .persona .portrait { width: 112px; min-height: 140px; }
  .persona-txt { padding: 12px 36px 62px 14px; }
  .persona-wrap .play, .persona-wrap .stem-fout { left: 126px; }
  .step-head { font-size: 1.0625rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim { flex-direction: column; gap: 12px; padding: 16px; }
  .persona-card .portrait { width: 112px; }
  .persona-card .body { width: 40px; }
  .field-row, .kv { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .fb .badge { width: auto; }
  .h-sub { display: block; margin: 4px 0 0; }
  .keuze-half { grid-column: 1 / -1; }
  .ssec-tools { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* the row you just saved lights up briefly where it is */
.net-opgeslagen { animation: net-opgeslagen 2.2s ease-out; }
@keyframes net-opgeslagen { 0%, 35% { background-color: var(--olive-100); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .net-opgeslagen { animation: none; background-color: var(--olive-100); } }
