:root {
  --paper: #FBF3D5;
  --card: #FFFBEE;
  --ink: #4A3326;
  --soft: #7F6857;
  --mute: #B09C86;
  --line: #EEE1B8;
  --blue: #D97F99;
  --blue-soft: #FBE3E8;
  --blue-deep: #A9546E;
  --crib: #7E9BE3;
  --milk: #EFE0CB;
  --milk-deep: #E0879F;
  --sage: #E4EADF;
  --sage-deep: #6E8064;
  --red: #B5523F;
  --r: 22px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.45 var(--sans); overflow-x: hidden; }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:active:not(:disabled) { transform: scale(.97); }
button, .tap { transition: transform .18s var(--ease), background .2s, opacity .2s; }
main { max-width: 520px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)); }
.fade { animation: fade .5s var(--ease) both; }
.fade:nth-child(2) { animation-delay: .05s } .fade:nth-child(3) { animation-delay: .1s } .fade:nth-child(4) { animation-delay: .15s } .fade:nth-child(5) { animation-delay: .2s }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- held ---------- */
.hero { position: relative; text-align: center; padding: 26px 6px 8px; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.portrait { position: relative; width: 196px; height: 196px; margin: 22px auto 18px; }
.portrait .blob { position: absolute; inset: -14px; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; background: radial-gradient(120% 90% at 30% 20%, #fff 0%, var(--blue-soft) 50%, #F7E7A6 100%); animation: breathe 7s ease-in-out infinite; }
.portrait .blob.two { inset: -22px; background: none; border: 1px solid rgba(126, 155, 227, .35); animation-duration: 9s; animation-direction: reverse; }
@keyframes breathe { 50% { border-radius: 54% 46% 47% 53% / 46% 54% 46% 54%; transform: rotate(4deg) scale(1.02); } }
.portrait img, .portrait .mono { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 18px 40px -18px rgba(169, 84, 110, .35); }
.portrait .mono { display: grid; place-items: center; background: var(--card); font: italic 300 96px/1 var(--serif); color: var(--blue); }
h1.name { font: 300 clamp(64px, 20vw, 92px)/.9 var(--serif); letter-spacing: -.035em; margin: 6px 0 6px; font-variation-settings: 'opsz' 144; }
.age { color: var(--soft); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 6px; }
.stat { background: var(--card); border-radius: 18px; padding: 14px 8px 12px; text-align: center; box-shadow: 0 1px 0 var(--line); }
.stat b { display: block; font: 400 22px/1.1 var(--serif); letter-spacing: -.01em; }
.stat span { font-size: 12px; color: var(--mute); letter-spacing: .04em; }

/* ---------- blokken ---------- */
.block { margin-top: 30px; }
h2 { font: 400 28px/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 8px; }
.lead { color: var(--soft); margin: 0 0 18px; }
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: 0 1px 0 var(--line); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); background: var(--sage); border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.note svg { flex: none; margin-top: 1px; color: var(--sage-deep); }

/* ---------- week ---------- */
.weekbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.weekbar b { font-weight: 500; }
.round { width: 38px; height: 38px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 1px 0 var(--line); }
.round:disabled { opacity: .3; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { aspect-ratio: .78; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 1px 0 var(--line); position: relative; }
.day small { font-size: 11px; color: var(--mute); text-transform: lowercase; }
.day b { font: 400 21px/1 var(--serif); }
.day .dots { display: flex; gap: 3px; height: 5px; margin-top: 3px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--crib); }
.day .dots i.t { background: var(--line); }
.day .dots i.off { background: none; box-shadow: inset 0 0 0 1px var(--mute); }
.day.none { opacity: .38; }
.day.out { visibility: hidden; }
.day.sel { background: var(--ink); color: var(--paper); box-shadow: none; }
.day.sel small { color: rgba(251, 243, 213, .65); }
.day.sel .dots i { background: var(--paper); } .day.sel .dots i.t { background: rgba(251, 243, 213, .3); }
.day.today small { color: var(--milk-deep); font-weight: 600; }

/* ---------- tijdsloten bezoek ---------- */
.dayhead { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.dayhead h3 { font: 400 21px/1.2 var(--serif); margin: 0; }
.dayhead span { color: var(--mute); font-size: 13px; }
.slots { display: grid; gap: 10px; }
.slot { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); border-radius: var(--r); padding: 16px 16px 16px 18px; box-shadow: 0 1px 0 var(--line); }
.slot .t { font: 400 26px/1 var(--serif); letter-spacing: -.02em; }
.slot .t em { font-style: normal; color: var(--mute); font-size: 18px; }
.slot .meta { font-size: 13px; color: var(--soft); margin-top: 4px; }
.slot .go { margin-left: auto; flex: none; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.slot.taken { opacity: .5; }
.slot.taken .go { background: var(--line); color: var(--soft); }
.empty { text-align: center; padding: 26px 18px; color: var(--soft); background: var(--card); border-radius: var(--r); box-shadow: 0 1px 0 var(--line); }
.empty .ic { font: italic 300 34px/1 var(--serif); color: var(--blue); display: block; margin-bottom: 8px; }

/* ---------- mijn bezoek ---------- */
.mine { background: var(--crib); color: #fff; border-radius: var(--r); padding: 18px; margin-top: 18px; display: grid; gap: 4px; }
.mine small { opacity: .7; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.mine b { font: 400 24px/1.15 var(--serif); }
.mine .row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: inherit; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(74, 51, 38, .3); opacity: 0; transition: opacity .35s var(--ease); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--paper); border-radius: 28px 28px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .45s var(--ease); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--blue-deep); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; color: var(--soft); margin: 0 0 6px 4px; }
.in { width: 100%; background: var(--card); border: 1.5px solid transparent; border-radius: 16px; padding: 14px 16px; font-size: 16px; outline: none; box-shadow: 0 1px 0 var(--line); transition: border-color .2s; }
.in:focus { border-color: var(--blue); }
textarea.in { min-height: 80px; resize: none; }
.count { display: flex; align-items: center; gap: 4px; background: var(--card); border-radius: 16px; padding: 6px; box-shadow: 0 1px 0 var(--line); width: max-content; }
.count button { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); font-size: 20px; }
.count b { min-width: 74px; text-align: center; font-weight: 500; }
.btn { width: 100%; height: 56px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.btn:disabled { opacity: .5; }
.link { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; display: block; text-align: center; margin: 14px auto 0; }
.done { text-align: center; padding: 10px 0 4px; }
.done .check { width: 74px; height: 74px; border-radius: 50%; background: var(--sage); color: var(--sage-deep); display: grid; place-items: center; margin: 6px auto 16px; animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 40; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { text-align: center; color: var(--mute); font-size: 12px; margin-top: 34px; }

/* ---------- ouders ---------- */
.top { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.top .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--card); display: grid; place-items: center; font: italic 300 24px/1 var(--serif); color: var(--blue); box-shadow: 0 1px 0 var(--line); flex: none; }
.top h1 { font: 400 26px/1.05 var(--serif); margin: 0; letter-spacing: -.02em; }
.top p { margin: 2px 0 0; color: var(--soft); font-size: 13px; }
.top .share { margin-left: auto; }
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 4px; background: rgba(74, 51, 38, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 99px; padding: 5px; z-index: 20; box-shadow: 0 14px 30px -12px rgba(74, 51, 38, .45); }
.tabs button { height: 46px; padding: 0 16px; border-radius: 99px; color: rgba(251, 243, 213, .75); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px; position: relative; }
.tabs button.on { background: var(--paper); color: var(--ink); }
.badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--milk-deep); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }

.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.summary .stat { text-align: left; padding: 14px 16px; }
.summary .stat b { font-size: 28px; }

.tl { display: grid; gap: 8px; }
.row-feed { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--milk); color: #6B4A36; }
.row-feed .bottle { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .6); display: grid; place-items: center; flex: none; }
.row-feed b { font-weight: 600; }
.row-feed span { font-size: 13px; opacity: .8; }
.row-feed .edit { margin-left: auto; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .6); }
.row-slot { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 1px 0 var(--line); }
.row-slot .h { display: flex; align-items: center; gap: 12px; }
.row-slot .t { font: 400 22px/1 var(--serif); letter-spacing: -.01em; }
.row-slot .st { font-size: 13px; color: var(--soft); margin-top: 3px; }
.row-slot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.row-slot.off .t { color: var(--mute); }
.row-slot .warn { color: var(--red); }
.guest { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--blue-soft); display: grid; gap: 2px; }
.guest b { font-weight: 600; color: var(--blue-deep); }
.guest span { font-size: 14px; color: var(--blue-deep); opacity: .85; }
.guest .row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.guest .chip { background: rgba(255, 255, 255, .7); color: var(--blue-deep); height: 32px; font-size: 13px; }
.switch { margin-left: auto; width: 52px; height: 32px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .25s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .3s var(--ease); }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(20px); }
.dayactions { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.mini { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 0 var(--line); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

.notif { display: flex; gap: 12px; padding: 14px 16px; background: var(--card); border-radius: 18px; box-shadow: 0 1px 0 var(--line); margin-bottom: 8px; }
.notif .dot { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); }
.notif.cancel .dot { background: #F3DDD6; color: var(--red); }
.notif b { display: block; font-weight: 600; }
.notif p { margin: 2px 0 0; font-size: 14px; color: var(--soft); white-space: pre-line; }
.notif time { font-size: 12px; color: var(--mute); }
.notif.new { box-shadow: inset 3px 0 0 var(--milk-deep), 0 1px 0 var(--line); }

.set { margin-bottom: 26px; }
.set h3 { font: 400 20px/1.2 var(--serif); margin: 0 0 4px; }
.set > p { color: var(--soft); font-size: 14px; margin: 0 0 12px; }
.trow { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 8px 8px 8px 12px; box-shadow: 0 1px 0 var(--line); margin-bottom: 8px; }
.trow input[type=time] { border: 0; background: var(--paper); border-radius: 10px; padding: 8px 10px; font-size: 16px; min-width: 0; }
.trow .x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); flex: none; }
.feeds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.feeds .fb { position: relative; background: var(--milk); border-radius: 14px; padding: 8px 4px; text-align: center; }
.feeds .fb input { width: 100%; border: 0; background: transparent; text-align: center; font-size: 16px; color: #6B4A36; font-weight: 600; }
.feeds .fb .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); color: var(--soft); font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.feeds .add { border: 1.5px dashed var(--line); border-radius: 14px; color: var(--soft); font-size: 22px; min-height: 44px; }
.nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.nums label { background: var(--card); border-radius: 16px; padding: 10px 12px; box-shadow: 0 1px 0 var(--line); font-size: 12px; color: var(--soft); }
.nums input { width: 100%; border: 0; background: transparent; font: 400 22px/1.2 var(--serif); padding: 2px 0 0; outline: none; }
.linkbox { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 8px 8px 8px 14px; box-shadow: 0 1px 0 var(--line); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px/1.3 ui-monospace, monospace; color: var(--soft); }
.hint { font-size: 13px; color: var(--soft); background: var(--blue-soft); border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.lock { text-align: center; padding-top: 30vh; color: var(--soft); }

/* ---------- lijstje en zelf inplannen ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--crib); margin-top: 2px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 0 var(--line); font-size: 14px; font-weight: 500; }
.pick.on { background: var(--blue); color: #fff; }
select.in { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.prog { margin-bottom: 14px; display: grid; gap: 10px; }
.prog .pt { display: flex; align-items: baseline; gap: 10px; }
.prog .pt b { font: 400 34px/1 var(--serif); }
.prog .pt span { color: var(--soft); font-size: 14px; }
.bar { height: 10px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--crib)); transition: width .6s var(--ease); }
.addrow { display: flex; gap: 8px; align-items: flex-end; }
.addrow textarea { min-height: 52px; height: 52px; resize: none; line-height: 1.4; }
.addrow .add { width: 52px; height: 52px; flex: none; background: var(--blue); color: #fff; font-size: 26px; box-shadow: none; }
.guestrow { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: 0 1px 0 var(--line); }
.guestrow .gi { flex: 1; min-width: 0; }
.guestrow .gi b { display: block; font-weight: 600; }
.guestrow .gi span { display: block; font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guestrow .ga { display: flex; gap: 4px; flex: none; }
.guestrow .ga .mini { padding: 0 11px; height: 34px; }
.guestrow.geweest { opacity: .62; }
.guestrow.ingepland .gi span { color: var(--crib); font-weight: 500; }
.tick { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); color: transparent; display: grid; place-items: center; flex: none; }
.tick svg { width: 18px; height: 18px; }
.tick.on { background: var(--sage); box-shadow: none; color: var(--sage-deep); }
.pickslot .t { font-family: var(--serif); }
.tabs button { padding: 0 13px; }
.guestrow { flex-wrap: wrap; row-gap: 8px; }
.guestrow.open .ga { width: 100%; padding-left: 44px; }
.guestrow.open .ga .mini:last-child { margin-left: auto; }

.addr { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 0 var(--line); margin: -4px 0 18px; }
.addr svg { flex: none; color: var(--blue); }
.addr small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.addr b { font-weight: 500; }
.mine-addr { font-size: 14px; opacity: .85; }

.toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; }
.toast .undo { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; }

.log { display: grid; gap: 14px; }
.logday { background: var(--card); border-radius: 18px; padding: 12px 14px 6px; box-shadow: 0 1px 0 var(--line); }
.logday small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.logrow { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; padding: 8px 0; border-top: 1px solid var(--line); }
.logrow:first-of-type { border-top: 0; }
.logrow .lt { font: 400 17px/1 var(--serif); color: var(--soft); width: 46px; flex: none; font-variant-numeric: tabular-nums; }
.logrow b { font-weight: 600; }
.logrow .lc { font-size: 13px; color: var(--soft); margin-left: auto; }

.hi { font: 400 19px/1.35 var(--serif); margin: 0 0 8px; color: var(--blue-deep); }
.guestrow.later .ga { width: 100%; padding-left: 44px; }
.guestrow.later .ga .mini:last-child { margin-left: auto; }
.guestrow.later .gi span { color: var(--milk-deep); font-weight: 500; }

.inv { display: inline-flex; align-items: center; gap: 3px; vertical-align: 2px; margin-left: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--line); }
.inv svg { width: 12px; height: 12px; }
.inv.on { background: var(--sage); color: var(--sage-deep); box-shadow: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 0 var(--line); margin-bottom: 18px; }
.seg button { height: 36px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--soft); }
.seg button.on { background: var(--blue-soft); color: var(--blue-deep); }
.ovhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; text-align: left; }
.ovhead span { font-size: 12px; color: var(--mute); }
.logrow.res b { font-weight: 500; color: var(--mute); }

/* =================================================================== Kraamuurtje */
:root { --pink: #D97F99; --danger: #B5523F; }
body.noscroll { overflow: hidden; }
body.wide main { max-width: 1100px; }
:focus-visible { outline: 3px solid var(--crib); outline-offset: 2px; border-radius: 10px; }
.in:focus-visible { outline: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--blue-deep); }
main { padding-left: 16px; padding-right: 16px; }
main:focus { outline: none; }
input, textarea, select { font-size: 16px; }
img { max-width: 100%; }

/* woordmerk */
.wm { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); font: 500 19px/1 var(--serif); letter-spacing: -.02em; font-variation-settings: 'opsz' 72; }
.wm-ic { width: 22px; height: 22px; color: var(--blue-deep); flex: none; }
.wm.sm { font-size: 16px; } .wm.sm .wm-ic { width: 19px; height: 19px; }
.wm.lg { font-size: 30px; gap: 10px; } .wm.lg .wm-ic { width: 34px; height: 34px; }
.brandrow { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.ghostmini { width: 36px; padding: 0; justify-content: center; }
.pagehead { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.ptitle { font: 400 32px/1.08 var(--serif); letter-spacing: -.025em; margin: 0 0 8px; }
.tagline { color: var(--soft); margin: 6px 0 22px; font: italic 300 18px/1.3 var(--serif); }

/* balken bovenin */
#bar[hidden] { display: none; }
.demobar { display: block; text-align: center; background: var(--ink); color: var(--paper); text-decoration: none; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; font-size: 14px; }
.demobar b { color: #F7C9D6; font-weight: 600; }
.previewbar { display: flex; align-items: center; gap: 10px; background: var(--blue-soft); color: var(--blue-deep); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; font-size: 14px; font-weight: 500; }
.previewbar span { flex: 1; }
.previewbar a { color: var(--blue-deep); font-weight: 600; white-space: nowrap; }

/* laden en fouten */
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 30vh; color: var(--soft); text-align: center; }
.loading.big { padding-top: 14vh; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--blue-soft); border-top-color: var(--blue); animation: spin .8s linear infinite; display: inline-block; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.4); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: spin 1.6s linear infinite !important; } }
.lock { padding-top: 18vh; }
.lock .lock-ic { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--blue-deep); }
.lock .lock-ic .wm-ic { width: 64px; height: 64px; }
.lock h2 { color: var(--ink); }
.lock .btn { max-width: 340px; margin-left: auto; margin-right: auto; }

/* inloggen */
.auth { padding-top: 6vh; text-align: center; }
.authcard { text-align: left; padding: 22px 18px; }
.authcard .ptitle { font-size: 28px; }
.in.code { font: 500 28px/1 var(--sans); letter-spacing: .4em; text-align: center; padding: 16px 10px 16px calc(10px + .4em); font-variant-numeric: tabular-nums; }
.linkrow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.linkrow .link { margin: 14px 0 0; }
.link:disabled { opacity: .5; text-decoration: none; }
.link.left { text-align: left; margin-left: 4px; }
.link.inl { display: inline; margin: 0; font-size: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); margin: 6px 2px 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin: 0; }

/* onboarding */
.onb { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; }
.onbtop { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.round.ghosty { visibility: hidden; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--crib)); transition: width .5s var(--ease); }
.stepn { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.onbbody { flex: 1; }
.onbnav { padding-top: 18px; }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 0 var(--line); border: 2px solid transparent; }
.choice .ce { grid-row: span 2; font-size: 28px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.choice b { font: 400 20px/1.15 var(--serif); }
.choice small { color: var(--soft); font-size: 13px; }
.choice.on { border-color: var(--blue); }
.choices.three .choice { grid-template-rows: auto; }
.choices.three .choice .ce { grid-row: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .in { padding-left: 12px; padding-right: 12px; }
.set .trow input[type=time] { flex: 1; }
.trow.plain { padding: 10px 10px 10px 16px; justify-content: space-between; }

/* ouderapp extra */
.concept { display: flex; align-items: center; gap: 12px; background: var(--blue-soft); color: var(--blue-deep); border-radius: var(--r); padding: 14px 12px 14px 14px; margin-bottom: 14px; }
.concept .ci { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; flex: none; }
.concept b { display: block; font-weight: 600; }
.concept p { margin: 1px 0 0; font-size: 13px; opacity: .9; }
.concept > div:nth-child(2) { flex: 1; min-width: 0; }
.mini.pinkb { background: var(--blue); color: #fff; box-shadow: none; flex: none; }
.borncard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--crib); color: #fff; border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: 0 14px 30px -18px rgba(126,155,227,.9); }
.borncard .bi { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.borncard b { display: block; font: 400 22px/1.1 var(--serif); }
.borncard small { font-size: 13px; opacity: .85; }
.borncard > span:nth-child(2) { flex: 1; }
.ch { font: 400 20px/1.2 var(--serif); margin: 0 0 4px; }
.steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.steps svg { width: 14px; height: 14px; vertical-align: -2px; }
.seg.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.seg.three button { font-size: 13px; padding: 0 4px; }
.mini.tall { height: 52px; padding: 0 16px; border-radius: 16px; flex: none; }
.btn.danger { color: var(--danger); }
.btn.danger-fill { background: var(--danger); color: #fff; }
a.btn { text-decoration: none; }
.bugbtn { display: flex; align-items: center; gap: 6px; margin: 18px auto 0; font-size: 12px; color: var(--mute); padding: 8px 12px; border-radius: 99px; }
.bugbtn:hover { color: var(--soft); background: var(--card); }
.famrow { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: 0 1px 0 var(--line); text-decoration: none; color: inherit; }
.famrow .av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; font: italic 300 22px/1 var(--serif); flex: none; }
.famrow .gi { flex: 1; min-width: 0; }
.famrow .gi b { display: block; font-weight: 600; }
.famrow .gi span { display: block; font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagp { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; }
.tagp.on { background: var(--sage); color: var(--sage-deep); box-shadow: none; }

/* betalen */
.perks { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--soft); }
.perks li b { color: var(--ink); font-weight: 600; }
.perks svg { width: 20px; height: 20px; flex: none; color: var(--sage-deep); background: var(--sage); border-radius: 50%; padding: 3px; margin-top: 1px; }
.price { display: flex; align-items: flex-end; justify-content: space-between; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 1px 0 var(--line); margin-bottom: 10px; }
.price small { display: block; font-size: 12px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.price b { font: 400 34px/1.05 var(--serif); letter-spacing: -.02em; }
.price s { color: var(--mute); margin-left: 8px; font-size: 16px; }
.price > span { font-size: 13px; color: var(--mute); }
.vbox { margin: 4px 0 6px; }
.vbox summary { cursor: pointer; color: var(--soft); font-size: 14px; padding: 6px 4px; }
.vmsg { font-size: 14px; color: var(--blue-deep); margin: 6px 4px 0; min-height: 1em; }
.vmsg code { font: 600 15px/1 ui-monospace, monospace; background: var(--blue-soft); padding: 4px 8px; border-radius: 8px; }
.small { font-size: 13px; color: var(--soft); }
.center { text-align: center; }
.paid { padding-top: 4vh; text-align: center; }
.paid .btn { max-width: 380px; margin-left: auto; margin-right: auto; }

/* bezoek extra */
.wait { text-align: center; padding: 22px 18px; }
.sitefoot { display: block; text-align: center; margin: 34px auto 0; padding: 14px 16px; border-radius: 18px; color: var(--soft); text-decoration: none; font-size: 14px; background: rgba(255,251,238,.6); box-shadow: inset 0 0 0 1px var(--line); }
.sitefoot b { color: var(--blue-deep); font-weight: 600; display: block; margin-top: 2px; }

/* sheet */
.sheet-card:focus { outline: none; }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--soft); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 0 var(--line); }
.sheet h2 { padding-right: 40px; }
div.f { display: block; margin-bottom: 12px; }
div.f > span { display: block; font-size: 13px; color: var(--soft); margin: 0 0 6px 4px; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.toast { max-width: calc(100vw - 32px); white-space: normal; text-align: center; }

/* beheer */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.kpis .stat { text-align: left; padding: 14px 16px; }
.kpis .stat b { font-size: 28px; }
.kpis .stat b small { font-size: 16px; color: var(--mute); }
.tablewrap { overflow-x: auto; background: var(--card); border-radius: 18px; box-shadow: 0 1px 0 var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td code { font: 13px ui-monospace, monospace; }
.bugtext { white-space: pre-wrap; display: block; min-width: 220px; max-width: 460px; }
.vform { margin-bottom: 10px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

@media (max-width: 380px) {
  .tabs button { padding: 0 11px; font-size: 13px; }
  .ptitle { font-size: 28px; }
  .top h1 { font-size: 23px; }
}
