/* Chez Leroy — luchtige huisstijl in de lijn van de Beheertool:
   Manrope + Bricolage Grotesque, witte panelen op een koele achtergrond, elk onderdeel zijn eigen kleur,
   menu links op de laptop en een schuifmenu op de gsm. Licht en donker. */

@font-face { font-family: 'Manrope Var'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Var'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); }

:root {
  --font-display: 'Bricolage Var', 'Manrope Var', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope Var', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #f4f7fa; --bg-2: #eef3f7;
  --panel: #ffffff; --panel-alt: #f7fafc;
  --border: #dbe4ec; --border-soft: #e9eff4;
  --text: #132330; --text-dim: #4d6274; --text-faint: #7b8c9b;
  --ov: rgba(20, 40, 60, .04); --ov2: rgba(20, 40, 60, .07);
  --sc-lg: rgba(25, 45, 70, .18); --sc-md: rgba(25, 45, 70, .12); --sc-sm: rgba(25, 45, 70, .07);
  --on-accent: #ffffff;
  --danger: #dc2626;

  /* kleur per onderdeel: --c is de felle kleur, --ink de leesbare tekstkleur */
  --c-vandaag: #3b82f6;  --ink-vandaag: #2563eb;
  --c-lijst: #22c55e;    --ink-lijst: #15803d;
  --c-menu: #f59e0b;     --ink-menu: #b45309;
  --c-recepten: #f43f5e; --ink-recepten: #e11d48;
  --c-agenda: #8b5cf6;   --ink-agenda: #7c3aed;
  --c-taken: #14b8a6;    --ink-taken: #0f766e;
  --c-info: #0ea5e9;     --ink-info: #0369a1;
  --c-instellingen: #64748b; --ink-instellingen: #475569;

  --c: var(--c-vandaag); --ink: var(--ink-vandaag);
  --radius: 14px;
  --side-w: 248px;
  --top-h: 56px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0f1418; --bg-2: #12181e;
  --panel: #171e25; --panel-alt: #1c242c;
  --border: #28323c; --border-soft: #212a33;
  --text: #e8eef3; --text-dim: #a2b0bd; --text-faint: #6f7f8d;
  --ov: rgba(255, 255, 255, .04); --ov2: rgba(255, 255, 255, .07);
  --sc-lg: rgba(0, 0, 0, .5); --sc-md: rgba(0, 0, 0, .35); --sc-sm: rgba(0, 0, 0, .25);
  --on-accent: #0f1418;
  --danger: #f87171;
  --ink-vandaag: #60a5fa; --ink-lijst: #4ade80; --ink-menu: #fbbf24; --ink-recepten: #fb7185;
  --ink-agenda: #a78bfa; --ink-taken: #2dd4bf; --ink-info: #38bdf8; --ink-instellingen: #94a3b8;
  color-scheme: dark;
}

[data-sec='vandaag'] { --c: var(--c-vandaag); --ink: var(--ink-vandaag); }
[data-sec='lijst'] { --c: var(--c-lijst); --ink: var(--ink-lijst); }
[data-sec='menu'] { --c: var(--c-menu); --ink: var(--ink-menu); }
[data-sec='recepten'] { --c: var(--c-recepten); --ink: var(--ink-recepten); }
[data-sec='agenda'] { --c: var(--c-agenda); --ink: var(--ink-agenda); }
[data-sec='taken'] { --c: var(--c-taken); --ink: var(--ink-taken); }
[data-sec='info'] { --c: var(--c-info); --ink: var(--ink-info); }
[data-sec='instellingen'] { --c: var(--c-instellingen); --ink: var(--ink-instellingen); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15.5px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
svg { flex: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--c) 25%, transparent); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.tiny { width: 13px; height: 13px; vertical-align: -1px; }

/* ------------------------------------------------------------------ indeling */
.shell { min-height: 100dvh; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 30;
  background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; text-decoration: none; color: var(--text); }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; }
.side-brand span { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; flex: 1; }
.side-close { display: none; width: 40px; height: 40px; border: 0; background: none; color: var(--text-dim); cursor: pointer; border-radius: 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
}
.nav-item .ico { width: 20px; height: 20px; }
.nav-item:hover { background: var(--ov2); color: var(--text); }
.nav-item.active { background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); }
.nav-item .count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--ov2); color: var(--text-dim); font-size: 12.5px; text-align: center;
}
.nav-item.active .count { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--ink); }
.nav-sep { height: 1px; background: var(--border); margin: 10px 4px; }
.side-foot { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.side-foot .nav-item { font-size: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 12px 2px; color: var(--text-faint); font-size: 13px; }

.main { margin-left: var(--side-w); min-width: 0; }
.topbar { display: none; }
.view {
  max-width: 820px; margin: 0 auto;
  padding: 28px 28px calc(48px + env(safe-area-inset-bottom));
  outline: none;
}
.view.wide { max-width: 1080px; }
.scrim { display: none; }

/* tablet: enkel icoontjes in het menu */
@media (min-width: 761px) and (max-width: 1060px) {
  :root { --side-w: 72px; }
  .side { padding-left: 10px; padding-right: 10px; }
  .side-brand { justify-content: center; padding: 2px 0 16px; }
  .side-brand span, .nav-item span, .side-user span, .nav-item .count { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .side-user { justify-content: center; padding: 6px 0; }
}

/* gsm: kopbalk met hamburgermenu, menu schuift van links open */
@media (max-width: 760px) {
  .main { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 20;
    padding: env(safe-area-inset-top) 6px 0 6px; height: calc(var(--top-h) + env(safe-area-inset-top));
    background: var(--panel); border-bottom: 1px solid var(--border);
  }
  .topbar h1 {
    flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 9px;
  }
  .topbar h1::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
  .topbar .icon-btn { width: 44px; height: 44px; color: var(--text-dim); }
  .side {
    width: min(300px, 84vw); transform: translateX(-102%);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1); box-shadow: 12px 0 40px var(--sc-md);
  }
  .side-close { display: grid; place-items: center; }
  .shell.menu-open .side { transform: none; }
  .scrim.menu { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(10, 20, 30, .42); opacity: 0; pointer-events: none; transition: opacity .22s; }
  .shell.menu-open .scrim.menu { opacity: 1; pointer-events: auto; }
  .nav-item { padding: 12px; font-size: 16px; }
  .view { padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
  .page-head h1 { display: none; }
  .page-head { margin-top: 0; }
}

/* ------------------------------------------------------------------ algemeen */
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.page-head h1 { font-size: 30px; line-height: 1.1; margin: 0; flex: 1; font-weight: 700; }
.page-head .sub { width: 100%; color: var(--text-dim); margin: -4px 0 0; }
h2 { font-size: 18px; margin: 26px 0 10px; font-weight: 700; }
h3 { font-size: 13px; margin: 18px 0 8px; color: var(--text-faint); font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 13.5px; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2.collapse { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 1px 2px var(--sc-sm);
}
.pad { padding: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--panel-alt); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme='dark'] .btn.primary { color: #0b1015; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.soft { background: color-mix(in srgb, var(--c) 12%, transparent); border-color: transparent; color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ico { width: 18px; height: 18px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--text-faint); cursor: pointer;
}
.icon-btn:hover { background: var(--ov2); color: var(--text); }

.input, textarea.input, select.input {
  width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel); outline: none;
}
.input:focus { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
label.field { display: block; }
label.field > span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-dim); }
label.field > small { display: block; color: var(--text-faint); font-size: 12.5px; margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check-row input { width: 19px; height: 19px; accent-color: var(--c); }

.empty { text-align: center; color: var(--text-faint); padding: 34px 16px; }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 10px; stroke-width: 1.4; color: var(--c); opacity: .7; }
.notice { padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }

/* pilletjes */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; border: 1px solid var(--border); background: var(--panel);
  border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text-dim);
}
.chip:hover { color: var(--text); }
.chip.on { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: transparent; color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; background: var(--ov2); color: var(--text-dim); }
.tag.c { background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); }
.who-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; }
.who-row { display: inline-flex; gap: 3px; }

.seg { display: inline-flex; background: var(--ov2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px var(--sc-sm); }

/* ------------------------------------------------------------------ lijsten */
.list { list-style: none; margin: 0; padding: 0; }
.list.card { overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 4px 6px 4px 14px; min-height: 56px; border-top: 1px solid var(--border-soft); }
.item:first-child { border-top: 0; }
.check {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); background: transparent;
  flex: none; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.check:hover { border-color: var(--c); }
.check .ico { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; opacity: 0; }
.item.done .check { background: var(--c); border-color: var(--c); }
.item.done .check .ico { opacity: 1; }
.item-main { flex: 1; min-width: 0; cursor: pointer; padding: 8px 0; }
.item-name { word-break: break-word; font-weight: 600; }
.item-meta { font-size: 13px; color: var(--text-faint); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.item.done .item-name { text-decoration: line-through; color: var(--text-faint); font-weight: 500; }
.item.overdue .item-meta .due { color: var(--danger); font-weight: 700; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 8px; }
.section-head h3 { margin: 0; }

.add-bar { display: flex; gap: 8px; padding: 0 0 10px; }
.add-bar .input { flex: 1; }
.add-bar .btn { width: 46px; padding: 0; }

/* ------------------------------------------------------------------ vandaag */
.hello { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.02em; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.dash .span2 { grid-column: span 2; }
@media (max-width: 700px) { .dash { grid-template-columns: 1fr; } .dash .span2 { grid-column: auto; } }
.tile { padding: 16px; position: relative; overflow: hidden; }
.tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.tile-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink); font-weight: 750; font-size: 14px; }
.tile-head a { margin-left: auto; font-size: 13px; font-weight: 650; text-decoration: none; }
.tile-big { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; }
.tile-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--border); }
.tile-head + .tile-row, h3 + .tile-row { border-top: 0; }
.tile-row .t { width: 48px; flex: none; font-weight: 700; color: var(--text-dim); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.stat { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1; color: var(--ink); }

/* ------------------------------------------------------------------ weekmenu & agenda */
.week-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; gap: 8px; }
.week-nav .label { text-align: center; flex: 1; }
.week-nav .label b { display: block; font-size: 16px; font-family: var(--font-display); }
.days { display: grid; gap: 10px; }
.day { display: flex; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; min-height: 70px; text-align: left; width: 100%; color: inherit; }
.day:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.day.today { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.day-date { width: 46px; flex: none; text-align: center; }
.day-date .dow { font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--text-faint); letter-spacing: .06em; }
.day-date .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.day.today .day-date .num, .day.today .day-date .dow { color: var(--ink); }
.day-body { flex: 1; min-width: 0; }
.day-title { font-weight: 650; }
.day-empty { color: var(--text-faint); }
.day-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--bg-2); flex: none; }

.agenda-day { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.agenda-day:first-child { border-top: 0; }
.agenda-day.today .day-date .num, .agenda-day.today .day-date .dow { color: var(--ink); }
.agenda-day .events { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 11px; cursor: pointer; text-align: left; width: 100%;
  background: color-mix(in srgb, var(--c) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); color: inherit;
}
.event:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.event .time { min-width: 44px; white-space: nowrap; flex: none; font-weight: 750; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.event .body { flex: 1; min-width: 0; }
.event .title { font-weight: 650; }
.event .meta { font-size: 12.5px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; }
.event .meal { background: none; }
.agenda-day .add-here { border: 0; background: none; border-radius: 8px; padding: 4px 6px; color: var(--text-faint); cursor: pointer; font-size: 13px; font-weight: 650; align-self: flex-start; }
.agenda-day .add-here:hover { color: var(--ink); background: var(--ov2); }
.meal-line { font-size: 13px; color: var(--text-dim); display: flex; gap: 6px; align-items: center; padding: 2px 6px; text-decoration: none; }
.meal-line:hover { color: var(--text); }
.meal-line .ico { width: 15px; height: 15px; color: var(--ink-menu); }

/* ------------------------------------------------------------------ recepten */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.recipe-card { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.recipe-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--sc-md); }
.recipe-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-2); object-fit: cover; width: 100%; }
.recipe-card .thumb.ph { display: grid; place-items: center; color: var(--c); }
.recipe-card .thumb.ph .ico { width: 34px; height: 34px; stroke-width: 1.4; }
.recipe-card .body { padding: 10px 12px 12px; }
.recipe-card .title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-card .meta { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

.hero { margin: 0 0 16px; aspect-ratio: 16 / 9; max-height: 360px; width: 100%; object-fit: cover; background: var(--bg-2); border-radius: var(--radius); }
@media (max-width: 760px) { .hero { margin: -16px -16px 14px; width: calc(100% + 32px); border-radius: 0; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fact { background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; color: var(--ink); cursor: pointer; }
.stepper span { min-width: 92px; text-align: center; font-weight: 700; }
.recipe-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .recipe-cols { grid-template-columns: 1fr; gap: 0; } }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.ingredients li.sec, .steps li.sec { border: 0; padding: 14px 0 2px; font-weight: 800; color: var(--text-faint); font-size: 13px; list-style: none; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li.step { counter-increment: step; position: relative; padding: 9px 0 9px 42px; }
.steps li.step::before {
  content: counter(step); position: absolute; left: 0; top: 8px;
  width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 13.5px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

/* ------------------------------------------------------------------ taken & punten */
.score { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.score .card { padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; text-align: left; color: inherit; }
.score .who-dot { width: 34px; height: 34px; font-size: 14px; }
.score b { font-family: var(--font-display); font-size: 22px; display: block; line-height: 1.1; }
.points-badge { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 12.5px; color: var(--ink-menu); }

/* ------------------------------------------------------------------ info */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.note { padding: 14px 16px; cursor: pointer; text-align: left; color: inherit; width: 100%; }
.note:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.note .title { font-weight: 750; display: flex; gap: 6px; align-items: center; }
.note .body { white-space: pre-wrap; color: var(--text-dim); font-size: 14px; margin-top: 6px; word-break: break-word; max-height: 9.5em; overflow: hidden; }
.note .pin { width: 14px; height: 14px; color: var(--ink); }
.bday { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border-soft); cursor: pointer; }
.bday:first-child { border-top: 0; }
.bday .date { width: 46px; text-align: center; flex: none; }
.bday .date b { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1; }
.bday .date small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--text-faint); }
.bday.soon .date b { color: var(--ink); }

/* ------------------------------------------------------------------ sheet / venster */
.sheet-scrim { position: fixed; inset: 0; background: rgba(15, 25, 35, .42); z-index: 60; animation: fade .15s ease-out; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; z-index: 61; background: var(--panel); overflow: auto;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: min(86dvh, 860px);
  border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 24px 60px var(--sc-lg);
  animation: pop .18s ease-out;
}
.sheet .grip { display: none; }
.sheet h2 { margin: 0 0 14px; font-size: 21px; padding-right: 36px; }
.sheet .sheet-x { position: absolute; top: 12px; right: 12px; }
@media (max-width: 760px) {
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-height: 90dvh;
    border-radius: 20px 20px 0 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 16px);
    animation: up .2s ease-out;
  }
  .sheet .grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 12px; }
  .sheet .sheet-x { display: none; }
}
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes pop { from { transform: translate(-50%, -48%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.pick-list { list-style: none; margin: 0; padding: 0; max-height: 38dvh; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.pick-list li button {
  width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px;
  display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border-soft); cursor: pointer;
}
.pick-list li:first-child button { border-top: 0; }
.pick-list li button:hover { background: var(--ov); }
.pick-list img, .pick-list .ph { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--bg-2); flex: none; }
.pick-list li button.sel { color: var(--ink); font-weight: 800; background: color-mix(in srgb, var(--c) 9%, transparent); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.checks input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--c); flex: none; }
.checks .grp { font-weight: 800; padding: 14px 0 4px; color: var(--text-faint); font-size: 13px; }

/* ------------------------------------------------------------------ aanmelden */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(400px, 100%); }
.login .logo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 8px 24px var(--sc-md); }
.login h1 { font-size: 30px; margin: 0 0 6px; }

/* ------------------------------------------------------------------ toast & spinner */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 650; z-index: 90; transition: .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast { left: calc(50% + var(--side-w) / 2); } }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--c); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; margin: 0; border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

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