/* DV Studios — minimalistisch zwart/wit, afgestemd op dvstudios.nl (wit, #121212, Inter, scherpe hoeken)
 * met subtiel oxblood-accent. Kleuren aanpassen? Alleen de variabelen hieronder wijzigen. */
:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --ink: #121212;
  --ink-2: #4a4a4a;
  --muted: #8a8784;
  --line: #e4e2de;
  --line-2: #d2cfca;
  --accent: #6e1a24;          /* oxblood */
  --accent-soft: #f4e9ea;
  --ok: #2f5d3a;
  --ok-soft: #e7efe8;
  --warn: #8a5a12;
  --warn-soft: #f6eedf;
  --side: #ffffff;
  --side-ink: #121212;
  --radius: 0px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Vlakken en tinten (licht) — dark mode overschrijft alleen deze variabelen */
  --hover: #f3f3f2;
  --active: #f0f0ef;
  --soft: #efeeec;
  --soft-2: #faf9f8;
  --soft-3: #e6e4e0;
  --on-ink: #ffffff;           /* tekst op een var(--ink)-vlak */
  --on-signal: #ffffff;        /* tekst op een var(--ok)/var(--warn)-vlak */
  --ink-hover: #2a2a2a;
  --info: #1d4f91;
  --bad: #8c1d18;
  --bad-soft: #fbeaea;
  --topbar: #ffffff;
  --scrim: rgba(10, 10, 10, .45);
  --shadow: rgba(0, 0, 0, .25);
  color-scheme: light;
}

/* Dark mode — volgt standaard het systeem; Instellingen → Weergave kan Licht/Donker vastzetten (data-theme op <html>).
 * Donkere grijstinten i.p.v. puur zwart; zelfde opbouw, alleen andere waarden. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616; --surface: #1f1f1f; --ink: #ecebe8; --ink-2: #c2bfba; --muted: #8f8b86; --line: #2e2d2b; --line-2: #3d3b38;
    --accent: #c2606c; --accent-soft: #3a2125; --ok: #7fb58a; --ok-soft: #1f2e22; --warn: #d4a356; --warn-soft: #33291a;
    --side: #1a1a1a; --side-ink: #ecebe8;
    --hover: #2a2a29; --active: #2e2e2c; --soft: #262625; --soft-2: #232322; --soft-3: #33322f;
    --on-ink: #161616; --on-signal: #161616; --ink-hover: #d6d4d0; --info: #8fb4e8; --bad: #f0a39c; --bad-soft: #3a1f1d; --topbar: #1a1a1a;
    --scrim: rgba(0, 0, 0, .6); --shadow: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161616; --surface: #1f1f1f; --ink: #ecebe8; --ink-2: #c2bfba; --muted: #8f8b86; --line: #2e2d2b; --line-2: #3d3b38;
  --accent: #c2606c; --accent-soft: #3a2125; --ok: #7fb58a; --ok-soft: #1f2e22; --warn: #d4a356; --warn-soft: #33291a;
  --side: #1a1a1a; --side-ink: #ecebe8;
  --hover: #2a2a29; --active: #2e2e2c; --soft: #262625; --soft-2: #232322; --soft-3: #33322f;
  --on-ink: #161616; --on-signal: #161616; --ink-hover: #d6d4d0; --info: #8fb4e8; --bad: #f0a39c; --bad-soft: #3a1f1d; --topbar: #1a1a1a;
  --scrim: rgba(0, 0, 0, .6); --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* Logo is donker op transparant → in dark mode omkeren */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img { filter: invert(1); } }
:root[data-theme="dark"] .logo-img { filter: invert(1); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; letter-spacing: -0.02em; }
h2 { font-size: 16px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.small { font-size: 12px; }
.right { text-align: right; }
.neg { color: var(--accent); }
.pos { color: var(--ok); }
.spacer { flex: 1; }
pre { white-space: pre-wrap; font-size: 12px; }

/* Sidebar ----------------------------------------------------------- */
.sidebar { width: 236px; flex: 0 0 236px; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 22px; text-decoration: none; color: var(--ink); }
.logo-box { display: block; width: 30px; height: 42px; overflow: hidden; position: relative; flex: none; }
.logo-box[hidden] { display: none; }
/* Logo-bestand heeft veel witruimte: we tonen het middenstuk (bestand zelf blijft ongewijzigd) */
.logo-img { position: absolute; height: 80px; width: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; background: var(--accent); color: #fff; font-size: 10.5px; text-align: center; font-weight: 700; }
.nav-count[hidden] { display: none; }
.tag-api { color: var(--info); }
.tag-handmatig { color: var(--ink-2); }
.tag-schatting { color: var(--warn); }
.tag-veilig { color: var(--ok); }
.logo-fallback { width: 40px; height: 40px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 800; letter-spacing: -0.04em; font-size: 16px; }
.logo-fallback[hidden], .logo-img[hidden] { display: none; }
.brand-name { display: block; font-weight: 700; letter-spacing: .14em; font-size: 12.5px; text-transform: uppercase; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); }
#nav { display: flex; flex-direction: column; gap: 1px; }
#nav a { text-decoration: none; padding: 7px 10px; color: var(--ink-2); font-size: 13.5px; border-left: 2px solid transparent; }
#nav a:hover { color: var(--ink); background: var(--hover); }
#nav a.active { color: var(--ink); background: var(--active); border-left-color: var(--accent); font-weight: 600; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 16px 10px 4px; font-weight: 600; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; font-size: 11px; color: var(--muted); }
.topbar, .scrim { display: none; }

main { flex: 1; min-width: 0; padding: 30px 36px 80px; max-width: 1400px; }
.loading { color: var(--muted); }

/* Page header -------------------------------------------------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Buttons & inputs --------------------------------------------------- */
.btn { font: inherit; font-size: 13px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); padding: 7px 13px; border-radius: var(--radius); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-hover); }
.btn.ghost { border-color: var(--line-2); }
.btn.danger { color: var(--accent); border-color: var(--accent); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.icon-btn { border: 0; background: none; font-size: 16px; cursor: pointer; padding: 4px 8px; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 7px 9px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 140px; }

/* Cards & layout ----------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack > * + * { margin-top: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi-value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: var(--surface); }
.empty p { margin: 0 0 10px; }
.note { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: var(--radius); font-size: 12.5px; margin-bottom: 14px; }
.note.info { background: var(--soft); color: var(--ink-2); }

.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); }
.bar.accent span { background: var(--accent); }

/* Badges ------------------------------------------------------------- */
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.b-verkocht, .b-geleverd, .b-gepost, .b-klaar, .b-live, .b-getest-werkt, .b-afgerond { background: var(--ok-soft); color: var(--ok); }
.b-online, .b-gepland, .b-actief, .b-gereserveerd { background: var(--ink); color: var(--on-ink); }
.b-in-productie, .b-bezig, .b-opgenomen, .b-gemonteerd, .b-wil-testen { background: var(--warn-soft); color: var(--warn); }
.b-hoog, .b-getest-werkt-niet, .b-te-laat { background: var(--accent-soft); color: var(--accent); }
.b-idee, .b-concept, .b-nieuw { background: transparent; border-color: var(--line-2); }

/* Tabs --------------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { font: inherit; background: none; border: 0; padding: 9px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* Feit / aanname / voorstel labels ---------------------------------- */
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border: 1px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.tag-feit { color: var(--ok); }
.tag-signaal, .tag-aanname { color: var(--warn); }
.tag-voorstel { color: var(--accent); }
.tag-open { color: var(--muted); }
.insights { list-style: none; padding: 0; margin: 0; }
.insights li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.insights li:last-child { border-bottom: 0; }
.insights .why { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.platform-dot { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 4px; margin-right: 4px; border: 1px solid currentColor; }
.pf-tiktok { color: var(--ink); }
.pf-instagram { color: var(--accent); }
.ev.ig { background: var(--accent); }
.ev.ig.rec { background: transparent; color: var(--accent); border-color: var(--accent); }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.funnel > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.funnel > div:last-child { border-right: 0; }
.funnel .step-rate { font-size: 11.5px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.quick a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; font-weight: 600; font-size: 13px; }
.quick a:hover { border-color: var(--ink); }
.quick a span { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.email-preview { border: 1px solid var(--line); background: #fff; max-width: 560px; margin: 0 auto; padding: 28px; font-size: 14px; }
.email-preview .ep-logo { font-weight: 800; letter-spacing: .16em; font-size: 12px; text-align: center; margin-bottom: 22px; }
.email-preview h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
.email-preview p { white-space: pre-wrap; color: #333; line-height: 1.6; }
.email-preview .ep-btn { display: inline-block; background: #121212; color: #fff; padding: 10px 18px; text-decoration: none; font-size: 13px; margin-top: 8px; }
.email-preview .ep-foot { margin-top: 26px; font-size: 11px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
details.fs { border-top: 1px solid var(--line); padding: 10px 0; margin-bottom: 6px; }
details.fs summary { cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
details.fs[open] summary { margin-bottom: 10px; }

/* Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-open] { cursor: pointer; }
.table tr[data-open]:hover td { background: var(--soft-2); }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--line-2); padding: 10px 12px; }
.table .num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Lists -------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.list .date.late { color: var(--accent); font-weight: 600; }
.list input[type=checkbox] { width: auto; }
.clickable { cursor: pointer; }
.clickable:hover .title { text-decoration: underline; }
.title { font-weight: 500; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kanban ------------------------------------------------------------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--soft); border-radius: var(--radius); padding: 10px; min-height: 160px; }
.col.over { outline: 2px dashed var(--ink); }
.col-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; cursor: pointer; font-size: 13px; }
.kcard:hover { border-color: var(--ink); }
.kcard .meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.kcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; margin-bottom: 6px; background: var(--line); }

/* Product grid ------------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--ink); }
.pcard .ph { aspect-ratio: 4/5; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 12px; position: relative; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .badge { position: absolute; top: 8px; left: 8px; }
.pcard .ph .ooo { position: absolute; top: 8px; right: 8px; background: var(--surface); font-size: 10px; letter-spacing: .1em; padding: 2px 6px; font-weight: 600; }
.pcard .pb { padding: 10px 12px 12px; }
.pcard .pname { font-weight: 600; }
.pcard .prow { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; gap: 6px; }
.pcard .price { color: var(--ink); font-weight: 600; font-size: 13px; }

/* Calendar ----------------------------------------------------------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head h2 { min-width: 170px; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.cal .dow { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft-2); }
.cal .day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px; cursor: pointer; }
.cal .day:hover { background: var(--soft-2); }
.cal .day.other { background: var(--soft-2); color: var(--muted); }
.cal .day.today .dnum { background: var(--ink); color: var(--on-ink); }
.cal .dnum { font-size: 11.5px; display: inline-block; min-width: 20px; text-align: center; border-radius: 10px; padding: 0 4px; }
.ev { display: block; font-size: 11px; padding: 2px 5px; border-radius: 2px; margin-top: 3px; background: var(--ink); color: var(--on-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ev.rec { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.ev.ms { background: var(--accent-soft); color: var(--accent); }
.ev.rel { background: var(--accent); color: #fff; font-weight: 600; }
.ev.posted { background: var(--ok-soft); color: var(--ok); }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.legend .ev { display: inline-block; margin: 0 4px 0 0; }

/* Library ------------------------------------------------------------ */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tcard .t-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tcard p { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; }
.tcard .t-actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }

/* Forms / modal ------------------------------------------------------ */
.modal-wrap { position: fixed; inset: 0; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: 6px; box-shadow: 0 20px 60px var(--shadow); display: flex; flex-direction: column; max-height: 90vh; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.lightbox-img { width: 100%; height: auto; display: block; }
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form legend { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 8px; padding: 0; }
.grid-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.field.full { grid-column: 1 / -1; }
.help { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.money { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.money span { padding: 0 2px 0 9px; color: var(--muted); }
.money input { border: 0; }
.money:focus-within { border-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 150px; overflow-y: auto; border: 1px solid var(--line); padding: 8px; border-radius: var(--radius); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.check input { width: auto; }
.check-field { display: flex; flex-direction: column; justify-content: center; }
.img-field { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 92px; height: 115px; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumb-del { position: absolute; top: 3px; right: 3px; border: 0; background: rgba(0,0,0,.7); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 10px; cursor: pointer; }
.thumb.add { display: grid; place-items: center; cursor: pointer; border-style: dashed; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; white-space: pre-wrap; }

/* Toast -------------------------------------------------------------- */
#toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--radius); font-size: 13px; transition: opacity .3s; max-width: 360px; }
.toast.err { background: var(--accent); }
.toast.out { opacity: 0; }

/* Refreshknop rechtsboven ------------------------------------------- */
.refresh-btn { position: fixed; top: 14px; right: 18px; z-index: 45; width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); cursor: pointer; }
.refresh-btn:hover { border-color: var(--ink); }
.refresh-btn:disabled { opacity: .7; cursor: default; }
.refresh-btn.spin svg { animation: dvspin .8s linear infinite; }
@keyframes dvspin { to { transform: rotate(360deg); } }
main { padding-right: 70px; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; background: var(--topbar); border-bottom: 1px solid var(--line); padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .topbar .brand { padding: 0; gap: 8px; }
  .topbar .logo-box { width: 22px; height: 30px; }
  .topbar .logo-img { height: 58px; }
  .topbar .logo-fallback { width: 30px; height: 30px; font-size: 12px; }
  .topbar-title { margin-left: auto; font-size: 12px; color: var(--muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-btn { font-size: 22px; color: var(--ink); }
  .topbar { padding-right: 56px; }
  .refresh-btn { top: max(8px, env(safe-area-inset-top)); right: 10px; width: 34px; height: 34px; }
  main { padding-right: 16px; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; height: 100%; transform: translateX(-100%); transition: transform .2s; width: 264px; box-shadow: 0 0 40px var(--shadow); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 35; }
  #nav a { padding: 10px 10px; font-size: 15px; }
  main { padding: 18px 16px 60px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .grid-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cal .day { min-height: 70px; }
  .cal .ev { font-size: 10px; padding: 1px 3px; }
  .modal-wrap { padding: 0; }
  .modal { max-height: 100vh; border-radius: 0; min-height: 100vh; }
  h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .table.responsive td { display: flex; justify-content: space-between; border: 0; padding: 3px 12px; gap: 12px; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 11px; }
  .filters select, .filters input { flex: 1; min-width: 0; }
}

/* Storyboard & formats ---------------------------------------------- */
.shot { display: grid; grid-template-columns: 28px 92px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shot-done .shot-n { color: var(--ok); }
.shot-n { font-weight: 700; font-size: 18px; }
.shot-ref { width: 92px; height: 115px; border: 1px dashed var(--line-2); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 12px; background: var(--hover); }
.shot-ref img { width: 100%; height: 100%; object-fit: cover; }
.shot-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shot-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shot-row > input, .shot-row > select { flex: 1; min-width: 110px; }
.sb-strip { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.sb-cell { width: 26px; height: 32px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 10px; color: var(--muted); overflow: hidden; background: var(--hover); }
.sb-cell.ok { border-color: var(--ok); }
.sb-cell img { width: 100%; height: 100%; object-fit: cover; }
.strat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; color: #fff; }
.strat-REACH { background: #121212; } .strat-BRAND { background: #6e1a24; } .strat-PROCESS { background: #5b5a55; }
.vid { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vid img { width: 72px; height: 96px; object-fit: cover; background: var(--soft-3); }
.vid .stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.vid .stats b { color: var(--ink); }
.ev.edit { background: var(--surface); color: var(--ink-2); border: 1px dashed var(--ink-2); }
@media (max-width: 520px) { .shot { grid-template-columns: 22px 64px 1fr; } .shot-ref { width: 64px; height: 80px; } }

/* ---------------- Visual Library ---------------- */
.lib-kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.lib-filters input[type=search] { flex: 1; }
.lib-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -4px 0 14px; font-size: 13px; }
.lib-bulk select, .lib-bulk input { width: auto; min-width: 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lib-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.lib-card.sel { outline: 2px solid var(--ink); }
.lib-card.na .lib-media { opacity: .55; }
.lib-media { position: relative; aspect-ratio: 9 / 16; background: #161616; overflow: hidden; }
.lib-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lib-pick { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,.9); padding: 2px 4px; line-height: 1; }
.lib-pick input { width: auto; margin: 0; }
.lib-star { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.45); color: #ddd; border: 0; font-size: 16px; width: 28px; height: 28px; cursor: pointer; }
.lib-star.on { color: #f2c94c; }
.lib-flag { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; }
.lib-flag.ok { background: var(--ok); color: var(--on-signal); left: auto; right: 6px; }
.lib-body { padding: 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.lib-title { font-weight: 600; font-size: 13px; line-height: 1.3; min-height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lib-meta { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lib-cat, .lib-sub, .lib-tag, .lib-sugg { font-size: 10.5px; padding: 1px 6px; border: 1px solid var(--line-2); white-space: nowrap; }
.lib-cat { font-weight: 700; color: #fff; border: 0; }
.lib-cat-A { background: #5b5a55; } .lib-cat-B { background: var(--accent); } .lib-cat-C { background: #1d4f91; } .lib-cat-D { background: var(--ok); color: var(--on-signal); } .lib-cat-E { background: #a39f99; }
.lib-sugg { color: var(--warn); border-color: currentColor; }
.lib-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: auto; padding-top: 4px; }
.lib-actions .btn { justify-content: center; padding: 4px 6px; font-size: 11.5px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }
.modal.lib-modal { width: min(1180px, 96vw); max-width: none; }
.lib-detail { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
.lib-left { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-left-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.lib-facts dt { color: var(--muted); }
.lib-facts dd { margin: 0; white-space: pre-wrap; }
.lib-right { min-width: 0; }
.lib-dbody { padding: 12px 0; }
.lib-dfoot { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.lib-ver { background: var(--ok-soft); padding: 10px 12px; }
.lib-ver h4, .lib-dbody h4 { margin: 0 0 6px; font-size: 13px; }
.lib-ten { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; }
.lib-ten li b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lib-ten li span { white-space: pre-wrap; }
.lib-dbody .actions, .lib-form .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.lib-dbody .card { margin-top: 12px; padding: 12px; }
.lib-sugbox p { margin: 6px 0; }
.inline { display: flex; gap: 6px; } .inline input { flex: 1; }
.lib-shots { list-style: none; margin: 0; padding: 0; }
.lib-shots li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lib-shots li.done label { text-decoration: line-through; color: var(--muted); }
.lib-shots input { width: auto; }
.lib-review { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 20px; align-items: start; }
.lib-review textarea, .lib-review input { width: 100%; }
.lib-catbtns, .lib-subbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-rlist, .lib-life { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lib-claim { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 0 5px; border: 1px solid currentColor; }
.lib-claim-B { color: var(--ok); } .lib-claim-M { color: var(--ink-2); } .lib-claim-O { color: var(--warn); }
.lib-cam { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lib-camcard h3 { margin-bottom: 6px; }
.lib-do { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lib-do ul { padding-left: 16px; margin: 4px 0; }
.lib-do .ok { color: var(--ok); } .lib-do .bad { color: var(--accent); }
.lib-ex { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lib-exitem { width: 54px; aspect-ratio: 9 / 16; background: #222; border: 0; padding: 0; color: #aaa; cursor: pointer; }
.lib-exitem img { width: 100%; height: 100%; object-fit: cover; }
.lib-ol { padding-left: 18px; margin: 0; }
.lib-inline { width: 100%; min-width: 160px; }
.lib-preview { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 820px) {
  .lib-detail, .lib-review { grid-template-columns: 1fr; }
  .lib-left { position: static; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lib-do { grid-template-columns: 1fr; }
}
.lib-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 10px; }
.lib-kpis .kpi { padding: 10px 12px; }
.lib-kpis .kpi-value { font-size: 20px; }
.lib-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.lib-chipnote { flex-basis: 100%; }
.lib-chip { font: inherit; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); padding: 5px 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.lib-chip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lib-filters .check, .filters .check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lib-filters .check input, .lib-bulk input[type=checkbox], .checks input[type=checkbox], .lib-detail input[type=checkbox] { width: auto; min-width: 0; }
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lib-actions .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lib-body { padding: 8px; }
  .lib-actions { grid-template-columns: 1fr; }
  .lib-meta.small { white-space: normal; }
}
/* Visual Library — statische covers (geen ingebouwde speler) */
.lib-media { background: #1b1a19; }
.lib-cover, .lib-bigcover { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.lib-cover img, .lib-bigcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-bigcover { aspect-ratio: 9 / 16; max-height: 66vh; background: #1b1a19; overflow: hidden; }
.lib-nocover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px; color: #cfcac4; background: repeating-linear-gradient(135deg, #1f1e1c 0 10px, #242220 10px 20px); font-size: 12px; }
.lib-nocover b { color: #fff; font-size: 13px; }
.lib-nocover small { color: #9a948d; line-height: 1.3; }
.lib-card.drop { outline: 2px dashed var(--accent); }
.lib-flag.plan { background: var(--ink); left: 6px; right: auto; }
.lib-coverbox { border: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; }
.lib-coverbox .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-left .lib-left-actions .btn.primary { flex: 1; justify-content: center; }
/* Visual Library V2 — profielraster */
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.lib-card { border: 0; background: transparent; gap: 4px; }
.lib-media { aspect-ratio: 9 / 16; }
.lib-ov-top { position: absolute; top: 6px; left: 30px; right: 34px; display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none; }
.lib-ov-top .lib-cat { font-size: 10px; padding: 1px 5px; }
.lib-ov-sub { font-size: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 5px; }
.lib-ov-sugg { font-size: 10px; background: var(--warn); color: var(--on-signal); padding: 1px 5px; }
.lib-ov-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.lib-ov-bot .muted { color: #cfcac4; font-weight: 400; }
.lib-ov-tpl { font-size: 10px; background: var(--ok); color: var(--on-signal); padding: 1px 5px; font-weight: 700; }
.lib-pick { opacity: 0; transition: opacity .15s; }
.lib-card:hover .lib-pick, .lib-card.sel .lib-pick { opacity: 1; }
.lib-prev { position: absolute; right: 4px; top: 36px; width: 28px; height: 28px; border: 0; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; font-size: 12px; }
.lib-media.playing iframe { width: 100%; height: 100%; border: 0; }
.lib-prev-close { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; z-index: 2; }
.lib-prev-hint { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 10.5px; padding: 4px 6px; text-align: center; }
.lib-card .lib-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0; }
.lib-card .lib-actions .btn { font-size: 11px; padding: 4px 4px; }
.lib-nocover { justify-content: center; align-items: center; text-align: center; }
.lib-bigcover iframe { width: 100%; height: 100%; border: 0; }
.lib-plan textarea { min-height: 0; }
.lib-shotedit { display: grid; gap: 6px; }
.lib-shot { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: start; border: 1px solid var(--line); padding: 6px; background: var(--surface); }
.lib-shot.done { opacity: .6; }
.lib-shot-n { display: flex; align-items: center; gap: 4px; }
.lib-shot-n input { width: auto; }
.lib-shot-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lib-shot-f input, .lib-shot-f select { font-size: 12px; padding: 4px 6px; min-width: 0; }
.lib-shot-what { grid-column: 1 / -1; font-weight: 600; }
.lib-shot-a { display: flex; gap: 3px; align-items: center; }
.lib-shot-a img { width: 28px; height: 50px; object-fit: cover; }
.lib-shot-a .btn { padding: 3px 6px; }
@media (max-width: 520px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; } .lib-card .lib-actions { grid-template-columns: 1fr; } .lib-ov-top { left: 4px; } .lib-shot { grid-template-columns: 1fr; } .lib-shot-f { grid-template-columns: 1fr 1fr; } }

/* ===================== V3 ===================== */
.page-head.embedded { display: none; }
#bottomnav { display: none; }
@media (max-width: 820px) {
  #bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  #bottomnav a { text-align: center; padding: 12px 2px; font-size: 12px; text-decoration: none; color: var(--ink-2); }
  #bottomnav a.active { color: var(--ink); font-weight: 700; box-shadow: inset 0 2px 0 var(--accent); }
  body { padding-bottom: 56px; }
}
.v3-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.v3-head select { width: auto; }
.v3-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; }
.v3-line .grow { flex: 1; min-width: 0; }
.v3-click { cursor: pointer; }
.v3-thumb { width: 36px; height: 64px; object-fit: cover; }
.v3-ses + .v3-ses { margin-top: 10px; }
.v3-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.v3-col { background: var(--soft); padding: 8px; min-height: 120px; }
.v3-col h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.v3-card { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 8px; margin-bottom: 6px; font: inherit; cursor: pointer; }
.v3-card small { color: var(--muted); font-size: 11.5px; }
.v3-acc { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border: 1px solid var(--line-2); margin-right: 4px; width: fit-content; }
.v3-acc-dv { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.v3-acc-personal { background: var(--surface); }
.v3-acc.warn { color: var(--accent); border-color: var(--accent); }
.v3-cal { display: grid; gap: 6px; }
.v3-cal.week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.v3-cal.month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.v3-day { background: var(--surface); border: 1px solid var(--line); min-height: 110px; padding: 6px; min-width: 0; }
.v3-day.is-today { border-color: var(--accent); }
.v3-day-h { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.v3-cal-item { display: block; width: 100%; text-align: left; font: inherit; font-size: 11.5px; line-height: 1.35; background: var(--soft); border: 0; padding: 5px; margin-bottom: 4px; cursor: pointer; overflow-wrap: anywhere; }
.v3-st { color: var(--accent); }
.v3-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.v3-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.v3-post { display: grid; grid-template-columns: 64px 1fr; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 8px; font: inherit; cursor: pointer; }
.v3-post img, .v3-nocov { width: 64px; height: 114px; object-fit: cover; background: var(--soft-3); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); text-align: center; }
.v3-hot { color: var(--accent); }
.v3-pd { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.v3-pd > img, .v3-pd > .v3-nocov { width: 200px; height: 356px; object-fit: cover; }
.v3-pd h4 { margin: 12px 0 4px; }
.v3-pd textarea { width: 100%; }
.v3-fgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.v3-fcard { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 0; font: inherit; cursor: pointer; }
.v3-fbody { padding: 8px; display: grid; gap: 4px; }
.v3-fbody small { color: var(--ink-2); font-size: 11.5px; }
.v3-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.v3-story { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.v3-sketch { position: relative; width: 120px; aspect-ratio: 9 / 16; background: var(--soft); border: 1px dashed var(--line-2); overflow: hidden; font-size: 9px; }
.v3-safe { position: absolute; top: 0; left: 0; right: 0; height: 15%; background: repeating-linear-gradient(45deg, var(--soft-3) 0 4px, transparent 4px 8px); }
.v3-detail { position: absolute; left: 10%; right: 10%; top: 20%; height: 60%; background: var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.v3-stext { position: absolute; left: 8%; bottom: 7%; font-size: 9px; }
.v3-stick { position: absolute; right: 6%; bottom: 18%; background: var(--surface); border: 1px solid var(--line-2); padding: 1px 3px; font-size: 8px; }
.v3-sketch em { position: absolute; right: 4px; top: 3px; font-size: 8px; color: var(--muted); }
.lvl { display: inline-block; font-size: 10.5px; padding: 0 6px; border: 1px solid var(--line-2); }
.lvl-0, .lvl-1 { color: var(--muted); } .lvl-2 { color: var(--warn); } .lvl-3, .lvl-4 { color: var(--ok); border-color: var(--ok); }
.v3-trend { border-top: 1px solid var(--line); padding: 8px 0; display: grid; gap: 6px; }
.v3-trend-ex { display: flex; gap: 4px; }
.v3-tr { display: grid; grid-template-columns: 54px 1fr; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; }
@media (max-width: 820px) { .v3-cal.week, .v3-cal.month { grid-template-columns: 1fr; } .v3-pd { grid-template-columns: 1fr; } .v3-story { grid-template-columns: 90px 1fr; } .v3-sketch { width: 90px; } .v3-stories { grid-template-columns: 1fr; } }
.card .mono, .note .mono, .small .mono { word-break: break-all; }
#topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.topbar, #topbar { min-width: 0; max-width: 100vw; }
@media (max-width: 520px) { .actions .btn, .filters .btn { white-space: normal; max-width: 100%; } }
/* Covers vastleggen (experimenteel) */
.cc-wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.cc-stage { background: #111; position: relative; overflow: hidden; }
.cc-hint { color: #ccc; font-size: 12px; padding: 20px; }
.cc-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 10px; max-height: 60vh; overflow: auto; }
.cc-item { display: grid; grid-template-columns: 54px 1fr; gap: 8px; border: 1px solid var(--line); padding: 6px; }
.cc-item img { width: 54px; height: 96px; object-fit: cover; }
.cc-item.fail { opacity: .7; border-color: var(--accent); }
.cc-x { width: 54px; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--soft-3); color: var(--accent); }
@media (max-width: 820px) { .cc-wrap { grid-template-columns: 1fr; } }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.lib-ov-slide { position: absolute; right: 4px; top: 68px; background: rgba(0,0,0,.72); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 6px; pointer-events: none; }
.lib-ov-use { font-size: 10px; background: rgba(255,255,255,.88); color: #121212; padding: 1px 4px; font-weight: 700; }
/* Geschiktheidsscore formats */
.fit-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.fit-pill { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.fit-pill.s4, .fit-pill.s5 { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.fit-pill.none { opacity: .6; }
.fit-row { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 6px; }
@media (max-width: 520px) { .fit-row { grid-template-columns: 1fr; } }
/* Drop 002 / contentplanning: dropkop, snelle acties, overzicht */
.drop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.drop-head .sub { margin: 4px 0 0; color: var(--muted); }
.drop-head .grow { flex: 1; min-width: 0; }
.drop-name { font: inherit; font-size: 28px; font-weight: 600; letter-spacing: -.01em; border: 1px solid transparent; border-radius: var(--radius); background: transparent; padding: 2px 6px; margin-left: -7px; width: 100%; max-width: 520px; color: var(--ink); }
.drop-name:hover, .drop-name:focus { border-color: var(--line); background: var(--surface); outline: none; }
.drop-status { width: auto; font-size: 12px; padding: 3px 6px; margin-right: 6px; }
.quick-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.drop-intro { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; margin-bottom: 16px; }
.drop-intro:not(:has(img)) { grid-template-columns: 1fr; }
.drop-cover { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.drop-todo h4 { margin: 0 0 6px; font-size: 13px; }
.v3-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.v3-row > .grow { flex: 1; min-width: 200px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
@media (max-width: 520px) {
  .quick-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-bar .btn { justify-content: center; white-space: normal; }
  .drop-name { font-size: 22px; }
  .drop-head .grow { flex-basis: 100%; }
  .drop-intro { grid-template-columns: 84px 1fr; }
  .drop-cover { width: 84px; }
  .v3-row > .grow { min-width: 100%; }
}
/* Drop Workspace */
.dw-tabs { margin-top: 4px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.dw-tabs .tab { white-space: nowrap; }
.dw-phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.dw-phase { text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 4px; border-radius: var(--radius); }
.dw-phase.now { border-color: var(--ink); }
.dw-phase small { color: var(--muted); font-size: 11px; }
.dw-risks { display: grid; gap: 6px; margin-bottom: 14px; justify-items: start; }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.dw-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.dw-need, .dw-flex { font-size: 10.5px; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--ink); white-space: nowrap; }
.dw-flex { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.dw-task { display: flex; gap: 10px; align-items: flex-start; }
.dw-task > input { margin-top: 3px; }
.dw-task.done .title { text-decoration: line-through; color: var(--muted); }
.dw-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.dw-open .muted { flex-basis: 100%; }
.dw-day { display: grid; gap: 10px; }
.dw-dayhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dw-blocks { display: flex; flex-wrap: wrap; gap: 4px; }
.dw-block { font-size: 11px; padding: 2px 7px; border-radius: 2px; background: var(--soft); color: var(--ink-2); border: 1px solid transparent; }
.dw-block.conf { background: var(--ink); color: var(--surface); }
.dw-block.k-werkblok { border: 1px dashed var(--ink-2); background: transparent; }
.dw-block.k-werkblok.conf { border-style: solid; background: var(--soft-3); color: var(--ink); }
.dw-block.k-onbekend { border: 1px dashed var(--muted); background: transparent; color: var(--muted); }
.dw-block.k-geen_kantoor { background: transparent; border: 1px solid var(--line); }
.dw-unknown { margin: 0; font-size: 12px; color: var(--muted); border-left: 2px dashed var(--muted); padding-left: 8px; }
.dw-lane h4 { margin: 4px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dw-ses { margin: 4px 0 8px; }
.dw-ses summary { cursor: pointer; }
.dw-shot { display: flex; gap: 8px; align-items: flex-start; }
.dw-shot.done b { text-decoration: line-through; color: var(--muted); }
.dw-ref { width: 34px; height: 60px; object-fit: cover; border-radius: 2px; }
.dw-ph, .dw-week, .dw-piece { border-top: 1px solid var(--line); padding: 8px 0; }
.dw-ph summary, .dw-week summary, .dw-piece summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.dw-ph summary .bar { flex-basis: 100%; }
.dw-piece summary img { width: 30px; height: 38px; object-fit: cover; }
.dw-phbody { padding: 6px 0 4px; }
.dw-drow { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.dw-drow.today { background: var(--soft-2); }
.dw-dlabel { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; align-self: start; }
.dw-mb { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.dw-mbitem { position: relative; border: 1px solid var(--line); background: var(--surface); padding: 8px; display: grid; gap: 4px; align-content: start; font-size: 12.5px; }
.dw-mbitem.image { padding: 0; }
.dw-mbitem img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.dw-mbitem.text p { margin: 0; white-space: pre-wrap; }
.dw-mbitem small { color: var(--muted); padding: 0 6px 6px; }
.dw-mbact { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; opacity: .85; }
.dw-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dw-topic { border: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; align-content: start; }
.dw-topic p { margin: 0; }
.dw-shotedit { display: grid; grid-template-columns: 18px 2fr repeat(4, 1fr) 54px 110px auto auto; gap: 4px; align-items: center; margin-bottom: 4px; }
@media (max-width: 820px) { .dw-shotedit { grid-template-columns: 18px 1fr 1fr; } .dw-drow { grid-template-columns: 1fr; } }
.cc-head { margin-bottom: 10px; }
.cc-refs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.cc-refs a { display: grid; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: 10.5px; flex: 0 0 auto; }
.cc-refs img { width: 64px; height: 114px; object-fit: cover; border-radius: 2px; background: var(--soft-3); }

/* Weergave-keuze (Merk & instellingen → Weergave) */
.theme-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); padding: 12px; cursor: pointer; background: var(--surface); }
.theme-opt:has(input:checked) { border-color: var(--ink); }
.theme-opt input { width: auto; margin-top: 3px; accent-color: var(--ink); }
.theme-opt > span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 520px) { .theme-opts { grid-template-columns: 1fr; } }

/* Mijn Footage (Studio) ------------------------------------------------ */
.ft-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.ft-top .btn[disabled] { opacity: .45; cursor: not-allowed; }
.ft-drop { border: 1.5px dashed var(--line-2); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0; color: var(--ink-2); background: var(--surface); text-align: center; }
.ft-drop.on { border-color: var(--ink); background: var(--hover); }
.ft-prog { margin: 0 0 8px; }
.ft-prog li { display: flex; gap: 10px; font-size: 12.5px; padding: 4px 0; }
.ft-filters input[type=search] { min-width: 220px; flex: 1 1 220px; }
.ft-selbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ft-card { background: var(--surface); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; min-width: 0; }
.ft-card.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ft-media { position: relative; aspect-ratio: 3 / 4; background: #1b1a19; border: 0; padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; }
.ft-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-dur, .ft-or { position: absolute; bottom: 5px; font-size: 10.5px; background: rgba(0,0,0,.7); color: #fff; padding: 1px 5px; }
.ft-dur { right: 5px; } .ft-or { left: 5px; }
.ft-pick { position: absolute; top: 5px; left: 5px; background: rgba(255,255,255,.92); padding: 3px 4px; line-height: 1; cursor: pointer; }
.ft-pick input { width: 16px; height: 16px; margin: 0; accent-color: #121212; }
.ft-info { padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.ft-desc { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ft-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.ft-scene { display: inline-block; font-size: 10.5px; padding: 0 6px; border: 1px solid var(--line-2); margin-right: 3px; white-space: nowrap; }
.ft-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.ft-u-gepland { background: var(--warn-soft); color: var(--warn); }
.ft-u-gebruikt { background: var(--ok-soft); color: var(--ok); }
.ft-src { display: inline-block; font-size: 10px; padding: 0 5px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.ft-src-vision { border-color: var(--info); color: var(--info); }
.ft-src-claude { border-color: var(--accent); color: var(--accent); }
.ft-src-regel, .ft-src-none { border-style: dashed; color: var(--muted); }
.ft-src-manual { border-color: var(--ink-2); }
.ft-maclist { max-height: 46vh; overflow: auto; margin-top: 8px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }

.ft-view { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.ft-player video, .ft-player img { width: 100%; max-height: 62vh; background: #111; display: block; object-fit: contain; }
.ft-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0 0 6px; font-size: 12.5px; }
.ft-meta dt { color: var(--muted); } .ft-meta dd { margin: 0; overflow-wrap: anywhere; }
.ft-vision { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; margin-top: 8px; }
.ft-strip, .ft-pickframe, .ft-ministrip { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0; }
.ft-strip button { border: 0; padding: 0; background: none; cursor: pointer; position: relative; flex: none; }
.ft-strip img { height: 92px; display: block; }
.ft-strip span { position: absolute; left: 2px; top: 2px; font-size: 10px; background: rgba(0,0,0,.72); color: #ffd34d; padding: 0 3px; }
.ft-ministrip img { height: 54px; flex: none; }
.ft-edit { margin-top: 10px; }
.ft-edit select[multiple] { min-height: 70px; }

.ft-ahead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.ft-aact { margin: 10px 0; }
.ft-sheets { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.ft-sheet { width: 100%; display: block; border: 1px solid var(--line); }
.ft-clips { display: flex; flex-direction: column; gap: 10px; }
.ft-clip { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.ft-clip .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ft-ct { border: 0; padding: 0; background: #1b1a19; width: 72px; height: 96px; flex: none; cursor: pointer; }
.ft-ct img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-vmeta { margin-top: 10px; }
.ft-sb { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.ft-shot { display: grid; grid-template-columns: 26px 96px minmax(0, 1fr) auto; gap: 10px; border: 1px solid var(--line); padding: 8px; background: var(--surface); }
.ft-shot.missing { border-style: dashed; }
.ft-sn { font-weight: 700; font-size: 18px; }
.ft-st { width: 96px; height: 128px; background: #1b1a19; display: grid; place-items: center; overflow: hidden; text-align: center; }
.ft-st img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-sf { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ft-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ft-row label { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-2); }
.ft-row label input { width: 78px; }
.ft-row > input { flex: 1 1 140px; }
.ft-pickframe button { border: 1px solid transparent; padding: 0; background: none; cursor: pointer; flex: none; }
.ft-pickframe button:hover { border-color: var(--ink); }
.ft-pickframe img { height: 44px; display: block; }
.ft-sa { display: flex; flex-direction: column; gap: 4px; }
.ft-render { max-height: 60vh; max-width: 100%; background: #111; display: block; margin-top: 8px; }
.ft-mini { display: flex; gap: 2px; flex: none; }
.ft-mini img { width: 30px; height: 40px; object-fit: cover; }
.ft-steps li { margin-bottom: 5px; }
.ft-style { border: 1px solid var(--line); padding: 10px; margin: 0 0 10px; }
.ft-pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; }
.ft-pickcell { display: flex; flex-direction: column; gap: 2px; cursor: pointer; position: relative; font-size: 11px; }
.ft-pickcell input { position: absolute; top: 4px; left: 4px; width: auto; }
.ft-pickcell img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #1b1a19; }
@media (max-width: 820px) { .ft-view { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ft-shot { grid-template-columns: 22px 64px minmax(0, 1fr); }
  .ft-st { width: 64px; height: 86px; }
  .ft-sa { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .ft-top .btn { flex: 1 1 auto; justify-content: center; }
  .filters.ft-filters select, .filters.ft-filters input { flex: 1 1 calc(50% - 6px); min-width: 0; width: auto; }
  .filters.ft-filters input[type=search] { flex-basis: 100%; }
}

/* Taak- en publicatiedetail ---------------------------------------------- */
.td-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.td-kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; background: var(--ink); color: var(--on-ink); }
.td-k-verzamelen { background: var(--soft-3); color: var(--ink); }
.td-sec { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.td-sec h4 { margin: 0 0 6px; font-size: 13px; }
.td-sec p { margin: 0 0 6px; }
.td-shots { display: flex; flex-direction: column; gap: 8px; }
.list li.td-shot { border: 1px solid var(--line); padding: 8px; display: block; background: var(--surface); }
.list li.td-shot.got { border-left: 3px solid var(--ok); }
.td-shot-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.td-shot-h input { width: auto; }
.td-purpose { font-size: 10.5px; padding: 0 6px; border: 1px dashed var(--line-2); color: var(--ink-2); }
.td-shot-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 6px; }
.td-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 12.5px; }
.td-dl dt { color: var(--muted); } .td-dl dd { margin: 0; overflow-wrap: anywhere; }
.td-side { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; max-width: 220px; }
.td-refs, .td-meds { display: flex; gap: 6px; flex-wrap: wrap; }
.td-ref { display: flex; flex-direction: column; text-decoration: none; font-size: 10.5px; color: var(--muted); width: 64px; }
.td-ref img, .td-ref span { width: 64px; height: 114px; object-fit: cover; background: #1b1a19; display: grid; place-items: center; color: #fff; }
.td-med { border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; font-size: 10px; color: var(--muted); }
.td-med img { width: 54px; height: 72px; object-fit: cover; background: #1b1a19; }
.td-plan { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.td-plan > div { flex: none; width: 76px; display: flex; flex-direction: column; gap: 1px; font-size: 10px; color: var(--ink-2); position: relative; }
.td-plan > div > span { position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,.72); color: #fff; font-size: 10px; padding: 0 4px; }
.td-plan img, .td-plan em { width: 76px; height: 100px; object-fit: cover; background: #1b1a19; display: grid; place-items: center; color: #aaa; font-size: 10px; }
.td-post { display: flex; gap: 14px; flex-wrap: wrap; }
.td-post > .grow { flex: 1 1 260px; min-width: 0; }
.td-prev { width: 220px; max-width: 100%; aspect-ratio: 9 / 16; background: #1b1a19; position: relative; display: grid; place-items: center; overflow: hidden; flex: none; }
.td-prev img, .td-prev video { width: 100%; height: 100%; object-fit: cover; }
.td-storytext { position: absolute; left: 10px; bottom: 14px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.dw-postimg { width: 28px; height: 38px; object-fit: cover; float: left; margin-right: 8px; background: #1b1a19; }
.cc-foot { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 8px; }
.cc-foot button { border: 0; padding: 0; background: none; cursor: pointer; }
.cc-foot img { width: 44px; height: 58px; object-fit: cover; display: block; background: #1b1a19; }
@media (max-width: 520px) { .td-shot-b { grid-template-columns: 1fr; } .td-side { max-width: none; } .td-prev { width: 100%; } }

/* Agenda-export --------------------------------------------------------- */
.cal-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; margin: 10px 0; }
.cal-list { max-height: 48vh; overflow: auto; border-top: 1px solid var(--line); }
.cal-day h4 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.cal-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.cal-item input { width: auto; margin-top: 3px; }
.cal-item.off { opacity: .45; }
.cal-item.prop .cal-time { color: var(--muted); }
.cal-time { flex: none; width: 92px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
code.sel { user-select: all; overflow-wrap: anywhere; font-size: 12px; background: var(--soft); padding: 1px 4px; }
@media (max-width: 520px) { .cal-time { width: 70px; } }
.cal-opts .filters input[type=checkbox] { min-width: 0; width: auto; flex: none; }
.cal-st { font-size: 10.5px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); white-space: nowrap; }
.cal-st-staat-erin { color: var(--ok); border-color: var(--ok); }
.cal-st-gewijzigd { color: var(--warn); border-color: var(--warn); }
.sync-cf { margin: 4px 0; } .sync-cf code { font-size: 11px; background: var(--soft); padding: 0 3px; overflow-wrap: anywhere; }
