/* ============================================================
   Mokumboot Marketing OS — Review Inbox prototype
   Vlakke kleuren, geen gradiënten. Status = altijd icoon + tekst.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --dark: #003333;
  --dark-2: #002B2B;
  --dark-3: #01423A;
  --accent: #6DCA85;
  --accent-strong: #2F8F52;
  --accent-text: #1E6B44; /* donkere groen voor kleine tekst (AA) */
  --accent-ink: #003333;
  --accent-soft: #E4F3E9;

  --page: #F7F3EA;          /* warme gebroken wit */
  --card: #FFFFFF;
  --canvas: #F3EEE1;

  --ink: #132E2B;
  --ink-soft: #2E4F4A;
  --muted: #4E6461;

  --line: #E6E0D2;
  --line-strong: #D5CDBA;
  --line-soft: #EFEAE0;

  --danger: #A63A21;
  --danger-soft: #F9E7E1;
  --danger-line: #EBC7BC;
  --warn: #8A5A00;
  --warn-soft: #FBF0D9;
  --warn-line: #EBD9AE;
  --ok: #1E6B44;
  --ok-soft: #E4F3E9;
  --ok-line: #BFE3CC;
  --neutral-soft: #F1EFE8;
  --neutral-line: #DEDACA;

  --ring: #1F7A45;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 42, 39, .06), 0 10px 28px rgba(16, 42, 39, .07);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Arial Bold", Arial, "Helvetica Neue", sans-serif;
  --sidebar-w: 288px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; color-scheme: light; }
body {
  margin: 0;
  height: 100%;
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: #CFE9D8; }

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--dark); color: #fff;
  padding: 12px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.noscript { padding: 16px; text-align: center; font-weight: 700; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-xs { width: 15px; height: 15px; }

/* ---------- App-schil ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Zijbalk ---------- */
.sidebar {
  background: var(--dark);
  color: #E8F3EC;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  --ring: #8FE0A6;
}
.sidebar-top { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }

.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 2px; border-radius: 10px; }
.logo-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.logo-mark .icon { width: 21px; height: 21px; }
.wordmark-name { display: block; font-family: var(--font-display); font-weight: 900; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; }
.wordmark-sub { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8FE0A6; }

.brand-switch { margin-top: 14px; }
.field-label {
  display: block; margin: 0 0 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  height: 44px; width: 100%;
  padding: 0 34px 0 12px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-dark select { background: var(--dark-3); border-color: rgba(255, 255, 255, .18); color: #EAF6EE; }
.select-dark::after { border-color: #8FB3A7; }

.nav { flex: 1; padding: 12px 10px 16px; overflow-y: auto; }
.nav-group {
  padding: 14px 10px 6px;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #7FA396;
}
.nav ul { display: grid; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px;
  padding: 8px 10px;
  border: 0; border-radius: 10px;
  background: none; color: #CFE3DA;
  text-align: left; text-decoration: none;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
}
.nav-item .icon { color: #8FB3A7; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.is-active { background: rgba(109, 202, 133, .14); color: #CFEEDC; }
.nav-item.is-active .icon { color: var(--accent); }
.nav-item.is-active::before {
  content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 2px; background: var(--accent);
}
.nav-badge {
  margin-left: auto;
  min-width: 24px; height: 22px;
  display: inline-grid; place-items: center;
  padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #E8F3EC;
  font-size: 11.5px; font-weight: 800;
}
.nav-item.is-active .nav-badge { background: var(--accent); color: var(--accent-ink); }

.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 10px; }
.sidebar-note { font-size: 11.5px; line-height: 1.45; color: #7FA396; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  background: none; color: var(--ink);
  font-weight: 800; font-size: 14px; line-height: 1.2;
  cursor: pointer;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); --ring: #003333; }
.btn-primary:not(:disabled):hover { background: #5FC178; }
.btn-outline { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:not(:disabled):hover { background: #F6F2E8; }
.btn-danger-outline { background: var(--card); border-color: var(--danger-line); color: var(--danger); --ring: var(--danger); }
.btn-danger-outline:not(:disabled):hover { background: var(--danger-soft); }
.btn-danger { background: var(--danger); color: #fff; --ring: #fff; }
.btn-danger:not(:disabled):hover { background: #8F3018; }
.btn-dark { background: var(--dark); color: #fff; --ring: var(--accent); }
.btn-dark:not(:disabled):hover { background: #00423F; }
.btn-ghost-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #E8F3EC; --ring: #8FE0A6; }
.btn-ghost-dark:not(:disabled):hover { background: rgba(255, 255, 255, .14); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--card); color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: #F6F2E8; }
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; border: 2px solid var(--card);
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}

.avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: var(--dark); color: #B9ECC9;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}

/* ---------- Kopbal ---------- */
.topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 20px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }
.page-title { font-size: 26px; }
.page-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.topbar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search { position: relative; }
.search .icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted); pointer-events: none;
}
.search input {
  height: 44px; width: 250px;
  padding: 0 12px 0 38px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--card); color: var(--ink);
  font: inherit;
}
.search input::placeholder { color: var(--muted); }

/* ---------- Meldingen ---------- */
.notif-wrap { position: relative; }
.popover {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 300px; z-index: 40;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.popover h2 { font-size: 14px; margin-bottom: 8px; }
.notif-list { display: grid; gap: 10px; }
.notif-list li { padding: 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: #FCFAF4; }
.notif-list p { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.notif-time { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* ---------- Filterbalk ---------- */
.filterbar {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.filter-field { display: grid; gap: 6px; min-width: 180px; }
.filter-count { margin-left: auto; align-self: flex-end; padding-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Sneltoetsenhint ---------- */
.kbd-hint {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  padding: 8px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.kbd-hint-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.kbd-group { display: inline-flex; align-items: center; gap: 5px; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px;
  background: #FAF7EF; color: var(--ink);
  font: 700 11px/1 var(--font-body);
}

/* ---------- Werkgebied ---------- */
.workspace {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(300px, 368px);
  gap: 16px;
  padding: 16px 20px 20px;
  overflow: hidden;
}
.col {
  min-height: 0;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.col-scroll {
  flex: 1; min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.col-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 2;
  background: var(--card);
}
.col-head h2 { font-size: 17px; }
.col-sub { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  border: 1px solid var(--neutral-line); border-radius: 999px;
  background: var(--neutral-soft); color: var(--ink-soft);
  font-size: 11.5px; font-weight: 800;
  white-space: nowrap;
}
.chip .icon { width: 13px; height: 13px; }
.tone-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.tone-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.tone-danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.tone-open { background: #EDF2EF; border-color: #D7E0DB; color: #3F5A56; }
.tone-dark { background: #E9EFEA; border-color: #CBDAD2; color: #1F4438; }

/* ---------- Wachtrij ---------- */
.queue-list { display: grid; gap: 10px; padding: 12px; }
.queue-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
  width: 100%; padding: 12px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line); border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.queue-item:hover { border-color: var(--line-strong); background: #FCFAF4; }
.queue-item.is-selected {
  border-color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent-strong);
  background: #F4FAF5;
}
.queue-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--dark); color: #B9ECC9;
  display: grid; place-items: center;
}
.queue-type {
  display: block; margin-bottom: 3px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.queue-title { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.queue-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.queue-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Detail: kop en tabs ---------- */
.detail-head { padding: 16px 18px 0; }
.detail-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.detail-kicker .icon { color: var(--accent-strong); }
.detail-title { margin-top: 6px; font-size: 21px; overflow-wrap: anywhere; }
.detail-summary { margin-top: 6px; max-width: 60ch; font-size: 13.5px; color: var(--muted); }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding-bottom: 14px; }

.tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1.5px solid var(--line-soft); }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 8px 12px;
  border: 0; background: none;
  color: var(--muted); font-weight: 800; font-size: 13.5px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--dark); border-color: var(--accent-strong); }
.tab .icon { width: 16px; height: 16px; }

.tabpanels { padding: 16px 18px 20px; }
.tabpanel { animation: fade .18s ease; }
.tabpanel:focus-visible { outline-offset: -2px; }
@keyframes fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Preview: omlijsting ---------- */
.preview-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin-bottom: 12px;
  font-size: 12.5px; color: var(--muted);
}
.preview-note .icon { margin-top: 1px; }
.preview-stage {
  display: flex; justify-content: center;
  background: var(--canvas);
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 20px;
}
.artefact {
  width: 100%; max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(16, 42, 39, .05);
}

/* Preview: zoekresultaat (SEO) */
.serp { padding: 16px; display: grid; gap: 10px; }
.serp-top { display: flex; align-items: center; gap: 10px; }
.serp-fav {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--dark); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.serp-site { display: grid; }
.serp-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.serp-url { font-size: 12px; color: var(--muted); }
.serp-title { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; color: #1B49C8; overflow-wrap: anywhere; }
.serp-desc { font-size: 13.5px; line-height: 1.5; color: #3F4A47; overflow-wrap: anywhere; }
.serp-links { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.serp-links span {
  padding: 3px 8px; border: 1px solid #D9E2FB; border-radius: 999px;
  background: #EFF3FE; color: #1B49C8;
  font-size: 12px; font-weight: 600;
}

/* Preview: Instagram-post */
.ig { max-width: 340px; overflow: hidden; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--dark); color: #B9ECC9;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.ig-id { display: grid; }
.ig-handle { font-size: 13px; font-weight: 800; }
.ig-loc { font-size: 11.5px; color: var(--muted); }
.ig-schedule { margin-left: auto; }
.ig-canvas { position: relative; aspect-ratio: 1 / 1; background: #05261F; overflow: hidden; }
.ig-horizon { position: absolute; left: 0; right: 0; top: 58%; height: 2px; background: rgba(233, 246, 238, .22); }
.light { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); }
.light-dim { width: 5px; height: 5px; opacity: .35; }
.light-a { background: #6DCA85; }
.light-b { background: #F2C14E; }
.light-c { background: #EAF6EE; }
.light-d { background: #FF8A5B; }
.ig-boat {
  position: absolute; top: calc(58% - 14px); right: 16%;
  width: 52px; height: 14px;
  background: #01130F; border-radius: 3px 10px 10px 3px;
}
.ig-boat::after {
  content: ""; position: absolute; left: 12px; top: -7px;
  width: 16px; height: 7px;
  background: #01130F; border-radius: 2px;
}
.ig-overlay { position: absolute; left: 14px; right: 14px; top: 14px; color: #EAF6EE; }
.ov-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8FE0A6; }
.ov-title { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.05; margin-top: 4px; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.ov-sub { margin-top: 5px; font-size: 12.5px; color: #CFE3DA; }
.ig-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.ig-actions { display: flex; gap: 14px; color: var(--ink-soft); }
.ig-actions .icon { width: 20px; height: 20px; }
.ig-likes { font-size: 13px; font-weight: 800; }
.ig-caption { font-size: 13.5px; line-height: 1.5; }
.ig-caption strong { font-weight: 800; }
.ig-tags { font-size: 13px; font-weight: 700; color: var(--accent-text); overflow-wrap: anywhere; }
.ig-comments { font-size: 12.5px; color: var(--muted); }

/* Preview: landingspagina-hero */
.lp { max-width: 540px; overflow: hidden; }
.lp-nav { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.lp-logo { font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--dark); }
.lp-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lp-cta {
  margin-left: auto;
  padding: 8px 12px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.lp-hero { padding: 22px 18px; display: grid; gap: 10px; }
.lp-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.lp-headline { font-family: var(--font-display); font-weight: 900; font-size: 25px; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); }
.lp-sub { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.lp-btn {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 9px 16px;
  border-radius: 11px;
  font-size: 13.5px; font-weight: 800;
}
.lp-btn-primary { background: var(--dark); color: #fff; }
.lp-btn-ghost { border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); }
.lp-trust { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lp-trust .star { color: #C77B0E; font-size: 14px; }
.lp-visual { position: relative; height: 120px; background: #0B3B33; }
.lv-line { position: absolute; left: 0; right: 0; bottom: 34%; height: 2px; background: rgba(233, 246, 238, .2); }
.lv-boat { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: 44px; line-height: 1; }
.lv-chip {
  position: absolute; right: 12px; bottom: 12px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); color: #EAF6EE;
  font-size: 11px; font-weight: 700;
}

/* ---------- Wijzigingen (diff) ---------- */
.changes-head { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.changes-count { font-size: 13.5px; font-weight: 800; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-mark {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  font-size: 12px; font-weight: 800;
}
.legend-del .legend-mark { background: var(--danger-soft); color: var(--danger); }
.legend-ins .legend-mark { background: var(--ok-soft); color: var(--ok); }

.change { margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.change-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #FAF7EF; border-bottom: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 800;
}
.change-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
.change-row + .change-row { border-top: 1px solid var(--line-soft); }
.side-chip {
  align-self: start; justify-self: start;
  display: inline-grid; place-items: center;
  height: 22px; padding: 0 8px;
  border: 1px solid var(--neutral-line); border-radius: 7px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.side-voor { background: var(--neutral-soft); color: var(--ink-soft); }
.side-na { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.diff-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.diff-del {
  background: var(--danger-soft); color: #6E2413;
  text-decoration: line-through; text-decoration-thickness: 2px;
  border-radius: 3px; padding: 1px 2px;
}
.diff-ins {
  background: var(--ok-soft); color: var(--ok);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
  border-radius: 3px; padding: 1px 2px;
}

/* ---------- Versies ---------- */
.versions { display: grid; gap: 10px; }
.version { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.version.is-current { border-color: var(--ok-line); background: #F6FBF7; }
.version-tag {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 28px; padding: 0 8px;
  border-radius: 8px;
  background: var(--dark); color: #CFE3DA;
  font-size: 12.5px; font-weight: 800;
}
.is-current .version-tag { background: var(--accent); color: var(--accent-ink); }
.version-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.version-head strong { font-size: 13.5px; }
.version-date { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.version-note { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Onderbouwing ---------- */
.decision { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.decision h3 { font-size: 15px; }
.decision-hint { margin-top: 4px; font-size: 12px; color: var(--muted); }
.btn-row {
  display: grid; gap: 8px; margin-top: 12px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "reject approve" "feedback feedback";
}
#rejectBtn { grid-area: reject; }
#approveBtn { grid-area: approve; }
#feedbackBtn { grid-area: feedback; }

.decision-banner {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 12px; padding: 11px 13px;
  border: 1px solid; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
}
.decision-banner .icon { margin-top: 2px; }
.decision-banner.tone-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.decision-banner.tone-danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }

.feedback-form {
  display: grid; gap: 8px;
  margin-top: 12px; padding: 12px;
  border: 1.5px solid var(--accent-strong); border-radius: 12px;
  background: #F4FAF5;
}
.feedback-form h4 { font-size: 13.5px; }
.feedback-form label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.feedback-form textarea {
  width: 100%; min-height: 88px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: var(--card); color: var(--ink);
  font: inherit; resize: vertical;
}
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.form-actions .btn { padding: 8px 12px; font-size: 13px; }

/* De rechterkolom heeft een extra wikkel rond kop + scrollgebied */
#evidenceContent { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.facts { padding: 0; }
.fact-section { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.fact-section:last-child { border-bottom: 0; }
.fact-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; }
.fact-head .icon { color: var(--accent-strong); }
.fact-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.fact-list { display: grid; gap: 9px; }
.fact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.fact-list .icon { margin-top: 2px; color: var(--muted); }
.src-label { font-weight: 600; }
.src-date { font-size: 12px; font-weight: 600; color: var(--muted); }

.impact {
  display: grid; gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--accent-strong); border-radius: 14px;
  background: #F4FAF5;
}
.impact-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text);
}
.impact-value { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--dark); }
.impact-detail { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }

.check-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: start; }
.check-icon { margin-top: 1px; }
.check.ok .check-icon { color: var(--ok); }
.check.warn .check-icon { color: var(--warn); }
.check-note { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.check-state {
  padding: 2px 8px; border: 1px solid; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.check.ok .check-state { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.check.warn .check-state { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }

/* ---------- Tijdlijn ---------- */
.activity-block { padding: 16px 18px 20px; border-top: 1px solid var(--line-soft); }
.activity-block h3 { margin-bottom: 12px; font-size: 15px; }
.activity li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.activity li::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px;
  width: 2px; background: var(--line-soft);
}
.activity li:last-child::before { display: none; }
.activity-icon {
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--neutral-line);
  background: var(--neutral-soft); color: var(--ink-soft);
}
.activity-icon .icon { width: 14px; height: 14px; }
.kind-ai { background: #E9EFEA; border-color: #CBDAD2; color: #1F4438; }
.kind-feedback { background: #EAF1FB; border-color: #CBD9F2; color: #274F9E; }
.kind-goedgekeurd { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.kind-afgewezen { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.activity-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.activity-text strong { color: var(--ink); }
.activity-time { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- Lege states ---------- */
.empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  border: 1px solid var(--neutral-line);
  background: var(--neutral-soft); color: var(--muted);
}
.empty-icon .icon { width: 24px; height: 24px; }
.empty h2, .empty h3 { font-size: 16px; color: var(--ink); }
.empty p { max-width: 36ch; font-size: 13.5px; }
.empty .btn { margin-top: 6px; }
.empty-lg { padding: 60px 24px; }

/* ---------- Dialoog ---------- */
.confirm {
  border: 0; padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(3, 26, 24, .35);
  max-width: 430px; width: calc(100% - 40px);
  max-height: min(84vh, 560px); overflow: auto;
}
.confirm::backdrop { background: rgba(2, 26, 23, .55); }
.confirm-inner { padding: 22px; display: grid; gap: 10px; }
.confirm-inner h2 { font-size: 19px; }
.confirm-inner p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.dialog-actions .btn { min-width: 130px; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  :root { --sidebar-w: 252px; }
  .workspace { grid-template-columns: 220px minmax(340px, 1fr) 300px; gap: 12px; padding: 14px 16px 16px; }
}

@media (max-width: 900px) {
  .app { display: block; height: auto; overflow: visible; }
  .shell { height: auto; overflow: visible; }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    height: auto; overflow: visible;
    padding: 14px 14px 22px;
  }
  .col, .col-scroll { max-height: none; overflow: visible; }
  .sidebar { overflow: visible; }
  .sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .brand-switch { margin-top: 0; min-width: 220px; }
  .nav { overflow: visible; }
  .nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-item { width: auto; }
  .nav-item.is-active::before { display: none; }
  .sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .btn-row { grid-template-columns: 1fr 1fr; grid-template-areas: "reject approve" "feedback feedback"; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 14px 12px; }
  .filterbar { padding: 12px 14px; }
  .kbd-hint { padding: 8px 14px; }
  .workspace { padding: 12px 12px 20px; gap: 12px; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .filter-field { flex: 1 1 46%; min-width: 0; }
  .filter-count { margin-left: 0; align-self: center; padding-bottom: 0; width: 100%; }
  .page-title { font-size: 22px; }
  .detail-title { font-size: 18px; }
  .tabpanels { padding: 14px 14px 18px; }
  .btn-row { grid-template-columns: 1fr; grid-template-areas: "reject" "feedback" "approve"; }
  .change-row { grid-template-columns: 1fr; gap: 6px; }
  .dialog-actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .filter-field { flex: 1 1 100%; }
  .brand-switch { min-width: 0; width: 100%; }
  .popover { width: min(300px, calc(100vw - 24px)); }
  .kbd-hint { gap: 6px; font-size: 12px; }
  .empty-lg { padding: 44px 16px; }
}

/* ---------- Verminderde beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

