/* =========================================================
   Kaings · Portaal-demo
   Een werktool, geen marketingpagina: rustig, leesbaar, dicht.
   Fonts komen uit /fonts.css (brand-locked).
   ========================================================= */

:root {
  --black: #030303;
  --panel: #0b0905;
  --panel-2: #120f08;
  --field: #070603;
  --line: rgba(212, 175, 55, 0.2);
  --line-soft: rgba(212, 175, 55, 0.1);
  --line-strong: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --gold-light: #f5e1a0;
  --text: #e8dcb8;
  --dim: #b5aa8c;
  --warn: #f2a184;
  --warn-bg: rgba(242, 161, 132, 0.08);
  --ok: #afd0a0;
  --serif: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--gold);
  color: #0a0803;
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.mono {
  font-family: var(--mono);
  font-weight: 300;
}

/* ---------- Demo-balk ---------- */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 0 20px;
  background: #15110a;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.demo-bar-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
}
.demo-dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.demo-bar-links {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}
.demo-bar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.demo-bar-links a:hover { color: #fff; }
.demo-bar-links .demo-cta {
  min-height: 44px;
  margin: 4px 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 500;
}
.demo-bar-links .demo-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0803;
}

/* ---------- Schil ---------- */
.shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  align-items: start;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px 16px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #080603, var(--black));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-style: normal;
  font-size: 22px;
  color: var(--gold-light);
}
.brand-name {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--gold-light);
}
.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  color: var(--dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-item svg { flex: none; width: 19px; height: 19px; }
.nav-item:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.05); }
.nav-item[aria-current="page"] {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.09);
  border-left-color: var(--gold);
}
.nav-count {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0;
  text-align: center;
  color: var(--gold-light);
}

.side-foot {
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

.mobile-head { display: none; }
.bottom-nav { display: none; }

.main {
  width: 100%;
  max-width: 1240px;
  padding: 30px 36px 80px;
}

/* ---------- Kop van een scherm ---------- */
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
h1 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.02;
  color: var(--gold-light);
}
.lede {
  margin-top: 10px;
  max-width: 620px;
  color: var(--dim);
  font-size: 19px;
}

h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--gold-light);
}
h3, .h-label {
  font-family: var(--mono);
  font-style: normal;
  line-height: 1.4;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Bouwstenen ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
}
.card-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.stack > *, .cols-2 > *, .plan-grid > *, .site-grid > *, .req-layout > * { min-width: 0; }
.gap-top { margin-top: 14px; }
.gap-top-l { margin-top: 18px; }
.gap-bottom { margin-bottom: 14px; }
.pad { padding: 16px; }
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover:not([disabled]) { border-color: var(--gold); background: rgba(212, 175, 55, 0.1); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #0a0803; }
.btn-primary:hover:not([disabled]) { background: var(--gold-light); border-color: var(--gold-light); color: #0a0803; }
.btn-warn { border-color: var(--warn); color: var(--warn); }
.btn-warn:hover:not([disabled]) { background: var(--warn); border-color: var(--warn); color: #1a0d07; }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 12px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  background: var(--field);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
}
.field textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 96px; }
.field textarea.short { min-height: 72px; }
/* Tekstvak groeit mee met de inhoud waar de browser dat kan, anders scrollt het */
@supports (field-sizing: content) {
  .field textarea { field-sizing: content; max-height: 260px; }
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--gold-light); }
.field-hint { font-family: var(--mono); font-size: 15px; line-height: 1.5; color: var(--dim); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-light);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-nieuw { color: #0a0803; background: var(--gold); border-color: var(--gold); }
.badge-behandeling { color: var(--gold-light); }
.badge-offerte { color: var(--text); border-color: rgba(232, 220, 184, 0.5); }
.badge-bevestigd, .badge-ok { color: var(--ok); border-color: rgba(175, 208, 160, 0.55); }
.badge-afgewezen { color: var(--dim); border-color: rgba(181, 170, 140, 0.4); }
.badge-warn { color: var(--warn); border-color: rgba(242, 161, 132, 0.6); }

.notice {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(175, 208, 160, 0.5);
  background: rgba(175, 208, 160, 0.07);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 15px;
}
.notice.is-on { display: block; }

.locked {
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
}
.locked strong { color: var(--gold-light); font-weight: 500; }

.role-pick { min-width: 210px; }

/* ---------- Overzicht ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat-value {
  margin-top: 8px;
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  color: var(--gold-light);
}
.stat-hint { margin-top: 6px; font-size: 16px; color: var(--dim); }

.rows > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.rows > li:first-child { border-top: 0; padding-top: 4px; }
.rows-tasks { border-top: 1px solid var(--line-soft); }
.rows-tasks > li { padding: 2px 0; }
.rows-tasks > li:first-child { padding-top: 6px; }
.row-main { display: block; min-width: 0; min-height: 44px; flex: 1 1 200px; }
.row-title { display: inline; font-size: 19px; color: var(--text); }
.row-meta { display: block; font-family: var(--mono); font-size: 13px; color: var(--dim); margin-top: 2px; }
.row-meta .due-today { color: var(--gold-light); font-weight: 500; }
.row-link { text-decoration: none; }
.row-link .row-title { border-bottom: 1px solid var(--line-strong); }
.row-link:hover .row-title { color: var(--gold-light); border-bottom-color: var(--gold); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 18px;
}
.check input {
  flex: none;
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  cursor: pointer;
}
.check input:checked {
  background: var(--gold) linear-gradient(transparent, transparent);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 4px var(--field);
}
.check input:disabled { opacity: 0.5; cursor: not-allowed; }
.check.is-done span { color: var(--dim); text-decoration: line-through; }

.log > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 17px;
}
.log > li:first-child { border-top: 0; }
.log time { font-family: var(--mono); font-size: 14px; color: var(--gold); padding-top: 2px; }
.log .log-warn { color: var(--warn); }
.empty { color: var(--dim); font-size: 17px; padding: 6px 0; }

/* ---------- Aanvragen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip:hover { color: var(--gold-light); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: #0a0803; background: var(--gold); border-color: var(--gold); }
.chip-n { font-weight: 300; letter-spacing: 0; }

.req-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.req-list { border: 1px solid var(--line); background: var(--panel); }
.req-head, .req-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) 64px 176px 76px;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
}
.req-head {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.req-row {
  width: 100%;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
}
.req-list li:first-child .req-row { border-top: 0; }
.req-row:hover { background: rgba(212, 175, 55, 0.05); }
.req-row[aria-pressed="true"] { background: rgba(212, 175, 55, 0.09); border-left-color: var(--gold); }
.req-name { font-size: 19px; color: var(--gold-light); overflow-wrap: break-word; }
.req-sub { display: block; font-family: var(--mono); font-size: 13px; color: var(--dim); margin-top: 2px; }
.req-num { font-family: var(--mono); font-size: 15px; }
.req-owner { font-family: var(--mono); font-size: 15px; color: var(--dim); }
.req-owner.is-me { color: var(--gold-light); font-weight: 500; }
.req-k { display: none; }

.detail { position: sticky; top: 20px; }
.detail-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 14px 0 16px;
  font-size: 17px;
}
.detail-facts dt { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.detail-facts dd { color: var(--text); }
.quote {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--line-strong);
  background: var(--panel-2);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
}
.detail .field { margin-bottom: 14px; }
.owner-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 18px;
}

/* ---------- Zaalplanning ---------- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--panel);
  border: 1px solid var(--line);
}
.week th, .week td {
  border: 1px solid var(--line-soft);
  vertical-align: top;
  text-align: left;
}
.week thead th {
  padding: 10px 10px 9px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--panel-2);
}
.week thead th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 300; letter-spacing: 0.02em; text-transform: none; color: var(--dim); }
.week thead th.is-today { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); }
.week tbody th {
  width: 132px;
  padding: 12px 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--gold-light);
  background: var(--panel-2);
}
.week td { padding: 6px; height: 92px; }
.week td.is-today { background: rgba(212, 175, 55, 0.035); }
.week col.col-room { width: 132px; }

.bk {
  display: block;
  padding: 7px 8px 8px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.07);
}
.bk:last-child { margin-bottom: 0; }
.bk-time { display: block; font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--gold-light); white-space: nowrap; }
.bk-name { display: block; font-size: 17px; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.bk.is-new { border-color: var(--ok); border-left-color: var(--ok); background: rgba(175, 208, 160, 0.07); }
.bk.is-overlap { border-color: var(--warn); border-left-color: var(--warn); background: var(--warn-bg); }
.bk-flag { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); }
.bk.is-new .bk-flag { color: var(--ok); }

.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.day-nav-label { text-align: center; font-size: 22px; font-style: italic; color: var(--gold-light); }
.day-nav-label small { display: block; font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--dim); }
.day-nav .btn { min-width: 48px; padding: 0 12px; font-size: 18px; letter-spacing: 0; }
.day-rooms > li { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.day-rooms > li:first-child { border-top: 0; padding-top: 4px; }
.day-room-name { font-style: italic; font-size: 20px; color: var(--gold-light); margin-bottom: 8px; }

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}
.conflict {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--warn);
  background: var(--warn-bg);
}
.conflict h3 { color: var(--warn); margin-bottom: 8px; }
.conflict p { font-size: 18px; margin-bottom: 6px; }
.conflict ul { margin: 8px 0 14px; }
.conflict li { padding: 6px 0 6px 14px; border-left: 2px solid var(--warn); margin-bottom: 6px; font-size: 18px; }
.conflict li b { font-weight: 400; color: var(--gold-light); }
.form-error { margin-top: 12px; color: var(--warn); font-family: var(--mono); font-size: 15px; }

/* ---------- Websitebeheer ---------- */
.site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}
.pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.pack .wide { grid-column: 1 / -1; }
.preview {
  padding: 24px 22px;
  background: #f4ecd9;
  color: #2a2114;
  border: 1px solid var(--line-strong);
}
.preview-title { font-size: 34px; font-style: italic; line-height: 1.05; color: #2a2114; }
.preview-intro { margin-top: 8px; font-size: 18px; color: #4a3d28; overflow-wrap: anywhere; }
.preview-items { margin-top: 16px; }
.preview-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 11px 0; border-top: 1px solid rgba(42, 33, 20, 0.2); }
.preview-items b { justify-self: start; font-weight: 400; font-size: 21px; color: #2a2114; overflow-wrap: anywhere; }
.preview-items span { grid-column: 1; font-size: 17px; color: #4a3d28; overflow-wrap: anywhere; }
.preview-items i { grid-row: 1; grid-column: 2; font-style: normal; font-family: var(--mono); font-size: 16px; font-weight: 500; color: #2a2114; padding-top: 4px; }
.preview-items .is-changed b, .preview-items .is-changed i { background: rgba(212, 175, 55, 0.45); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45); }
.live-line { margin-top: 12px; font-family: var(--mono); font-size: 14px; color: var(--dim); }
.publish-reason { margin-top: 10px; font-family: var(--mono); font-size: 15px; color: var(--dim); min-height: 22px; }

/* ---------- Team en rechten ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.role-opt { position: relative; display: block; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.role-box {
  display: block;
  height: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.role-box b { display: block; font-weight: 400; font-style: italic; font-size: 24px; color: var(--gold-light); }
.role-box small { display: block; margin-top: 6px; font-size: 16px; line-height: 1.35; color: var(--dim); }
.role-opt input:checked + .role-box { border-color: var(--gold); background: rgba(212, 175, 55, 0.1); box-shadow: inset 0 0 0 1px var(--gold); }
.role-opt input:focus-visible + .role-box { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.may > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 18px;
}
.may > li:first-child { border-top: 0; }
.yes, .no { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.yes { color: var(--ok); }
.no { color: var(--dim); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.table th, .table td { padding: 11px 12px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table thead th {
  border-top: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.table thead th.is-active { color: var(--gold-light); }
.table td.is-active { background: rgba(212, 175, 55, 0.07); }
.table tbody th { font-weight: 400; font-size: 17px; color: var(--text); }
.matrix { min-width: 560px; }
.team-table { min-width: 520px; }
.team-table .field select { min-height: 44px; }
.you { margin-left: 8px; }

/* ---------- Kleiner scherm ---------- */
@media (max-width: 1180px) {
  .req-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .req-head, .req-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 176px; }
  .req-head span:nth-child(3), .req-head span:nth-child(5),
  .req-row .req-num, .req-row .req-owner { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .shell { display: block; }
  .side { display: none; }

  .mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-head .brand { padding: 0; }
  .mobile-head .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .mobile-head .brand-name { font-size: 20px; }

  .main { padding: 22px 16px 120px; }
  .topbar { align-items: stretch; }
  .role-pick { width: 100%; }
  .lede { font-size: 18px; }

  .bottom-nav {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    background: rgba(8, 6, 3, 0.97);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav .nav-list { flex-direction: row; gap: 0; }
  .bottom-nav li { flex: 1 1 0; min-width: 0; }
  .bottom-nav .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
    padding: 6px 2px;
    border-left: 0;
    border-top: 2px solid transparent;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
  }
  .bottom-nav .nav-item[aria-current="page"] { border-top-color: var(--gold); }
  .bottom-nav .nav-count { display: none; }

  .cols-2, .plan-grid, .site-grid, .req-layout { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role-box { min-height: 0; }

  .req-head { display: none; }
  .req-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .req-row .req-c1 { grid-column: 1; }
  .req-row .req-c4 { grid-column: 2; grid-row: 1; justify-self: end; }
  .req-row .req-c2 { grid-column: 1 / -1; }
  .req-row .req-num, .req-row .req-owner { display: inline; grid-column: 1 / -1; font-size: 15px; }
  .req-row .req-num { display: none; }
  .req-k { display: inline; }
}

@media (max-width: 400px) {
  .req-row .req-c1 { grid-column: 1 / -1; }
  .req-row .req-c4 { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .demo-bar { padding: 4px 16px 6px; }
  .demo-bar-text { min-height: 36px; }
  .card { padding: 18px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .half { grid-column: auto; }
  .time-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-column: 1 / -1; }
  .stat-value { font-size: 40px; }
  .stat { padding: 16px 14px 14px; }
  .pack { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .log > li { grid-template-columns: 50px minmax(0, 1fr); }
}

@media (min-width: 521px) {
  .time-pair { display: contents; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
