/* VOICE   calm, friendly work tool for an optician team
   IDEA    soft panels on a light grey desk, like the reference: white rounded panels, one accent colour
   PICTURE today's team and tasks in the main column; "Vandaag" (shifts, alerts, quick add) on the right
   COLOUR  grey ground #eceef1, white panels, ink #18181b; --accent and --hl set by the admin (default teal)
   TYPE    Inter throughout
   LAYOUT  sidebar panel | content panels | (on the overview) today panel; stacks on phones */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --ground: #eceef1; --panel: #ffffff; --soft: #f6f6f7; --ink: #18181b; --ink-2: #3f3f46; --muted: #71717a; --faint: #a1a1aa;
  --line: #ececef; --line-2: #f3f3f5; --field: #e4e4e7;
  --accent: #0f4c5c; --on-accent: #ffffff; --hl: #0d9488; --on-hl: #ffffff;
  --accent-tint: color-mix(in srgb, var(--accent) 9%, #fff); --accent-soft: color-mix(in srgb, var(--accent) 55%, #fff);
  --hl-tint: color-mix(in srgb, var(--hl) 11%, #fff); --hl-ink: color-mix(in srgb, var(--hl) 70%, #000);
  --bad: #dc2626; --bad-tint: #fef2f2; --bad-line: #fecaca; --good: #15803d; --good-tint: #f0fdf4; --good-line: #bbf7d0;
  --warn: #b45309; --warn-tint: #fffbeb; --warn-line: #fde68a; --info: #2563eb; --info-tint: #eff6ff; --info-line: #bfdbfe;
  --r: 16px; --gap: 14px; --shadow: 0 1px 2px rgba(24, 24, 27, .04);
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
html { background: #eceef1; }
body { margin: 0; background: #eceef1; color: var(--ink); font: 14.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; margin: 0; font-weight: 600; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 14px; margin: 20px 0 8px; font-weight: 600; }
p { margin: 4px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.late { color: var(--bad); font-weight: 600; }
.soon { color: var(--warn); font-weight: 600; }
.pre { white-space: pre-wrap; }
.i { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* layout: sidebar + content */
.shell { display: flex; gap: var(--gap); padding: calc(var(--gap) + env(safe-area-inset-top)) var(--gap) var(--gap); min-height: 100vh; align-items: flex-start; }
.side { width: 232px; flex: none; background: var(--panel); border-radius: var(--r); padding: 18px 14px 14px; position: sticky; top: var(--gap); max-height: calc(100vh - 2 * var(--gap)); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 16px; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 20px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.side .sec { font-size: 11px; font-weight: 600; color: var(--muted); padding: 12px 10px 6px; }
.side .sec:first-of-type { padding-top: 0; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; min-height: 38px; }
.side nav a:hover { background: var(--soft); text-decoration: none; }
.side nav a.on { background: #f1f1f3; color: var(--ink); font-weight: 600; }
.side nav a.on .i { color: var(--accent); }
.side nav a .cnt { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
.badge { margin-left: auto; min-width: 18px; text-align: center; font-size: 11px; font-weight: 600; color: #fff; background: var(--bad); border-radius: 99px; padding: 0 5px; line-height: 1.6; }
.promo { margin-top: auto; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 14px 46px 14px 14px; position: relative; text-decoration: none; display: block; }
.promo:hover { text-decoration: none; filter: brightness(1.08); }
.promo b { display: block; font-size: 14px; font-weight: 600; }
.promo span { display: block; font-size: 11.5px; opacity: .82; line-height: 1.45; margin-top: 3px; font-weight: 400; }
.promo i { position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.side-spacer { margin-top: auto; }
.who { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 8px; margin-top: 10px; }
.who a.me { display: flex; align-items: center; gap: 9px; flex: 1; color: var(--ink); text-decoration: none; line-height: 1.25; }
.who .nm { font-weight: 600; font-size: 13px; }
.who .role { font-size: 11px; color: var(--muted); }
.who a.out { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); }
.who a.out:hover { background: var(--soft); color: var(--ink); }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px Inter, sans-serif; color: var(--ink-2); flex: none; background: #f1f1f3; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.av.sm { width: 26px; height: 26px; font-size: 9.5px; }
.stack-av { display: flex; }
.stack-av .av + .av { margin-left: -8px; }
main { flex: 1; max-width: 1400px; }
main.center { max-width: none; padding: 0; }

/* panels */
.card, header.page { background: var(--panel); border-radius: var(--r); padding: 20px 22px; margin-bottom: var(--gap); box-shadow: var(--shadow); }
.grid > .card { margin-bottom: 0; }
header.page { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
header.page p { margin: 3px 0 0; }
.ttl { display: flex; align-items: center; gap: 14px; }
.ttl .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-tint); color: var(--accent); }
.ttl .ic .i { width: 20px; height: 20px; }
.ttl p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--gap); align-items: start; margin-bottom: var(--gap); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card.narrow { max-width: 460px; margin: 48px auto; }
.card .more { display: inline-flex; margin-top: 10px; font-size: 13px; }
.hic { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); }
.hic .i { display: none; }
.hic.red { background: var(--bad); } .hic.green { background: var(--good); } .hic.amber { background: #f59e0b; } .hic.violet, .hic.teal { background: var(--hl); }
h2 .count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.flash { background: var(--panel); border-radius: 12px; border-left: 4px solid var(--accent); padding: 12px 16px; margin-bottom: var(--gap); font-weight: 500; box-shadow: var(--shadow); }
.setup-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: var(--gap); border-radius: var(--r); background: var(--accent-tint); font-weight: 600; }

/* overview */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.dash-main > .card:last-child, .dash-main > .grid:last-child { margin-bottom: 0; }
.hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hello h1 { font-size: 22px; }
.hello .right { text-align: right; }
.hello .right .lbl { margin-top: 6px; font-weight: 600; display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 13px; }
.chiplet { font-size: 11px; font-weight: 500; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 22px; }
.stats > a { padding: 0 18px; border-left: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.stats > a:first-child { padding-left: 0; border-left: 0; }
.stats .lbl { color: var(--muted); font-size: 12px; font-weight: 500; }
.stats .val { margin-top: 4px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.stats .val small { font-weight: 400; font-size: 12px; color: var(--muted); }
.stats .val small.bad { color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dot.off { background: var(--faint); }
.taskrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.taskrow:last-child { border-bottom: 0; }
.taskrow .t { flex: 1; }
.taskrow.done .t { color: var(--faint); text-decoration: line-through; }
.taskrow form { margin: 0; display: flex; }
.cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #d4d4d8; background: #fff; padding: 0; cursor: pointer; flex: none; display: grid; place-items: center; }
.cb:hover { border-color: var(--accent); }
.cb.on { background: var(--accent); border-color: var(--accent); }
.cb.on::after { content: ""; width: 4px; height: 8px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.panel-head h2 { margin: 0; }
.panel-foot { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.today { position: sticky; top: var(--gap); display: flex; flex-direction: column; padding: 20px 16px 16px; }
.today .sub { color: var(--muted); padding: 0 4px 12px; }
.today .head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.today .head h2 { margin: 0; font-size: 17px; }
.well { background: var(--soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.well .sec { font-size: 11px; font-weight: 600; color: var(--muted); }
.mini-tl { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 7px 8px; font-size: 12px; }
.mini-tl .bar { height: 16px; border-radius: 5px; background: var(--field); position: relative; overflow: hidden; }
.mini-tl .bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--accent); }
.mini-tl .bar i.part { background: var(--accent-soft); }
.mini-tl .bar i.off { background: repeating-linear-gradient(135deg, #e4e4e7 0 5px, #f4f4f5 5px 10px); }
.mini-tl .bar .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bad); }
.mini-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); padding-left: 64px; }
.note { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); display: block; color: var(--ink); text-decoration: none; }
.note:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.note b { display: block; font-weight: 600; font-size: 13px; }
.note.urgent b { color: var(--bad); }
.note span { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.quick { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px 5px 5px 12px; margin-top: 4px; }
.quick input { flex: 1; border: 0; outline: 0; box-shadow: none; padding: 6px 0; min-height: 30px; font-size: 13px; background: transparent; }
.quick input:focus { box-shadow: none; }
.quick button { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }

/* day timeline (not on overview) */
.timeline { position: relative; --who: 150px; }
.tl-scale { position: relative; height: 24px; margin-left: var(--who); border-bottom: 1px solid var(--line); }
.tl-scale span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-row { display: flex; align-items: center; height: 48px; border-bottom: 1px solid var(--line-2); }
.tl-who { width: var(--who); flex: none; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.tl-track { position: relative; flex: 1; height: 100%; }
.tl-bar { position: absolute; top: 13px; bottom: 13px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.tl-bar.ochtend, .tl-bar.middag, .tl-bar.anders { background: var(--accent-soft); color: var(--ink); }
.tl-bar.off { background: repeating-linear-gradient(135deg, var(--soft) 0 7px, #ececef 7px 14px); color: var(--muted); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); }
.tl-empty { padding: 12px 0; color: var(--muted); }

/* forms */
input, select, textarea { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; min-height: 42px; width: 100%; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #d4d4d8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
input[type=color] { padding: 4px; width: 56px; cursor: pointer; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; flex: 1; }
label.checkbox { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; }
label.checkbox input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > label { min-width: 140px; }
.row > input { flex: 1; }
.row.tight { flex-wrap: nowrap; align-items: center; }
.row .grow { flex: 3; }
.daylabel { width: 96px; flex: none; font-size: 13.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none; transition: filter .15s; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 15px; height: 15px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--field); font-weight: 500; }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.btn.soft { background: var(--soft); border-color: var(--soft); color: var(--muted); font-weight: 500; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.warn, .btn.danger { background: #fff; color: var(--bad); border-color: var(--bad-line); font-weight: 500; }
.btn.danger { margin-top: 12px; }
.btn.ok, .btn.sun { background: var(--hl); border-color: var(--hl); color: var(--on-hl); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions.bar { position: sticky; bottom: var(--gap); background: var(--panel); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); margin-top: var(--gap); }
form.inline { display: inline; }
.seg { display: inline-flex; border: 1px solid var(--field); border-radius: 10px; overflow: hidden; background: #fff; }
.seg a { padding: 0 13px; min-height: 38px; display: inline-flex; align-items: center; color: var(--ink); font-size: 13.5px; border-left: 1px solid var(--field); text-decoration: none; }
.seg a:first-child { border-left: 0; }
.seg a:hover { background: var(--soft); }

/* lists */
ul.plain { list-style: none; padding: 0; margin: 0 0 6px; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
ul.plain li:last-child { border-bottom: 0; }
.listrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.listrow:last-child { border-bottom: 0; }
.listrow h2 { margin: 0; }
.listrow.due strong:first-child::after { content: "nu controleren"; margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--warn); background: var(--warn-tint); border: 1px solid var(--warn-line); padding: 1px 7px; border-radius: 7px; vertical-align: 1px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 9px; border-radius: 7px; background: var(--soft); color: var(--ink-2); font-weight: 500; white-space: nowrap; border: 1px solid var(--field); }
.tag.dot-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.laag, .tag.ziek, .tag.afgewezen, .tag.red { background: var(--bad-tint); color: var(--bad); border-color: var(--bad-line); }
.tag.besteld, .tag.aangevraagd, .tag.amber { background: var(--warn-tint); color: var(--warn); border-color: var(--warn-line); }
.tag.verlof, .tag.goedgekeurd, .tag.green { background: var(--good-tint); color: var(--good); border-color: var(--good-line); }
.tag.blue { background: var(--info-tint); color: var(--info); border-color: var(--info-line); }
.tag.admin { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { font-size: 11.5px; padding: 1px 8px; border-radius: 7px; background: var(--soft); color: var(--ink-2); font-weight: 600; border: 1px solid var(--field); font-variant-numeric: tabular-nums; }
.pill.done { background: var(--good-tint); color: var(--good); border-color: var(--good-line); }
.progress-row { display: block; padding: 11px 0; color: inherit; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 400; }
.progress-row:last-child { border-bottom: 0; }
.progress-row:hover { text-decoration: none; }
.meter { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter.done i { background: var(--good); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--gap); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; min-height: 38px; border-radius: 99px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); font-weight: 500; }
.chip:first-child { padding-left: 14px; }
.chip:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--field); }
.chip.on { background: var(--accent); color: var(--on-accent); }
.chip.on .muted { color: inherit; opacity: .75; }
.notice { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.notice:last-of-type { border-bottom: 0; }
.notice .pin { display: block; color: var(--accent); font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.card.notice.pinned { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.talk { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.talk:last-child { border-bottom: 0; }
.empty { color: var(--muted); padding: 6px 0; }
.info-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.info-steps li { counter-increment: s; position: relative; padding: 2px 0 14px 38px; }
.info-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.urlbox { background: var(--soft); border-radius: 10px; padding: 11px 13px; font: 500 13.5px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.codebox { padding: 16px 18px; border-radius: 14px; background: var(--accent-tint); margin: 6px 0 18px; }
.codebox .code { font-weight: 700; font-size: clamp(24px, 3.6vw, 32px); letter-spacing: .08em; font-variant-numeric: tabular-nums; user-select: all; color: var(--accent); }
.codebox p { margin: 4px 0 0; }
.qr { display: inline-block; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qr img { display: block; width: 260px; height: 260px; max-width: 100%; image-rendering: pixelated; }
.secret { font: 600 15px ui-monospace, Menlo, monospace; letter-spacing: .06em; background: var(--soft); border-radius: 8px; padding: 8px 12px; display: inline-block; user-select: all; overflow-wrap: anywhere; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: 8px 0 18px; padding: 0; list-style: none; }
.recovery li { font: 600 15px ui-monospace, Menlo, monospace; background: var(--soft); padding: 10px 12px; border-radius: 10px; text-align: center; }
.split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 5px; border: 1px solid var(--field); border-radius: 99px; background: #fff; font: 500 13px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.swatch:hover { border-color: var(--ink); }
.swatch i { width: 26px; height: 26px; border-radius: 50%; }
.preview { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 0; }

/* alerts */
ul.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.alert .dot { background: var(--faint); }
.alert a { flex: 1; color: var(--ink); text-decoration: none; font-weight: 500; }
.alert.urgent .dot { background: var(--bad); }
.alert.urgent a { color: var(--bad); font-weight: 600; }
.alert.dismissed { opacity: .5; }
.alert form { margin: 0; }

/* checks */
button.check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #d4d4d8; background: #fff; cursor: pointer; padding: 0; flex: none; }
button.check:hover { border-color: var(--accent); }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks form { margin: 0; }
.checkrow { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; background: none; border: 0; border-bottom: 1px solid var(--line-2); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.checkrow:hover .box { border-color: var(--accent); }
.checkrow .text { flex: 1; font-size: 15px; }
.checkrow .box { width: 22px; height: 22px; border: 1.5px solid #d4d4d8; border-radius: 6px; flex: none; position: relative; background: #fff; }
.checkrow.done .box { background: var(--accent); border-color: var(--accent); }
.checkrow.done .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checkrow.done .text { color: var(--faint); text-decoration: line-through; }

/* rooster */
.table-wrap { overflow-x: auto; padding: 6px 18px 10px; }
table.rooster { border-collapse: collapse; width: 100%; min-width: 680px; }
.rooster th, .rooster td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.rooster th:first-child { padding-left: 0; }
.rooster tr > :last-child { padding-right: 0; }
.rooster thead th { font-size: 12px; font-weight: 500; color: var(--muted); }
.rooster thead th .d { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.rooster thead th.today .d { color: var(--accent); }
.rooster tbody th { font-weight: 500; white-space: nowrap; }
.rooster tbody th .av { margin-right: 8px; vertical-align: middle; }
.rooster td.today { background: var(--accent-tint); }
.rooster tfoot th, .rooster tfoot td { font-size: 13px; color: var(--muted); font-weight: 500; border-bottom: 0; }
.rooster tfoot td.warn { color: var(--bad); font-weight: 600; }
.rooster td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.rooster th.num { text-align: right; }
.shift { display: inline-flex; flex-direction: column; padding: 4px 9px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.3; }
.shift.ochtend, .shift.middag, .shift.anders { background: var(--accent-tint); color: var(--accent); }
.shift small { font-weight: 400; opacity: .8; font-size: 11.5px; }
.cell-edit { display: flex; flex-direction: column; gap: 4px; min-width: 104px; }
.cell-edit select, .cell-edit input { min-height: 34px; padding: 4px 8px; font-size: 13.5px; border-radius: 8px; }
.cell-edit .times { display: flex; flex-direction: column; gap: 3px; }
.cell-edit .preset { padding-left: 4px; }
table.rooster.editing { table-layout: fixed; }
table.rooster.editing th:first-child { width: 130px; }
table.rooster.editing th:last-child { width: 80px; }

/* login, invitation, two-step */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px 40px; }
.auth-box { width: 100%; max-width: 460px; margin-top: clamp(12px, 6vh, 64px); background: var(--panel); border-radius: 20px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px -18px rgba(0, 0, 0, .18); }
.auth-box.wide { max-width: 760px; }
.auth .brand { padding: 0; font-size: 16.5px; }
.auth h1 { margin: 22px 0 6px; font-size: clamp(22px, 3.4vw, 26px); }
.auth .lead { color: var(--muted); margin: 0 0 20px; }
.auth .switch { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.tiles { display: flex; flex-direction: column; gap: 6px; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 60px; border: 0; background: var(--soft); border-radius: 12px; padding: 8px 12px; font: 600 15px Inter, sans-serif; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.tile:hover { background: #ededf0; }
.tile .av { width: 38px; height: 38px; font-size: 12.5px; }
.tile .tile-name { flex: 1; }
.tile::after { content: "›"; color: var(--faint); font-size: 22px; font-weight: 400; }
.pinpad { max-width: 320px; margin: 0 auto; text-align: center; }
.pinpad .av { width: 54px; height: 54px; font-size: 17px; margin-bottom: 6px; }
.pin-name { font-weight: 600; font-size: 18px; }
.dots { display: flex; justify-content: center; gap: 12px; height: 16px; margin: 14px 0 20px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #a1a1aa; }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.key { min-height: 58px; font: 500 21px Inter, sans-serif; border-radius: 14px; border: 0; background: var(--soft); cursor: pointer; color: var(--ink); }
.key:active { background: #e4e4e7; }
.key.ok { background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; }
.codeinput { font-weight: 600; font-size: 24px; letter-spacing: .25em; text-align: center; min-height: 56px; }
.done-box .hic { display: none; }

/* setup wizard */
.wiz { min-height: 100vh; padding: calc(var(--gap) + env(safe-area-inset-top)) var(--gap) 40px; }
.wiz-side { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 12px 18px; background: var(--panel); border-radius: var(--r); max-width: 1100px; margin: 0 auto; box-shadow: var(--shadow); }
.wiz-side .brand { padding: 0; }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.wiz-steps a, .wiz-steps .lnk { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 3px; border-radius: 99px; color: var(--muted); font-size: 13px; min-height: 34px; text-decoration: none; font-weight: 500; }
.wiz-steps a:hover { background: var(--soft); }
.wiz-steps .num { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex: none; }
.wiz-steps li.done a, .wiz-steps li.done .lnk { color: var(--ink); }
.wiz-steps li.done .num { background: var(--accent-tint); color: var(--accent); }
.wiz-steps li.on .lnk { background: var(--soft); color: var(--ink); font-weight: 600; }
.wiz-steps li.on .num { background: var(--accent); color: var(--on-accent); }
.wiz-progress, .wiz-note { display: none; }
.wiz-main { background: var(--panel); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); max-width: 860px; margin: var(--gap) auto 0; box-shadow: var(--shadow); }
.wiz-main h1 { font-size: clamp(22px, 3vw, 28px); max-width: 20em; }
.wiz-main .lead { color: var(--muted); font-size: 15px; max-width: 42em; margin: 10px 0 24px; }
.wiz-rows { display: flex; flex-direction: column; gap: 8px; }
.wiz-rows .row.tight { max-width: 480px; }
.wiz-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.wiz-list { margin: 8px 0 18px; }
.wiz-choices { display: flex; flex-direction: column; gap: 8px; }
.choice { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 14.5px; cursor: pointer; font-weight: 400; }
.choice input { width: 20px; min-height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chipset form { margin: 0; }
.sug { min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px dashed #d4d4d8; background: #fff; color: var(--ink-2); font: 500 13px Inter, sans-serif; cursor: pointer; }
.sug:hover { border: 1px solid var(--accent); color: var(--accent); }
.wiz-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.wiz-summary div { padding: 14px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 13px; }
.wiz-summary .big { display: block; font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--ink); }

@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
  .today { position: static; }
}
/* tab bar onderaan (alleen op telefoons) */
.tabbar { display: none; }
@media (max-width: 820px) {
  .shell { flex-direction: column; align-items: stretch; padding: 10px 10px calc(84px + env(safe-area-inset-bottom)); gap: 10px; }
  .side { width: auto; position: static; max-height: none; padding: 10px 12px; flex-direction: row; align-items: center; }
  .side .brand { padding: 0 4px; flex: 1; }
  .side nav, .promo, .side-spacer { display: none; }
  .who { margin: 0; border: 0; padding: 0; }
  .who .nm, .who .role { display: none; }
  .tabbar { display: flex; position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04); padding: 6px; }
  .tabbar > a, .tabbar summary { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 14px;
    color: var(--muted); font-size: 10.5px; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; position: relative; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar > a.on, .tabbar summary.on, .tab-more[open] summary { color: var(--accent); background: var(--accent-tint); font-weight: 600; }
  .tabbar > a:hover { text-decoration: none; }
  .tab-more { flex: 1; display: flex; }
  .tab-dot { position: absolute; top: 9px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
  .tab-more .sheet { position: fixed; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); background: #fff; border-radius: 18px; padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .04); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .tab-more .sheet a { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 48px; border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
  .tab-more .sheet a:hover { background: var(--soft); }
  .tab-more .sheet .badge { margin-left: auto; }
  .actions.bar { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stats > a { padding: 0; border: 0; }
  .card, header.page { padding: 16px; }
  .timeline { --who: 40px; }
  .tl-who .nm { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* doelen */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.goals .card { margin: 0; }
.goal.main { background: var(--accent); color: var(--on-accent); }
.goal.main h2, .goal.main .goal-fig b { color: var(--on-accent); }
.goal.main .small, .goal.main .goal-fig span { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.goal.main .meter { background: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.goal.main .meter i { background: var(--on-accent); }
.goal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.goal-top h2 { margin: 0; font-size: 14px; }
.goal-fig { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 10px; flex-wrap: wrap; }
.goal-fig b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.goal-fig span { color: var(--muted); font-size: 13px; }
.meter.big { height: 10px; margin-bottom: 10px; }
.cell-in { min-height: 36px; padding: 4px 8px; font-size: 14px; border-radius: 8px; text-align: right; font-variant-numeric: tabular-nums; width: 100%; min-width: 64px; }
.goal-table td { min-width: 80px; }
.hist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; height: 200px; padding-top: 10px; }
.hist-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.hist-val { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-bar { position: relative; flex: 1; width: 100%; max-width: 56px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.hist-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent-soft); border-radius: 8px 8px 0 0; }
.hist-bar i.done { background: var(--accent); }
.hist-bar em { position: absolute; left: -2px; right: -2px; height: 2px; background: var(--ink); }
.goalcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; }
.goalcard .goal-fig { margin: 4px 0 8px; }
.goalcard .meter { grid-column: 1 / -1; }
.quickgoal { display: flex; gap: 8px; align-items: center; }
.quickgoal input { width: 130px; min-height: 38px; }

/* beschikbaarheid, ruilen, verlofsaldo, mijn week */
.avail { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.avail.niet { background: #fde8e8; color: #9b1c1c; }
.avail.liever_niet { background: #fef3c7; color: #92400e; }
.saldo { display: grid; grid-template-columns: 200px minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.saldo:first-of-type { border-top: 0; }
.saldo-name { display: flex; align-items: center; gap: 10px; }
.saldo-bar .meter { margin-bottom: 6px; }
.saldo-over { text-align: right; display: flex; flex-direction: column; }
.saldo-over b { font-size: 18px; font-variant-numeric: tabular-nums; }
.saldo-over.late b { color: #b42318; }
@media (max-width: 640px) { .saldo { grid-template-columns: 1fr auto; } .saldo-bar { grid-column: 1 / -1; grid-row: 2; } }
.myweek { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.myday { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: inherit; text-decoration: none; }
.myday b { font-size: 16px; font-variant-numeric: tabular-nums; }
.myday.today { background: var(--accent); color: var(--on-accent); }
.myday.today .muted { color: inherit; opacity: .8; }
.myday.off { opacity: .7; }
.panel-head h2 svg { width: 16px; height: 16px; vertical-align: -3px; }

/* laadscherm: bril die scherpstelt */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ground) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease; }
.loader.on { opacity: 1; }
.loader-box { background: var(--panel); border-radius: 22px; padding: 26px 34px 22px; box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 240px; }
.specs { width: 170px; height: auto; overflow: visible; }
.specs .frame * { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: specs-draw 2.4s ease-in-out infinite; }
.specs .frame path { stroke-width: 4.5; }
.specs .lens-fill circle { fill: var(--accent-tint); opacity: 0; animation: lens-in 2.4s ease-in-out infinite; }
.specs .eye { opacity: 0; animation: lens-in 2.4s ease-in-out infinite; }
.specs .lid { fill: #fff; stroke: var(--ink); stroke-width: 1.6; transform-box: fill-box; transform-origin: center;
  animation: blink 2.4s ease-in-out infinite; }
.specs .iris { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: blink 2.4s ease-in-out infinite, look 2.4s ease-in-out infinite; }
.specs .shine rect { fill: #fff; opacity: .75; animation: shine 2.4s ease-in-out infinite; }
.snellen { display: flex; gap: 9px; font: 700 15px/1 "Georgia", serif; color: var(--ink); letter-spacing: .02em; }
.snellen span { animation: focus 2.4s ease-in-out infinite; }
.snellen span:nth-child(2) { animation-delay: .08s; } .snellen span:nth-child(3) { animation-delay: .16s; }
.snellen span:nth-child(4) { animation-delay: .24s; } .snellen span:nth-child(5) { animation-delay: .32s; }
.snellen span:nth-child(6) { animation-delay: .4s; }
.loader-txt { font-size: 13px; color: var(--muted); min-height: 1.2em; }
@keyframes specs-draw { 0% { stroke-dashoffset: 100; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes lens-in { 0%, 25% { opacity: 0; } 38%, 82% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes blink { 0%, 55%, 63%, 100% { transform: scaleY(1); } 59% { transform: scaleY(.08); } }
@keyframes look { 0%, 40% { translate: 0 0; } 48%, 54% { translate: 5px 0; } 66%, 72% { translate: -5px 0; } 80%, 100% { translate: 0 0; } }
@keyframes shine { 0%, 30% { transform: translateX(0) skewX(-20deg); } 58%, 100% { transform: translateX(230px) skewX(-20deg); } }
@keyframes focus { 0%, 20% { filter: blur(3.5px); opacity: .45; } 45%, 82% { filter: blur(0); opacity: 1; } 100% { filter: blur(3.5px); opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .specs *, .snellen span { animation: none !important; }
  .specs .frame * { stroke-dashoffset: 0; } .specs .lens-fill circle, .specs .eye { opacity: 1; }
}
.saldo:has(.saldo-in) { grid-template-columns: 200px minmax(0, 1fr) 96px 90px; }
.saldo-in { display: flex; flex-direction: column; gap: 2px; }
.saldo-in input { min-height: 36px; padding: 4px 8px; text-align: right; }
@media (max-width: 640px) { .saldo:has(.saldo-in) { grid-template-columns: 1fr 90px 80px; } }
.rooster td.closed { background: repeating-linear-gradient(135deg, var(--soft) 0 6px, transparent 6px 12px); }
.closed-tag { display: block; width: max-content; margin-top: 4px; font-size: 10px; }
.listrow.past { opacity: .55; }
.herstel-menu { position: relative; }
.herstel-menu > summary { list-style: none; cursor: pointer; }
.herstel-menu > summary::-webkit-details-marker { display: none; }
.herstel-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--panel); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: 10px; display: grid; gap: 8px; width: 290px; }
.herstel-pop form { display: grid; gap: 4px; padding: 6px; }
.herstel-pop .btn { justify-self: start; }
.steps-list { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.breakall { word-break: break-all; }
.offline-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1100;
  background: #1f2937; color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100% - 24px); }
.offline-bar .btn { background: #fff; color: #111; }
@media (min-width: 821px) { .offline-bar { bottom: 24px; } }
.avail.leave { background: var(--accent-tint, #e6f0f2); color: var(--accent); }

/* agenda */
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.agenda .card { margin: 0; }
.agenda-day { display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.agenda-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.agenda-day.closed { background: color-mix(in srgb, var(--panel) 70%, var(--soft)); }
.agenda-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agenda-head .add { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 18px; }
.agenda-head .add:hover { background: var(--accent); color: var(--on-accent); }
.ag-item { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--accent-tint); border-left: 3px solid var(--accent); font-size: 14px; }
.ag-item .ag-time { font-size: 12px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.ag-item svg { width: 12px; height: 12px; vertical-align: -1px; }
.ag-item.closed-item { background: #fde8e8; border-color: #b42318; } .ag-item.closed-item .ag-time { color: #b42318; }
.ag-item.leave-item { background: var(--soft); border-color: var(--muted); } .ag-item.leave-item .ag-time { color: var(--muted); }
.ag-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ag-actions form { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 500; text-decoration: none; min-height: 0; }
.ag-empty { padding: 6px 0; }
.ag-mini { padding: 3px 0; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 12px; background: var(--soft); border-radius: 12px; }
.pick p { grid-column: 1 / -1; margin: 0; }
.extra-tag { color: #047857; font-weight: 700; }

/* rustiger zijmenu met groepen */
.side nav a { min-height: 36px; padding: 7px 10px; }
.side .sec { padding: 16px 10px 4px; text-transform: none; letter-spacing: .02em; }
.side nav > a:first-child { margin-top: 0; }
/* tabbladen binnen een onderdeel */
.subtabs { display: flex; gap: 4px; background: var(--panel); border-radius: 14px; padding: 5px; margin-bottom: var(--gap); width: max-content; max-width: 100%; overflow-x: auto; box-shadow: var(--shadow); }
.subtabs a { padding: 8px 16px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.subtabs a:hover { background: var(--soft); }
.subtabs a.on { background: var(--accent); color: var(--on-accent); }
.subtabs .badge { margin-left: 0; }
.tab-more .sheet .sheet-sec { grid-column: 1 / -1; font-size: 11px; font-weight: 600; color: var(--muted); padding: 10px 12px 2px; }
.side .sec:first-of-type { padding-top: 16px; }
