/* Trouwplanner – Bart & Charissa. Papier, inkt, gras en een gouden lakzegel. */
:root {
  --papier: #faf9f6;
  --wit: #ffffff;
  --accent: #d4c09a;          /* champagne: knoppen, balken, vlakken */
  --accent-hover: #c8b285;
  --accent-ink: #796e5b;      /* donkere champagne: tekst, links, randen */
  --accent-donker: #5f4f33;
  --accent-zacht: #f2ebdd;
  --op-accent: #161616;       /* tekst op een champagnevlak */
  --inkt: #161616;
  --grijs: #6b6a65;
  --lijn: #e4e1d9;
  --goud: #b8864b;
  --goud-zacht: #f5ece0;
  --rood: #a5372f;
  --rood-zacht: #f8e7e4;

  --display: "Le Mores", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: var(--display);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-klein: 6px;
  --r: 10px;
  --tabbar: 64px;
  color-scheme: light;
}

@font-face {
  font-family: "Le Mores";
  src: url("/fonts/le-mores-serif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .02em; font-synthesis: none; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.05rem; letter-spacing: .04em; }
p { margin: 0 0 0.75rem; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--wit); padding: 8px 12px; }

/* ---------- iconen ---------- */
.icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.icon.small { width: 18px; height: 18px; }
.icon svg { width: 100%; height: 100%; }

/* ---------- monogram ---------- */
.monogram { display: block; width: 30px; height: 30px; flex: none; }
.monogram.large { width: 88px; height: 88px; margin: 0 auto 18px; }

/* ---------- logo met aftelteller ---------- */
.seal-wrap { position: relative; display: flex; justify-content: center; padding-top: 34px; width: 240px; }
.seal-text { position: absolute; top: 0; left: 0; width: 240px; height: 140px; pointer-events: none; }
.seal-text text { font-family: var(--display); font-size: 12px; letter-spacing: .18em; fill: var(--inkt); }
.seal { width: 190px; height: 190px; border-radius: 50%; background: var(--wit); display: flex; align-items: center; justify-content: center; }
.seal img { width: 128px; height: 128px; }
.count-num { font-family: var(--display); font-size: 4rem; line-height: 1; margin-top: 18px; font-variant-numeric: lining-nums; }
.count-num.word { font-size: 2.2rem; }
.count-label { font-family: var(--display); font-size: .8rem; letter-spacing: .16em; margin-top: 8px; color: var(--grijs); }

/* ---------- opzet ---------- */
.shell { min-height: 100vh; }
.sidebar { display: none; }
main { padding: 20px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom)); outline: none; }
.page { max-width: 760px; margin: 0 auto; }
.page.narrow { max-width: 640px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--lijn);
  backdrop-filter: blur(8px);
}
.tab-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--grijs); text-decoration: none; font-size: .66rem; letter-spacing: -.01em; white-space: nowrap;
}
.tab-link[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

/* kopbalk op de telefoon */
.topbar {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: var(--papier);
}
.topbar .home { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.topbar .monogram { width: 30px; height: 30px; }
.topbar .name { text-align: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; color: var(--inkt); text-decoration: none; }
.topbar .icon-btn[aria-current="page"] { color: var(--accent-ink); background: var(--accent-zacht); }
.topbar + .shell main { padding-top: 4px; }

@media (min-width: 900px) {
  .topbar { display: none; }
  .topbar + .shell main { padding-top: 40px; }
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 28px;
    position: sticky; top: 0; height: 100vh; padding: 28px 18px;
    background: var(--wit); border-right: 1px solid var(--lijn);
  }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--inkt); font-family: var(--display); font-size: 1.15rem; font-weight: 400; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .side-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-klein);
    color: var(--grijs); text-decoration: none;
  }
  .side-link:hover { background: var(--papier); color: var(--inkt); }
  .side-link[aria-current="page"] { background: var(--accent-zacht); color: var(--accent-donker); font-weight: 600; }
  .tabbar { display: none; }
  main { padding: 40px 40px 64px; }
}

/* ---------- koppen ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sub { color: var(--grijs); margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; font-weight: 600; font-size: .95rem; background: none; text-decoration: none;
}
.btn.primary { background: var(--accent); color: var(--op-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.round { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex: none; }
.btn.round .icon { width: 22px; height: 22px; }
.btn.ghost { border-color: var(--lijn); background: var(--wit); color: var(--inkt); }
.btn.ghost:hover { border-color: var(--accent-ink); }
.btn.danger-text { color: var(--rood); padding: 0 8px; }
.btn.small { min-height: 36px; font-size: .85rem; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn { border: 0; background: none; padding: 8px; cursor: pointer; color: var(--grijs); border-radius: 50%; display: inline-flex; }
.link { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .hide-sm { display: none; } .head-actions .btn.ghost { padding: 0 12px; } }

/* ---------- overzicht ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 4px 0 32px; }
.hero .set-date { margin-top: 10px; font-size: .95rem; }

.block { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.block > h2 { margin-bottom: 12px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.empty { color: var(--grijs); margin: 8px 0 0; }
.empty.big { text-align: center; padding: 48px 16px; font-family: var(--display); font-size: 1.2rem; }
.notice { background: var(--rood-zacht); color: var(--rood); border-radius: var(--r-klein); padding: 10px 12px; font-weight: 600; margin: 4px 0 8px; }
.notice a { color: inherit; }
.notice.soft { background: var(--accent-zacht); color: var(--accent-donker); font-weight: 400; }

.progress-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.progress-num { font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--accent-zacht); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.mini-timeline { list-style: none; margin: 4px 0 0; padding: 0; }
.mini-timeline li { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--papier); }
.mini-timeline li:first-child { border-top: 0; }
.mt-time { font-variant-numeric: tabular-nums; color: var(--accent-ink); font-weight: 600; width: 3.2em; flex: none; }

/* ---------- segmenten (filters, dagen) ---------- */
.segments { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 20px; padding: 2px 16px; scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.segments a {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--wit); border: 1px solid var(--lijn);
  color: var(--inkt); text-decoration: none; font-size: .92rem;
}
.segments a[aria-current="true"] { background: var(--inkt); border-color: var(--inkt); color: #fff; }
.segments .count { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.segments a.has-late:not([aria-current="true"]) .count { color: var(--rood); opacity: 1; font-weight: 700; }
@media (min-width: 900px) { .segments { margin: 0 0 20px; padding: 2px 0; } }

/* ---------- taken ---------- */
.group { margin-bottom: 28px; }
.group-head { font-size: .875rem; letter-spacing: .05em; white-space: nowrap; display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; color: var(--inkt); }
.group-head .count { font-family: var(--sans); font-size: .8rem; color: var(--grijs); font-weight: 400; }
.tasks { list-style: none; margin: 0; padding: 0; }
.group .tasks { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); }
.task { display: flex; align-items: flex-start; gap: 4px; border-top: 1px solid var(--papier); }
.task:first-child { border-top: 0; }
.tick {
  flex: none; width: 44px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: transparent;
}
.tick .icon { width: 26px; height: 26px; border: 1.8px solid var(--accent-ink); border-radius: 50%; padding: 3px; transition: background .15s, color .15s; }
.tick:hover .icon { background: var(--accent-zacht); color: var(--accent-ink); }
.task.done .tick .icon { background: var(--accent); border-color: var(--accent); color: var(--op-accent); }
.task.overdue .tick .icon { border-color: var(--rood); }
.task-main {
  flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 2px;
}
.task-title { font-weight: 500; }
.task.done .task-title { color: var(--grijs); text-decoration: line-through; text-decoration-color: var(--lijn); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--grijs); }
.meta .late { color: var(--rood); font-weight: 600; }
.task-notes { font-size: .85rem; color: var(--grijs); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- draaiboek ---------- */
.day { display: none; }
.day.active { display: block; }
.day-head { display: none; }
.print-title { display: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.moment { position: relative; display: grid; grid-template-columns: 76px 1fr; }
.moment::before { /* de lijn */
  content: ""; position: absolute; left: 76px; top: 0; bottom: 0; width: 2px; background: var(--accent-zacht);
}
.moment::after { /* het bolletje */
  content: ""; position: absolute; left: 70px; top: 20px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--wit); border: 2px solid var(--accent-ink);
}
.moment:first-child::before { top: 20px; }
.moment:last-child::before { bottom: calc(100% - 24px); }
.m-time { padding: 15px 18px 0 0; text-align: right; display: flex; flex-direction: column; }
.m-start { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-ink); }
.m-end { font-size: .8rem; color: var(--grijs); }
.m-body {
  margin: 6px 0 6px 22px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 3px;
}
.m-body:hover { border-color: var(--accent-ink); }
.m-title { font-family: var(--display); font-size: 1rem; font-weight: 400; letter-spacing: .03em; }
.m-line { display: flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--grijs); }
.m-notes { font-size: .88rem; color: var(--grijs); white-space: pre-line; }

/* ---------- budget ---------- */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin-bottom: 16px; }
@media (min-width: 640px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { display: flex; flex-direction: column; gap: 2px; }
.fig-value { font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fig-label { font-size: .85rem; color: var(--grijs); }
.figure.neg .fig-value { color: var(--rood); }
.figure.pos .fig-value { color: var(--accent-ink); }
.money-bar { display: flex; height: 10px; border-radius: 999px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--lijn); overflow: hidden; }
.money-bar span { display: block; height: 100%; }
.mb-paid { background: var(--accent); }
.mb-open { background: repeating-linear-gradient(135deg, #dccbaa 0 4px, #ede4d1 4px 8px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .82rem; color: var(--grijs); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.paid { background: var(--accent); }
.dot.open { background: #e3d5b8; }
.dot.free { background: var(--papier); box-shadow: inset 0 0 0 1px var(--lijn); }
.pay, .expense { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--papier); }
.pay:first-child, .expense:first-child { border-top: 0; }
.pay.overdue .tick .icon { border-color: var(--rood); }
.pay-amount { font-variant-numeric: tabular-nums; font-weight: 600; padding-right: 14px; white-space: nowrap; }
.pay-amount.small { font-size: .85rem; padding: 0; color: var(--grijs); font-weight: 500; }
.expense-main { flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer; padding: 12px 12px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.meta .ok { color: var(--accent-ink); font-weight: 600; }
.muted { color: var(--grijs); font-weight: 400; }
.tasks.compact { margin-top: 10px; border-top: 1px solid var(--papier); }
.sub.small { font-size: .85rem; margin-top: 8px; }
.empty-card { background: var(--wit); border: 1px dashed var(--lijn); border-radius: var(--r); padding: 28px 20px; text-align: center; }
.empty-card p { color: var(--grijs); max-width: 40ch; margin: 0 auto 16px; }
.duo { display: grid; gap: 16px; margin-bottom: 16px; }
.duo .block { margin-bottom: 0; }
@media (min-width: 760px) { .duo { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

/* betaaltermijnen in het bewerkvenster */
.pay-rows { display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; padding: 10px; background: var(--papier); border-radius: var(--r-klein); }
.pay-row input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--lijn); border-radius: var(--r-klein); background: var(--wit); }
.pay-row [data-f=label] { grid-column: 1 / -1; }
.pay-row .icon-btn { justify-self: end; }
@media (min-width: 600px) {
  .pay-row { grid-template-columns: 1.4fr 1fr 1.3fr auto auto; }
  .pay-row [data-f=label] { grid-column: auto; }
}
.check { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.check input, .field .check input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent-ink); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.field .label { font-weight: 600; font-size: .9rem; }

/* ---------- leveranciers ---------- */
.vendor { border-top: 1px solid var(--papier); }
.vendor:first-child { border-top: 0; }
.vendor-main { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; background: none; cursor: pointer; text-align: left; }
.vendor-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vendor-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.avatar.status-geboekt { background: var(--accent); color: var(--op-accent); }
.avatar.status-zoeken { background: var(--wit); color: var(--grijs); box-shadow: inset 0 0 0 1.5px var(--lijn); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.status-zoeken { background: var(--papier); color: var(--grijs); border-color: var(--lijn); }
.chip.status-contact { background: var(--accent-zacht); color: var(--accent-donker); }
.chip.status-offerte { background: var(--goud-zacht); color: #7b5426; }
.chip.status-geboekt { background: var(--accent); color: var(--op-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip.add { background: var(--wit); border-color: var(--lijn); color: var(--inkt); font-size: .88rem; padding: 7px 12px; cursor: pointer; font-weight: 500; }
.chip.add:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.suggestions .sub { margin-bottom: 12px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mini-list { list-style: none; margin: 0 0 8px; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--papier); font-variant-numeric: tabular-nums; }
.link-btn.plain { text-decoration: none; color: var(--inkt); font-weight: 500; text-align: left; }

/* ---------- gasten ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.household { display: flex; align-items: flex-start; gap: 4px; border-top: 1px solid var(--papier); }
.household:first-child { border-top: 0; }
.hh-main { flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer; padding: 12px 8px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.household .share { margin: 8px 6px 0 0; width: 44px; height: 44px; align-items: center; justify-content: center; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.person { font-size: .82rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--lijn); background: var(--wit); color: var(--grijs); }
.person.rsvp-ja { background: var(--accent-zacht); border-color: var(--accent-zacht); color: var(--accent-donker); }
.person.rsvp-nee { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.guest-rows { display: flex; flex-direction: column; gap: 8px; }
.guest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; padding: 10px; background: var(--papier); border-radius: var(--r-klein); }
.guest-row input:not([type=checkbox]), .guest-row select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--lijn); border-radius: var(--r-klein); background: var(--wit); }
.guest-row [data-f=name] { grid-column: 1 / -1; }
.guest-row .icon-btn { justify-self: end; }
@media (min-width: 600px) { .guest-row { grid-template-columns: 1.4fr 1.1fr 1.1fr auto auto; } .guest-row [data-f=name] { grid-column: auto; } }
.btn.wa { margin-top: 8px; }
.guest-msg { margin: 10px 0 4px; font-size: .9rem; color: var(--inkt); }
.small-link { font-size: .85rem; margin-top: 10px; color: var(--grijs); }

/* ---------- gastpagina (RSVP) ---------- */
.rsvp { min-height: 100vh; padding: 28px 16px 48px; }
.rsvp-loading { text-align: center; color: var(--grijs); padding-top: 30vh; }
.rsvp-page { max-width: 520px; margin: 0 auto; }
.rsvp-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; margin-bottom: 28px; }
.rsvp-names { font-size: clamp(2rem, 8vw, 2.6rem); margin: 22px 0 14px; line-height: 1.05; }
.date-stack { display: flex; gap: 18px; justify-content: center; margin: 0 0 14px; }
.date-stack span { font-family: var(--display); font-size: 1.9rem; line-height: 1; padding-bottom: 8px; border-bottom: 1px solid var(--inkt); min-width: 2.2ch; font-variant-numeric: lining-nums; }
.rsvp-when { margin: 0; color: var(--inkt); }
.rsvp-where { margin: 6px 0 12px; color: var(--grijs); }
.rsvp-card { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 24px 20px; }
.rsvp-card h1 { font-size: 1.4rem; margin-bottom: 8px; }
.rsvp-intro { margin-bottom: 18px; }
.rsvp-dear { font-family: var(--display); font-size: 1.1rem; letter-spacing: .03em; margin-bottom: 8px; }
.rsvp-message { white-space: pre-line; color: var(--grijs); font-style: italic; }
.rsvp-guest { border: 0; border-top: 1px solid var(--papier); margin: 0; padding: 16px 0; }
.rsvp-guest:first-child { border-top: 0; padding-top: 0; }
.rsvp-guest legend { font-weight: 600; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.choices { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--lijn); border-radius: 999px; background: var(--wit); font-weight: 600; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--op-accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.diet-field { margin: 12px 0 0; }
.rsvp-form .btn.wide { margin-top: 6px; }
.rsvp-summary h2 { font-size: 1.15rem; margin-bottom: 12px; }
.rsvp-list { list-style: none; padding: 0; margin: 0 0 16px; }
.rsvp-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--papier); }
.rsvp-list li:first-child { border-top: 0; }
.rsvp-list li > span:first-child { flex: 1; font-weight: 500; }
.rsvp-list .diet { flex-basis: 100%; font-size: .85rem; }
.chip.rsvp-ja { background: var(--accent); color: var(--op-accent); }
.chip.rsvp-nee { background: var(--papier); color: var(--grijs); border-color: var(--lijn); }
.chip.rsvp-open { background: var(--wit); color: var(--grijs); border-color: var(--lijn); }
.rsvp-note { color: var(--grijs); }
.rsvp-foot { text-align: center; color: var(--grijs); font-size: .85rem; margin-top: 18px; }

/* ---------- formulieren ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; flex: 1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--lijn); border-radius: var(--r-klein);
  background: var(--wit);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-ink); outline: 2px solid var(--accent-zacht); outline-offset: 0; }
.hint { font-size: .8rem; color: var(--grijs); margin: 0; }
.row { display: flex; gap: 12px; }
@media (max-width: 520px) { .row:not(.three) { flex-direction: column; gap: 0; } .row.three { flex-wrap: wrap; } .row.three .field:first-child { flex-basis: 100%; } }
.form-error { color: var(--rood); font-weight: 600; margin: 0 0 10px; min-height: 0; }
.form-error:empty { display: none; }
.form-section { font-size: 1.05rem; margin: 10px 0 12px; padding-top: 14px; border-top: 1px solid var(--lijn); }
.form-actions { display: flex; justify-content: flex-end; }
.card-form + .card-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--papier); }

/* ---------- inloggen en instellen ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 480px; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 32px 24px; }
.auth-card { text-align: left; }
.auth-card h1 { margin-bottom: 8px; text-align: center; }
.auth-card .lead { text-align: center; }
.lead { color: var(--grijs); margin-bottom: 24px; }

/* ---------- leden en uitnodigen ---------- */
.members { list-style: none; padding: 0; margin: 8px 0 16px; }
.members li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-zacht); color: var(--accent-donker); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.member-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.member-name { font-weight: 600; }
.member-mail { font-size: .85rem; color: var(--grijs); overflow: hidden; text-overflow: ellipsis; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--lijn); border-radius: var(--r-klein); background: var(--papier); font-size: .85rem; }

/* ---------- bewerkvenster ---------- */
dialog.sheet {
  border: 0; padding: 0; width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh;
  border-radius: 18px 18px 0 0; background: var(--wit); color: var(--inkt);
  box-shadow: 0 -10px 40px rgba(22, 22, 22, .16);
}
dialog.sheet::backdrop { background: rgba(22, 22, 22, .4); }
dialog.sheet[open] { animation: omhoog .22s ease-out; }
@keyframes omhoog { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet form { display: flex; flex-direction: column; max-height: 92vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; }
.sheet-body { padding: 8px 20px 0; overflow-y: auto; }
.sheet .form-error { padding: 0 20px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--papier); }
@media (min-width: 700px) {
  dialog.sheet { max-width: 560px; margin: auto; border-radius: var(--r); }
}

/* ---------- melding ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--inkt); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: .92rem; text-align: center;
  max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--rood); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

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

/* ---------- afdrukken ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .sidebar, .tabbar, .segments, .head-actions, .skip, .toast, .btn, .link-btn { display: none !important; }
  main { padding: 0; }
  .page-head { margin-bottom: 8px; }
  .print-title { display: block; font-family: var(--display); font-size: 12pt; color: var(--grijs); }
  .day { display: block; break-inside: avoid-page; margin-top: 18px; }
  .day-head { display: flex; align-items: baseline; gap: 10px; font-size: 14pt; margin-bottom: 6px; }
  .day-date { font-family: var(--sans); font-size: 10pt; font-weight: 400; color: var(--grijs); }
  .moment { break-inside: avoid; }
  .m-body { border-color: #ccc; }
  .empty { display: none; }
  .day.is-empty { display: none; }
}
