:root {
  color-scheme: light;
  --green-950: #0b352c;
  --green-900: #10483b;
  --green-800: #165c4b;
  --green-700: #1d725b;
  --green-100: #dff0e9;
  --green-50: #f1f8f5;
  --cream: #f5f1e8;
  --ink: #17211e;
  --muted: #64716d;
  --line: #dbe3df;
  --white: #ffffff;
  --red: #b23b31;
  --amber: #d89121;
  --blue: #2f6690;
  --shadow: 0 16px 42px rgba(12, 45, 37, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #edf2ef; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: 14px 22px; color: white; background: var(--green-950); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto;
  border-radius: 12px; background: white;
}
.brand strong { display: block; font-size: 1.05rem; }
.brand small { color: #bdd8cd; }
.nav { display: flex; flex-wrap: wrap; gap: 7px; }
.nav button {
  border: 0; border-radius: 999px; padding: 9px 14px; color: #cce0d8; background: transparent;
}
.nav button.active, .nav button:hover { color: white; background: rgba(255,255,255,.14); }
.status-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #d9ebe4; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #58d68d; box-shadow: 0 0 0 4px rgba(88,214,141,.14); }

.page { max-width: 1420px; margin: 0 auto; padding: 28px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 2.5vw, 2.5rem); letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); }
.demo-label { padding: 7px 10px; border-radius: 8px; color: #704c12; background: #fff2cc; font-size: .83rem; font-weight: 750; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 26px rgba(20,58,48,.05); }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { display: block; margin-top: 8px; font-size: 1.75rem; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.card > summary { cursor: pointer; list-style: none; }
.card > summary::-webkit-details-marker { display: none; }
.card > summary::after { content: "⌄"; margin-left: auto; color: var(--muted); font-size: 1.2rem; }
.card[open] > summary::after { transform: rotate(180deg); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 1.12rem; }
.card-head small { color: var(--muted); }
.card-body { padding: 20px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; color: #40504b; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cbd6d1; border-radius: 10px; padding: 10px 11px; background: white; color: var(--ink);
}
.field textarea { min-height: 92px; resize: vertical; }
.field-note { color: var(--muted); }
.target-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.check { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; font-size: .86rem; }
.check input { width: auto; }
.inline-form { display: flex; gap: 9px; }
.inline-form input { flex: 1; min-width: 0; border: 1px solid #cbd6d1; border-radius: 10px; padding: 10px 11px; }
.top-gap { margin-top: 18px; }
.top-mini { margin-top: 7px !important; }
.align-end { align-self: end; }
.muted { margin-top: 0; color: var(--muted); line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(29,114,91,.16); border-color: var(--green-700); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.btn { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 760; color: white; background: var(--green-800); }
.btn:hover { background: var(--green-900); }
.btn.secondary { color: var(--green-900); background: var(--green-100); }
.btn.ghost { color: #4b5a55; background: #eff3f1; }
.btn.danger { color: #8d2f27; background: #fae7e5; }
.btn.small { padding: 7px 10px; font-size: .82rem; }

.item-list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.item strong { display: block; margin-bottom: 4px; }
.item p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.item-actions { display: flex; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-items: center; margin-right: 5px; padding: 3px 7px; border-radius: 999px; color: var(--green-900); background: var(--green-100); font-size: .72rem; font-weight: 800; }
.badge.red { color: #852b24; background: #f8dfdc; }
.badge.amber { color: #704c12; background: #fff0c8; }
.empty { padding: 22px; border: 1px dashed #b9c8c2; border-radius: 12px; text-align: center; color: var(--muted); background: var(--green-50); }

.screen-shell { display: grid; grid-template-columns: minmax(250px, 440px) minmax(320px, 1fr); gap: 24px; align-items: start; }
.screen-frame {
  position: sticky; top: 95px; width: min(100%, 440px); aspect-ratio: 9 / 16; overflow: hidden;
  border: 12px solid #111; border-radius: 18px; background: #fff; box-shadow: 0 28px 58px rgba(0,0,0,.24);
}
.display { height: 100%; display: grid; grid-template-rows: 1fr auto auto; overflow: hidden; background: white; }
.poster-stage { position: relative; min-height: 0; overflow: hidden; background: var(--cream); }
.poster-image { width: 100%; height: 100%; object-fit: contain; background: white; }
.poster {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; padding: 11%; color: white;
  background: linear-gradient(145deg, var(--poster-color), color-mix(in srgb, var(--poster-color) 68%, #081f19));
}
.poster::after { content: ""; position: absolute; right: -18%; bottom: -12%; width: 64%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.22); border-radius: 48% 52% 62% 38%; transform: rotate(18deg); }
.poster-kicker { position: relative; z-index: 1; width: max-content; padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: clamp(.55rem,1.4vw,.8rem); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.poster h2 { position: relative; z-index: 1; max-width: 90%; margin: 0; font-size: clamp(1.8rem,5vw,3.5rem); line-height: .98; letter-spacing: -.055em; }
.poster p { position: relative; z-index: 1; max-width: 85%; margin: 0; font-size: clamp(.85rem,2vw,1.3rem); line-height: 1.35; }
.poster-count { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 5px 8px; border-radius: 8px; background: rgba(0,0,0,.25); color: white; font-size: .72rem; }
.ticker { overflow: hidden; color: white; background: #cf7f00; white-space: nowrap; }
.ticker-track { display: inline-block; min-width: 100%; padding: 10px 0; font-weight: 850; animation: ticker 18s linear infinite; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.room-strip { padding: 13px 16px 15px; color: white; background: var(--green-950); }
.room-strip h3 { margin: 0 0 7px; color: #9fd0be; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.room-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: clamp(.68rem,1.5vw,.9rem); }
.room-row:first-of-type { border-top: 0; }
.room-row span:last-child { color: #c9ded6; font-weight: 800; }
.room-row.started, .room-row.started span:last-child { color: #ffc857; }
.rules { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.screen-empty { margin: 18px; }
.module-poster { background: linear-gradient(145deg,#174b40,#0b2922); }
.poll-poster { background: linear-gradient(145deg,#2f6690,#17364e); }
.volunteer-poster { background: linear-gradient(145deg,#a86518,#603508); }
.poster-options { position: relative; z-index: 1; display: grid; gap: 8px; }
.poster-options span { padding: 9px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; background: rgba(255,255,255,.12); font-weight: 800; }
.screen-controls { display: grid; gap: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: white; color: #44534e; }
.choice.active { border-color: var(--green-700); color: white; background: var(--green-800); }
.hint { padding: 14px; border-left: 4px solid var(--blue); border-radius: 8px; color: #304c60; background: #eaf3f9; line-height: 1.45; }
.hint.warning { border-color: var(--amber); color: #6c4b16; background: #fff5dc; }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; font-weight: 720; }
.switch-row input { width: 19px; height: 19px; accent-color: var(--green-700); }

.idea-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: start; }
.idea-intro { padding: 28px; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--green-900), var(--green-700)); box-shadow: var(--shadow); }
.idea-intro h1 { margin: 0 0 12px; font-size: clamp(2rem,4vw,3.4rem); line-height: 1; letter-spacing: -.05em; }
.idea-intro p { color: #d7ebe3; line-height: 1.6; }
.idea-intro strong { color: white; }
.public-logo { width: 86px; height: 86px; object-fit: contain; border-radius: 18px; background: white; }
.public-module { margin-top: 24px; }
.public-module h2 { margin-bottom: 10px; }
.public-block { margin-top: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.09); }
.public-block p { margin: 7px 0 10px; }
.vote-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.vote { border: 1px solid rgba(255,255,255,.55); border-radius: 8px; padding: 8px 10px; color: white; background: rgba(255,255,255,.13); font-weight: 750; }
.vote:hover { background: rgba(255,255,255,.24); }
.success { padding: 18px; border-radius: 12px; color: #185d49; background: #ddf3e9; font-weight: 750; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .status-pill { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .workspace, .screen-shell, .idea-wrap { grid-template-columns: 1fr; }
  .screen-frame { position: relative; top: 0; margin: 0 auto; }
}
@media (max-width: 560px) {
  .page { padding: 18px 14px; }
  .brand { min-width: 0; }
  .stats, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .item { grid-template-columns: 1fr; }
  .target-grid, .module-grid { grid-template-columns: 1fr; }
}

/* v1.0.0 beheerstructuur */
.version-chip { align-self: flex-start; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--green-900); font-size: .82rem; font-weight: 850; box-shadow: 0 6px 18px rgba(20,58,48,.05); }
.admin-stack { display: grid; gap: 28px; }
.role-section { display: grid; gap: 14px; }
.role-head { display: flex; align-items: center; gap: 14px; padding: 0 2px; }
.role-head h2 { margin: 0; font-size: 1.18rem; }
.role-head p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.role-badge { display: inline-flex; min-width: 92px; justify-content: center; padding: 7px 10px; border-radius: 999px; background: #dff1ea; color: #135443; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.role-badge.beheer { background: #e8eef7; color: #274d78; }

html.test-environment::before {
  content: "TESTOMGEVING";
  position: fixed;
  z-index: 10000;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font: 800 13px/1 system-ui, sans-serif;
  letter-spacing: .06em;
  box-shadow: 0 3px 14px #0005;
  pointer-events: none;
}
.role-badge.super { background: #efe7f6; color: #5b3477; }
.screen-settings-list { display: grid; gap: 10px; }
.screen-setting { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(320px,1.3fr); gap: 16px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.screen-setting > div:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.setting-toggles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.mini-switch { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .82rem; font-weight: 720; }
.mini-switch input { width: 18px; height: 18px; accent-color: var(--green-700); }
.system-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.system-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.system-grid span { display: block; color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.system-grid strong { display: block; margin-top: 5px; }

/* Schermoverlay en beeldvullende posters */
.poster-image { object-fit: cover; background: transparent; }
.screen-info-bar { position: absolute; z-index: 4; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.screen-info-bar span { padding: 6px 9px; border-radius: 999px; color: white; background: rgba(8,31,25,.78); backdrop-filter: blur(5px); font-size: clamp(.58rem,1.4vw,.78rem); font-weight: 780; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.screen-info-bar .info-time { font-variant-numeric: tabular-nums; font-weight: 900; }
.weather-warning { position: absolute; z-index: 5; left: 10px; right: 10px; top: 48px; padding: 8px 10px; border-radius: 9px; color: #fff; background: rgba(163,47,34,.94); font-size: clamp(.62rem,1.45vw,.82rem); font-weight: 850; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

@media (max-width: 760px) {
  .screen-setting { grid-template-columns: 1fr; }
  .setting-toggles, .system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .role-head { align-items: flex-start; }
}
@media (max-width: 480px) {
  .setting-toggles, .system-grid { grid-template-columns: 1fr; }
  .role-head { display: grid; }
}
.drive-review-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}.drive-review-notice>span{flex:1 1 360px}.drive-review-notice .btn{white-space:nowrap}
