/* Huis010 — Rotterdams groen-wit, rustig en zakelijk */
:root {
  --bg: #F3F5F3;
  --surface: #FFFFFF;
  --surface-2: #EEF2EF;
  --line: #E0E6E2;
  --ink: #14201A;
  --ink-2: #5A6760;
  --ink-3: #8C978F;
  --green: #00843D;
  --green-ink: #006B31;
  --green-soft: #E5F2EA;
  --deep: #0B3B24;
  --red: #C8410B;
  --red-soft: #FBEDE6;
  --yellow: #E3A812;
  --yellow-soft: #FBF2D9;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --tabs-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B120E;
    --surface: #131C17;
    --surface-2: #1A2520;
    --line: #23312A;
    --ink: #E8EFEA;
    --ink-2: #9BAAA1;
    --ink-3: #6E7D74;
    --green: #22A659;
    --green-ink: #67D093;
    --green-soft: #15301F;
    --red: #FF7C4A;
    --red-soft: #351E14;
    --yellow: #F2C230;
    --yellow-soft: #33290F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }
.center { display: block; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 9px; font: 800 20px/1 var(--body); letter-spacing: -.02em; color: var(--ink); }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.logo b { color: var(--green); font-weight: 800; }
.logo.big { flex-direction: column; gap: 14px; font-size: 34px; }
.logo.big img { width: 88px; height: 88px; border-radius: 22px; }

/* ---------- shell ---------- */
.shell { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tabs-h) + env(safe-area-inset-bottom) + 32px); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.topbar .logo { margin-right: auto; }
.me-chip { background: none; border: 0; padding: 0; border-radius: 50%; }
.offline { font-size: 12px; font-weight: 600; background: var(--red); color: #fff; padding: 4px 9px; border-radius: 99px; }

.tabs { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
.tabs button { position: relative; flex: 1; max-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 7px 0 5px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.tabs button svg { width: 22px; height: 22px; stroke-width: 1.8; }
.tabs button[aria-current=page] { color: var(--green); }
.tabs .dot { position: absolute; top: 5px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- avatars ---------- */
.ava { --c: #888; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; font: 700 15px/1 var(--body); overflow: hidden; flex: none; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.sm { width: 30px; height: 30px; font-size: 13px; }
.ava.xs { width: 22px; height: 22px; font-size: 10.5px; }
.ava.lg { width: 56px; height: 56px; font-size: 22px; }
.ava.house { background: var(--deep); color: #fff; font: 800 10px/1 var(--body); }

/* ---------- page structure ---------- */
#view > * + * { margin-top: 12px; }
#view > .sec, #view > * + .sec, #view > .sec + * { margin-top: 24px; }
.page-head { padding: 10px 0 18px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.page-head .sub { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; max-width: 46ch; }
.sec { margin-top: 22px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.sec-head h2 { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.sec-head .aside, .sec-head .count { font-size: 13px; color: var(--ink-3); }
.sec-head .count { color: var(--red); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card + .card, .card + .sec { margin-top: 12px; }
.sec + .card { margin-top: 22px; }
.card.pad { padding: 16px; }
.card.spaced { margin-top: 22px; }
.empty { padding: 16px; color: var(--ink-3); font-size: 14.5px; }
.allclear { color: var(--ink-2); }

/* rows */
.list > .row + .row, .list > .row + .feed-row, .list > .feed-row + .row, .list > .feed-row + .feed-row { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 11px 14px; background: none; border: 0; text-align: left; }
button.row:active, .as-btn:active { background: var(--surface-2); }
.list > .row:first-child { border-radius: var(--r) var(--r) 0 0; }
.list > .row:last-child { border-radius: 0 0 var(--r) var(--r); }
.list > .row:only-child { border-radius: var(--r); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.as-btn { background: none; border: 0; padding: 0; text-align: left; border-radius: 8px; }
.row-label { font-weight: 600; font-size: 15.5px; }
.row-meta { color: var(--ink-2); font-size: 13.5px; }
.row-end { display: flex; align-items: center; gap: 8px; flex: none; }
.row .chev { width: 16px; height: 16px; color: var(--ink-3); margin-left: -2px; }
.row.past { opacity: .5; }
.row.today .row-label { color: var(--green-ink); }
.row.mine { background: var(--green-soft); }
.row.more .row-label { color: var(--green-ink); font-weight: 600; }
.date { font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.mark { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.mark.hot { background: var(--red); }
.mark.soft { background: var(--ink-3); }
.verb { color: var(--green-ink); font-weight: 600; font-size: 14px; }
.todo .row-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chips & tags */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: var(--green-ink); }
.chip.warn { background: var(--red-soft); color: var(--red); }
.chip.muted { color: var(--ink-3); }
.tag { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; font-weight: 700; background: var(--yellow-soft); color: #7A5600; vertical-align: 2px; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .tag { color: var(--yellow); } }
.tag.green { background: var(--green-soft); color: var(--green-ink); }
.status { font-size: 13.5px; color: var(--ink-3); }
.status.ja { color: var(--green-ink); font-weight: 600; }
.status.nee { color: var(--ink-2); }

/* segmented */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: var(--r-sm); }
.seg button { border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.seg button[aria-pressed=true] { background: var(--green); color: #fff; }
.seg button:nth-child(2)[aria-pressed=true] { background: var(--ink-2); }
.seg.sm button { padding: 7px 12px; font-size: 13.5px; }
.seg.big { margin: 4px 0 14px; }
.seg.big button { padding: 12px 10px; font-size: 15px; }
.seg.vote-seg button:nth-child(2)[aria-pressed=true] { background: var(--red); }

/* bars */
.bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; min-width: 40px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.num { font: 800 18px/1 var(--display); min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.num.hot { color: var(--red); }
.num.good { color: var(--green-ink); }

/* ---------- overview tiles ---------- */

/* feed */
.feed-row { align-items: flex-start; }
.feed-text { font-size: 14.5px; }
.feed-text b { font-weight: 600; }
.feed-photo { max-width: 100%; max-height: 240px; border-radius: var(--r-sm); margin: 6px 0 2px; }
.missed { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; background: var(--surface-2); text-align: center; }
.btn.block { display: flex; width: 100%; margin-top: 14px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:disabled { background: var(--surface-2); color: var(--ink-3); }
.btn.secondary { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn.dark { background: var(--deep); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.xs { min-height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.huge { min-height: 64px; font-size: 20px; }
.btn.cta { margin: 18px 0 0; min-height: 50px; font-size: 16px; }
.btn-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }
.link { background: none; border: 0; padding: 0; color: var(--green-ink); font-weight: 600; font-size: 14px; }
.link.center { margin-top: 14px; }

/* ---------- eten / taken ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: 14.5px; }
.week-nav button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.week-nav button:disabled { opacity: .35; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .35; }
.stepper b { min-width: 12px; text-align: center; }
.plan-task { text-align: right; font-size: 14px; font-weight: 500; }
.plan-task em { display: block; font-style: normal; font-size: 12.5px; color: var(--green-ink); font-weight: 600; }
.checklist { list-style: none; margin: 4px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.checklist li + li { border-top: 1px solid var(--line); }
.check { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; text-align: left; font-size: 15px; }
.check .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--ink-3); display: grid; place-items: center; margin-top: -1px; }
.check .box svg { width: 16px; height: 16px; stroke-width: 3; color: #fff; opacity: 0; }
.check.on .box { background: var(--green); border-color: var(--green); }
.check.on .box svg { opacity: 1; }
.check.on .check-text { color: var(--ink-2); }
.check-text { display: flex; flex-direction: column; gap: 3px; }
.freq { font-size: 12px; font-weight: 600; color: #7A5600; }
@media (prefers-color-scheme: dark) { .freq { color: var(--yellow); } }
.ok-line { margin-top: 14px; color: var(--green-ink); font-weight: 600; }

/* ---------- straf ---------- */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--red-soft); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.alert p { font-size: 14.5px; }
.alert b { font-weight: 700; }
.vote + .vote { margin-top: 12px; }
.plus { color: var(--red); font-weight: 600; font-size: 15px; margin-left: 4px; }
.good { color: var(--green-ink); font-weight: 600; font-size: 15px; margin-left: 4px; }
.vote-reason { margin: 10px 0 4px; font-size: 16px; }
.prop-photo { display: block; max-width: 100%; max-height: 240px; border-radius: var(--r-sm); margin: 10px 0 6px; }

/* ---------- spel ---------- */
.pick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pick-row button, .pick { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; border-radius: var(--r-sm); border: 1.5px solid transparent; background: none; font-size: 12px; font-weight: 500; min-width: 0; cursor: pointer; }
.pick-row button span, .pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row button[aria-pressed=true], .pick:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:focus-visible) { outline: 2px solid var(--green); }
.pick-row + .row-meta { margin-top: 10px; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(5, 12, 8, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-panel { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 18px 18px 0 0; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); font-size: 14px; z-index: 2; }
.sheet-body h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; padding-right: 44px; line-height: 1.2; }
.sheet-body h3 { font-size: 14.5px; font-weight: 600; color: var(--ink-2); margin: 22px 2px 8px; }
.sheet-body .card { margin-top: 0; }
.sheet-body .seg.big + .card { margin-top: 0; }
.lead { color: var(--ink-2); margin: 6px 0 16px; font-size: 14.5px; }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; margin-top: 8px; }
textarea.input { resize: vertical; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field { display: block; font-weight: 600; font-size: 14px; margin-top: 12px; }
.num-field { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.num-field input { width: 80px; font: inherit; padding: 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.options { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: 0; text-align: left; cursor: pointer; font-weight: 500; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt input { accent-color: var(--green); width: 18px; height: 18px; flex: none; margin: 0; }
.opt span { flex: 1; }
.opt b { font: 800 17px/1 var(--display); color: var(--red); white-space: nowrap; }
.opt b.plain { font: 500 13.5px var(--body); color: var(--ink-2); }
.opt:has(input:checked), .opt[aria-pressed=true] { background: var(--green-soft); }
.own[hidden] { display: none; }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--ink-3); border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.photo-pick img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; }
.person-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.person-head h2 { padding-right: 0; }
.admin { margin-top: 20px; font-size: 14px; }
.admin summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.admin-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 6px; align-items: center; margin: 8px 0; }
.admin-row .input { margin: 0; }
.del { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.del svg { width: 14px; height: 14px; }
.rules dt { font-weight: 700; margin-top: 16px; }
.rules dd { margin: 3px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- wheel ---------- */
.wheel-wrap { position: relative; width: min(300px, 80vw); aspect-ratio: 1; margin: 16px auto 8px; }
.wheel { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 5px var(--deep); overflow: hidden; }
.wheel span { position: absolute; left: 50%; top: 50%; width: 50%; height: 20px; margin-top: -10px; transform-origin: 0 50%; padding: 0 12px 0 32px; text-align: right; font: 700 12px/20px var(--body); color: #0B3B24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel span.light { color: #fff; }
.wheel-pointer { position: absolute; top: -12px; left: 50%; margin-left: -12px; width: 24px; height: 30px; z-index: 2; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hub { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font: 800 15px/1 var(--body); box-shadow: 0 0 0 3px #fff; }
.wheel-result { min-height: 80px; text-align: center; margin-top: 16px; }
.wheel-result b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--red); text-wrap: balance; animation: pop .3s ease-out; }
.wheel-result .row-meta { display: block; margin-top: 6px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* ---------- games ---------- */
.arena { margin-top: 4px; display: flex; flex-direction: column; align-items: center; }
.g-note { text-align: center; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.g-result { text-align: center; font-size: 16px; margin-top: 16px; }
.sw-face { width: 100%; text-align: center; padding: 26px 0 18px; background: var(--deep); color: #fff; border-radius: var(--r); }
.sw-face span { display: block; font: 900 80px/1 var(--display); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.sw-face span.blind { opacity: .3; }
.sw-face small { color: #B9D3C3; font-size: 13.5px; }
.arena .btn.block { margin-top: 12px; }
.rx-pad { width: 100%; height: 250px; border: 0; border-radius: var(--r); font-size: 20px; font-weight: 700; padding: 20px; color: #fff; background: var(--deep); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.rx-pad.wait { background: var(--red); }
.rx-pad.go { background: var(--green); font-size: 40px; }
.rx-pad.early { background: #7A2A10; }
.rx-pad.done { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.rps-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.rps-slots span { height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed var(--ink-3); border-radius: var(--r-sm); font-size: 18px; font-weight: 700; }
.rps-slots small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.rps-slots span.on { border: 1px solid var(--green); background: var(--green-soft); color: var(--green-ink); }
.rps-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 12px; }
.arena .btn-row { width: 100%; }
.hilo-table { padding: 18px; background: var(--deep); border-radius: var(--r); width: 100%; display: flex; justify-content: center; }
.pcard { width: 112px; height: 156px; border-radius: 10px; background: #fff; color: #14201A; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: pop .2s ease-out; }
.pcard b { font: 900 56px/1 var(--display); }
.pcard span { font-size: 34px; line-height: 1; }
.pcard.red { color: #B42318; }
.stack-game { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(#CFE3F1, #EEF5F9 70%); touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
@media (prefers-color-scheme: dark) { .stack-game { background: linear-gradient(#0E1B26, #1B2E3C 80%); } }
.stack-game::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--deep); }
.sg-tower { position: absolute; inset: 0; transition: transform .25s ease-out; }
.sg-tower i { position: absolute; height: 20px; margin-bottom: 6px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--c) 0 7px, color-mix(in srgb, var(--c) 78%, #000) 7px 8px); }
.sg-score { position: absolute; top: 10px; left: 14px; font: 900 36px/1 var(--display); color: var(--deep); }
@media (prefers-color-scheme: dark) { .sg-score { color: #fff; } }
.sg-hint { position: absolute; top: 46%; width: 100%; text-align: center; font-weight: 600; color: var(--deep); }
.duel-result { margin-top: 16px; padding: 16px; border-radius: var(--r); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.duel-result div { display: flex; flex-direction: column; font-size: 13.5px; }
.duel-result b { font: 900 30px/1.1 var(--display); }
.duel-result p { grid-column: 1 / -1; font-size: 17px; font-weight: 700; }
.duel-result.won { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
.duel-result.lost { background: var(--red-soft); border-color: transparent; color: var(--red); }

/* ---------- login ---------- */
.login { max-width: 420px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 56px) 20px 40px; text-align: center; }
.login-sub { font-size: 17px; font-weight: 600; margin: 18px 0 22px; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.who button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.who button[aria-pressed=true] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.who b { font-size: 14.5px; font-weight: 600; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 28px 0 20px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.pin-dots i.on { background: var(--green); border-color: var(--green); }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; }
.keypad button { height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 24px; font-weight: 500; }
.keypad button:active { background: var(--green); color: #fff; }
.hint { margin-top: 22px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 12px); max-width: 520px; margin: 0 auto; background: var(--deep); color: #fff; padding: 13px 16px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: up .2s ease-out; }
.toast.err { background: var(--red); }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- ruilen & vakanties ---------- */
.opt span small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.opt:disabled { cursor: default; opacity: .5; }
.opt:disabled:active { background: none; }
.summary { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--green-soft); color: var(--green-ink); font-weight: 600; }
.notice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; font-size: 14.5px; color: var(--ink-2); }
.notice b { color: var(--ink); font-size: 15.5px; }
.notice .btn { margin-top: 8px; }
.notice.warn { background: var(--yellow-soft); border-color: transparent; color: #5C4300; }
.notice.warn b { color: #3D2C00; }
@media (prefers-color-scheme: dark) { .notice.warn { color: var(--ink-2); } .notice.warn b { color: var(--yellow); } }
.sheet-body .notice { margin-top: 10px; }
.row-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); flex: none; }
.row-icon svg { width: 16px; height: 16px; }
.row-label s { color: var(--ink-3); }
.pad-x { padding: 8px 2px 0; }
.swapreq + .swapreq { margin-top: 12px; }
.card.form { margin-top: 10px; }
.card.form .field:first-child { margin-top: 0; }
.spacer { height: 12px; }

/* ---------- stemkaart (eenvoudig) ---------- */
.vote-head { display: flex; align-items: flex-start; gap: 12px; }
.vote-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.vote .vote-reason { margin: 2px 0 0; font-size: 15px; }
.vote > .row-meta { margin-top: 10px; }
.status.warn { color: var(--red); font-weight: 600; }
.sheet-body > .prop-photo { margin-top: 0; }

.swapreq > .row-meta { margin-top: 10px; }
.vote .seg.big { margin-bottom: 0; }

/* ---------- vakanties ---------- */
.tabs-seg { margin-top: 14px; }
.form-block { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.form-block .field { margin-top: 12px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-grid .input { padding: 10px; min-width: 0; }
.form-block .btn-row { margin-top: 14px; }
.list > .form-block:first-child { border-top: 0; }
.seg.tabs-seg button[aria-pressed=true], .seg.tabs-seg button:nth-child(2)[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------- profielfoto bij eerste login ---------- */
.gate .hint { margin: 0 auto; max-width: 32ch; }
.gate-photo { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 28px 0 8px; cursor: pointer; }
.gate-circle { --c: #888; width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--c); color: #fff; font: 700 56px/1 var(--body); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.gate-circle img { width: 100%; height: 100%; object-fit: cover; }
.gate .btn.block { margin-top: 18px; }
