/* Gezin, familiescherm. Strak ontwerp met licht en donker thema. */

/* ---------- Kleuren ---------- */
:root, :root[data-theme="light"] {
  --bg: #e6ecf4;
  --wall: url("/bg-licht.jpg");
  --surface: rgba(255, 255, 255, 0.56);
  --surface-solid: rgba(250, 251, 254, 0.86);
  --surface-2: rgba(255, 255, 255, 0.55);
  --surface-3: rgba(30, 40, 70, 0.09);
  --line: rgba(30, 40, 70, 0.09);
  --edge: rgba(255, 255, 255, 0.75);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --text: #111318;
  --muted: #5f6673;
  --dim: #9ba1ac;
  --accent: #2f62f0;
  --accent-soft: #e8eefe;
  --accent-ink: #ffffff;
  --good: #129a4a;
  --good-soft: #e3f5ea;
  --warn: #b86e00;
  --warn-soft: #fff3df;
  --bad: #d4313f;
  --bad-soft: #fde9eb;
  --star: #e8a600;
  --shadow: 0 8px 32px rgba(40, 55, 90, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 40, 70, 0.25);
  --scrim: rgba(40, 50, 75, 0.25);
  --mix: rgba(255, 255, 255, 0.75);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0e1c;
  --wall: url("/bg-donker.jpg");
  --surface: rgba(24, 28, 48, 0.52);
  --surface-solid: rgba(22, 26, 44, 0.88);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.08);
  --edge: rgba(255, 255, 255, 0.10);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --text: #eef0f4;
  --muted: #9aa0ab;
  --dim: #626874;
  --accent: #6f8fff;
  --accent-soft: #1d2540;
  --accent-ink: #0b0c0f;
  --good: #3dd17f;
  --good-soft: #142a1e;
  --warn: #f2b241;
  --warn-soft: #2d2412;
  --bad: #ff6b77;
  --bad-soft: #2f171a;
  --star: #ffc53d;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.45);
  --mix: rgba(28, 32, 52, 0.8);
  color-scheme: dark;
}
:root {
  --radius: 20px;
  --blur: blur(28px) saturate(170%);
  --radius-s: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg) var(--wall) center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0, "cv11" 1;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  transition: color .3s;
}
:root[data-wall="effen"] body, :root[data-wall="eigen"] body, :root[data-wall="foto"] body { background-image: none; }
:root[data-theme="light"][data-wall="effen"] body { background-color: var(--wall-color-light, #e6ecf4); }
:root[data-theme="dark"][data-wall="effen"] body { background-color: var(--wall-color-dark, #0a0e1c); }
.wall { position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: 0; transition: opacity 2s ease; }
.wall.blur { inset: -60px; filter: blur(34px) saturate(1.15); }
.wall.on { opacity: 1; }
.wall::after { content: ""; position: absolute; inset: 0; opacity: var(--wall-dim, .35); }
.wall.blur::after { opacity: calc(var(--wall-dim, .35) + .2); }
:root[data-theme="light"] .wall::after { background: rgb(235, 240, 248); }
:root[data-theme="dark"] .wall::after { background: rgb(8, 11, 24); }
.wallprev { width: 100%; max-width: 320px; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--edge); display: grid; place-items: center; color: var(--dim); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; outline: none; width: 100%; user-select: text; -webkit-user-select: text;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="color"] { padding: 3px; height: 44px; width: 60px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
a { color: var(--accent); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-star { width: 1em; height: 1em; fill: var(--star); stroke: var(--star); stroke-width: 1; vertical-align: -0.12em; margin-right: 0.25em; }

.glass, .card-s {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--highlight);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--edge);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-weight: 600; font-size: 15px; transition: transform .08s, background .15s; text-decoration: none; color: var(--text);
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.good { background: var(--good); color: #fff; border-color: transparent; }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }

/* ---------- Schermindeling ---------- */
.app { display: grid; grid-template-columns: 92px 1fr; height: 100vh; height: 100dvh; }
.rail {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; align-items: stretch;
  background: var(--surface); border-right: 1px solid var(--edge);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.rail .brand { display: grid; place-items: center; height: 48px; margin-bottom: 14px; color: var(--accent); }
.rail .brand svg { width: 30px; height: 30px; stroke-width: 2; }
.rail button {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 2px; border-radius: 14px;
  color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; transition: background .15s, color .15s;
}
.rail button svg { width: 24px; height: 24px; }
.rail button.on { background: var(--surface-2); color: var(--accent); box-shadow: var(--highlight), 0 0 0 1px var(--edge); }
.rail button.on svg { stroke-width: 2.1; }
.rail .spacer { flex: 1; }
:root[data-theme="light"] .rail .i-moon, :root[data-theme="dark"] .rail .i-sun { display: none; }
.main { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 22px; padding: 22px 32px 14px; }
.clock { font-size: 60px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.date { font-size: 19px; font-weight: 600; }
.date::first-letter { text-transform: uppercase; }
.date small { display: block; color: var(--muted); font-weight: 500; font-size: 14px; margin-top: 3px; text-transform: none; }
.top .grow { flex: 1; }
.wnow { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.wnow .emo { font-size: 34px; }
.wnow small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.people { display: flex; gap: 6px; padding-left: 18px; border-left: 1px solid var(--edge); }
.person {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; position: relative;
  background: color-mix(in srgb, var(--c, #888) 16%, var(--mix)); box-shadow: inset 0 0 0 2px var(--c, #888);
}
.person.away { opacity: 0.4; filter: grayscale(1); box-shadow: inset 0 0 0 2px var(--line); }
.person .dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--good); border: 2.5px solid var(--surface-solid); }
.person.away .dot { background: var(--dim); }
.view { overflow: auto; padding: 6px 32px 32px; min-height: 0; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
h2 {
  font-size: 13px; margin: 0 0 14px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: 10px;
}
h2 .sub { margin-left: auto; font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.card { padding: 20px 22px; }
.empty { color: var(--dim); padding: 10px 0; font-size: 15px; }

/* ---------- Vandaag ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr); gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.ev { display: flex; gap: 14px; padding: 11px 0; align-items: flex-start; border-top: 1px solid var(--line); }
.ev:first-of-type { border-top: 0; padding-top: 2px; }
.ev .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.ev .t { width: 58px; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; padding-top: 1px; }
.ev .n { font-weight: 600; font-size: 17px; line-height: 1.3; }
.ev .l { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ev.past { opacity: 0.4; }
.ev.now .t { color: var(--accent); }
.daylabel { font-size: 12px; color: var(--dim); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 6px; }
.kidmini { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.kidmini:first-of-type { border-top: 0; padding-top: 0; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; flex: none;
  background: color-mix(in srgb, var(--c) 18%, var(--mix));
}
.kidmini .info { flex: 1; min-width: 0; }
.kidmini .name { font-weight: 650; font-size: 18px; }
.kidmini .muted { font-size: 14px; margin-top: 1px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--c, var(--good)); border-radius: 4px; transition: width .4s; }
.starcount { font-weight: 700; font-size: 18px; white-space: nowrap; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.meal { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.fc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; }
.fc > div { padding: 10px 0 8px; border-radius: 12px; background: var(--surface-2); }
.fc .d { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.fc .e { font-size: 24px; margin: 6px 0 4px; }
.fc .tt { font-weight: 650; }
.fc .tl { color: var(--dim); font-size: 13px; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tile { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-size: 26px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.tile .v small { font-size: 14px; color: var(--muted); font-weight: 550; letter-spacing: 0; }
.tile .s { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Agenda ---------- */
.agbar .btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.agbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.agbar .title { font-size: 22px; font-weight: 650; flex: 1; margin-left: 10px; letter-spacing: -0.01em; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); font-weight: 550; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { padding: 12px 10px; min-height: 420px; }
.day.nu { box-shadow: inset 0 0 0 2px var(--accent); }
.day .dh { display: flex; align-items: baseline; gap: 6px; margin: 2px 2px 12px; }
.day .dh b { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.day .dh span { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.day.nu .dh b { color: var(--accent); }
.chip {
  display: block; padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; font-size: 14px; line-height: 1.3; font-weight: 550;
  background: color-mix(in srgb, var(--c) 14%, var(--mix)); box-shadow: inset 3px 0 0 var(--c);
}
.chip b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.allday { background: var(--c); color: #fff; box-shadow: none; font-weight: 600; }
.chip.meal { --c: var(--dim); background: var(--surface-2); box-shadow: none; }

/* ---------- Kinderen ---------- */
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.kid { padding: 22px; }
.kid .head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.kid .head .avatar { width: 64px; height: 64px; font-size: 36px; box-shadow: inset 0 0 0 2px var(--c); }
.kid .head .name { font-size: 26px; font-weight: 700; flex: 1; letter-spacing: -0.02em; }
.kid .head .btn { height: 48px; border-radius: 14px; }
.kid .head .starcount { font-size: 22px; }
.sect {
  font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .08em;
  margin: 20px 0 10px; display: flex; justify-content: space-between; align-items: center;
}
.sect.now { color: var(--accent); }
.sect.now span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.step {
  position: relative; padding: 16px 8px 13px; border-radius: 14px; text-align: center; background: var(--surface-2);
  transition: transform .1s, background .15s, box-shadow .15s;
}
.step:active { transform: scale(0.95); }
.step .e { font-size: 36px; line-height: 1.1; display: block; }
.step .t { font-size: 14px; font-weight: 600; margin-top: 8px; display: block; line-height: 1.25; }
.step .s { position: absolute; top: 7px; right: 9px; font-size: 12px; color: var(--star); font-weight: 700; }
.step.done { background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); }
.step.done .t { color: var(--good); }
.step.done::after {
  content: ""; position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--good)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.routine-later { opacity: 0.45; }
.rwrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pending { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 13px; }

/* ---------- Boodschappen ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.addbar { display: flex; gap: 8px; margin-bottom: 18px; }
.addbar input { font-size: 18px; height: 52px; }
.addbar .btn { height: 52px; }
.cat { margin-bottom: 16px; }
.cat h3 { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; font-weight: 650; }
.item { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 5px; font-size: 17px; width: 100%; text-align: left; font-weight: 500; }
.item .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--dim); flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; }
.item.checked { opacity: 0.5; text-decoration: line-through; }
.item.checked .box { background: var(--good); border-color: var(--good); }
.item .q { color: var(--muted); font-size: 15px; margin-left: auto; }

/* ---------- Menu ---------- */
.menu { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mday { padding: 16px 14px; min-height: 230px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mday.nu { box-shadow: inset 0 0 0 2px var(--accent); }
.mday .dh { color: var(--muted); font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.mday.nu .dh { color: var(--accent); }
.mday .mt { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; font-size: 17px; font-weight: 650; flex: 1; line-height: 1.3; }
.mday .mt.none { color: var(--dim); font-weight: 500; font-size: 15px; }
.mday .mnote { font-size: 13.5px; color: var(--muted); }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }

/* ---------- Huis ---------- */
.house { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.house .tile { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow), var(--highlight); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.house .tile .v { font-size: 34px; }
.house .wide { grid-column: span 2; }
.house .tile.big .v { font-size: 44px; }

/* ---------- Venster ---------- */
.modal-bg { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; animation: fade .15s ease; }
.modal { width: min(600px, 92vw); max-height: 88vh; overflow: auto; padding: 26px; background: var(--surface-solid); border-radius: 24px; box-shadow: var(--shadow-lg), var(--highlight); border: 1px solid var(--edge); animation: rise .18s ease; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.modal h3 { margin: 0 0 18px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.reward { padding: 18px 10px 14px; border-radius: 16px; background: var(--surface-2); text-align: center; transition: box-shadow .15s; }
.reward .e { font-size: 40px; display: block; }
.reward .t { font-weight: 650; display: block; margin: 8px 0 4px; font-size: 15px; }
.reward .c { color: var(--star); font-weight: 700; display: inline-flex; align-items: center; }
.reward.cant { opacity: 0.4; }
.reward.sel { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 13px 20px; border-radius: 14px; background: var(--surface-solid); color: var(--text); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); font-weight: 600; font-size: 15px; z-index: 90; box-shadow: var(--shadow-lg); animation: rise .18s ease; }

/* ---------- Feest ---------- */
.party { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.party i { position: absolute; top: -40px; font-style: normal; font-size: 32px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .9; } }
.bigstar { position: fixed; inset: 0; display: grid; place-items: center; z-index: 81; pointer-events: none; }
.bigstar div { font-size: 48px; font-weight: 800; color: var(--text); background: var(--surface-solid); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); padding: 22px 34px; border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop 1.8s ease forwards; text-align: center; letter-spacing: -0.02em; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 15% { transform: scale(1.04); opacity: 1; } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Fotolijst en nacht (altijd donker) ---------- */
.saver { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; }
.saver img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.6s ease; }
.saver img.bg { object-fit: cover; filter: blur(40px) brightness(.45); transform: scale(1.1); }
.saver img.on { opacity: 1; }
.saver .over { position: absolute; left: 44px; bottom: 36px; right: 44px; display: flex; align-items: flex-end; gap: 30px; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.saver .over .clock { font-size: 104px; font-weight: 600; }
.saver .over .date { font-size: 20px; font-weight: 550; }
.saver .over .grow { flex: 1; }
.saver .next { font-size: 21px; font-weight: 600; text-align: right; }
.saver .next small { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); font-weight: 550; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.saver.night .over { inset: 0; justify-content: center; align-items: center; flex-direction: column; gap: 6px; }
.saver.night .over .clock { font-size: 150px; color: #5c5f6a; font-weight: 300; }
.saver.night .over .date { color: #3f424b; }
.saver.night .next { display: none; }

/* ---------- Beheer ---------- */
body.beheer { overflow: auto; user-select: auto; -webkit-user-select: auto; }
.bh { max-width: 1060px; margin: 0 auto; padding: 28px 20px 80px; }
.bh header { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.bh header h1 { margin: 0; font-size: 24px; flex: 1; font-weight: 700; letter-spacing: -0.02em; }
.bh header h1 span { color: var(--muted); font-weight: 500; font-size: 16px; margin-left: 6px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 22px; padding: 4px; background: var(--surface); border-radius: 14px; border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.tabs button { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.tabs button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 0 0 1px var(--edge); }
.bh h2 { margin-top: 26px; }
.bh h2:first-child { margin-top: 0; }
.list { display: grid; gap: 8px; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.li .e { font-size: 26px; width: 38px; text-align: center; }
.li .main2 { flex: 1; min-width: 0; }
.li .main2 b { display: block; font-size: 16px; font-weight: 650; }
.li .main2 span { color: var(--muted); font-size: 14px; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: 0; background: var(--c); margin-right: 4px; }
.daypick, .mempick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick label, .mempick label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.steplist { display: grid; gap: 6px; }
.steplist .row input:first-child { flex: 0 0 64px; text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.note { padding: 13px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); margin-bottom: 16px; font-size: 14.5px; font-weight: 500; }
.login { max-width: 380px; margin: 16vh auto; padding: 30px; }
.login h2 { font-size: 22px; color: var(--text); text-transform: none; letter-spacing: -0.01em; }
table.log { width: 100%; border-collapse: collapse; font-size: 14px; }
table.log td { padding: 9px 6px; border-top: 1px solid var(--line); }
table.log tr:first-child td { border-top: 0; }
table.log td.n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .li { flex-wrap: wrap; }
}

/* ---------- Bediening ---------- */
.ctls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ctls.big { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ctl {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px; border-radius: 14px; background: var(--surface-2); text-align: left; overflow: hidden; transition: background .2s, transform .08s;
  touch-action: manipulation;
}
.ctl:active { transform: scale(0.97); }
.ctl .ci { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); transition: background .2s, color .2s; }
.ctl .ci svg { width: 21px; height: 21px; }
.ctl .cl { font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl .cs { font-size: 13px; color: var(--muted); }
.ctl.on { background: color-mix(in srgb, #ffc53d 22%, var(--mix)); }
.ctl.on .ci { background: #ffc53d; color: #3a2a00; }
.ctl.na { opacity: .45; }
.ctl .cbar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .08); }
.ctl .cbar i { display: block; height: 100%; width: var(--b); border-radius: 2px; background: #e8a600; }
.ctls.big .ctl { padding: 20px; }
.ctls.big .ctl .ci { width: 48px; height: 48px; }
.dimval { font-size: 56px; font-weight: 700; text-align: center; letter-spacing: -0.03em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.dimrange { padding: 0; height: 44px; background: none; border: 0; box-shadow: none !important; accent-color: #e8a600; }
.ctls:not(.big) .ctl { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 2px; padding: 14px 14px 16px; }
.ctls:not(.big) .ctl .ci { grid-row: auto; margin-bottom: 8px; }
#ctls .row input.c-l { flex: 1 1 0; text-align: left; }
#ctls .row input.c-e { flex: 2 1 0; }

/* ---------- Personen kiezen (beheer) ---------- */
.people-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pp { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; font-size: 13px; font-weight: 600; }
.pp img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.pp span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp i { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; }
.pp[data-st="in"] { border-color: var(--good); background: var(--good-soft); }
.pp[data-st="in"] i { display: grid; background: var(--good); }
.pp[data-st="in"] i::before { content: "✓"; }
.pp[data-st="ex"] { border-color: var(--bad); background: var(--bad-soft); }
.pp[data-st="ex"] img { filter: grayscale(1); opacity: .6; }
.pp[data-st="ex"] i { display: grid; background: var(--bad); }
.pp[data-st="ex"] i::before { content: "✕"; }
