@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(vendor/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(vendor/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Basis: koel, rustig; kleur is gereserveerd voor status. */
  --bg: #eef1f3;
  --surface: #ffffff;
  --surface-2: #f5f7f8;
  --ink: #17232e;
  --muted: #5b6a77;
  --faint: #8a97a3;
  --line: #d6dde3;
  --line-strong: #b9c4cd;

  --accent: #0d6671;
  --accent-hover: #0a525b;
  --accent-soft: #dcecee;

  /* Statuskleuren, als tally-lampjes in een regiekamer */
  --ok: #1b8a5a;
  --ok-soft: #dff1e8;
  --warn: #b27103;
  --warn-soft: #fbefd6;
  --err: #c8372d;
  --err-soft: #fbe3e0;
  --idle: #8a97a3;
  --idle-soft: #e7ebee;
  --new: #3656c9;
  --new-soft: #e2e8fa;

  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-pop: 0 12px 32px rgba(23, 35, 46, 0.18), 0 2px 6px rgba(23, 35, 46, 0.08);

  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;

  /* Huisstijl: een thema (web/themes/*.css) overschrijft deze waarden. */
  --brand-name: "Signage";
  --sidebar-bg: var(--surface-2);
  --sidebar-ink: var(--ink);
  --sidebar-muted: var(--muted);
  --sidebar-line: var(--line);
  --sidebar-hover: var(--idle-soft);
  --sidebar-active-bg: var(--ink);
  --sidebar-active-ink: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
[v-cloak] { display: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.867rem; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 20px 12px;
  border-right: 1px solid var(--sidebar-line);
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; font-size: 1.07rem; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 18px; border: 2.5px solid currentColor; border-radius: 3px; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 2.5px; margin-left: -5px; background: currentColor; }
.brand-name::before { content: var(--brand-name); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--sidebar-ink); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--sidebar-hover); }
.nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-ink); }
.nav .count { font-size: 0.8rem; font-weight: 600; padding: 0 7px; border-radius: 10px; line-height: 1.6; }
.nav .count.err { background: var(--err); color: #fff; }
.nav .count.new { background: var(--new); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 0 10px; font-size: 0.867rem; color: var(--sidebar-muted); }
.sidebar-foot button { background: none; border: 0; padding: 0; color: var(--sidebar-muted); text-decoration: underline; cursor: pointer; }

.main { min-width: 0; }
.page { max-width: 1240px; padding: 28px 36px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
h2 { font-size: 1.1rem; margin: 0 0 12px; font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 0.95rem; margin: 0 0 8px; font-weight: 650; }

/* ---------- Alarmstrook ---------- */
.alarm {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 36px; background: var(--err); color: #fff;
}
.alarm strong { font-weight: 650; }
.alarm .lamp { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); animation: blink 1.6s ease-in-out infinite; }
.alarm a { color: #fff; font-weight: 600; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- Knoppen en formulieren ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--err); border-color: #e5b3ae; }
.btn.danger:hover { border-color: var(--err); background: var(--err-soft); }
.btn.danger-solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--idle-soft); }
.btn.small { padding: 4px 10px; font-size: 0.867rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > span { font-weight: 550; font-size: 0.933rem; }
.field .hint { font-size: 0.867rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); background: var(--surface);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 64px; }
.input.inline { width: auto; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-weight: 550; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }

.search { position: relative; }
.search input { padding-left: 30px; min-width: 220px; }
.search::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: 2px solid var(--faint); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 20px; top: 50%; width: 2px; height: 6px; margin-top: 2px; background: var(--faint); transform: rotate(-45deg); }

/* ---------- Panelen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.panel-pad { padding: 18px 20px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- Status ---------- */
.tally { width: 4px; align-self: stretch; border-radius: 2px; background: var(--idle); flex: none; }
.s-online .tally, .tally.s-online { background: var(--ok); }
.s-delayed .tally, .tally.s-delayed { background: var(--warn); }
.s-offline .tally, .tally.s-offline { background: var(--err); }
.s-pending .tally, .tally.s-pending { background: var(--new); }
.s-shutdown .tally, .tally.s-shutdown { background: var(--idle); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.867rem; font-weight: 600; padding: 2px 9px; border-radius: 12px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.s-online { background: var(--ok-soft); color: var(--ok); }
.badge.s-delayed { background: var(--warn-soft); color: var(--warn); }
.badge.s-offline { background: var(--err-soft); color: var(--err); }
.badge.s-pending { background: var(--new-soft); color: var(--new); }
.badge.s-shutdown { background: var(--idle-soft); color: var(--muted); }

.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-s); margin-bottom: 14px; }
.callout .tally { width: 3px; }
.callout.err { background: var(--err-soft); }
.callout.err .tally { background: var(--err); }
.callout.warn { background: var(--warn-soft); }
.callout.warn .tally { background: var(--warn); }
.callout.info { background: var(--accent-soft); }
.callout.info .tally { background: var(--accent); }
.callout p { margin: 0; }
.callout p + p { margin-top: 4px; }

/* ---------- Overzicht ---------- */
.stats { display: flex; gap: 36px; margin-bottom: 26px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.933rem; }
.stat.err b { color: var(--err); }
.stat.new b { color: var(--new); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.issue { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.issue:last-child { border-bottom: 0; }
.issue-body { flex: 1; min-width: 0; }
.issue-body b { font-weight: 650; }
.issue-body p { margin: 2px 0 0; color: var(--muted); font-size: 0.933rem; }

.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--line); font-size: 0.933rem; }
.events li:last-child { border-bottom: 0; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; }
.events li.error span { color: var(--err); }
.events li.warning span { color: var(--warn); }

/* ---------- Schermenlijst ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }

.new-screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 22px; }
.new-card { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.new-card .tally { background: var(--new); }
.new-card-body { flex: 1; min-width: 0; }
.new-card-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.08em; font-size: 1.05rem; }

.screen-table { width: 100%; border-collapse: collapse; }
.screen-table th { text-align: left; font-size: 0.867rem; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.screen-table td { padding: 0 12px; height: 56px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.screen-table tr:last-child td { border-bottom: 0; }
.screen-table tbody tr { cursor: pointer; }
.screen-table tbody tr:hover { background: var(--surface-2); }
.screen-table tbody tr.selected { background: var(--accent-soft); }
.screen-table td.t { width: 16px; padding: 8px 0 8px 12px; }
.screen-table td.t .tally { height: 36px; }
.cell-title { font-weight: 600; }
.cell-sub { font-size: 0.867rem; color: var(--muted); }
.cell-problem { font-size: 0.867rem; color: var(--warn); }

/* ---------- Detailpaneel (lade rechts) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(23, 35, 46, 0.28); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  background: var(--surface); z-index: 41; display: flex; flex-direction: column;
  box-shadow: var(--shadow-pop); animation: slide-in 0.18s ease-out;
}
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.drawer-head .tally { min-height: 44px; }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; background: var(--surface-2); }
.drawer-foot .note { margin-right: auto; font-size: 0.867rem; color: var(--muted); }
.section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; margin-bottom: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 0.933rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.controls .btn { justify-content: flex-start; flex-direction: column; align-items: flex-start; white-space: normal; text-align: left; padding: 9px 12px; gap: 1px; }
.controls .btn small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.controls .btn.danger small { color: inherit; opacity: 0.8; }
.screenshot { width: 100%; border-radius: var(--radius-s); border: 1px solid var(--line); background: #000; display: block; aspect-ratio: 16 / 9; object-fit: contain; }
.now { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-s); font-size: 0.933rem; }

/* ---------- Media ---------- */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-m); background: var(--surface);
  padding: 22px; display: flex; align-items: center; gap: 18px; margin-bottom: 18px; cursor: pointer;
}
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone p { margin: 2px 0 0; color: var(--muted); font-size: 0.933rem; }
.uploads { margin: -8px 0 18px; display: flex; flex-direction: column; gap: 6px; }
.upload-row { display: grid; grid-template-columns: 1fr 180px 60px; gap: 12px; align-items: center; font-size: 0.933rem; }
.bar { height: 6px; background: var(--idle-soft); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.upload-row.failed { color: var(--err); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.media-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.thumb { aspect-ratio: 16 / 9; background: #1d2934; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .kind { position: absolute; left: 8px; bottom: 8px; background: rgba(23, 35, 46, 0.78); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 1px 7px; border-radius: 3px; }
.media-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.media-card-body b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card-actions { display: flex; gap: 4px; margin-top: 8px; }

/* ---------- Loops en planningen: lijst + editor ---------- */
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.list { list-style: none; margin: 0; padding: 6px; }
.list a { display: block; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.list a:hover { background: var(--surface-2); }
.list a.active { background: var(--accent-soft); }
.list a b { font-weight: 600; display: block; }
.list a span { font-size: 0.867rem; color: var(--muted); }
.list .swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }

.items { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m); }
.item { display: grid; grid-template-columns: 20px 24px 96px minmax(0, 1fr) 150px 36px; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.item:first-child { border-radius: var(--radius-m) var(--radius-m) 0 0; }
.item:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-m) var(--radius-m); }
.item.dragging { opacity: 0.4; }
.item.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.item .grip { cursor: grab; color: var(--faint); letter-spacing: -2px; user-select: none; }
.item .idx { color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
.item .mini { width: 96px; aspect-ratio: 16 / 9; border-radius: 3px; background: #1d2934; overflow: hidden; }
.item .mini img, .item .mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dur { display: flex; align-items: center; gap: 6px; font-size: 0.933rem; }
.dur input { width: 70px; }
.loop-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; color: var(--muted); }
.usage { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 12px; background: var(--idle-soft); font-size: 0.867rem; color: var(--ink); text-decoration: none; }

.editor-foot { display: flex; gap: 8px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-m) var(--radius-m); }
.editor-foot .dirty { color: var(--warn); font-weight: 600; font-size: 0.933rem; }
.editor-foot .spacer { flex: 1; }

/* Tijdsblokken */
.slot { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 8px; background: var(--surface); align-items: start; }
.slot .prio { font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 5px; }
.slot-fields { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.days { display: inline-flex; gap: 3px; }
.days button { width: 32px; padding: 5px 0; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 3px; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.days button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.times { display: inline-flex; gap: 6px; align-items: center; }
.times input { width: 104px; }
.slot-actions { display: flex; gap: 2px; }
.presets { display: inline-flex; gap: 4px; }
.presets button { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 0.8rem; padding: 2px 4px; text-decoration: underline; }

/* Weekoverzicht: het visuele hart van de planning */
.week { margin: 6px 0 4px; }
.week-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; height: 30px; }
.week-row + .week-row { margin-top: 3px; }
.week-day { font-size: 0.867rem; font-weight: 600; color: var(--muted); }
.week-day.today { color: var(--ink); }
.week-track { position: relative; height: 100%; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.week-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 6px; font-size: 0.75rem; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.5); }
.week-seg.off { background: repeating-linear-gradient(135deg, #3a4753 0 5px, #2c3843 5px 10px); }
.week-seg.none { background: transparent; color: var(--faint); }
.week-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--err); z-index: 2; }
.week-scale { display: grid; grid-template-columns: 34px 1fr; gap: 8px; margin-top: 4px; }
.week-scale div { position: relative; height: 16px; font-size: 0.75rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.week-scale span { position: absolute; transform: translateX(-50%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.867rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Plattegronden ---------- */
.plans { display: grid; grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 14px; height: calc(100vh - 150px); min-height: 520px; }
.plans.has-alarm { height: calc(100vh - 194px); }
.plans > .panel { overflow: auto; }
.tree { padding: 8px; }
.tree-building { margin-bottom: 10px; }
.tree-building > div { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-weight: 650; }
.tree a { display: flex; justify-content: space-between; padding: 7px 10px 7px 18px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-size: 0.933rem; }
.tree a:hover { background: var(--surface-2); }
.tree a.active { background: var(--accent-soft); font-weight: 600; }
.tree .add { font-size: 0.867rem; padding: 4px 10px 4px 18px; }
.map-wrap { position: relative; padding: 0; overflow: hidden !important; }
.map { position: absolute; inset: 0; background: var(--surface-2); }
.map.drop-target { outline: 3px solid var(--accent); outline-offset: -3px; }
.map-title { position: absolute; left: 12px; top: 12px; z-index: 500; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 2px 8px rgba(23,35,46,0.1); }
.side-list { padding: 12px; }
.side-list h3 { margin-top: 6px; }
.side-list .hint { font-size: 0.867rem; color: var(--muted); margin: -2px 0 10px; }
.pin-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 6px; background: var(--surface); font-size: 0.933rem; cursor: pointer; }
.pin-item[draggable="true"] { cursor: grab; }
.pin-item:hover { border-color: var(--line-strong); }
.pin-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* Markeringen op het plan */
.pin { display: flex; align-items: center; gap: 6px; white-space: nowrap; transform: translate(-7px, -7px); }
.pin i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); flex: none; }
.pin span { background: rgba(23, 35, 46, 0.86); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 1px 7px; border-radius: 3px; font-family: var(--font); }
.pin.focus i { animation: pulse 1.1s ease-out 4; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(13,102,113,0.7); } 100% { box-shadow: 0 0 0 18px rgba(13,102,113,0); } }
.dot-online { background: var(--ok); } .dot-delayed { background: var(--warn); } .dot-offline { background: var(--err); }
.dot-pending { background: var(--new); } .dot-shutdown { background: var(--idle); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { margin: 12px 14px; font-size: 0.933rem; }
.popup b { display: block; font-size: 1rem; }
.popup p { margin: 4px 0 8px; }

/* ---------- Modaal, bevestiging, meldingen ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(23, 35, 46, 0.4); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; z-index: 60; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-pop); width: min(480px, 100%); }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-head p { margin: 6px 0 0; color: var(--muted); }
.modal-body { padding: 16px 22px; }
.modal-foot { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; }

.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.pick { border: 2px solid transparent; border-radius: var(--radius-m); padding: 0; background: var(--surface-2); cursor: pointer; text-align: left; overflow: hidden; }
.pick.on { border-color: var(--accent); }
.pick .thumb { aspect-ratio: 16 / 9; }
.pick div.label { padding: 6px 8px; font-size: 0.867rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .check { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

.plan-preview { max-width: 100%; max-height: 240px; border: 1px solid var(--line); border-radius: var(--radius-s); display: block; margin-top: 8px; }

.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow-pop); max-width: 420px; animation: slide-in 0.18s ease-out; }
.toast.err { background: var(--err); }

/* ---------- Aanmelden ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; padding: 16px; }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.auth-card .brand { padding: 0 0 18px; }
.auth-card h1 { font-size: 1.4rem; margin: 0 0 6px; }
.auth-card p { color: var(--muted); margin: 0 0 18px; }
.auth-apk h2 { margin-bottom: 6px; }
.auth-apk p { margin-bottom: 12px; }
.auth-apk p.small { margin: 12px 0 0; }
.auth-apk .btn { width: 100%; }
.form-error { color: var(--err); margin: -4px 0 12px; font-weight: 550; }

/* ---------- Responsief ---------- */
@media (max-width: 1100px) {
  .overview-grid, .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 200px minmax(0, 1fr); }
  .plans > .side-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; gap: 8px; }
  .brand { padding: 0 8px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { display: none; }
  .page { padding: 20px 16px 48px; }
  .alarm { padding: 10px 16px; }
  .plans { grid-template-columns: 1fr; height: auto; }
  .plans .map-wrap { height: 60vh; }
  .item { grid-template-columns: 20px 72px minmax(0, 1fr) 36px; }
  .item .idx, .item .dur { display: none; }
  .screen-table .hide-sm { display: none; }
  .controls { grid-template-columns: 1fr; }
}

/* ---------- Correcties ---------- */
.overview-grid > .panel, .split > .panel, .plans > .panel { margin-top: 0; }
.events time { font-variant-numeric: normal; }
.screen-table td { height: auto; padding: 10px 12px; }
.screen-table td.t .tally { height: 36px; }
.week-scale > i { display: block; }
.times input { width: 72px; text-align: center; }

/* ---------- Controle per Pi-model en webpagina's ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.checks { display: flex; gap: 6px; margin: 6px 0 2px; }
.cbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; cursor: help; }
.cbadge.ok { background: var(--ok-soft); color: var(--ok); }
.cbadge.warn { background: var(--warn-soft); color: var(--warn); }
.cbadge.no { background: var(--err-soft); color: var(--err); }
.reasons { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.reasons li { font-size: 0.8rem; line-height: 1.35; padding-left: 9px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.reasons li.no { border-color: var(--err); color: var(--ink); }
.reasons li.warn { border-color: var(--warn); color: var(--ink); }
.media-card.lvl-no { border-color: #e5b3ae; }

.thumb.web { background: var(--surface-2); }
.web-face { width: 82%; height: 74%; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; overflow: hidden; }
.web-bar { display: flex; gap: 4px; padding: 5px 7px; background: var(--idle-soft); border-bottom: 1px solid var(--line); }
.web-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.web-face b { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 8px; font-size: 0.867rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-preview { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface-2); position: relative; }
.web-preview iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; transform: scale(calc(812 / 1920)); }
@media (max-width: 900px) { .web-preview iframe { transform: scale(0.18); } }
.mini-web { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.7rem; color: var(--muted); padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-sizing: border-box; border-radius: 3px; }
.item-warn { font-size: 0.8rem; font-weight: 600; margin-top: 2px; cursor: help; }
.item-warn.no { color: var(--err); }
.item-warn.warn { color: var(--warn); }
.media-card-actions { flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.media-card-actions .btn { padding: 4px 8px; }

/* ---------- Overlays ---------- */
.overlay-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.overlay-preview-col { position: sticky; top: 16px; }
.ov-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: #1d2934; border: 1px solid var(--line); }
.ov-preview > img, .ov-preview > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-preview-fake { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #24455a 0%, #1d2934 55%, #2b3a47 100%); color: rgba(255, 255, 255, 0.35); font-weight: 600; letter-spacing: 0.02em; }
.ov-host { position: absolute; inset: 0; pointer-events: none; }
.ov-pick-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-conic-gradient(#e7ebee 0% 25%, #fff 0% 50%) 50% / 12px 12px; }
.ov-pick-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 56px; height: 34px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; }
.color-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }

/* Plaatskiezer: een mini-scherm met klikbare zones */
.pos-picker { position: relative; width: 240px; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 4px; background: var(--surface-2); }
.pos-picker button { position: absolute; border: 1.5px dashed var(--line-strong); background: var(--surface); border-radius: 3px; cursor: pointer; padding: 0; }
.pos-picker button:hover { border-color: var(--accent); background: var(--accent-soft); }
.pos-picker button.on { background: var(--accent); border: 1.5px solid var(--accent); }
.pos-picker .pos-top, .pos-picker .pos-bottom { left: 6px; right: 6px; height: 14%; }
.pos-picker .pos-top { top: 6px; }
.pos-picker .pos-bottom { bottom: 6px; }
.pos-picker .pos-tl, .pos-picker .pos-tr, .pos-picker .pos-bl, .pos-picker .pos-br { width: 22%; height: 24%; }
.pos-picker .pos-tl, .pos-picker .pos-tr { top: 22%; }
.pos-picker .pos-bl, .pos-picker .pos-br { bottom: 22%; }
.pos-picker .pos-tl, .pos-picker .pos-bl { left: 6px; }
.pos-picker .pos-tr, .pos-picker .pos-br { right: 6px; }

/* Schermen aanvinken */
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
.checklist { border: 1px solid var(--line); border-radius: var(--radius-m); }
.checklist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
.checklist-head .search input { min-width: 180px; }
.checklist-body { max-height: 44vh; overflow-y: auto; padding: 6px 0; }
.checklist-group + .checklist-group { margin-top: 6px; }
.check.group { padding: 6px 14px; font-size: 0.867rem; font-weight: 650; color: var(--muted); }
.check.item { padding: 7px 14px 7px 38px; }
.check.item:hover { background: var(--surface-2); }
.check.item.on { background: var(--accent-soft); }
.check-name { font-weight: 550; }
.check-sub { flex: 1; color: var(--muted); font-size: 0.867rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Selectie in de schermenlijst */
.screen-table td.sel, .screen-table th.sel { width: 36px; padding-right: 0; }
.bulk-bar { position: sticky; bottom: 16px; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-pop); }
.bulk-bar .btn { border-color: transparent; }
.bulk-bar .btn.ghost { color: #fff; }
.bulk-bar .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.bulk-bar .spacer { flex: 1; }

.overlay-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.overlay-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.overlay-list li span { flex: 1; }
.copy-summary { padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius-s); margin-bottom: 14px; font-size: 0.933rem; }
.copy-summary p { margin: 0; }
.copy-summary p + p { margin-top: 4px; }

@media (max-width: 1100px) {
  .overlay-editor { grid-template-columns: 1fr; }
  .overlay-preview-col { position: static; }
}
.check-input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.screen-table td.t .tally { display: block; }

/* Instellingen: installatiestappen */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps li { padding-left: 4px; }
.cmd { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px 8px 8px 12px; background: var(--ink); color: #fff; border-radius: var(--radius-s); }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 0.867rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }

/* Organisatiekeuze in de zijbalk */
.group-members { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); }
.group-members li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); }
.group-members li:first-child { border-top: 0; }
.group-members .gm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.group-members .gm-name a { color: var(--ink); font-weight: 550; text-decoration: none; }
.group-members .gm-name a:hover { text-decoration: underline; }
.group-members .gm-dev { color: var(--warn); }
.tenant-pick { margin: -4px 0 14px; }
.tenant-pick select { width: 100%; }
.tenant-pick b { display: block; font-size: 0.867rem; padding: 2px 2px 0; }
.nav a.nav-platform { margin-top: 10px; border-top: 1px solid var(--sidebar-line); padding-top: 12px; }

/* Overlays met meerdere afbeeldingen of teksten */
.ov-items { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.ov-items li { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, #fff); }
.ov-items .ov-pick-thumb { width: 56px; height: 36px; flex: none; }
.ov-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.867rem; }
.ov-item-actions { display: flex; gap: 2px; }
.ov-text-row { display: flex; gap: 6px; margin-bottom: 6px; }
.ov-text-row .input { flex: 1; }

/* ===================================================================== */
/* Navigatie in blokken, zoeken en hulp                                    */
/* ===================================================================== */
.icon { flex: none; }
.nav a { justify-content: flex-start; gap: 10px; }
.nav a .nav-label { flex: 1; }
.nav a .icon { opacity: 0.75; }
.nav a.active .icon { opacity: 1; }
.nav-section { display: block; padding: 14px 10px 4px; font-size: 0.733rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sidebar-muted); }
.nav .nav-section:first-child { padding-top: 2px; }
.nav-search { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 7px 10px; border: 1px solid var(--sidebar-line); border-radius: var(--radius-s);
  background: transparent; color: var(--sidebar-muted); cursor: pointer; font-size: 0.867rem; }
.nav-search:hover { border-color: var(--sidebar-muted); color: var(--sidebar-ink); }
.nav-search span { flex: 1; text-align: left; }
.nav-search kbd, .search-foot kbd, .search-head kbd, .help-more kbd { font: 600 0.72rem/1 var(--font); padding: 3px 5px; border: 1px solid currentColor; border-radius: 4px; opacity: 0.7; }
.sidebar-foot { display: flex; flex-direction: column; gap: 12px; }
.nav-help { display: flex !important; align-items: center; gap: 6px; text-decoration: none !important; }
.nav-help:hover { color: var(--sidebar-ink) !important; }

.search-modal { overflow: hidden; }
.search-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; background: transparent; color: var(--ink); padding: 4px 0; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.search-hit { display: grid; grid-template-columns: 76px minmax(0, auto) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: var(--radius-s); cursor: pointer; }
.search-hit.on { background: var(--accent-soft); }
.search-kind { font-size: 0.75rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.search-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-sub { font-size: 0.867rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-none { padding: 18px 10px; color: var(--muted); }
.search-foot { display: flex; gap: 18px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); background: var(--surface-2); }

.help-panel .drawer-head { align-items: center; color: var(--accent); }
.help-panel .drawer-head h2 { color: var(--ink); }
.help-intro { margin: 0 0 16px; font-size: 1rem; }
.help-item { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; background: var(--surface); }
.help-item summary { cursor: pointer; padding: 10px 12px; font-weight: 600; }
.help-item p { margin: 0; padding: 0 12px 12px; color: var(--muted); }
.help-more { margin-top: 18px; }

/* Bestanden uit de opslag */
.stored-missing, .stored-loading { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.stored-missing { background: repeating-linear-gradient(135deg, #24313c 0 8px, #1d2934 8px 16px); color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; font-weight: 600; text-align: center; padding: 4px; }
.stored-loading { background: #1d2934; }

@media (max-width: 760px) {
  .nav-section, .nav-search kbd { display: none; }
  .nav-search { width: auto; margin: 0; }
  .nav a { padding: 6px 8px; }
}

/* Startgids en "wat er nu speelt" op het overzicht */
.guide { padding: 18px 20px; margin-bottom: 22px; border-top: 3px solid var(--accent); }
.guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.guide-head h2 { margin: 0 0 2px; }
.guide-head p { margin: 0; color: var(--muted); }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guide-steps li { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); align-items: flex-start; }
.guide-steps li.done { background: var(--ok-soft); border-color: transparent; }
.guide-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.867rem; background: var(--surface); border: 1.5px solid var(--line-strong); }
.guide-steps li.done .guide-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.guide-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.guide-text span { font-size: 0.867rem; color: var(--muted); }

.gallery-wrap { margin-bottom: 22px; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gallery-head h2 { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gallery-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.gallery-card:hover { border-color: var(--line-strong); }
.gallery-card .thumb { background: #000; }
.gallery-noshot { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; padding: 0 10px; text-align: center; }
.gallery-body { display: flex; gap: 8px; padding: 8px 10px; }
.gallery-body > div { min-width: 0; display: flex; flex-direction: column; }
.gallery-body b { font-weight: 600; font-size: 0.933rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-body span:not(.tally) { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-steps { grid-template-columns: 1fr; } }

/* Schermenlijst: sorteren en tegels */
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.th-sort:hover { color: var(--ink); }
.th-sort span { font-size: 0.65rem; color: var(--accent); }
.view-toggle button { display: flex; align-items: center; padding: 6px 9px; }
.screen-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.screen-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; border-top: 3px solid var(--idle); }
.screen-tile.s-online { border-top-color: var(--ok); }
.screen-tile.s-delayed { border-top-color: var(--warn); }
.screen-tile.s-offline { border-top-color: var(--err); }
.screen-tile.picked { outline: 2px solid var(--accent); outline-offset: -1px; }
.screen-tile .thumb { border: 0; padding: 0; background: #000; cursor: pointer; width: 100%; }
.tile-check { position: absolute; top: 10px; left: 8px; background: var(--surface); border-radius: 4px; padding: 3px; display: flex; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.screen-tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-top b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-playing { font-size: 0.933rem; }

/* Tabbladen (o.a. in het scherm-zijpaneel) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px -22px 18px; padding: 0 22px; }
.tabs button { border: 0; background: none; padding: 9px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
div.screenshot { overflow: hidden; }
div.screenshot img { width: 100%; height: 100%; display: block; }

/* Media als lijst */
.media-list { display: flex; flex-direction: column; }
.media-row { display: grid; grid-template-columns: 112px minmax(0, 1.4fr) 140px minmax(0, 1fr) 110px auto; gap: 14px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.media-row:last-child { border-bottom: 0; }
.media-row .thumb { border-radius: 4px; }
.media-row .thumb .kind { display: none; }
.media-row-main { min-width: 0; display: flex; flex-direction: column; }
.media-row-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-row-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-row .checks { margin: 0; }
.media-row-use { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-row-actions { display: flex; gap: 2px; }
.media-row.lvl-no { box-shadow: inset 3px 0 0 var(--err); }
@media (max-width: 1100px) { .media-row { grid-template-columns: 96px minmax(0, 1fr) auto; } .media-row-check, .media-row-use, .media-row-date { display: none; } }
.toolbar-group { display: flex; gap: 10px; align-items: center; }

/* Tags */
.tag-input { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 5px 8px; min-height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); cursor: text; }
.tag-input:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.tag-input input { flex: 1; min-width: 120px; border: 0; outline: 0; background: transparent; padding: 2px 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 0.867rem; font-weight: 550; white-space: nowrap; }
.tag button { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--muted); font-size: 0.75rem; line-height: 1; }
.tag button:hover { color: var(--err); }
.tag.small { font-size: 0.75rem; padding: 0 7px; }
.tag-list { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.media-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 3px 0; }
.expiry { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.expiry.expired { color: var(--err); }
.expiry.future { color: var(--new); }
.group-picks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 2px; }
.media-row { grid-template-columns: 112px minmax(0, 1.4fr) 140px minmax(0, 1fr) 110px auto; }

/* Periode per item in een loop */
.item-period { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 2px; }
.item-period-edit { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 6px; font-size: 0.867rem; }
.item-period-edit label { display: inline-flex; gap: 6px; align-items: center; }
.item-period-edit input { width: auto; padding: 3px 6px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 0.8rem; }

.tag-toggle { border: 0; cursor: pointer; }
.tag-toggle.off { background: var(--err-soft); color: var(--err); text-decoration: line-through; }
.cell-title .tag-list { margin-left: 6px; vertical-align: 1px; }

/* Planning: week met datums, tekenen, uitzonderingen */
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 8px; flex-wrap: wrap; }
.week-head h3 { margin: 0; }
.week-row { grid-template-columns: 64px 1fr; }
.week-scale { grid-template-columns: 64px 1fr; }
.week-day small { font-weight: 500; color: var(--faint); margin-left: 2px; }
.week-track { cursor: crosshair; user-select: none; }
.week-seg { pointer-events: none; }
.week-seg.dated { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.85); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 4px, transparent 4px 9px); }
.week-drag { position: absolute; top: 2px; bottom: 2px; background: rgba(13, 102, 113, 0.35); border: 2px dashed var(--accent); border-radius: 3px; z-index: 3; }
.legend-dated { background: repeating-linear-gradient(135deg, #8a97a3 0 3px, #c4ccd3 3px 6px) !important; }
.slot-period { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: 0.867rem; }
.slot-period label:not(.check) { display: inline-flex; gap: 6px; align-items: center; }
.slot-period input[type=date] { width: auto; padding: 3px 6px; }

/* Tijdelijke inhoud en meldingen */
.takeover-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 36px; background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.takeover-strip .lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); animation: blink 1.6s ease-in-out infinite; }
.takeover-strip a { color: var(--ink); font-weight: 600; }
.takeover-panel { margin-bottom: 22px; border-left: 4px solid var(--warn); }
.takeovers { list-style: none; margin: 0 0 10px; padding: 0; }
.takeover-panel .takeovers { margin: 0; }
.takeovers li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--warn-soft); color: var(--warn); }
.takeovers li + li { margin-top: 6px; }
.takeover-panel .takeovers li { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.takeovers li.msg-alert { background: var(--err-soft); color: var(--err); }
.takeovers li.msg-info { background: var(--new-soft); color: var(--new); }
.to-body { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.to-body span { font-size: 0.867rem; color: var(--muted); }
.msg-preview { aspect-ratio: 16 / 9; border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center; padding: 6%; position: relative; overflow: hidden; }
.msg-preview p { margin: 0; color: #fff; font-weight: 750; font-size: 1.3rem; text-align: center; line-height: 1.2; white-space: pre-wrap; }
.msg-preview.msg-alert { background: #b3261e; }
.msg-preview.msg-alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(135deg, #ffd23f 0 8px, #1b1b1b 8px 16px); }
.msg-preview.msg-info { background: #0f2451; }
.page-head .btn .icon { margin-right: 2px; }

/* Widgets */
.widget-view { position: absolute; inset: 0; }
.thumb .widget-view, .mini .widget-view { pointer-events: none; }
.item .mini { position: relative; }
.widget-face { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f4b400 0%, #f09300 100%); color: #fff; }
.widget-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.widget-type { text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.widget-type:hover { border-color: var(--accent); background: var(--accent-soft); }
.widget-type span { font-size: 0.867rem; color: var(--muted); }
.widget-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.widget-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: #000; }
.place-results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); max-height: 200px; overflow-y: auto; }
.place-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; cursor: pointer; }
.place-results button:hover { background: var(--accent-soft); }
@media (max-width: 900px) { .widget-editor { grid-template-columns: 1fr; } }

/* Voorbeeld van wat er speelt */
.preview-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-s); overflow: hidden; }
.preview-content, .preview-overlays { position: absolute; inset: 0; }
.preview-overlays { pointer-events: none; }
.preview-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.933rem; }
.preview-bar .spacer, .now .spacer { flex: 1; }
.now { align-items: center; }

/* Ontwerpen en schermindelingen */
.item-view { position: absolute; inset: 0; }
.thumb .item-view, .mini .item-view, .thumb .layout-schema, .mini .layout-schema { pointer-events: none; }
.layout-schema { position: absolute; inset: 0; background: #0f1a24; container-type: size; }
.ls-zone { position: absolute; box-sizing: border-box; border: max(1px, 0.6cqh) solid #0f1a24; background: #2c5d77; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ls-zone.empty { background: #33414e; color: #b9c4ce; }
.ls-zone span { font-size: clamp(9px, 5cqh, 20px); line-height: 1.15; font-weight: 600; padding: 0 4px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.design-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.design-template, .layout-template { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); padding: 8px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; }
.design-template:hover, .layout-template:hover, .layout-template.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dt-face, .lt-face { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.de-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.de-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-s); overflow: hidden; touch-action: none; user-select: none; }
.de-boxes { position: absolute; inset: 0; }
.de-box { position: absolute; box-sizing: border-box; border: 1px dashed rgba(255,255,255,0); cursor: move; }
.de-stage:hover .de-box { border-color: rgba(120,160,200,0.7); }
.de-box.on { border: 2px solid #3d8bfd !important; }
.de-handle { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: #3d8bfd; border: 2px solid #fff; border-radius: 2px; cursor: nwse-resize; }
.de-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #e6ebf0, #e6ebf0 8px, #d6dde4 8px, #d6dde4 16px); color: #45525e; font-size: 0.8rem; text-align: center; }
.de-props { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.de-props-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.de-props-head .spacer { flex: 1; }
.layout-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.layout-template span { font-size: 0.8rem; }
.layout-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .layout-editor { grid-template-columns: 1fr; } }

/* Rapporten */
.report-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 16px; }
.report-filters .field { margin: 0; }
.report-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.report-totals .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; display: flex; flex-direction: column; }
.report-totals .stat b { font-size: 1.6rem; font-weight: 700; }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.report-item { display: flex; align-items: center; gap: 10px; }
.report-item .mini { width: 72px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #1d2934; position: relative; flex: none; }
.report-item .mini .thumb { position: absolute; inset: 0; }
.report-bar { width: 120px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.report-bar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 700px) { .report-bar { display: none; } }

.map-title.map-status { top: 70px; }

/* Schermafdruk van een gedraaid scherm terugdraaien (vak is 16:9, beeld ook) */
img.shot-r90, .shot-r90 img, .shot-r90 video { transform: rotate(-90deg) scale(0.5625); }
img.shot-r270, .shot-r270 img, .shot-r270 video { transform: rotate(90deg) scale(0.5625); }
img.shot-r180, .shot-r180 img, .shot-r180 video { transform: rotate(180deg); }
.design-templates.shape-portrait { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.design-templates.shape-wide, .layout-templates.shape-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.layout-templates.shape-portrait { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.design-template .dt-face, .layout-template .lt-face { width: 100%; }

.layout-schema { display: flex; align-items: center; justify-content: center; }
.ls-canvas { position: relative; width: 100%; height: 100%; container-type: size; }
.ls-canvas.ls-portrait { width: auto; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; }
.ls-canvas.ls-wide { width: 100%; height: auto; aspect-ratio: 32 / 9; max-height: 100%; }
.de-stage { box-shadow: 0 0 0 1px var(--line-strong); }

/* Mappen in de mediabibliotheek */
.media-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.media-aside { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px; }
@media (max-width: 900px) { .media-layout { grid-template-columns: 1fr; } .media-aside { position: static; max-height: 260px; } }
.folder-tree ul { list-style: none; margin: 0; padding: 0; }
.ft-row { display: flex; align-items: center; border-radius: var(--radius-s); min-height: 32px; }
.ft-row.on { background: var(--accent-soft); }
.ft-row.over { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.ft-twist { width: 18px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; flex: none; color: var(--muted); }
.ft-twist::before { content: '▸'; display: inline-block; transition: transform 0.12s; }
.ft-twist.open::before { transform: rotate(90deg); }
.ft-twist.none { visibility: hidden; }
.ft-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 5px 6px; cursor: pointer; border-radius: var(--radius-s); }
.ft-row.on .ft-name { font-weight: 650; color: var(--accent); }
.ft-root .ft-name { padding-left: 6px; }
.ft-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ft-count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ft-icon { width: 16px; height: 12px; border-radius: 2px 3px 3px 3px; background: #e9b949; position: relative; flex: none; margin-top: 2px; }
.ft-icon::before { content: ''; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: #e9b949; }
.ft-icon.root { background: var(--muted); }
.ft-icon.root::before { background: var(--muted); }
.ft-icon.big { width: 30px; height: 22px; }
.ft-icon.big::before { width: 12px; height: 6px; top: -5px; }
.folder-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; min-height: 32px; }
.folder-head .spacer { flex: 1; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 1.05rem; }
.crumbs .linkish { font-size: inherit; text-decoration: none; color: var(--muted); }
.crumbs .linkish:hover { text-decoration: underline; }
.crumbs .linkish.here, .crumbs .linkish:last-child { color: var(--ink); font-weight: 650; }
.crumb-sep { color: var(--faint); }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.folder-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 10px; }
.folder-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.folder-card:hover { border-color: var(--line-strong); }
.folder-card.over { outline: 2px dashed var(--accent); background: var(--accent-soft); }
.folder-card-text { display: flex; flex-direction: column; min-width: 0; }
.folder-card-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-m); position: sticky; top: 8px; z-index: 5; }
.media-card { position: relative; }
.media-card.sel, .media-row.sel { outline: 2px solid var(--accent); outline-offset: -1px; }
.media-check { position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(255,255,255,0.92); border-radius: 4px; padding: 3px 4px; line-height: 0; opacity: 0; transition: opacity 0.12s; cursor: pointer; }
.media-card:hover .media-check, .media-card.sel .media-check, .media-check:focus-within { opacity: 1; }
.media-check input, .media-check-row { width: 17px; height: 17px; cursor: pointer; margin: 0; }
.media-row { cursor: default; }
.media-row .media-check-row { flex: none; }
.folder-pick { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px; }
.picker-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
.picker-layout.no-folders { grid-template-columns: minmax(0, 1fr); }
.picker-layout .media-aside { position: static; max-height: 56vh; }
@media (max-width: 760px) { .picker-layout { grid-template-columns: 1fr; } }
.pick-path { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.media-row { grid-template-columns: 20px 112px minmax(0, 1.4fr) 140px minmax(0, 1fr) 110px auto; }
@media (max-width: 1100px) { .media-row { grid-template-columns: 20px 96px minmax(0, 1fr) auto; } }

.ov-src { font-size: 0.75rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 6px; white-space: nowrap; }
.ov-src.group { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

/* Proefaccounts */
.trial-card { width: min(520px, 100%); }
.trial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .trial-row { grid-template-columns: 1fr; } }
.trial-limits { margin: 0 0 12px; padding-left: 18px; color: var(--ink); }
.trial-limits li { margin: 2px 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check.field span a { text-decoration: underline; }
.trial-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 22px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.trial-strip .trial-note { color: var(--muted); font-size: 0.82rem; flex: 1; min-width: 220px; }
.trial-strip a { font-weight: 600; }
.wizard-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: st; flex-wrap: wrap; }
.wizard-steps li { counter-increment: st; font-size: 0.85rem; color: var(--muted); padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.wizard-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
.wizard-steps li.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.wizard-steps li.on::before, .wizard-steps li.done::before { background: var(--accent); color: #fff; }
.wizard-body h3 { margin-top: 0; }
.wizard-list { padding-left: 18px; margin: 8px 0; }
.wizard-list li { margin: 4px 0; }
.wizard-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 640px) { .wizard-choices { grid-template-columns: 1fr; } }
.wizard-choice { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.wizard-choice span { font-size: 0.87rem; color: var(--muted); }
.wizard-choice.on, .wizard-choice:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wizard-sub { padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-m); }
.wizard-sub p:first-child { margin-top: 0; }
.wizard-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.wizard-next a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-m); color: inherit; text-decoration: none; }
.wizard-next a:hover { border-color: var(--accent); }
.wizard-next a span { font-size: 0.85rem; color: var(--muted); }

.trial-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 0.9rem; line-height: 1.4; text-align: left; cursor: pointer; }
.trial-check input { margin-top: 3px; flex: none; width: 16px; height: 16px; }

/* Aanmeldpagina met voorstelling (thema met een .json, zie components/auth-shell.js) */
:root { --hero-bg: #17232e; --hero-ink: #ffffff; --hero-muted: #b9c4ce; --hero-accent: #5fd0d9; --hero-accent-ink: #0b1b20; --brand-font: var(--font); }
.auth-page.has-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 1fr); min-height: 100vh; }
.auth-page.has-hero .auth { min-height: 100vh; }
.auth-page.has-hero .auth-card > .brand { display: none; }
.auth-hero { display: flex; flex-direction: column; gap: 36px; padding: 28px clamp(24px, 4vw, 56px); color: var(--hero-ink); background: var(--hero-bg); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.hero-logo .brand-name { font-family: var(--brand-font); font-weight: 500; font-size: 1.1rem; }
.hero-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-nav a { color: var(--hero-ink); text-decoration: none; font-weight: 500; opacity: 0.88; }
.hero-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hero-nav a.hero-nav-btn { border: 1px solid rgba(255, 255, 255, 0.7); padding: 7px 16px; border-radius: 6px; opacity: 1; }
.hero-nav a.hero-nav-btn:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.hero-kicker { margin: 0 0 14px; color: var(--hero-accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-hero h1 { margin: 0 0 18px; color: var(--hero-ink); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 700; }
.auth-hero h1 em { color: var(--hero-accent); }
.hero-intro { margin: 0 0 22px; color: var(--hero-muted); font-size: 1.08rem; line-height: 1.55; max-width: 52ch; }
.hero-features { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.hero-features li { position: relative; padding-left: 30px; line-height: 1.45; }
.hero-features li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--hero-accent) 22%, transparent); color: var(--hero-accent); font-size: 0.75rem; font-weight: 800; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn { display: inline-block; padding: 13px 24px; border-radius: 6px; background: var(--hero-accent); color: var(--hero-accent-ink); font-weight: 700; text-decoration: none; }
.hero-btn:hover { filter: brightness(1.07); }
.hero-btn.ghost { background: transparent; color: var(--hero-ink); border: 1px solid rgba(255, 255, 255, 0.6); }
.hero-btn.ghost:hover { background: rgba(255, 255, 255, 0.08); filter: none; }
.hero-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: var(--hero-muted); font-size: 0.85rem; }
.hero-foot nav, .hero-foot p { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.hero-foot a { color: var(--hero-ink); text-decoration: none; opacity: 0.85; }
.hero-foot a:hover { opacity: 1; text-decoration: underline; }
.auth-hero a:focus-visible, .auth-hero .hero-btn:focus-visible { outline: 3px solid var(--hero-accent); outline-offset: 3px; }
@media (max-width: 980px) {
  .auth-page.has-hero { grid-template-columns: minmax(0, 1fr); }
  /* Op een gsm eerst het formulier: daarvoor komen de meeste bezoekers. */
  .auth-page.has-hero .auth { min-height: 0; padding: 24px 16px 32px; order: -1; }
  .auth-page.has-hero .auth-card > .brand { display: flex; }
  .auth-hero { gap: 24px; padding: 20px 16px 24px; }
  .hero-features { display: none; }
}

.trial-license { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-s); background: var(--surface-2); font-size: 0.9rem; }
.trial-license ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.trial-license li { margin: 3px 0; }

.or-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 0.85rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.try-btn { border-color: var(--accent); color: var(--accent); font-weight: 650; }
.try-btn:hover { background: var(--accent-soft); }

.partner-benefits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.partner-benefits li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.partner-benefits li::before { content: ""; position: absolute; left: 4px; top: 0.35em; width: 12px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.partner-benefits span { color: var(--muted); font-size: 0.92rem; }
