/* CORE Assessment — sobere basisstijl.
   Bewust ingetogen: donker, rustig, weinig kleur (docs/05). De volledige
   vormgeving volgt in de redesignronde; dit is de werkbare basis. */

:root {
  --bg: #0d0f12;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --line: #262b34;
  --text: #e6e8ec;
  --muted: #949aa6;
  --accent: #c7a76b;
  --accent-soft: rgba(199, 167, 107, 0.12);
  --critical: #b4483f;
  --ok: #4f8a6b;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
}

.boot {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}

/* ------------------------------------------------------------ aanmeldscherm */

.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.brand {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.code-input {
  font-size: 26px;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

button {
  width: 100%;
  padding: 12px 16px;
  background: var(--accent);
  color: #16130c;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.06);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.error {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(180, 72, 63, 0.12);
  border: 1px solid rgba(180, 72, 63, 0.35);
  border-radius: 8px;
  color: #e5a49e;
  font-size: 14px;
}

.notice {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(199, 167, 107, 0.28);
  border-radius: 8px;
  font-size: 14px;
}

.secret {
  display: block;
  margin: 10px 0 18px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
  user-select: all;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------- hoofdindeling */

.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}

.sidebar h1 {
  margin: 0 0 24px 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav a {
  display: block;
  padding: 9px 12px;
  margin-bottom: 2px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.main {
  padding: 32px 36px;
  max-width: 1100px;
}

.main h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.main .lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.user-bar button {
  width: auto;
  padding: 7px 14px;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .main {
    padding: 22px 18px;
  }
}


/* ================================================== aanvullende componenten */

.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--muted); }
.detail-value { text-align: right; }

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button-row button, .button-link { width: auto; }

.button-link {
  display: inline-block;
  padding: 12px 18px;
  background: var(--accent);
  color: #16130c;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

button.small { padding: 6px 12px; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.chip {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
}

.chip-accent { border-color: rgba(199,167,107,.4); color: var(--accent); }

.structure-building { margin-bottom: 18px; }
.structure-building h4 { margin: 0 0 8px; font-size: 14px; }
.structure-floor { padding: 10px 0; border-top: 1px solid var(--line); }
.structure-floor-name { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ balken */

.bars { margin: 4px 0; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.bar-label { width: 130px; flex-shrink: 0; color: var(--muted); }
.bar-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; }
.bar-good { background: #4f8a6b; }
.bar-fair { background: #9a8a4a; }
.bar-weak { background: #b98246; }
.bar-poor { background: #a8564c; }
.bar-unknown { background: repeating-linear-gradient(90deg,#232830 0 6px,#2b313a 6px 12px); }
.bar-value { width: 96px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- inspectie */

.inspection-head { display: flex; justify-content: space-between; align-items: flex-start; }
.inspection-status { font-size: 18px; font-weight: 600; margin-top: 4px; }
.inspection-score { text-align: right; }

.finding-row { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.finding-row-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.finding-row-head:hover { background: var(--surface-2); }
.finding-code { color: var(--muted); font-size: 12px; min-width: 56px; }
.finding-title { flex: 1; font-size: 14px; }
.finding-detail { padding: 0 14px 14px; }

.tag {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag-draft { color: var(--accent); border-color: rgba(199,167,107,.4); }

.risk-kritiek { border-left: 3px solid var(--critical); }
.risk-hoog { border-left: 3px solid #b98246; }
.risk-verhoogd { border-left: 3px solid #9a8a4a; }

.weights { margin: 12px 0; }
.weight-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.weight-label { width: 150px; font-size: 13px; color: var(--muted); }
.weight-row input[type=range] { flex: 1; margin: 0; }
.weight-value { width: 20px; text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ klantportaal */

.portal-score { display: flex; gap: 26px; align-items: center; margin-bottom: 18px; }
.portal-score-value { font-size: 52px; font-weight: 300; line-height: 1; }
.portal-score-max { color: var(--muted); font-size: 13px; }
.portal-score-label { font-size: 20px; color: var(--accent); font-weight: 600; }
.portal-critical li { margin-bottom: 8px; }

.portal-tile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.portal-tile:hover { background: var(--surface-2); }
.portal-tile-title { font-size: 16px; margin-bottom: 4px; }

.phase { margin-bottom: 20px; }
.phase h4 { margin: 0 0 10px; font-size: 14px; color: var(--accent); }

.measure {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
}

.measure-main { flex: 1; }
.measure-title { font-size: 14px; margin-bottom: 4px; }
.measure-tags { font-size: 12px; color: var(--muted); margin-top: 6px; }
.measure-status { width: 150px; margin: 0; flex-shrink: 0; }

/* ------------------------------------------------------ tabletwerkstroom */

.field {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.field-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.field-ref { font-size: 13px; color: var(--muted); }
.field-obj { font-size: 16px; font-weight: 600; }

.field-exit { width: auto; padding: 10px 18px; font-size: 14px; }

.conn { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; }
.conn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.conn-offline .conn-dot { background: #b98246; }
.conn-offline { color: #d8a765; }

.field-cats {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.field-cat {
  width: auto;
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}

.field-cat.active { background: var(--accent); color: #16130c; border-color: var(--accent); }
.field-cat.done::after { content: ' ✓'; color: var(--ok); }
.field-cat.active.done::after { color: #16130c; }

.field-body { flex: 1; padding: 18px; }
.field-label { font-size: 13px; color: var(--muted); }
.field-room { font-size: 17px; padding: 14px; }

.field-status { display: flex; gap: 10px; margin-bottom: 20px; }
.field-mark { flex: 1; padding: 16px; font-size: 15px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.field-mark.active { background: var(--ok); color: #0a1410; border-color: var(--ok); }
.field-mark.secondary.active { background: #6b5a3a; color: #fff; }

.field-counts { display: flex; gap: 14px; }
.field-counter { flex: 1; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.field-counter-value { font-size: 26px; font-weight: 600; }
.field-counter-label { font-size: 12px; color: var(--muted); }

.field-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
}

.field-action { padding: 22px 8px; font-size: 15px; font-weight: 600; }
.action-photo, .action-voice { background: var(--accent); }
.action-note, .action-finding { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

.rec-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,15,18,.96);
  display: grid;
  place-content: center;
  gap: 20px;
  justify-items: center;
  z-index: 100;
}

.rec-dot { width: 60px; height: 60px; border-radius: 50%; background: var(--critical); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.rec-text { font-size: 18px; }
.rec-stop { width: auto; padding: 18px 34px; font-size: 16px; }

.picker {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 18px;
  padding-top: max(18px, env(safe-area-inset-top));
}

.picker-head { display: flex; justify-content: space-between; align-items: center; }
.picker-head h3 { margin: 0; }
.picker-close { width: auto; padding: 10px 18px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.picker-note { color: var(--muted); font-size: 13px; }
.picker-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.picker-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 16px;
  margin-bottom: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 400;
}

.picker-code { display: block; font-size: 12px; color: var(--muted); }
.picker-title { display: block; font-size: 15px; margin-top: 2px; }


/* -------------------------------------------------------------- plattegrond */

.plan-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.plan-tab { width: auto; padding: 8px 14px; font-size: 13px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.plan-tab.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(199,167,107,.4); }

.plan-wrap { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.plan-image { display: block; max-width: 100%; height: auto; background: #fff; }
.plan-layer { position: absolute; inset: 0; }
.plan-editable .plan-layer { cursor: crosshair; }

.plan-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  color: #16130c;
  border: 2px solid #16130c;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.plan-marker.risk-kritiek { background: var(--critical); color: #fff; }
.plan-marker.risk-hoog { background: #b98246; }
.plan-marker.marker-camera, .plan-marker.marker-sensor, .plan-marker.marker-alarm { background: #5f7f9a; color: #fff; }

.plan-detail { margin-top: 12px; }
.plan-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-upload { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-upload input[type=file] { margin-bottom: 14px; }


/* --------------------------------------- zones, toegangspunten en assets */

.zone-tree { margin-bottom: 16px; }

.zone-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.zone-icon { color: var(--accent); width: 14px; }
.zone-name { flex: 1; }
.zone-type { color: var(--muted); font-size: 12px; }
.zone-counts { color: var(--muted); font-size: 12px; }

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.inline-form label { width: 100%; margin: 0; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 130px; margin: 0; }
.inline-form button { width: auto; }

.ap-editor { padding: 14px 0; }

.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ap-grid label { margin-bottom: 4px; }
.ap-grid select { margin-bottom: 0; }

.tag.level-strong { color: var(--ok); border-color: rgba(79,138,107,.45); }
.tag.level-adequate { color: var(--text); }
.tag.level-weak { color: #d8a765; border-color: rgba(185,130,70,.45); }
.tag.level-inadequate { color: #e5a49e; border-color: rgba(180,72,63,.45); }
.tag.level-not_assessed { color: var(--muted); }

.field-actions-5 { grid-template-columns: repeat(5, 1fr); }
.action-access { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

@media (max-width: 560px) {
  .field-actions-5 { grid-template-columns: repeat(3, 1fr); }
}


/* --------------------------------- omgevingsanalyse en menselijke factor */

.q-progress {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  color: var(--muted);
}

.q-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.q-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.q-code { color: var(--muted); font-size: 12px; min-width: 54px; }
.q-question { flex: 1; font-size: 14px; }
.q-status { color: var(--accent); font-size: 12px; }

.q-guidance {
  margin: 0 0 8px 64px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.q-row textarea { margin-bottom: 8px; }

.q-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.q-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.q-inline input[type=checkbox] { width: auto; margin: 0; }
.q-provenance { width: auto; min-width: 200px; margin: 0; }


/* ------------------------------------------------- verbonden apparatuur */

.dev-summary { display: flex; gap: 10px; margin-bottom: 16px; }

.dev-tile {
  flex: 1;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.dev-tile-value { font-size: 22px; font-weight: 600; }
.dev-tile-label { font-size: 12px; color: var(--muted); }

.dev-row { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }

.dev-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
}

.dev-head:hover { background: var(--surface-2); }
.dev-name { flex: 1; }
.dev-signal-count { color: var(--accent); font-size: 12px; }
.dev-detail { padding: 0 14px 14px; }
.dev-detail td { padding: 6px 0; font-size: 13px; }

.dev-signals { margin-top: 12px; }

.dev-signal {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--surface-2);
  border-left: 3px solid var(--line);
  border-radius: 0 6px 6px 0;
}

.dev-signal-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: 14px; }
.dev-advice { margin-top: 6px; font-size: 13px; color: var(--accent); }

.tag.sig-hoog { color: #e5a49e; border-color: rgba(180,72,63,.45); }
.tag.sig-middel { color: #d8a765; border-color: rgba(185,130,70,.45); }
.tag.sig-laag { color: var(--muted); }


/* ------------------------------------------------------------ vergelijking */

.cmp-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: 8px;
  margin-bottom: 16px;
}

.cmp-score { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp-arrow { font-size: 20px; color: var(--muted); }

.cmp-delta {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cmp-delta.up { color: var(--ok); border-color: rgba(79,138,107,.45); }
.cmp-delta.down { color: #e5a49e; border-color: rgba(180,72,63,.45); }

.cmp-block { margin-bottom: 14px; }
.cmp-block h4 { margin: 0 0 6px; font-size: 13px; color: var(--accent); }
.cmp-list { margin: 0; padding-left: 18px; font-size: 14px; }
.cmp-list li { margin-bottom: 4px; }

/* ============================================================== AI-laag
   Eén visuele regel: alles wat door een model is aangeraakt krijgt een eigen,
   afwijkende rand. Niet als versiering, maar zodat je op een scherm in één
   oogopslag ziet wat je nog moet nalezen. */

.field-actions-6 { grid-template-columns: repeat(6, 1fr); }

.picker-wide { max-width: 760px; }

.dictate-text,
.dictate-panel textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
}

.dictate-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dictate-row button { width: auto; flex: 1; min-width: 140px; }

.dictate-mic:disabled { opacity: 0.5; }

.dictate-status { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 18px; }
.dictate-error { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #3a2422; color: #f0c8c2; font-size: 14px; }

.dictate-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: var(--surface-2);
}

.dictate-source {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.dictate-source.model { background: #33291a; color: #e0c48a; border: 1px solid #6b5730; }
.dictate-source.lokaal { background: #1e2c26; color: #9fcbb4; border: 1px solid #38584a; }

.dictate-fallback { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.dictate-missing {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 13px;
}
.dictate-missing-head { color: var(--muted); margin-bottom: 4px; }
.dictate-missing ul { margin: 0; padding-left: 18px; }

/* ------------------------------------------------- volledigheidscontrole */

.check-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border-left: 4px solid var(--line);
}
.check-hero.ok { border-left-color: #4f8a6b; }
.check-hero.blocked { border-left-color: #a8564c; }
.check-verdict { font-size: 15px; font-weight: 600; }

.check-counts { display: flex; gap: 10px; }
.check-chip { text-align: center; min-width: 62px; }
.check-chip.zero { opacity: 0.4; }
.check-chip-value { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.check-chip-label { display: block; font-size: 11px; color: var(--muted); }

.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.check-item { padding: 10px 14px; border-radius: 6px; background: var(--surface-2); border-left: 3px solid var(--line); }
.check-item.sev-blokkerend { border-left-color: #a8564c; }
.check-item.sev-aandacht { border-left-color: #b98246; }
.check-item.sev-informatie { border-left-color: #4a6b86; }

.check-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.check-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--surface); color: var(--muted); }
.check-badge.sev-blokkerend { color: #e5a49c; }
.check-badge.sev-aandacht { color: #ddb98a; }
.check-area { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.check-message { font-size: 14px; }
.check-hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------- samenvatting */

.summary-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.summary-meta button { width: auto; padding: 8px 16px; }
.summary-source { font-size: 12px; padding: 4px 11px; border-radius: 12px; }
.summary-source.model { background: #33291a; color: #e0c48a; }
.summary-source.lokaal { background: #1e2c26; color: #9fcbb4; }

.summary-text {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
}

.tag-ok { color: #9fcbb4; }
.tag-refused,
.tag-blocked { color: #ddb98a; }
.tag-error { color: #e5a49c; }
