:root {
  /* Huisstijl Robuust PT: diepblauw vlak, heldere blauwe lijnen, witte Roboto-koppen,
     rode kruisjes als merkteken. Indeling: één smalle kolom, vaste tabbalk onderaan. */
  --bg: #222e58;
  --surface: #1c294b;
  --ink: #ffffff;
  --muted: #9db4f0;
  --line: #3c5baa;
  --line-soft: #2f4382;
  --brand: #3c5baa;
  --brand-red: #c54644;
  --own: #3fb985;
  --own-ink: #0d1a33;
  --free: #3c5baa;
  --free-ink: #ffffff;
  --full: #c54644;
  --full-ink: #ffffff;
  --warn: #f2b35e;
  --warn-soft: rgba(242, 179, 94, .14);
  --bad: #ff8d8a;
  --soft: rgba(157, 180, 240, .14);
  --demo: #141c3a;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.demo { background: var(--demo); color: #dfe6ff; padding: 8px 16px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.demo b { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.demo input { background: #fff; color: #111; border: 0; border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: transparent; border: 0; color: #dfe6ff; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--bg); font-weight: 500; }
.demo .link { background: transparent; border: 1px solid var(--line); color: #dfe6ff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; margin-left: auto; }
.app { max-width: 520px; margin: 0 auto; padding: 16px 16px 96px; }
.brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand .logo { width: 56px; height: 56px; display: block; }
.brand .who { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.h1 { font-weight: 900; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; margin: 4px 0 6px; }
.h1::after { content: ""; display: block; width: 58px; height: 14px; margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='14' viewBox='0 0 58 14'%3E%3Cg stroke='%23c54644' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2 2l10 10M12 2L2 12'/%3E%3Cpath d='M22 2l10 10M32 2L22 12'/%3E%3Cpath d='M42 2l10 10M52 2L42 12'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.sub { color: var(--muted); font-size: 15px; margin: 14px 0 18px; }

/* Pagina's zonder ingelogde gebruiker (inloggen): alles gecentreerd, groter logo, geen kruisjes */
.app.center { padding-top: 36px; }
.app.center .brand { justify-content: center; margin-bottom: 28px; }
.app.center .brand .logo { width: 132px; height: 132px; }
.app.center .h1, .app.center .sub { text-align: center; }
.app.center .h1::after { display: none; }
.app.center .h1 { margin-bottom: 0; }
.group { margin: 22px 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.row.top { align-items: flex-start; }
.when { font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.where { color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: #dbe5ff; font-weight: 500; align-self: flex-start; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: rgba(255, 141, 138, .14); color: var(--bad); }
.chip.muted { background: transparent; color: var(--muted); border: 1px solid var(--line-soft); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 18px; font-weight: 500; cursor: pointer; min-height: 42px; color: #fff; }
.btn.primary { background: #fff; color: var(--bg); border-color: #fff; font-weight: 700; }
.btn.danger { color: var(--bad); border-color: var(--brand-red); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .tab:focus-visible, .demo button:focus-visible, .demo input:focus-visible, .iconbtn:focus-visible, .nextcard:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.dot.on { background: var(--muted); }
.dot.over { background: var(--warn); border-color: var(--warn); }
.seats { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.tabbar-in { display: flex; width: 100%; max-width: 520px; }
.tab { flex: 1; background: transparent; border: 0; padding: 15px 8px; font-weight: 500; color: var(--muted); cursor: pointer; font-size: 15px; border-top: 3px solid transparent; letter-spacing: .02em; }
.tab[aria-current="page"] { color: #fff; font-weight: 700; border-top-color: var(--brand-red); }
.total { font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.line:first-child { border-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 6px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); border-top: 0; font-weight: 500; }
td.r, th.r { text-align: right; }
.overlay { position: fixed; inset: 0; background: rgba(8, 12, 30, .65); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { background: var(--surface); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; border-top: 1px solid var(--line); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 88%; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.sheet h2 { font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.note { font-size: 14px; color: var(--muted); }
.callout { border-radius: 12px; padding: 10px 12px; font-size: 14px; background: var(--soft); color: #fff; }
.callout.warn { background: var(--warn-soft); color: #ffe3b8; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #fff; color: var(--bg); font-weight: 500; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); }
.members { display: flex; flex-wrap: wrap; gap: 6px; }
.mail { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.mail b { font-weight: 700; }
.field { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: #fff; font: inherit; }
label { font-size: 14px; font-weight: 500; }
.calhead { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.calhead .m { font-weight: 900; font-size: 24px; letter-spacing: -.02em; text-transform: capitalize; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.iconbtn[disabled] { opacity: .3; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { font-size: 11px; text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; padding-bottom: 2px; }
.cell { min-height: 64px; background: var(--surface); border: 1px solid transparent; border-radius: 10px; padding: 3px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell.out { background: transparent; }
.cell.today { border-color: #fff; }
.dn { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sb { border: 0; border-radius: 7px; padding: 3px 1px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; cursor: pointer; width: 100%; min-height: 34px; }
.sb .t { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb .g { font-size: 9.5px; font-weight: 500; letter-spacing: .02em; }
.sb:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.s-own { background: var(--own); color: var(--own-ink); }
.s-past { background: rgba(63, 185, 133, .2); color: var(--own); }
.s-free { background: var(--free); color: var(--free-ink); }
.s-full { background: var(--full); color: var(--full-ink); }
.s-late { background: var(--warn-soft); color: var(--warn); outline: 1.5px dashed var(--warn); outline-offset: -2px; }
.s-cancel { background: transparent; color: var(--muted); border: 1px solid var(--line-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.nextcard { text-align: left; cursor: pointer; width: 100%; font: inherit; color: inherit; border: 0; }
.cmp { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: up .18s ease-out; } @keyframes up { from { transform: translateY(24px); opacity: .6; } } }
/* ---- schermen van de echte app ---- */
a { color: inherit; }
a.btn, a.sb, a.nextcard, a.tab { text-decoration: none; }
a.btn { display: inline-flex; align-items: center; justify-content: center; }
a.sb { display: flex; }
a.tab { display: block; text-align: center; }
.linkbtn { background: transparent; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.topright { display: flex; align-items: center; gap: 14px; }
form.inline { display: inline; margin: 0; }
.fields { display: flex; flex-direction: column; gap: 10px; }
select.field { appearance: auto; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.flash { border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; background: var(--soft); }
.flash.err { background: rgba(255, 141, 138, .16); color: #ffd6d4; }
.page { display: flex; flex-direction: column; gap: 12px; }
.sessionrow { display: flex; flex-direction: column; gap: 8px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; background: var(--soft); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.muted { background: transparent; border: 1px solid var(--line-soft); color: var(--muted); }
.mt { margin-top: 16px; }
.mb { margin-bottom: 10px; }
.sw.own { background: var(--own); }
.sw.free { background: var(--free); }
.sw.full { background: var(--full); }
.sw.late { background: var(--warn-soft); outline: 1.5px dashed var(--warn); outline-offset: -2px; }
.sw.cancel { border: 1px solid var(--line-soft); }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.spaced { display: flex; flex-direction: column; gap: 14px; }

/* Intake */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea.field { resize: vertical; min-height: 96px; }
.card .btns .btn, .card > a.btn { text-align: center; }

/* Intake-pagina: taalkeuze, duur, introductie en dagblokken */
.langs { display: flex; justify-content: center; gap: 10px; margin: -10px 0 18px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.langs a { text-decoration: none; color: var(--muted); padding: 4px 2px; }
.langs a[aria-current] { color: #fff; font-weight: 700; border-bottom: 2px solid var(--brand-red); }
.app.center .h1 { text-align: center; }
.meta { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.meta .ico { flex: none; }
.intro { white-space: pre-line; font-size: 16px; line-height: 1.5; margin-bottom: 18px; }
.center-note { text-align: center; margin-top: 14px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.iconbtn.off { opacity: .3; }
.cell.day { text-decoration: none; align-items: center; justify-content: flex-start; min-height: 56px; }
.cell.day.closed .dn { text-align: center; opacity: .5; font-size: 13px; }
.cell.day.open { background: var(--surface); }
.cell.day.open .dn { color: #fff; font-weight: 700; font-size: 14px; text-align: center; }
.cell.day.open .blk { display: block; width: 100%; flex: 1; min-height: 26px; border-radius: 7px; background: var(--free); }
.cell.day.open:hover .blk { background: #4f72cf; }
.cell.day.open.sel { border-color: #fff; }
.cell.day.open.sel .blk { background: #fff; }
.cell.day.open:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
#tijden { margin-top: 14px; scroll-margin-top: 12px; }

/* Titel past op smalle schermen; datumkop van het formulier */
.app.center .h1 { font-size: clamp(24px, 7.4vw, 34px); }
.app.center .h1.date { font-size: clamp(22px, 6.6vw, 30px); margin-bottom: 4px; }
.when { text-align: center; color: var(--muted); font-size: 18px; font-weight: 500; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.meta { width: 100%; }
/* Locatiekeuze als keuzerijen met icoon */
.modes { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.modes legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: 16px; font-weight: 400; }
.opt:has(input:checked) { border-color: #fff; }
.opt input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.opt input:checked { border-color: #fff; background: radial-gradient(circle, #fff 0 45%, transparent 50%); }
.opt input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.opt-ico { flex: none; display: inline-flex; color: var(--muted); }

/* "30 min" met gelijke ruimte boven (titel) en onder (tekstvlak) */
.app.center .h1 { margin: 4px 0 0; }
.meta { margin: 16px 0 16px; line-height: 1; }
.meta span { line-height: 1; }

/* Meer lucht tussen datum en tijd */
.app.center .h1.date { margin-bottom: 14px; }
.when { margin: 0 0 20px; }
