/* JIP v2 basis: reset, typografie en gedeelde componenten (app en website).
   Vereist tokens.css. Componentklassen horen bij de bouwers in assets/js/ui.js. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 var(--s-3); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--signal) 55%, transparent); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- typografie ---------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -0.02em; }
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; letter-spacing: -0.015em; }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -0.01em; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-small); }
.t-label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-2); }
.t-mono { font-family: var(--mono); font-feature-settings: "zero" on; }
.t-muted { color: var(--ink-2); }
.t-faint { color: var(--ink-3); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- iconen ---------- */
.ic { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-28 { width: 28px; height: 28px; }
.ic-32 { width: 32px; height: 32px; }

/* ---------- knoppen ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--ink); --_bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--hit); padding: 0 var(--s-5);
  border-radius: var(--r-btn); border: 1px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  user-select: none; white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { --_bg: var(--brand); --_fg: var(--brand-ink); --_bd: var(--brand); }
.btn-primary:hover { --_bg: color-mix(in srgb, var(--brand) 88%, var(--ink)); }
.btn-signal { --_bg: var(--signal); --_fg: var(--signal-ink); --_bd: var(--signal); }
.btn-secondary { --_bg: var(--surface); }
.btn-secondary:hover { --_bg: var(--surface-2); }
.btn-ghost { --_bg: transparent; --_bd: transparent; color: var(--brand); }
.btn-ghost:hover { --_bg: var(--brand-soft); }
.btn-ok { --_bg: var(--ok); --_fg: var(--ink-inverse); --_bd: var(--ok); }
.btn-danger { --_bg: transparent; --_fg: var(--alert); --_bd: color-mix(in srgb, var(--alert) 40%, transparent); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 var(--s-3); font-size: 14px; border-radius: 10px; }
.btn-icon { width: var(--hit); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Icoonknop met label eronder (actiebalk) */
.action {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 60px; min-height: 52px; padding: 4px 6px; border-radius: var(--r-btn);
  color: var(--ink); font-size: 11.5px; font-weight: 500; line-height: 1.1; letter-spacing: 0;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.action:hover { background: var(--surface-2); }
.action:active { transform: scale(.96); }
.action .ic { width: 22px; height: 22px; }

/* ---------- invoer ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.input, .textarea, .select {
  width: 100%; min-height: var(--hit); padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: 22px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--focus); }
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.input-unit > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; pointer-events: none; }

/* Zoekbalk */
.search {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 56px; padding: 0 6px 0 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search:focus-within { border-color: var(--brand-2); box-shadow: var(--focus); }
.search > .ic { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 17px; height: 54px; padding: 0; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible { box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search .search-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); }
.search .search-btn:hover { background: var(--surface-2); }
.search .search-sep { width: 1px; height: 24px; background: var(--line); }

/* ---------- kaarten en lijsten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card-pad { padding: var(--s-4); }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease), background var(--t-fast); }
.card-link:hover { border-color: var(--line-strong); }
.card-link:active { transform: scale(.99); background: var(--surface-2); }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 60px; padding: 10px var(--s-4);
  color: inherit; text-decoration: none !important; width: 100%; text-align: left;
  transition: background var(--t-fast);
}
.row + .row { border-top: 1px solid var(--line); }
a.row:hover, button.row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
a.row:active, button.row:active { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title, .row-sub { display: block; }
.row-title { font-size: 15.5px; line-height: 21px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13.5px; line-height: 19px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { color: var(--ink-3); display: flex; align-items: center; gap: var(--s-2); font-size: 13px; }

.section { margin-top: var(--s-8); }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-3); }
.section-head h2 { font-size: 17px; line-height: 22px; font-weight: 600; }
.section-head .t-label { margin: 0; }
.section-head a, .section-head button { font-size: 14px; font-weight: 500; color: var(--brand-2); min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- chips, labels, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px; border-radius: var(--r-chip);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
button.chip:hover, a.chip:hover { background: var(--surface-2); text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-on, button.chip[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .ic { width: 16px; height: 16px; }
.chip-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip-scroll { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding: var(--gutter); }
.chip-scroll::-webkit-scrollbar { display: none; }

.code-chip {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .02em; line-height: 1;
  min-width: 44px; height: 28px; padding: 0 8px; border-radius: 8px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  font-feature-settings: "zero" on;
}
.code-chip.lg { height: 44px; min-width: 72px; font-size: 22px; padding: 0 14px; border-radius: 12px; }
.code-chip.on-brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.label {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: var(--r-chip);
  font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.label .ic { width: 14px; height: 14px; stroke-width: 2; }
.label-ok { background: var(--ok-soft); color: var(--ok); }
.label-warn { background: var(--warn-soft); color: var(--warn); }
.label-alert { background: var(--alert-soft); color: var(--alert); }
.label-info { background: var(--info-soft); color: var(--info); }
.label-brand { background: var(--brand-soft); color: var(--brand); }
.label-outline { background: transparent; border: 1px solid var(--line-strong); }

/* Bronchip */
.source {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  min-height: 30px; padding: 4px 10px 4px 8px; border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; line-height: 16px; text-align: left;
  border: 1px solid transparent; transition: border-color var(--t-fast);
}
a.source:hover, button.source:hover { border-color: var(--line-strong); text-decoration: none; }
.source .ic { width: 15px; height: 15px; color: var(--ink-3); }
.source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- merktegel ---------- */
.brand-tile {
  --_c: var(--m-binnenkort);
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: color-mix(in srgb, var(--_c) 14%, var(--surface));
  color: var(--_c);
  border: 1px solid color-mix(in srgb, var(--_c) 22%, transparent);
  font-weight: 700; font-size: 14px; letter-spacing: .01em; line-height: 1;
}
.brand-tile.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.brand-tile.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 19px; }
.brand-tile.is-soon { background: color-mix(in srgb, var(--_c) 7%, var(--surface-2)); color: color-mix(in srgb, var(--_c) 70%, var(--ink-3)); border-color: var(--line); }
:root[data-theme="dark"] .brand-tile { color: color-mix(in srgb, var(--_c) 55%, #fff); background: color-mix(in srgb, var(--_c) 26%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-tile { color: color-mix(in srgb, var(--_c) 55%, #fff); background: color-mix(in srgb, var(--_c) 26%, var(--surface)); } }

/* Grote selecteerbare merkkaart (onboarding, filters) */
.brand-pick {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; min-height: 104px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
}
.brand-pick:active { transform: scale(.98); }
.brand-pick .bp-name { font-weight: 600; font-size: 15px; line-height: 20px; }
.brand-pick .bp-sub { font-size: 12.5px; color: var(--ink-3); line-height: 16px; }
.brand-pick .bp-check {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent;
  transition: all var(--t-fast);
}
.brand-pick .bp-check .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.brand-pick[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.brand-pick[aria-pressed="true"] .bp-check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- callouts ---------- */
.callout { display: flex; gap: var(--s-3); padding: 14px var(--s-4); border-radius: var(--r-card); font-size: 14.5px; line-height: 21px; background: var(--surface-2); color: var(--ink); }
.callout .ic { margin-top: 0; width: 22px; height: 22px; }
.callout strong { font-weight: 600; }
.callout-warn { background: var(--warn-soft); }
.callout-warn > .ic { color: var(--warn); }
.callout-alert { background: var(--alert-soft); }
.callout-alert > .ic { color: var(--alert); }
.callout-info { background: var(--info-soft); }
.callout-info > .ic { color: var(--info); }
.callout-ok { background: var(--ok-soft); }
.callout-ok > .ic { color: var(--ok); }

/* Praktijktip: het goud uit de DHPS-service */
.tip { position: relative; padding: 14px 16px 14px 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.tip::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--signal); }
.tip + .tip { margin-top: var(--s-2); }

/* ---------- checklist ---------- */
.checklist { list-style: none; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.check {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  padding: 14px var(--s-4); min-height: 56px; cursor: pointer;
  transition: background var(--t-fast);
}
.checklist > li + li .check, .checklist > li + li > .check { border-top: 1px solid var(--line); }
.check:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.check-box {
  flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 8px;
  border: 1.75px solid var(--line-strong); display: grid; place-items: center; color: transparent;
  transition: background var(--t-med) var(--ease), border-color var(--t-med), color var(--t-fast);
}
.check-box .ic { width: 16px; height: 16px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--t-med) var(--ease) 40ms; }
.check-num { flex: none; min-width: 12px; margin: 0 -4px 0 -2px; font-family: var(--mono); font-size: 12.5px; line-height: 23px; color: var(--ink-3); font-weight: 500; text-align: right; }
.check-text { flex: 1; font-size: 15.5px; line-height: 23px; transition: color var(--t-med); }
.check-text small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 19px; margin-top: 2px; }
.check[aria-checked="true"] .check-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check[aria-checked="true"] .check-box .ic { stroke-dashoffset: 0; }
.check[aria-checked="true"] .check-text { color: var(--ink-2); }
.check-extra { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- voortgang ---------- */
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width var(--t-slow) var(--ease); }
.progress.ok > span { background: var(--ok); }
.ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring::before { content: attr(data-label); width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- segmented ---------- */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); position: relative; }
.segmented button { position: relative; z-index: 1; min-height: 38px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color var(--t-fast); }
.segmented button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.segmented .seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: var(--surface); box-shadow: 0 1px 2px rgba(22,25,30,.08), 0 1px 1px rgba(22,25,30,.04); transition: transform var(--t-med) var(--ease), width var(--t-med) var(--ease); }

/* Schakelaar */
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background var(--t-med); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--t-med) var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- lege staat en skeleton ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--s-8) var(--s-6); color: var(--ink-2); }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); margin-bottom: 6px; }
.empty-icon .ic { width: 26px; height: 26px; }
.empty h3 { font-size: 16px; line-height: 22px; color: var(--ink); font-weight: 600; }
.empty p { font-size: 14px; line-height: 20px; margin: 0; max-width: 30ch; }
.empty .btn { margin-top: 10px; }

.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: skel 1.4s var(--ease) infinite; }
@keyframes skel { to { transform: translateX(100%); } }
.skel-line { height: 12px; margin: 8px 0; }
.skel-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.skel-row + .skel-row { border-top: 1px solid var(--line); }

/* ---------- waterpas-luchtbel (laadindicator) ---------- */
.level {
  --w: 64px;
  position: relative; display: inline-block; width: var(--w); height: 16px; border-radius: 99px;
  background: color-mix(in srgb, var(--signal) 22%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  overflow: hidden; vertical-align: middle;
}
.level::before, .level::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 1.5px; background: color-mix(in srgb, var(--ink) 35%, transparent); left: calc(50% - 10px); }
.level::after { left: calc(50% + 9px); }
.level > i { position: absolute; top: 2px; left: 50%; width: 16px; height: 9px; margin-left: -8px; border-radius: 99px;
  background: radial-gradient(ellipse at 40% 35%, #fff 0 30%, color-mix(in srgb, #fff 70%, var(--signal)) 70%);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.08);
  animation: level 1.8s var(--ease) infinite alternate; }
.level.sm { --w: 44px; height: 13px; }
.level.sm > i { width: 12px; height: 7px; margin-left: -6px; }
@keyframes level {
  0% { transform: translateX(-14px); }
  60% { transform: translateX(10px); }
  100% { transform: translateX(2px); }
}

/* ---------- logo ---------- */
.jip-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.jip-logo svg { height: 28px; width: auto; }
.powered { display: inline-grid; gap: 4px; color: var(--ink); }
.powered small { font-size: 10.5px; line-height: 12px; color: var(--ink-3); letter-spacing: .02em; }
.powered svg { height: 18px; width: auto; }

/* ---------- sheet (bottom sheet) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(100%); transition: transform var(--t-slow) var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-full { height: 92%; max-height: 92%; }
.sheet-wrap.in .sheet-scrim { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 8px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: 8px var(--s-4) 4px var(--s-5); flex: none; touch-action: none; }
.sheet-head p { margin: 2px 0 0; }
.sheet-x { width: 40px; height: 40px; margin: -4px -6px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--surface-2); flex: none; }
.sheet-x .ic { width: 20px; height: 20px; }
.sheet-body { padding: var(--s-3) var(--s-5) var(--s-5); overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { padding: var(--s-3) var(--s-5) var(--s-5); border-top: 1px solid var(--line); flex: none; }
.sheet-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-2); }

/* ---------- toast ---------- */
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; display: flex; justify-content: center; pointer-events: none; padding: 0 var(--s-4); }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 100%;
  min-height: 48px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-float);
  font-size: 14.5px; font-weight: 500; line-height: 20px;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  pointer-events: auto;
}
.toast.in { opacity: 1; transform: none; }
.toast .ic { width: 20px; height: 20px; color: var(--signal); }
.toast span { padding-right: 4px; }
.toast button { margin-left: 4px; min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--signal); font-weight: 600; font-size: 14px; }
.toast button:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }

/* ---------- toegankelijkheid en beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .level > i { animation: none; transform: translateX(-2px); }
}
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }

/* ---------- print (opleverrapport, portfolio) ---------- */
.print-only { display: none !important; }
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
}
