/* Jarvis STARTKLAAR. – ontwerpsysteem voor coachomgeving, klantportaal en inlogpagina's.
   Merkpalet: Deep Navy, Warm Cream, Electric Blue, Warm Amber, Dusty Blue, Soft Charcoal, White, Forest Green.
   Lettertype: Inter (zelf gehost, SIL OFL – zie fonts/Inter-OFL-LICENSE.txt). Geen externe fonts of CDN's. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --navy: #172B4D;
  --navy-700: #102039;
  --navy-500: #2a4170;
  --cream: #F4F0E7;
  --cream-200: #ece6d8;
  --blue: #4C8DFF;
  --blue-600: #2f6fe0;
  --blue-100: #e6efff;
  --amber: #F2B84B;
  --amber-100: #fdf2dc;
  --amber-700: #8a5a00;
  --dusty: #D9E3F0;
  --dusty-50: #eef3f9;
  --ink: #292D34;
  --ink-2: #555b66;
  --ink-3: #7b818c;
  --white: #FFFFFF;
  --green: #78977D;
  --green-100: #e7efe8;
  --green-700: #3f5d44;
  --red: #b4432f;
  --red-100: #f8e4df;
  --line: #e2ddd1;
  --line-2: #d3dbe6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 43, 77, .06), 0 4px 16px rgba(23, 43, 77, .06);
  --shadow-lg: 0 12px 40px rgba(23, 43, 77, .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
h4 { font-size: .92rem; font-weight: 650; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85rem; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

/* ---------------------------------------------------------------- Layout: app-shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy);
  color: #c9d3e6;
  padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; color: var(--white); font-weight: 800; letter-spacing: .02em; }
.sidebar .brand img { width: 28px; height: 28px; }
.sidebar .brand small { display: block; font-weight: 500; color: #9fb0cf; letter-spacing: 0; font-size: .75rem; }
.nav-group { margin-top: 12px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7f92b6; padding: 0 10px 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: #d9e1ef; font-weight: 520; font-size: .93rem;
}
.nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a.active { background: var(--blue); color: var(--white); }
.nav a .count { margin-left: auto; background: var(--amber); color: var(--navy); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 0 7px; }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar .footer { margin-top: auto; padding: 12px 10px 0; font-size: .75rem; color: #7f92b6; }
.sidebar .footer a { color: #9fb0cf; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; background: rgba(244, 240, 231, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar .search { flex: 1; max-width: 460px; position: relative; }
.topbar .search input { width: 100%; padding-left: 34px; background: var(--white); }
.topbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--ink-3); }
.search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; }
.search-results a { display: block; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--dusty-50); text-decoration: none; }
.topbar .spacer { flex: 1; }
.env-badge { background: var(--amber); color: var(--navy); font-weight: 700; font-size: .72rem; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }
.menu-btn { display: none; }
.content { padding: 24px 28px 64px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); }

/* ---------------------------------------------------------------- Grids en kaarten */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; border: 1px solid rgba(23, 43, 77, .04); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tint { background: var(--dusty-50); box-shadow: none; border: 1px solid var(--line-2); }
.card.warn { background: var(--amber-100); border: 1px solid #f0d9a6; box-shadow: none; }
.card.ok { background: var(--green-100); border: 1px solid #cfdccf; box-shadow: none; }
.card.internal { background: #fbf7ee; border: 1px dashed #d9c79d; box-shadow: none; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; }

.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .value { font-size: 1.7rem; font-weight: 760; color: var(--navy); letter-spacing: -0.02em; }
.kpi .label { color: var(--ink-2); font-size: .85rem; }
.kpi.attention .value { color: var(--amber-700); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.list .meta { color: var(--ink-3); font-size: .83rem; }
.list a.item { color: var(--ink); flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- Tabellen */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--dusty-50); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; }

/* ---------------------------------------------------------------- Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--blue); color: var(--white); cursor: pointer; line-height: 1.2; text-decoration: none !important;
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--blue-600); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.busy { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--dusty-50); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-500); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: rgba(23, 43, 77, .06); }
.btn.success { background: var(--green-700); }
.btn.success:hover { background: #335038; }
.btn.danger { background: var(--white); color: var(--red); border-color: #e7c1b8; }
.btn.danger:hover { background: var(--red-100); }
.btn.small { padding: 5px 10px; font-size: .82rem; }
.btn.large { padding: 12px 20px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- Formulieren */
label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .help { color: var(--ink-3); font-size: .82rem; margin-top: 4px; font-weight: 400; }
.field .req { color: var(--red); margin-left: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 141, 255, .2); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.short { min-height: 70px; }
textarea.tall { min-height: 260px; }
input[readonly], textarea[readonly] { background: var(--dusty-50); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { margin: 0; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; font-weight: 600; }
.scale input:checked + span { background: var(--blue); color: var(--white); border-color: var(--blue); }
.scale input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.mini-table input { padding: 6px 8px; font-size: .88rem; }
.save-state { font-size: .8rem; color: var(--ink-3); }
.save-state.dirty { color: var(--amber-700); }
.save-state.saved { color: var(--green-700); }

/* ---------------------------------------------------------------- Badges, status, voortgang */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--dusty); color: var(--navy); white-space: nowrap; }
.badge.blue { background: var(--blue-100); color: var(--blue-600); }
.badge.amber { background: var(--amber-100); color: var(--amber-700); }
.badge.green { background: var(--green-100); color: var(--green-700); }
.badge.red { background: var(--red-100); color: var(--red); }
.badge.grey { background: #ececec; color: #555; }
.badge.navy { background: var(--navy); color: var(--white); }
.badge.internal { background: #f3e8cc; color: #6d5313; }
.progress { height: 8px; background: var(--dusty); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s; }
.progress.green > span { background: var(--green); }
.progress.large { height: 12px; }

.phase-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.phase-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; position: relative; }
.phase-step .code { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.phase-step .name { font-size: .8rem; color: var(--ink-2); }
.phase-step.open { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(76, 141, 255, .2); }
.phase-step.ingediend { border-color: var(--amber); }
.phase-step.goedgekeurd { background: var(--green-100); border-color: #cfdccf; }
.phase-step.vergrendeld { opacity: .65; }
.phase-step .progress { margin-top: 8px; height: 5px; }

/* ---------------------------------------------------------------- Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: 9px 12px; color: var(--ink-2); font-weight: 560; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--blue); }
.tabs a .count { background: var(--amber); color: var(--navy); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 0 6px; margin-left: 4px; }

/* ---------------------------------------------------------------- Meldingen, modals, lege staten */
.notice { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--dusty-50); border: 1px solid var(--line-2); color: var(--ink); font-size: .9rem; margin-bottom: 14px; }
.notice.warn { background: var(--amber-100); border-color: #f0d9a6; }
.notice.ok { background: var(--green-100); border-color: #cfdccf; }
.notice.error { background: var(--red-100); border-color: #ecc3b9; color: #6f2416; }
.notice.internal { background: #fbf7ee; border: 1px dashed #d9c79d; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.empty .title { font-weight: 650; color: var(--navy); margin-bottom: 4px; }
.empty .btn { margin-top: 10px; }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--dusty); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .9rem; animation: toast-in .2s ease-out; }
.toast.error { background: var(--red); }
.toast.ok { background: var(--green-700); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 32, 57, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 90; overflow-y: auto; }
.modal { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; }
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Berichten, tijdlijn */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--dusty-50); border: 1px solid var(--line-2); white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--blue-100); border-color: #cddcfb; }
.msg .who { font-size: .76rem; color: var(--ink-3); margin-bottom: 2px; white-space: normal; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--dusty); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid var(--cream); }
.timeline .when { font-size: .78rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- Canvas */
.canvas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.canvas-cell { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 170px; }
.canvas-cell.wide { grid-column: span 2; }
.canvas-cell h4 { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.canvas-cell .hint { font-size: .78rem; color: var(--ink-3); }
.canvas-cell textarea { flex: 1; min-height: 90px; font-size: .88rem; }
.canvas-cell.akkoord { border-color: #b9ceb9; background: #f8fbf8; }
.canvas-cell.klaar { border-color: var(--amber); }

/* ---------------------------------------------------------------- Grafieken (SVG) */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------------------------------------------------------------- Login */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--navy); color: #d6deeb; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .logo { height: 34px; }
.auth-side h1 { color: var(--white); font-size: 2rem; max-width: 18ch; }
.auth-side p { max-width: 42ch; color: #b9c6dc; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { padding: 28px; }

/* ---------------------------------------------------------------- Klantportaal (eigen, warmere stijl) */
.portal .sidebar { background: var(--white); color: var(--ink); border-right: 1px solid var(--line); }
.portal .sidebar .brand { color: var(--navy); }
.portal .sidebar .brand small { color: var(--ink-3); }
.portal .nav-group { color: var(--ink-3); }
.portal .nav a { color: var(--ink-2); }
.portal .nav a:hover { background: var(--cream); }
.portal .nav a.active { background: var(--navy); color: var(--white); }
.portal .sidebar .footer, .portal .sidebar .footer a { color: var(--ink-3); }
.hero { background: var(--navy); color: #dbe3f0; border-radius: var(--radius); padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 6px; }
.hero .progress { background: rgba(255, 255, 255, .15); }
.hero .progress > span { background: var(--amber); }
.ring { width: 96px; height: 96px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: rgba(255, 255, 255, .15); }
.ring .fg { stroke: var(--amber); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--white); font-weight: 750; font-size: 22px; font-family: var(--font); }
.step-dots { display: flex; gap: 6px; margin: 10px 0 18px; flex-wrap: wrap; }
.step-dots span { flex: 1; min-width: 40px; height: 6px; border-radius: 999px; background: var(--dusty); }
.step-dots span.done { background: var(--green); }
.step-dots span.current { background: var(--blue); }

/* ---------------------------------------------------------------- Print */
@media print {
  .sidebar, .topbar, .btn, .tabs { display: none !important; }
  .shell { display: block; }
  body { background: var(--white); }
  .card { box-shadow: none; border: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side { grid-template-columns: minmax(0, 1fr); }
  .canvas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .content { padding: 18px 14px 64px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .phase-track { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px; }
  .auth-side h1 { font-size: 1.5rem; }
  .hero { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
}
@media (max-width: 560px) {
  .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .canvas-grid { grid-template-columns: minmax(0, 1fr); }
  .canvas-cell.wide { grid-column: auto; }
  .topbar .search { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- Aanvullingen */
.stack-sm > * + * { margin-top: 6px; }
dl.answers { margin: 0; }
dl.answers dt { font-weight: 650; color: var(--navy); font-size: .88rem; margin-top: 12px; }
dl.answers dt:first-child { margin-top: 0; }
dl.answers dd { margin: 4px 0 0; }
.md h2, .md h3, .md h4 { margin-top: 1em; }
.md ul { margin: 0 0 .8em; padding-left: 1.2em; }
.md p:last-child { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.section-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 650; margin: 18px 0 8px; }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-nav a { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 560; }
.pill-nav a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.notif { padding: 10px 12px; border-bottom: 1px solid var(--line); display: block; color: var(--ink); }
.notif.unread { background: var(--blue-100); }
.notif:hover { text-decoration: none; background: var(--dusty-50); }
.popover { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, 92vw); max-height: 70vh; overflow-y: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 40; }
.rel { position: relative; }
.dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.code-box { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--dusty-50); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; word-break: break-all; font-size: .85rem; }

/* Voortgangsring op een lichte achtergrond */
.card .ring .bg, .page-head .ring .bg, .portal .card .ring .bg { stroke: var(--dusty); }
.card .ring .fg, .page-head .ring .fg { stroke: var(--blue); }
.card .ring text, .page-head .ring text { fill: var(--navy); }
.text-red { color: #b42318; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--dusty-50); }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
:where(svg[aria-hidden="true"]) { width: 18px; height: 18px; flex: none; vertical-align: middle; }
