:root {
  --bg: #f4f6f9; --surface: #fff; --ink: #1b2430; --muted: #5d6b7c; --line: #dde3ea;
  --brand: #28347f; --brand-ink: #fff; --brand-soft: #e8eaf4;
  --good: #2e7d32; --good-soft: #dff0dc; --warn: #8a5a00; --warn-soft: #fff3c4; --bad: #b3261e; --bad-soft: #fbe0de;
  --info-soft: #e3effa; --orange-soft: #ffe5c7;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1rem 0 .25rem; }
code { font-size: .8rem; background: #f0f2f5; padding: 0 .25rem; border-radius: 4px; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* header */
.top { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.25rem; background: var(--brand); color: var(--brand-ink); flex-wrap: wrap; }
.top a { color: var(--brand-ink); text-decoration: none; }
.brand { font-weight: 700; }
.logo { display: inline-block; }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.top nav a { padding: .35rem .7rem; border-radius: 6px; opacity: .85; }
.top nav a:hover, .top nav a[aria-current] { background: rgba(255, 255, 255, .16); opacity: 1; }
.who { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.who .muted { color: #c9cde6; }
.who form { margin: 0; }
.who .link { color: var(--brand-ink); }

.page { max-width: 1320px; margin: 0 auto; padding: 1.25rem; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: 0; }
.crumbs { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.narrow { max-width: 560px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid2 > .card, .grid3 > .card { margin-bottom: 0; }
.grid2, .grid3 { margin-bottom: 1rem; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* buttons and forms */
.btn { display: inline-block; font: inherit; padding: .45rem .9rem; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--bad); }
input, select, textarea { font: inherit; padding: .4rem .55rem; border: 1px solid #c3ccd7; border-radius: 6px; background: #fff; color: var(--ink); max-width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #9aa3d6; outline-offset: 1px; }
textarea { width: 100%; resize: vertical; }
.stack { display: grid; gap: .75rem; }
.stack .btn { justify-self: start; }
.field { display: grid; gap: .25rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select { width: 100%; }
.field.wide { grid-column: 1 / -1; }
.hint { color: var(--muted); }
.error { color: var(--bad); font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.form-grid fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 0 0 1rem; background: var(--surface); }
.form-grid legend { font-weight: 700; padding: 0 .4rem; }
.form-grid.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem 1rem; margin-top: .75rem; }
.actions { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .25rem 0; }
.inline { display: inline; margin: 0; }
.check { display: inline-flex; gap: .35rem; align-items: center; font-size: .9rem; grid-column: 1 / -1; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.flash { background: var(--good-soft); border: 1px solid #b9dcb3; padding: .6rem .9rem; border-radius: 8px; }
.error-box { background: var(--bad-soft); border: 1px solid #f1b6b1; padding: .6rem .9rem; border-radius: 8px; color: #7d1a14; }
.warn-box { background: var(--warn-soft); border: 1px solid #f0d77a; padding: .6rem .9rem; border-radius: 8px; }
.notice { background: var(--info-soft); border: 1px solid #b9d3ee; padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.secret { font-size: 1rem; background: #fff; padding: .15rem .4rem; user-select: all; }
.toc { margin-bottom: 1rem; }
details summary { cursor: pointer; color: var(--brand); margin-top: .5rem; }
.danger-zone { margin-top: 1rem; }
.danger-zone form { margin-top: .5rem; max-width: 560px; }

/* login */
.login { max-width: 420px; margin: 8vh auto; }
.login h1 { font-size: 1.25rem; color: var(--brand); }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.list th, .list td { text-align: left; padding: .45rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list thead th { font-size: .82rem; color: var(--muted); font-weight: 600; background: #f8fafc; }
.list.initiatives thead th { background: var(--brand); color: #fff; }
.list tbody tr:hover { background: #f8fafc; }
.list.log td { font-size: .85rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.timeline { padding-left: 1.1rem; margin: 0; }
.log { font-size: .85rem; padding-left: 1rem; }

/* pills: status colors follow the Excel */
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: #eef1f4; color: var(--ink); }
.st-geen-actie-nodig, .st-in-uitvoering, .st-afgerond, .ds-besloten { background: var(--good-soft); color: #1e5a22; }
.st-ter-bespreking, .ak-ter-bespreking { background: var(--warn-soft); color: #6b4a00; }
.st-ter-besluitvorming, .ak-ter-besluitvorming { background: var(--orange-soft); color: #7a3e00; }
.st-ter-informatie, .ak-ter-informatie { background: var(--info-soft); color: #174a7c; }
.st-geblokkeerd, .ds-afgewezen { background: var(--bad-soft); color: #8c1d16; }
.st-in-afwachting-van-prioriteit, .st-in-afwachting-van-capaciteit, .ds-aangehouden { background: var(--orange-soft); color: #7a3e00; }
.st-gestopt { background: #e6e6e6; color: #444; }
.ds-open { background: #eef1f4; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; padding: .05rem .45rem; border: 1px solid var(--line); border-radius: 5px; margin: 0 .2rem .2rem 0; background: #fafbfc; }
.tag.bad { border-color: #f1b6b1; background: var(--bad-soft); color: #8c1d16; }
.ok { color: var(--good); font-weight: 700; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { display: flex; flex-direction: column; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: .8rem 1rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
a.kpi:hover { border-color: var(--brand); }
.kpi.good { border-left-color: var(--good); }
.kpi.warn { border-left-color: #e0a800; }
.kpi.bad { border-left-color: var(--bad); }
.kpi-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.75rem; line-height: 1.1; }
.kpi-sub { font-size: .8rem; color: var(--muted); }

/* process chevrons */
.chevrons { display: flex; list-style: none; padding: 0; margin: 0 0 1rem; gap: 3px; }
.chevrons li { flex: 1; min-width: 0; }
.chevrons li > a, .chevrons li > span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 64px;
  padding: .4rem 1.1rem; background: var(--brand-soft); color: var(--brand); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.chevrons li:first-child > * { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.chevrons li > a:hover { background: #d7dbee; }
.chevrons li.done > * { background: #cdd2ea; }
.chevrons li.current > * { background: var(--brand); color: #fff; }
.ph-n { font-size: .75rem; opacity: .8; }
.ph-name { font-size: .82rem; font-weight: 600; line-height: 1.15; }
.ph-count { font-size: 1.4rem; line-height: 1.2; }
@media (max-width: 700px) { .chevrons { flex-wrap: wrap; } .chevrons li { flex: 1 1 30%; } }

/* SVG charts */
.chart { width: 100%; height: auto; display: block; }
.chart .lbl, .chart .val { font-size: 12px; fill: var(--ink); }
.chart .val { font-weight: 600; }
.chart .track { fill: #eef1f4; }
.chart .bar { fill: var(--brand); }
.chart .b-exp { fill: #4f5ba8; }
.chart .b-real { fill: var(--good); }
.chart .b-sg-nodig { fill: #7cbf73; }
.chart .b-sg-bespreking { fill: #f2c94c; }
.chart .b-sg-besluitvorming { fill: #f2994a; }
.chart .b-sg-informatie { fill: #7a85c4; }
.chart .target { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 4 3; }
.chart .target-lbl { font-size: 11px; fill: var(--bad); font-weight: 600; }

/* capacity heatmap */
.cap th, .cap td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.cap thead th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.cap tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.cap td { min-width: 58px; }
.cap tr.total td, .cap tr.total th { font-weight: 700; border-top: 2px solid var(--line); }
.cap-none { color: #a0aab5; }
.cap-ok { background: var(--good-soft); }
.cap-warn { background: var(--warn-soft); }
.cap-over { background: var(--bad-soft); color: #8c1d16; font-weight: 700; }
.legend span { display: inline-block; padding: .05rem .5rem; border-radius: 4px; margin-right: .25rem; }

/* RACI */
.raci { font-size: .85rem; }
.raci th, .raci td { border: 1px solid var(--line); padding: .25rem .35rem; }
.raci thead th { background: #f8fafc; vertical-align: bottom; }
.raci th.rot { height: 150px; white-space: nowrap; padding: .3rem 0; width: 52px; }
.raci th.rot span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); }
.raci tbody th { text-align: left; font-weight: 400; min-width: 280px; background: #fff; }
.raci .phase-row th { background: var(--brand); color: #fff; font-weight: 700; }
.raci-cell { text-align: center; font-weight: 700; }
.raci-cell select { padding: .15rem; border-color: transparent; background: transparent; font-weight: 700; text-align: center; width: 100%; min-width: 48px; }
.r-R, .r-AR { background: #d6e8fb; }
.r-A { background: #ffd8a8; }
.r-AR { background: linear-gradient(135deg, #ffd8a8 50%, #d6e8fb 50%); }
.r-C { background: #fff3c4; }
.r-I { background: #eceff3; }

/* meetings */
.agenda-item .ai-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ai-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; }
.agenda-mini { padding-left: 1.2rem; margin: 0; }
.agenda-mini li { padding: .2rem 0; }
.agenda-mini.big li { padding: .35rem 0; font-size: 1.05rem; }

/* presentation mode */
body.present { background: #eef2f7; }
.slides { max-width: 1500px; margin: 0 auto; padding: 1.5rem 2rem; font-size: 17px; }
.slide { min-height: calc(100vh - 3rem); display: flex; flex-direction: column; }
.slide-head { position: relative; padding-right: 3rem; margin-bottom: 1rem; }
.slide-head h1 { font-size: 2.2rem; color: var(--brand); }
.slide-head p { margin: 0 0 .25rem; color: var(--muted); }
.slide-head .close { position: absolute; top: 0; right: 0; font-size: 1.5rem; text-decoration: none; color: var(--muted); }
.slide-question { font-size: 1.5rem; font-weight: 600; background: var(--surface); border-left: 6px solid #f2994a; padding: 1rem 1.25rem; border-radius: var(--radius); margin: 0 0 1.25rem; white-space: pre-wrap; }
.slide .kpi-value { font-size: 2.2rem; }
.decision { border-left: 6px solid var(--good); }
.slide-nav { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.slide-nav a { font-weight: 600; text-decoration: none; padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

@media print {
  .top, .foot, .filters, .row-actions, .slide-nav, details, form .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- health, meters, trends (v2) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.strong { font-weight: 700; }
.btn.small { padding: .25rem .6rem; font-size: .85rem; }
.dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; vertical-align: -1px; flex: none; }
.dot.h-groen { background: #3d9a45; } .dot.h-oranje { background: #f0a020; } .dot.h-rood { background: #d23b30; } .dot.h-grijs { background: #c3cad3; }
svg .h-groen { fill: #3d9a45; } svg .h-oranje { fill: #f0a020; } svg .h-rood { fill: #d23b30; } svg .h-grijs { fill: #c3cad3; }
.c-groen { color: var(--good); font-weight: 600; } .c-oranje { color: #a46500; font-weight: 600; } .c-rood { color: var(--bad); font-weight: 600; }
.tag.t-rood { border-color: #f1b6b1; background: var(--bad-soft); color: #8c1d16; }
.tag.t-oranje { border-color: #f0d77a; background: var(--warn-soft); color: #6b4a00; }
.tag.t-groen { border-color: #b9dcb3; background: var(--good-soft); color: #1e5a22; }

.meter { display: block; width: 100%; height: 10px; margin: .35rem 0 .15rem; }
.meter .track { fill: #e8ecf1; }
.meter .fill { fill: var(--brand); }
.meter .fill.real { fill: var(--good); } .meter .fill.exp { fill: #4f5ba8; } .meter .fill.bad, .meter .fill.cap-over { fill: var(--bad); }
.meter .fill.cap-warn { fill: #f0a020; } .meter .fill.cap-ok { fill: #3d9a45; } .meter .fill.cap-none { fill: #c3cad3; }
.meter .mark { fill: var(--ink); }
.kpi-main { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.delta { font-size: .8rem; color: var(--muted); font-weight: 600; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.compare { margin: -.5rem 0 1rem; }
.ph-health { display: block; width: 70%; }
.ph-health .meter { height: 6px; margin: .2rem 0 0; }
.chevrons li.current .ph-health .track { fill: rgba(255, 255, 255, .3); }

.health-rows { width: 100%; }
.health-rows th { text-align: left; font-weight: 600; padding: .35rem .6rem .35rem 0; white-space: nowrap; width: 1%; }
.health-rows td { padding: .35rem 0 .35rem .6rem; }
.health-rows td .meter { margin: 0; height: 14px; }
.legend .dot { margin-left: .5rem; }

.chart.line .grid { stroke: #e3e8ee; }
.chart.line .axis { font-size: 11px; fill: var(--muted); }
.chart.line .ln { fill: none; stroke-width: 2.5; }
.chart.line .ln.s-exp { stroke: #4f5ba8; } .chart.line .pt.s-exp { fill: #4f5ba8; }
.chart.line .ln.s-real { stroke: var(--good); } .chart.line .pt.s-real { fill: var(--good); }
.chart .b-exp-lo { fill: #b8bedf; }
.key { display: inline-block; width: 14px; height: 4px; vertical-align: middle; border-radius: 2px; margin-left: .4rem; }
.key.s-exp { background: #4f5ba8; } .key.s-real { background: var(--good); } .key.target { background: var(--bad); }

.attention { list-style: none; padding: 0; margin: 0; }
.attention li { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.attention li .dot { margin-top: .3rem; }

/* initiative page */
.status-overview h2 { display: flex; align-items: center; gap: .5rem; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.status-dim { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .75rem; border-radius: 8px; border: 1px solid var(--line); border-top-width: 4px; }
.status-dim.lvl-groen { border-top-color: #3d9a45; } .status-dim.lvl-oranje { border-top-color: #f0a020; background: #fffbef; }
.status-dim.lvl-rood { border-top-color: #d23b30; background: #fff6f5; } .status-dim.lvl-grijs { border-top-color: #c3cad3; }
.sd-head { display: flex; align-items: center; gap: .4rem; }
.sd-text { font-size: .88rem; color: #3a4655; }
.detail-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .detail-cols { grid-template-columns: 1fr; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pva dt { font-weight: 700; margin-top: .6rem; }
.pva dd { margin: .15rem 0 0; }
.pva-akkoord-opdrachtgever { background: var(--good-soft); color: #1e5a22; }
.pva-nog-geen-akkoord { background: var(--bad-soft); color: #8c1d16; }
.ms-conceptagenda { background: var(--warn-soft); color: #6b4a00; }
.ms-agenda-definitief { background: var(--info-soft); color: #174a7c; }
.ms-afgerond { background: #e6e6e6; color: #444; }
.milestones td { vertical-align: middle; }
.ms-form input[name="name"] { flex: 1 1 180px; }
label.mini { font-size: .78rem; color: var(--muted); display: inline-flex; flex-direction: column; gap: .1rem; }
.timeline2 { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline2 li { position: relative; padding: 0 0 .8rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.timeline2 li::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: #c3cad3; }
.timeline2 li.tl-besluit::before { background: var(--good); } .timeline2 li.tl-fase::before { background: var(--brand); } .timeline2 li.tl-agenda::before { background: #f0a020; }
.tl-date { font-size: .78rem; color: var(--muted); }
.tl-line { font-size: .85rem; color: #3a4655; }

/* meetings */
.quick-add { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .75rem 0 .4rem; }
.quick-add select, .quick-add input { width: 100%; }
@media (max-width: 600px) { .quick-add { grid-template-columns: 1fr; } }
.snapshot-banner { background: #2b3440; color: #fff; padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.snapshot-banner a { color: #d2d6ee; margin-left: .5rem; }

/* ---------- v3: sized chevrons, sorting, process overview ---------- */
.chevrons.sized li { flex-basis: 0; min-width: 92px; }
.chevrons.sized .g1 { flex-grow: 1; } .chevrons.sized .g2 { flex-grow: 2; } .chevrons.sized .g3 { flex-grow: 3; } .chevrons.sized .g4 { flex-grow: 4; }
.chevrons.sized .g5 { flex-grow: 5; } .chevrons.sized .g6 { flex-grow: 6; } .chevrons.sized .g7 { flex-grow: 7; } .chevrons.sized .g8 { flex-grow: 8; }
.chevrons.sized .g9 { flex-grow: 9; } .chevrons.sized .g10 { flex-grow: 10; }
.chevrons.sized .g-done { flex-grow: 1; }
.chevrons.sized .g-done > * { background: #eef1f4; color: var(--muted); }
.chevrons.sized li.peak > * { background: #d0d5ec; box-shadow: inset 0 -4px 0 var(--brand); }
.ph-days { font-size: .72rem; opacity: .85; }
.ph-peak { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

a.sort { color: inherit; text-decoration: none; display: inline-flex; gap: .25rem; align-items: center; white-space: nowrap; }
a.sort .arrow { opacity: .45; font-size: .7rem; }
a.sort.active .arrow, a.sort:hover .arrow { opacity: 1; }
th.num a.sort { justify-content: flex-end; }
.tag.cat { border-color: #c9b8e8; background: #f3eefb; color: #4b2f7f; }

.process { display: grid; gap: .9rem; }
.lane { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lane-head { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: var(--brand-soft); color: var(--brand); flex-wrap: wrap; }
.lane-head a { margin-left: auto; }
.lane-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem .2rem; padding: .9rem .8rem; margin: 0; align-items: stretch; }
.node { position: relative; width: 172px; display: flex; flex-direction: column; gap: .2rem; padding: .55rem .65rem; border: 1px solid #b9bfdb; border-radius: 8px; background: #fff; font-size: .82rem; margin-right: 1.4rem; }
.node:not(:last-child)::after { content: "→"; position: absolute; right: -1.35rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.node.besluit { border: 2px solid #f0a020; background: #fffaf0; }
.node-kind { font-size: .7rem; font-weight: 700; color: #a46500; text-transform: uppercase; }
.node-code { font-size: .72rem; color: var(--muted); }
.node-name { font-weight: 600; line-height: 1.25; }
.node-who { font-size: .76rem; color: #3a4655; }
.node-who abbr { font-weight: 700; text-decoration: none; }
.node-note { font-size: .74rem; color: #6b4a00; background: #fff6dc; border-radius: 4px; padding: .1rem .3rem; }
.node-legend { display: inline-block; width: 14px; height: 10px; border: 1px solid #b9bfdb; border-radius: 3px; vertical-align: middle; margin-left: .3rem; }
.node-legend.besluit { border: 2px solid #f0a020; background: #fffaf0; }
.raci tr.row-error th, .raci tr.row-error td { background-color: #fde3e1; }

/* ---------- v4: sub-tabs, settings, goals, people ---------- */
.subtabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin: .25rem 0 1rem; flex-wrap: wrap; }
.subtabs a { padding: .5rem .95rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 6px 6px 0 0; }
.subtabs a:hover { color: var(--brand); background: var(--brand-soft); }
.subtabs a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.center { text-align: center; }
.perm-matrix th[scope="row"] { font-weight: 600; max-width: 420px; }
.perm-matrix td input { width: 1.15rem; height: 1.15rem; }
.person-row { display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: center; }
.role-checks { display: inline-flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.role-checks .check { grid-column: auto; }
.goal h2 { color: var(--brand); }
.goal-text { min-height: 3.5em; }
.goal .facts .meter { margin-top: .25rem; }
/* compact top bar: 9 menu items on one line */
.top { gap: 1rem; padding: .5rem 1rem; }
.top nav { gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.top nav a { padding: .35rem .55rem; white-space: nowrap; font-size: .93rem; }
.brand { white-space: nowrap; }

/* ---------- Huisstijl gemeente Vijfheerenlanden (kleuren gemeten op vijfheerenlanden.nl, 16-11-2026) ----------
   donkerblauw #28347F · rood #D20A11 · zandbeige #EDE5D7 · lichtgrijs #F2F2F2. Lettertype Accord heeft een licentie: hier systeemlettertype. */
:root {
  --brand: #28347f; --brand-ink: #fff; --brand-soft: #e8eaf4; --accent: #d20a11; --sand: #ede5d7;
  --bg: #f2f2f2; --ink: #1f2430; --line: #dfe1e8;
}
.top { background: var(--brand); border-bottom: 4px solid var(--accent); position: relative; overflow: hidden; }
.top::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 160px; background: rgba(255, 255, 255, .06); transform: skewX(-24deg); pointer-events: none; }
.top nav a[aria-current] { background: rgba(255, 255, 255, .14); box-shadow: inset 0 -3px 0 var(--accent); }
.logo { color: var(--accent); background: #fff; border-radius: 3px; padding: 0 .2rem; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: #1f2966; }
a { color: var(--brand); }
h1 { color: var(--brand); }
.subtabs a[aria-current] { border-bottom-color: var(--accent); color: var(--brand); }
.card { border-color: #e4e5ea; }
.kpi { border-left-color: var(--brand); }
.list.initiatives thead th, .raci .phase-row th { background: var(--brand); }
.snapshot-banner { background: var(--brand); border-left: 6px solid var(--accent); }
.flash { background: var(--sand); border-color: #d9ccb4; color: #3d3423; }
.notice { background: var(--sand); border-color: #d9ccb4; }
.lane-head { background: var(--sand); color: var(--brand); }
.lane-n, .ai-n { background: var(--brand); }
body.present { background: var(--sand); }
.login { border-top: 6px solid var(--accent); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline-color: #9aa3d6; }

/* ---------- v5: dashboard sections, goals, meetings, dialogs ---------- */
.section { margin-bottom: 1.25rem; }
.section > h2, .section-head h2 { font-size: 1rem; margin: 0 0 .6rem; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.goals-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.goal-card { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid #e4e5ea; border-top: 4px solid var(--brand); border-radius: var(--radius); padding: .8rem 1rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.goal-card:first-child { border-top-color: var(--accent); background: linear-gradient(180deg, #fff, #fbf8f3); }
.goal-card:hover { border-color: var(--brand); }
.gc-title { font-weight: 700; color: var(--brand); }
.gc-main strong { font-size: 1.5rem; }
.gc-sub { font-size: .8rem; color: var(--muted); }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.service-list li .dot { margin-top: .35rem; }
.service-list p { margin: .2rem 0 0; }
.compact-facts { margin-top: 1rem; }
.years-manage { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; }
.chip-btn { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .1rem .6rem; cursor: pointer; color: var(--ink); }
.chip-btn:hover { border-color: var(--bad); color: var(--bad); }
.mail-rules td, .mail-rules th { vertical-align: top; }

.status-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--surface); border: 1px solid #e4e5ea; border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1rem; }
.stepper { display: flex; list-style: none; margin: 0; padding: 0; gap: .4rem; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 600; font-size: .9rem; }
.stepper li:not(:last-child)::after { content: ""; width: 28px; height: 2px; background: var(--line); margin-left: .4rem; }
.stepper li span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e4e5ea; color: var(--muted); font-size: .8rem; }
.stepper li.done span { background: var(--good); color: #fff; }
.stepper li.current { color: var(--brand); }
.stepper li.current span { background: var(--brand); color: #fff; }
.agenda-table td { vertical-align: top; padding-top: .6rem; padding-bottom: .6rem; }
.ai-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .86rem; margin-top: .15rem; }
.ai-d { display: block; font-size: .86rem; margin-top: .25rem; color: #1e5a22; }
.add-item { margin-top: .8rem; }
.add-item summary { font-weight: 600; }
.next-meeting { border-top: 4px solid var(--accent); }
.decision-row .dr-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .3rem; }
.dr-fields { display: grid; grid-template-columns: 1fr 180px; gap: .8rem; }
@media (max-width: 700px) { .dr-fields { grid-template-columns: 1fr; } }
.confirm-dialog { border: 0; border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.4rem; max-width: 480px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.confirm-dialog::backdrop { background: rgba(31, 36, 48, .45); }
.confirm-dialog h2 { margin-top: 0; color: var(--brand); }
.confirm-page p { font-size: 1.05rem; }

/* ---------- header: small VHL logo + title on top, menu below ---------- */
.top { display: block; padding: .45rem 1.25rem 0; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; color: #fff; }
.logo-box { display: inline-grid; place-items: center; background: #fff; border-radius: 3px; padding: 3px 5px; line-height: 0; }
.logo-box img { display: block; width: 14px; height: 34px; }
.top nav { margin-top: .35rem; overflow-x: auto; }
.top nav a { border-radius: 6px 6px 0 0; padding: .45rem .7rem; }
.login-title { display: flex; align-items: center; gap: .7rem; }
.login-title img { width: 22px; height: 52px; }
.tabs-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.tabs-row .subtabs { border-bottom: 0; margin: 0; }
.subtabs.years a { font-variant-numeric: tabular-nums; padding: .35rem .7rem; border: 1px solid var(--line); border-bottom: 0; margin-left: .2rem; background: #fff; }
.subtabs.years a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-head + .subtabs.years { margin-bottom: 1rem; }
.value-table td.pre { max-width: 520px; }

/* ---------- v6: foldable sections, money grid, questions ---------- */
details.fold { padding: 0; }
details.fold > summary { list-style: none; display: flex; align-items: baseline; gap: 1rem; padding: .85rem 1.15rem; cursor: pointer; margin: 0; color: var(--ink); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: var(--brand); font-size: .9rem; transition: transform .15s; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary:hover { background: #fafafc; }
.fold-title { font-weight: 700; color: var(--brand); white-space: nowrap; }
.fold-sum { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
details.fold[open] .fold-sum { display: none; }
.fold-body { padding: 0 1.15rem 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.money-grid h3 { margin-top: 0; }
@media (max-width: 900px) { .money-grid { grid-template-columns: 1fr; } }
.compact-list th, .compact-list td { padding: .25rem .4rem; }
.question-card { border-left: 5px solid var(--accent); }
.inline-edit summary { font-size: .9rem; }
.form-grid .wide { grid-column: 1 / -1; margin: 0; }
.ms-concept-verstuurd { background: #f3ead9; color: #6b4a00; }

/* ---------- Gantt ---------- */
.gantt-controls label { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--muted); }
.gantt { width: 100%; min-width: 900px; height: auto; display: block; font-size: 12px; }
.gantt .g-major { stroke: #c9cbd6; }
.gantt .g-minor { stroke: #eceef3; }
.gantt .g-tick { fill: var(--muted); font-size: 11px; }
.gantt .g-zebra { fill: #f7f8fb; }
.gantt .g-name { fill: var(--brand); font-size: 12.5px; font-weight: 600; }
.gantt a:hover .g-name { text-decoration: underline; }
.gantt .g-bar.h-groen { fill: #3d9a45; } .gantt .g-bar.h-oranje { fill: #f0a020; } .gantt .g-bar.h-rood { fill: #d23b30; } .gantt .g-bar.h-grijs { fill: #9aa3b5; }
.gantt .g-slip { fill: #f6c6c2; stroke: #d23b30; stroke-dasharray: 3 2; }
.gantt .g-planned { stroke: var(--ink); stroke-width: 2; }
.gantt .g-ms { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.gantt .g-ms.done { fill: var(--brand); }
.gantt .g-today { stroke: var(--accent); stroke-width: 2; }
.gantt .g-today-lbl { fill: var(--accent); font-size: 11px; font-weight: 700; }
.gantt .g-more { fill: var(--muted); font-size: 12px; }
.g-key { display: inline-block; width: 18px; height: 9px; border-radius: 2px; vertical-align: middle; margin-left: .4rem; }
.g-key.h-groen { background: #3d9a45; } .g-key.h-oranje { background: #f0a020; } .g-key.h-rood { background: #d23b30; }
.g-key.slip { background: #f6c6c2; border: 1px dashed #d23b30; }

/* ---------- presentation: agenda first, then each point ---------- */
.slide-agenda { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.slide-agenda a { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid #e4e5ea; border-left: 6px solid var(--brand); border-radius: var(--radius); padding: .9rem 1.2rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.slide-agenda a:hover { border-left-color: var(--accent); }
.sa-n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.15rem; }
.sa-main strong { font-size: 1.25rem; color: var(--brand); }
.sa-q { display: block; color: #3a4655; margin-top: .2rem; }
.sa-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.slide-nav-upper { margin: 0 0 1rem; padding-top: 0; }
.present-tags { margin: 0 0 .8rem; }
body.present details.fold > summary { font-size: 1.05rem; }
.answer-form textarea { font-size: 1.05rem; background: #fff; }
.answer-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.answer-row .check { grid-column: auto; }
.sa-answer { display: block; margin-top: .3rem; color: #1e5a22; font-size: .95rem; }

/* ---------- hours per month ---------- */
.month-grid td { padding: .25rem .2rem; }
.month-grid input { width: 4.6rem; text-align: right; padding: .25rem .35rem; }
.month-grid td.adj input { border-color: #7a85c4; background: #eef0f9; font-weight: 600; }
.cap td.adj { box-shadow: inset 0 -3px 0 #7a85c4; }
.legend-adj { box-shadow: inset 0 -3px 0 #7a85c4; background: #fff; }
.example-bar { margin: 0; padding: .4rem 1.25rem; background: var(--sand); color: #3d3423; font-size: .85rem; border-bottom: 1px solid #d9ccb4; text-align: center; }

/* ---------- intro tour ---------- */
.tour-shade { position: fixed; inset: 0; background: transparent; z-index: 50; }
.tour-shade.dim { background: rgba(31, 36, 48, .55); }
.tour-spot { position: absolute; z-index: 51; border-radius: 8px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(31, 36, 48, .55); pointer-events: none; transition: all .2s; }
.tour-card { position: absolute; z-index: 52; background: #fff; border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); max-width: calc(100vw - 24px); outline: none; }
.tour-card.tour-center { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); }
.tour-card h2 { margin: .1rem 0 .4rem; color: var(--brand); font-size: 1.2rem; }
.tour-count { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tour-text { margin: 0 0 .9rem; }
.tour-actions { display: flex; gap: .5rem; align-items: center; }
.tour-gap { flex: 1; }
.tour-list li { margin-bottom: .8rem; }
.tour-list p { margin: .2rem 0 0; }

/* ---------- feedback ---------- */
.feedback-card { max-width: 720px; }
.stars { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; flex-wrap: wrap; }
.stars legend { width: 100%; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; color: #d0d3dc; cursor: pointer; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f0a020; }
.stars input:focus-visible + label { outline: 3px solid #9aa3d6; border-radius: 4px; }

[hidden] { display: none !important; }
