/* Privacy en informatiebeveiliging (/pib). Mobile first; no horizontal scrolling at 320 px. */
/* The look of ggzoporde.nl: Schibsted Grotesk, the panel blue for actions, one shade deeper for the top bar, a warm
   sand ground with white cards. No gradients, glows or coloured shadows. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --accent: #1F5FAE;
  --accent-dark: #174A88;
  --accent-soft: #E4EDF9;
  --deep: #123A6E;
  --on-deep: #D9E5F5;
  --bg: #F6F3EC;
  --card: #FFFFFF;
  --text: #0E1A2B;
  --muted: #586577;
  --line: #E0E5EB;
  --line-strong: #7D8896;
  --ok: #1E6B44; --ok-bg: #E5F2EA;
  --warn: #8A4300; --warn-bg: #FDF0DD;
  --risk: #A3261B; --risk-bg: #FDECEA;
  --info-bg: #E4EDF9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 'Schibsted Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.014em; margin: 0 0 .6rem; }
h3 { font-size: 1.02rem; font-weight: 650; margin: 1rem 0 .4rem; }
@media (max-width: 400px) { h1 { font-size: 1.55rem; } }
@media (min-width: 700px) { h1 { font-size: 2.05rem; } }
p { margin: 0 0 .75rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 46rem; }
.break { overflow-wrap: anywhere; }
.support-contact a { overflow-wrap: anywhere; font-weight: 600; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Shell */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; min-height: 64px; background: var(--deep); color: #fff; }
.top-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.top-brand:hover { color: inherit; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: inherit; }
.module { font-size: .8rem; color: var(--on-deep); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); }
.langs a { padding: 6px 10px; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-weight: 600; font-size: .8rem; }
.langs a.on { background: var(--accent); color: #fff; }
.langs a:focus-visible { outline-offset: -4px; }
.langs a.on:focus-visible { outline-color: currentColor; }
.top .langs { border-color: rgb(255 255 255 / 35%); background: transparent; }
.top .langs a { color: #fff; }
.top .langs a.on { background: #fff; color: var(--deep); }
.top button.link { color: #fff; }
.top button.link:hover { color: var(--on-deep); }
.top :focus-visible { outline-color: #fff; }
.top .langs a.on:focus-visible { outline-color: var(--deep); }
.practice-bar { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-size: .92rem; }
.practice-name { font-weight: 700; }
.practice-roles { color: var(--muted); }
.practice-switch { margin-left: auto; min-height: 36px; display: inline-flex; align-items: center; padding: 0 4px; }
.shell { max-width: 1240px; margin: 0 auto; }
.side { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.side a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 550; background: var(--card); border: 1px solid var(--line); }
.side a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.side a.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
.main { padding: 16px 16px 64px; min-width: 0; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .side { flex-direction: column; flex-wrap: nowrap; padding: 24px 12px; }
  .side a { background: transparent; border-color: transparent; }
  .side a.active { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); box-shadow: inset 3px 0 0 var(--accent); }
  .main { padding: 28px 28px 72px; }
  .main-wide { grid-column: 1 / -1; max-width: 900px; }
}

/* Plain pages (login and other steps) */
.plain-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.plain-main:has(.help-article) { max-width: 960px; }
.plain-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 8px 0 20px; }
/* Login and other plain steps that start with a card: the deep blue band of the app's top bar, with the card
   resting on its lower edge. Pages that start with bare text (help articles, the report link) keep the plain ground. */
body.plain { position: relative; }
.plain-main { position: relative; padding-top: 24px; }
body.plain:has(.plain-head + .card, .plain-head + .flash + .card)::before { content: ""; position: absolute; inset: 0 0 auto; height: 200px; background: var(--deep); }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head { color: #fff; }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head .module { color: var(--on-deep); }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head .langs { border-color: rgb(255 255 255 / 35%); background: transparent; }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head .langs a { color: #fff; }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head .langs a.on { background: #fff; color: var(--deep); }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head :focus-visible { outline-color: #fff; }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head .langs a.on:focus-visible { outline-color: var(--deep); }
.plain-head .brand-mark { color: var(--accent); }
.plain-head .module { color: var(--muted); }
.plain:has(.plain-head + .card, .plain-head + .flash + .card) .plain-head .brand-mark { color: #fff; }
.plain-main > .plain-head + .card, .plain-main > .plain-head + .flash + .card { border-color: transparent; box-shadow: 0 1px 2px rgb(14 26 43 / 6%), 0 10px 30px rgb(14 26 43 / 8%); }
@media print { body.plain::before { display: none !important; } .plain .plain-head, .plain .plain-head .brand-mark, .plain .plain-head .module, .plain .plain-head .langs a { color: var(--text) !important; } }

/* Cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
@media (min-width: 700px) { .card { padding: 22px 24px; } }
.card.narrow { max-width: 560px; }
.card.highlight { border-color: var(--accent); background: var(--info-bg); }
.card-ok { border-left: 6px solid var(--ok); }
.card-risk { border-left: 6px solid var(--risk); background: var(--risk-bg); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; margin: 0; }
.stat-number { font-size: 2rem; font-weight: 750; line-height: 1.05; letter-spacing: -.03em; }
.stat-ok { color: var(--ok); }
.stat-label { color: var(--muted); font-size: .9rem; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin-bottom: .4rem; }
.pick-list, .member-list, .log-list { list-style: none; margin: 0; padding: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.member-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: flex-start; }
.member-head > div { min-width: 0; }
.roles { margin: .4rem 0; }
.grant { margin-bottom: .6rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); vertical-align: middle; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-risk { background: var(--risk-bg); color: var(--risk); }
.pill-muted { background: #EEF1F4; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; max-width: 100%; font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
input[readonly], textarea[readonly] { background: #F0F3F2; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--risk); }
.code-input { font-size: 1.3rem; letter-spacing: .15em; max-width: 14rem; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
legend { font-weight: 600; padding: 0 4px; }
.field-error { color: var(--risk); font-size: .9rem; margin: -6px 0 0; }
.client-note { font-size: .875rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn:hover { background: var(--info-bg); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-danger { border-color: var(--risk); color: var(--risk); }
.btn-danger:hover { background: var(--risk-bg); }
.btn-wide { width: 100%; }
.btn-small { min-height: 36px; padding: 4px 12px; font-size: .9rem; }
.form .btn { align-self: flex-start; }
.form .btn-wide { align-self: stretch; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 8px 0; min-height: 36px; }
form.inline { display: inline; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row input { flex: 1 1 220px; min-width: 0; }

/* Messages */
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; overflow-wrap: anywhere; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--risk-bg); color: var(--risk); }
.flash-info { background: var(--info-bg); color: var(--accent-dark); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.form-alert { border: 2px solid var(--risk); background: var(--risk-bg); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; overflow-wrap: anywhere; }
.form-alert:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-alert-guard { border-color: var(--warn); background: var(--warn-bg); }
.form-alert-title { font-weight: 700; margin: 0 0 .4rem; }
.form-alert ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.form-alert a { color: inherit; }
.guard { border: 2px solid var(--warn); background: var(--warn-bg); border-radius: 12px; padding: 14px; }
.guard h2 { color: var(--warn); }
.guard ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
.guard-live { font-size: .875rem; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 6px 10px; margin: 0; }

/* Second factor */
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .9rem; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; width: min(240px, 100%); margin: 10px 0; }
.qr { display: block; width: 100%; height: auto; }
.secret { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.codes { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.codes code { display: block; padding: 8px; background: #F0F3F2; border-radius: 8px; text-align: center; font-size: 1rem; }
details.more { margin: .5rem 0; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 36px; display: flex; align-items: center; }

/* Log */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters a { padding: 6px 12px; min-height: 36px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--card); text-decoration: none; color: var(--text); }
.filters a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.log-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.log-denied, .log-failed { border-left: 5px solid var(--risk); }
.log-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.log-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; }
.log-filter > summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.log-filter > summary::-webkit-details-marker { display: none; }
.log-filter > summary::before { content: "\25B8"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.log-filter[open] > summary::before { content: "\25BE"; }
.log-filter > summary h2 { margin: 0; font-size: 1.1rem; }
.log-filter[open] > summary { margin-bottom: 12px; }
.log-filter-active { color: var(--accent-dark); font-weight: 600; overflow-wrap: anywhere; }
.log-filter-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 16px; align-items: end; margin-bottom: 8px; }
.log-filter-grid label { min-width: 0; }
.log-filter-grid input, .log-filter-grid select { width: 100%; min-width: 0; }
.log-filter-actions { margin: 0; }
.log-filter #log-ref-help { margin: 0; }
@media (min-width: 400px) {
  .log-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-filter-grid > label:nth-child(-n+3), .log-filter-actions { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .log-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .log-filter-grid > label:nth-child(-n+3), .log-filter-actions { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .side, .practice-bar, .btn, form { display: none !important; }
}
.pending { background: var(--info-bg); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; overflow-wrap: anywhere; }
.pending p { margin: 0 0 .25rem; }
.code-switch a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.log-object { overflow-wrap: anywhere; }

/* Tasks, year calendar, messages (phase 2) */
.crumb { margin: 0 0 .25rem; font-size: .9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar .filters { margin-bottom: 0; }
.filter-note { background: var(--info-bg); border-radius: 10px; padding: 8px 12px; }
.pill-info { background: var(--info-bg); color: var(--accent-dark); }
.task-list, .signal-list, .coming-list, .cal-list, .msg-list, .finish-list, .timeline, .igj-parts, .wiz-steps { list-style: none; margin: 0; padding: 0; }
.task-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.card .task-item { border-color: var(--line); }
.task-expired { border-left: 5px solid var(--risk); }
.task-soon { border-left: 5px solid var(--warn); }
.task-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.task-ref, .signal-ref { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.task-title { font-weight: 600; min-width: 0; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; color: var(--muted); }
.task-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin: 0 0 16px; }
.task-facts dt { font-size: .8rem; color: var(--muted); }
.task-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.task-blocks > div { margin-bottom: .75rem; }
.task-blocks h2 { font-size: 1rem; margin-bottom: .25rem; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.form-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form-row label { flex: 1 1 200px; }
.pre { white-space: pre-line; }
.quote { margin: .5rem 0 .75rem; }
.quote blockquote { margin: 0 0 .25rem; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--bg); }
.quote figcaption { color: var(--muted); }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); margin-left: 4px; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.month { margin-bottom: 0; }
.cal-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.cal-list li:first-child { border-top: 0; }
.cal-others { border-top: 1px solid var(--line); padding-top: 4px; }
.cal-others > summary { font-size: .95rem; }
.cal-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; }
.msg-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.msg-item dl { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0; }
.msg-item dt { font-size: .8rem; color: var(--muted); }
.msg-item dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .msg-item dl { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 2fr) 8rem; gap: 12px; }
}

/* Vandaag */
a.stat { text-decoration: none; color: var(--text); }
a.stat:hover { border-color: var(--accent); }
.stat-alert { border-left: 6px solid var(--risk); }
.signal { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.signal:first-child { border-top: 0; }
.signal a { min-width: 0; flex: 1 1 14rem; }
.coming-list li { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.coming-list li:first-child { border-top: 0; }
.coming-date { flex: 0 0 9.5rem; font-weight: 600; font-size: .9rem; }
.coming-what { flex: 1 1 14rem; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.finish-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.finish-list .pill { flex: 0 0 auto; min-width: 6.5rem; text-align: center; }
.finish-label { display: flex; flex-direction: column; min-width: 0; }
.igj-level { font-weight: 600; }
.igj-parts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 4px 0; border-top: 1px solid var(--line); }

/* Start wizard */
.wiz-steps { counter-reset: wiz; margin-bottom: 1rem; }
.wiz-steps li { counter-increment: wiz; display: flex; flex-direction: column; padding: 6px 0 6px 2.2rem; position: relative; }
.wiz-steps li::before { content: counter(wiz); position: absolute; left: 0; top: 6px; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.wiz-progress { display: flex; align-items: center; gap: 6px; margin: 0 0 .5rem; color: var(--muted); }
.wiz-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wiz-dot.past { background: var(--ok); }
.wiz-dot.on { background: var(--accent); }
.wiz-progress span:last-child { margin-left: 6px; }
.prefilled { margin: 4px 0 0; color: var(--muted); }
.form .help { margin: 0 0 4px; font-weight: 400; }
.form label.check.disabled { color: var(--muted); }
fieldset.invalid { border-color: var(--risk); }
.legal-need { border-left: 4px solid var(--risk); background: var(--risk-bg); border-radius: 8px; padding: 10px 12px; }
.legal-need p { margin-bottom: .4rem; }
.legal-need .quote blockquote { background: #fff; }
/* The law box is for "nee" and "weet niet": once "ja" is ticked it goes, before saving (a red box under "ja" read as an error). */
fieldset:has(input[value="ja"]:checked) + .legal-need { display: none; }
.info-note { max-width: 46rem; border-left: 4px solid var(--accent); background: var(--info-bg); border-radius: 8px; padding: 10px 12px; }
/* Team en rollen: the auditor date and document scope only while the external auditor role is ticked. */
.auditor-only { display: contents; }
.form:not(:has(input[data-auditor]:checked)) .auditor-only:not(:has([aria-invalid="true"])) { display: none; }
/* Follow-up fields only after the choice that needs them; a field with an error always shows. */
.form fieldset:has(input[name="epd_profile"]):not(:has(input[value="anders"]:checked)) + div:has(> #f-epd:not([aria-invalid="true"])) { display: none; }
.form div:has(> #f-deputy):not(:has(option[value="external"]:checked)) + div:has(> #f-deputy_external:not([aria-invalid="true"])) { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.form .actions .btn { align-self: auto; }
.btn-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Registers, documents, risks (phase 3) */
input[type=datetime-local] { width: 100%; max-width: 100%; font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); }
input[type=datetime-local][aria-invalid=true], select[aria-invalid=true] { border-color: var(--risk); }
.reg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.reg-cards .card { margin-bottom: 0; }
.reg-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.reg-facts { display: grid; grid-template-columns: 1fr; gap: 6px 16px; margin: 0 0 12px; }
.reg-facts > div { padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.reg-facts dt { font-size: .8rem; color: var(--muted); }
.reg-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 700px) { .reg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reg-field { display: flex; flex-direction: column; gap: 4px; }
.reg-form .reg-field > label { font-weight: 600; }
.refs > summary { font-weight: 400; font-size: .875rem; }
.doc { line-height: 1.55; max-width: 48rem; }
.doc h2 { font-size: 1.1rem; margin-top: 1.2rem; }
.doc h3 { font-size: 1rem; }
.doc blockquote { margin: .5rem 0 .9rem; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--bg); }
.doc blockquote footer { font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.doc-note { color: var(--muted); font-size: .95rem; }
.doc-table { overflow-x: auto; max-width: 100%; margin: 0 0 .9rem; }
.doc-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; overflow-wrap: break-word; hyphens: auto; }
/* Narrow screens: long English or Turkish words in a column may break, so the table fits without a sideways scroll. */
@media (max-width: 600px) { .doc-table th, .doc-table td { overflow-wrap: anywhere; } }
.doc-table th { background: var(--accent-soft); }
.diff { list-style: none; margin: 0; padding: 0; }
.diff li { padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; overflow-wrap: anywhere; }
.diff-add { background: var(--ok-bg); border-left: 4px solid var(--ok); }
.diff-del { background: var(--risk-bg); border-left: 4px solid var(--risk); }
.diff-del .diff-text { text-decoration: line-through; text-decoration-thickness: 1px; }
.diff-op { font-weight: 700; }
.matrix-wrap { max-width: 100%; }
.matrix { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; }
.matrix caption { caption-side: bottom; text-align: left; color: var(--muted); padding-top: 4px; }
.matrix th { font-size: .8rem; font-weight: 700; padding: 2px; }
.matrix thead th:first-child { width: 3.2rem; }
.matrix td { padding: 0; border-radius: 8px; border: 1px solid var(--line); }
.matrix td a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 4px 2px; text-decoration: none; color: var(--text); text-align: center; line-height: 1.15; }
.matrix .cell-n { font-size: 1.15rem; font-weight: 700; }
.matrix .cell-score, .matrix .cell-level { font-size: .7rem; }
.matrix .cell-laag { background: #F0F3F2; }
.matrix .cell-midden { background: var(--warn-bg); }
.matrix .cell-hoog { background: #F9D9C7; }
.matrix .cell-zeer_hoog { background: var(--risk-bg); }
.matrix .cell-zeer_hoog .cell-level, .matrix .cell-hoog .cell-level { font-weight: 700; }
.matrix td.cell-on { outline: 3px solid var(--accent); }
@media (min-width: 700px) { .matrix .cell-score, .matrix .cell-level { font-size: .8rem; } .matrix td a { min-height: 72px; } }

/* Staff and suppliers, round 2 (P4) */
.pill-exempt { background: #EDE7F6; color: #4A3A78; }
.flash-here { margin: .5rem 0; scroll-margin-top: 12px; }
.readonly-bar { padding: 10px 16px 0; }
.readonly-bar .flash { margin-bottom: 0; }
.stack-table code { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; box-sizing: border-box; }
  .stack-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 4px 8px; }
  .stack-table td { border: 0 !important; padding: 2px 0 !important; }
  .stack-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}
/* A letter, statement or signed form prints as the document only: no crumb, flash, status card or instructions. */
@media print {
  body { background: #fff !important; }
  .shell { max-width: none; margin: 0; }
  .main { padding: 0 !important; }
  .flash, .crumb { display: none !important; }
  main:has(.print-doc) > :not(.print-doc) { display: none !important; }
  .print-doc { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 12px !important; background: #fff !important; }
}
/* Incidents, requests, log control, EPD checklist (P5) */
.clock-head { border-left: 6px solid var(--accent); }
.clock-head.clock-expired { border-left-color: var(--risk); }
.clock-head.clock-final { border-left-color: var(--ok); }
.clock-state { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.clock-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.clock-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--warn); border-radius: 10px; background: var(--card); min-width: 0; }
.clock-card.clock-expired { border-left-color: var(--risk); }
.clock-card .clock-state { font-size: 1rem; }
.flow-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.flow-steps li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: #F7F9F8; border: 1px solid var(--line); }
.flow-steps .step-name { font-weight: 600; min-width: 0; }
.flow-steps .step-current { border-color: var(--accent); background: var(--info-bg); }
.flow-steps .step-na .step-name, .flow-steps .step-skipped .step-name { color: var(--muted); font-weight: 400; }
.decision-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.answers { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 6px 16px; }
.answers dt { font-size: .8rem; color: var(--muted); }
.answers dd { margin: 0; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.letter { white-space: pre-line; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; font-size: .95rem; }
.trend { list-style: none; margin: 0; padding: 0; }
.trend li { padding: 4px 0; border-top: 1px solid var(--line); }
.decision-grid + form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
/* Report link without an account (ADR 0017): the link is long and shown once; it wraps inside the field. */
.link-url { width: 100%; max-width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }

/* P7: search in the menu, search hits, log filters, Uitleg */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.side-search { display: flex; gap: 6px; flex: 1 1 100%; min-width: 0; }
.side-search input { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 6px 10px; }
.side-search .btn { min-height: 40px; padding: 4px 12px; }
.search-hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.search-hits a { font-weight: 600; overflow-wrap: anywhere; }
.log-filter h2 { font-size: 1rem; }
.uitleg-topic + .uitleg-topic { margin-top: 12px; }
.uitleg-source { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.uitleg-source h3 { font-size: .95rem; margin: 0 0 .25rem; }
.unverified { border-left: 4px solid var(--warn); padding-left: 10px; }
/* P7: the menu folds into one button on narrow screens (pib.js opens it from 900 px) */
.side-menu { flex: 1 1 100%; min-width: 0; }
.side-menu > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 650; cursor: pointer; list-style: none; }
.side-menu > summary::-webkit-details-marker { display: none; }
.side-menu[open] > summary { margin-bottom: 6px; }
.side-current { font-weight: 400; color: var(--muted); }
.side-links { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) {
  .side-search, .side-menu { flex: none; }
  .side-menu[open] > summary { display: none; }
  .side-links { flex-direction: column; }
}
/* Control numbers of a risk (CF-29): a folded list that scrolls inside itself. */
details.control-pick { margin: 0 0 12px; }
details.control-pick > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
details.control-pick fieldset { max-height: 22rem; overflow-y: auto; }
details.control-pick label.check { overflow-wrap: break-word; }
details.control-pick label.check > span[lang] { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
details.control-pick .control-nr { white-space: nowrap; flex-shrink: 0; min-width: 2.6em; font-variant-numeric: tabular-nums; }
/* Quarterly and yearly counts (plan 3.7, 3.9): a small table that scrolls inside itself on a narrow screen. */
.table-scroll { overflow-x: auto; max-width: 100%; }
.quarter-table { border-collapse: collapse; width: 100%; }
.quarter-table th, .quarter-table td { padding: 6px 8px; border-bottom: 1px solid var(--line, #dde3e0); text-align: left; }
.quarter-table td { text-align: right; font-variant-numeric: tabular-nums; }
.quarter-table tbody th { font-weight: 400; }
details.control-pick > summary::after { content: "+"; margin-left: 8px; font-weight: 700; }
details.control-pick[open] > summary::after { content: "\2212"; }

/* Time per task (ADR 0024) and the IGJ difference sentence (P8 r2). */
#igj-differs { margin-top: .75rem; }
.time-lines ul { margin: .25rem 0 .5rem; }

/* P10a (ADR 0026): group training attendees, screening dates, roles. */
.attendee-list { list-style: none; padding-left: 0; }
.attendee-list .attendee { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid #e3e7ec; }
.attendee-list .score { display: flex; gap: .5rem; align-items: center; margin: 0; }
.attendee-list .score input { width: 5.5rem; }
.screening-grid { display: grid; grid-template-columns: 1fr; gap: .25rem 1rem; align-items: center; margin-bottom: 1rem; }
@media (min-width: 640px) { .screening-grid { grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 14rem); } }
.role-row { margin-bottom: 1rem; }
.role-state { margin: .25rem 0 0; }
.inbox-form { border-top: 1px solid #e3e7ec; padding-top: .75rem; margin-top: .75rem; }
.toolbar-actions { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
/* P10b: contract check, statement of applicability, walk-round, audit forms. */
.choice-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contract-line, .walk-item fieldset, .audit-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; min-width: 0; }
.contract-line legend, .walk-item legend, .audit-item legend { font-weight: 600; padding: 0 4px; max-width: 100%; overflow-wrap: anywhere; }
.walk-list { padding-left: 1.2rem; }
.walk-item { margin-bottom: 4px; }
.soa-row { margin-bottom: 12px; min-width: 0; }
.soa-row legend { font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.soa-fields { display: grid; grid-template-columns: 1fr; gap: 2px 12px; }
@media (min-width: 720px) { .soa-fields { grid-template-columns: max-content 1fr max-content 1fr; align-items: center; } .soa-fields label { margin: 0; } }
.soa-counts { font-size: 1.05rem; }
.known-line { background: var(--info-bg); border-radius: 8px; padding: 6px 10px; font-size: .9rem; overflow-wrap: anywhere; }

/* Help (ADR 0031): "Hoe werkt dit?" beside the page title, under it on a phone; the articles and their screenshots. */
.page-head { margin: 0 0 .5rem; }
.page-head h1 { margin: 0 0 .25rem; }
.help-how { display: inline-flex; align-items: center; min-height: 36px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
@media (min-width: 700px) {
  .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .page-head h1 { min-width: 0; }
  .help-how { flex: none; margin-top: .1rem; }
}
.task-help { white-space: nowrap; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-item { padding: .45rem 0; border-top: 1px solid var(--line); }
.help-item:first-child { border-top: 0; }
.help-item a { font-weight: 600; margin-right: .35rem; }
.help-article { max-width: 60rem; }
.help-article > p, .help-article > ul, .help-article > dl, .help-steps > li > p { max-width: 46rem; }
.help-article h2 { margin-top: 1.5rem; }
.help-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 1rem; }
.help-facts div { display: flex; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.help-facts dt { font-weight: 600; }
.help-facts dd { margin: 0; }
.help-steps { padding-left: 1.4rem; }
.help-steps > li { margin-bottom: 1rem; }
.help-steps > li::marker { font-weight: 700; color: var(--accent); }
.ui-label { font-weight: 700; background: var(--info-bg); border-radius: 4px; padding: 0 .12em; }
.help-shot { margin: .5rem 0 0; }
.help-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
@media (min-width: 700px) { .help-shot img { width: 100%; } }
.help-shot-open { display: block; }
.help-shot-open:focus-visible { outline: none; }
.help-shot-open:focus-visible img { outline: 3px solid var(--accent); outline-offset: 2px; }
.help-results ol { list-style: none; }
.help-others > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.help-others .help-area { border: 0; border-radius: 0; padding: 0; margin: 1rem 0 0; background: none; }
.help-others .help-area h2 { font-size: 1rem; }
.help-shot figcaption { margin-top: .25rem; }
@media print { .help-how, .task-help { display: none !important; } }
/* Platform administration (ADR 0032): its own row of tabs above the page title, no practice menu. */
.beheer-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.beheer-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.beheer-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.beheer-tabs a:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.beheer-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.beheer-status .card { margin: 0; }

/* Counters read as one summary strip, not a row of separate stat cards (design rule of ggzoporde.nl, 25-11-2026).
   The 1 px gaps on a line-coloured ground are the dividers, whatever the number of columns. A counter that needs
   attention gets a red number and a red rule on top instead of a coloured card edge. */
.stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats > .stat { flex: 1 1 130px; }
.stats > .stat.card { margin: 0; border: 0; border-radius: 0; background: var(--card); padding: 14px 18px; }
.stats > a.stat.card:hover { background: var(--accent-soft); }
.stats > a.stat:focus-visible { outline-offset: -4px; }
.stats > .stat.card.stat-alert { box-shadow: inset 0 3px 0 var(--risk); }
.stats > .stat-alert .stat-number { color: var(--risk); }
