/* Generated by design/palette.py. Do not edit by hand; edit the script and re-run. */
:root {
  --spruce-50: #E9FBFC;
  --spruce-100: #D4F4F6;
  --spruce-200: #AEE7EA;
  --spruce-300: #7BD2D6;
  --spruce-400: #48B7BD;
  --spruce-500: #0E9CA2;
  --spruce-600: #008085;
  --spruce-700: #00666B;
  --spruce-800: #004E51;
  --spruce-900: #003538;
  --sunflower-50: #FFF6E3;
  --sunflower-100: #FCEBC9;
  --sunflower-200: #F4D79C;
  --sunflower-300: #E4BB5F;
  --sunflower-400: #CD9C18;
  --sunflower-500: #AD8200;
  --sunflower-600: #8E6A00;
  --sunflower-700: #725400;
  --sunflower-800: #574000;
  --sunflower-900: #3C2B00;
  --persimmon-50: #FFF4F0;
  --persimmon-100: #FFE7DE;
  --persimmon-200: #FFCEBC;
  --persimmon-300: #FFA886;
  --persimmon-400: #F87C48;
  --persimmon-500: #DC5C1F;
  --persimmon-600: #BA4500;
  --persimmon-700: #963600;
  --persimmon-800: #742700;
  --persimmon-900: #511900;
  --stone-0: #FFFFFF;
  --stone-25: #FDFBF7;
  --stone-50: #F8F6F5;
  --stone-100: #EEECEA;
  --stone-200: #DEDAD6;
  --stone-300: #C5C0BA;
  --stone-400: #A9A39D;
  --stone-500: #8E8881;
  --stone-600: #756F69;
  --stone-700: #5D5953;
  --stone-800: #47433F;
  --stone-900: #302D2A;
  --stone-950: #1A1713;
  --stone-975: #100E0B;
  --green-50: #ECFCEE;
  --green-100: #D9F6DD;
  --green-200: #B7EAC0;
  --green-300: #8BD69A;
  --green-400: #60BC77;
  --green-500: #3CA059;
  --green-600: #248544;
  --green-700: #136B33;
  --green-800: #095224;
  --green-900: #013816;
  --amber-50: #FFF5EA;
  --amber-100: #FFE9D0;
  --amber-200: #FFD29F;
  --amber-300: #F2B366;
  --amber-400: #DD932A;
  --amber-500: #BD7800;
  --amber-600: #9B6200;
  --amber-700: #7D4E00;
  --amber-800: #603A00;
  --amber-900: #422700;
  --red-50: #FFF4F3;
  --red-100: #FFE6E4;
  --red-200: #FFCDC8;
  --red-300: #FFA59E;
  --red-400: #F97770;
  --red-500: #DD5652;
  --red-600: #BC3F3D;
  --red-700: #9A2D2D;
  --red-800: #781F1F;
  --red-900: #551212;
  --blue-50: #F2F7FF;
  --blue-100: #E1EEFF;
  --blue-200: #C3DDFF;
  --blue-300: #96C4FF;
  --blue-400: #6EA7F0;
  --blue-500: #4F8BD6;
  --blue-600: #3971B6;
  --blue-700: #2A5A96;
  --blue-800: #1D4474;
  --blue-900: #102E53;
}
:root {
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --surface-2: #F8F6F5;
  --surface-3: #EEECEA;
  --line: #DEDAD6;
  --line-strong: #8E8881;
  --text: #302D2A;
  --text-muted: #68625C;
  --primary: #00666B;
  --primary-hover: #004E51;
  --on-primary: #FFFFFF;
  --primary-text: #00666B;
  --primary-soft: #E9FBFC;
  --primary-soft-2: #D4F4F6;
  --brand-bar: #004E51;
  --on-brand-bar: #FFFFFF;
  --on-brand-bar-muted: #D4F4F6;
  --secondary: #E4BB5F;
  --secondary-soft: #FFF6E3;
  --on-secondary: #302D2A;
  --cta: #BA4500;
  --cta-hover: #963600;
  --on-cta: #FFFFFF;
  --cta-text: #963600;
  --focus: #3971B6;
  --success: #136B33;
  --success-text: #095224;
  --success-bg: #ECFCEE;
  --warning: #BD7800;
  --warning-text: #603A00;
  --warning-bg: #FFF5EA;
  --error: #BC3F3D;
  --error-text: #781F1F;
  --error-bg: #FFF4F3;
  --info: #3971B6;
  --info-text: #1D4474;
  --info-bg: #F2F7FF;
  --neutral-text: #5D5953;
  --neutral-bg: #EEECEA;
  --full: #A9A39D;
  --dot-empty: #DEDAD6;
  --inverse: #302D2A;
  --on-inverse: #FFFFFF;
  --on-inverse-muted: #DEDAD6;
  --avatar-1: #00666B;
  --avatar-2: #963600;
  --avatar-3: #2A5A96;
  --avatar-4: #136B33;
  --avatar-5: #764082;
  --avatar-6: #603A00;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark;
    --bg: #100E0B;
    --surface: #1A1713;
    --surface-2: #23201C;
    --surface-3: #2F2B26;
    --line: #3B3732;
    --line-strong: #8E8881;
    --text: #F8F6F5;
    --text-muted: #C5C0BA;
    --primary: #6EB9BD;
    --primary-hover: #8BCBCE;
    --on-primary: #100E0B;
    --primary-text: #86CCCF;
    --primary-soft: #112E30;
    --primary-soft-2: #133C3E;
    --brand-bar: #0F2728;
    --on-brand-bar: #F8F6F5;
    --on-brand-bar-muted: #A7CCCE;
    --secondary: #DEB866;
    --secondary-soft: #312814;
    --on-secondary: #100E0B;
    --cta: #F08D5F;
    --cta-hover: #FCA67F;
    --on-cta: #100E0B;
    --cta-text: #F79E75;
    --focus: #7EB1F3;
    --success: #50A064;
    --success-text: #9EE1AB;
    --success-bg: #172F1D;
    --warning: #F7C15F;
    --warning-text: #F7CD87;
    --warning-bg: #3A2710;
    --error: #F47A79;
    --error-text: #FEBAB4;
    --error-bg: #451E1C;
    --info: #74A7E8;
    --info-text: #B3D4FF;
    --info-bg: #1A2C44;
    --neutral-text: #DEDAD6;
    --neutral-bg: #36322D;
    --full: #67625D;
    --dot-empty: #46423D;
    --inverse: #193637;
    --on-inverse: #F8F6F5;
    --on-inverse-muted: #AFCACC;
    --avatar-1: #005256;
    --avatar-2: #7D3414;
    --avatar-3: #1D487C;
    --avatar-4: #1B552C;
    --avatar-5: #5F3369;
    --avatar-6: #694413;
  }
}
/* ===== Care & Play Co. components. Colors come only from the tokens above. =====
   Type: system UI stack, 1.25 modular scale (12.8 / 16 / 20 / 25 / 31.25 / 39px), body line-height 1.5.
   Spacing: 4px grid (--s1..--s8). 60-30-10: stone neutrals / spruce brand / persimmon CTA only. */
[hidden] { display: none !important; }
:root {
  /* legacy aliases used by inline styles in app.js */
  --ok: var(--success); --warn: var(--warning); --danger: var(--error);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --fs-xs: .8rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.5625rem; --fs-2xl: 1.953rem; --fs-3xl: 2.441rem;
  --radius: 16px; --radius-sm: 12px; --radius-xs: 8px;
  --shadow: 0 1px 2px rgb(48 45 42 / .06), 0 2px 8px rgb(48 45 42 / .06);
  --shadow-lg: 0 8px 24px rgb(48 45 42 / .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
  font-family: var(--font); font-size: 100%; line-height: 1.5;
  color: var(--text); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 8px 24px rgb(0 0 0 / .55); }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); background: var(--bg); }
h1, h2, h3 { margin: 0 0 var(--s2); line-height: 1.25; font-family: var(--font-display); color: var(--text); letter-spacing: -.01em; }
h1 { font-size: var(--fs-xl); font-weight: 800; } h2 { font-size: var(--fs-lg); font-weight: 750; } h3 { font-size: var(--fs-md); font-weight: 750; }
p { margin: var(--s1) 0 var(--s3); }
a { color: var(--primary-text); }
b, strong { font-weight: 700; }
.muted { color: var(--text-muted); font-size: var(--fs-sm); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* --- app chrome: brand bar is the main spruce (30%) surface --- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s2) var(--s4); background: var(--brand-bar); color: var(--on-brand-bar); }
.brand { display: flex; align-items: center; gap: var(--s2); font-weight: 800; font-size: var(--fs-lg); font-family: var(--font-display); }
.brand img { background: var(--secondary-soft); border-radius: 10px; }
.brand em { color: var(--secondary); font-style: normal; }
.hello { color: var(--on-brand-bar-muted); font-size: var(--fs-sm); }
main { max-width: 760px; margin: 0 auto; padding: var(--s4); }
.card { background: var(--surface); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow); margin-bottom: var(--s4); border: 1px solid var(--line); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-around; gap: var(--s1);
  background: var(--surface); border-top: 1px solid var(--line); padding: var(--s2) var(--s2) calc(var(--s2) + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; max-width: 160px; text-align: center; text-decoration: none; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 700; padding: var(--s1) 0; border-radius: var(--radius-sm); }
.tabbar a .ico { display: block; font-size: 1.35rem; line-height: 1.3; }
.tabbar a.active { color: var(--primary-text); background: var(--primary-soft); box-shadow: inset 0 -3px 0 var(--primary); }
@media (min-width: 1100px) {
  /* desktop: the phone tab bar becomes a side rail next to the content column */
  body { padding-bottom: var(--s7); }
  .tabbar { top: 104px; bottom: auto; left: calc(50% - 380px - 196px); right: auto; width: 180px; flex-direction: column; justify-content: flex-start;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s2); }
  .tabbar a { display: flex; align-items: center; gap: var(--s3); text-align: left; max-width: none; font-size: var(--fs-sm); padding: var(--s2) var(--s3); }
  .tabbar a .ico { display: inline; font-size: 1.15rem; }
  .tabbar a.active { box-shadow: inset 3px 0 0 var(--primary); }
  main { padding-top: var(--s6); }
  .summary { bottom: var(--s4); }
  .toast { bottom: var(--s6); }
}

/* --- forms --- */
label { display: block; font-weight: 700; font-size: var(--fs-sm); margin: var(--s3) 0 var(--s1); color: var(--text); }
input, textarea, select { width: 100%; padding: var(--s3); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--text); min-height: 44px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
textarea { min-height: 72px; resize: vertical; }
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--primary); }
.row { display: flex; gap: var(--s3); } .row > * { flex: 1; }

/* --- buttons: solid persimmon = THE primary action; everything else outlined/neutral --- */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); border: 1.5px solid var(--cta); border-radius: 999px; padding: var(--s2) var(--s5);
  font: inherit; font-weight: 800; cursor: pointer; background: var(--cta); color: var(--on-cta); text-decoration: none; min-height: 44px; line-height: 1.2; }
button:hover, .btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
button.secondary, a.ghostbtn { background: transparent; color: var(--primary-text); border-color: var(--primary); }
button.secondary:hover, a.ghostbtn:hover { background: var(--primary-soft); border-color: var(--primary); }
button.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); font-weight: 700; }
button.ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
button.danger { background: transparent; color: var(--error-text); border-color: var(--error); }
button.danger:hover { background: var(--error-bg); border-color: var(--error); }
button.teal { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
button.teal:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button.small, a.btn.small { padding: var(--s1) var(--s3); min-height: 36px; font-size: var(--fs-sm); }
button:disabled { opacity: .5; cursor: not-allowed; }
.full { width: 100%; }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }

/* --- login hero --- */
.hero { text-align: center; padding: var(--s7) var(--s2) var(--s2); }
.hero img { width: 96px; height: 96px; }
.hero h1 { font-size: var(--fs-2xl); margin-top: var(--s2); } .hero h1 em { color: var(--cta-text); font-style: normal; }
.tabs { display: flex; background: var(--surface-3); border-radius: 999px; padding: var(--s1); margin-bottom: var(--s2); gap: var(--s1); }
.tabs button { flex: 1; background: transparent; border-color: transparent; color: var(--text-muted); min-height: 40px; font-weight: 700; }
.tabs button:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }
.tabs button.on { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow); font-weight: 800; }

/* --- schedule --- */
.days { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); scrollbar-width: none; }
.day { flex: 0 0 64px; text-align: center; padding: var(--s2) var(--s1); border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; color: var(--text); min-height: 0; display: block; font-weight: 700; }
.day:hover { background: var(--primary-soft); border-color: var(--primary); }
.day small { display: block; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.day b { font-size: var(--fs-lg); }
.day.on, .day.on:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); } .day.on small { color: var(--on-primary); }
.legend { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted); margin: var(--s2) 0 var(--s3); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: var(--s1); vertical-align: -1px; }
.legend span:last-child i { background: repeating-linear-gradient(135deg, var(--full) 0 2px, transparent 2px 4px) !important; box-shadow: inset 0 0 0 1.5px var(--full); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); padding: var(--s2) var(--s3); border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line);
  color: var(--text); text-align: left; min-height: 0; font-weight: 700; border-left: 6px solid var(--success); }
.slot:hover { background: var(--primary-soft); border-color: var(--primary); border-left-color: var(--success); }
.slot .t { font-size: var(--fs-md); }
.slot .cap { font-size: var(--fs-xs); font-weight: 700; color: var(--success-text); display: flex; align-items: center; gap: var(--s2); }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.dots i.used { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.slot.low { border-left-color: var(--warning); } .slot.low:hover { border-left-color: var(--warning); } .slot.low .cap { color: var(--warning-text); } .slot.low .dots i:not(.used) { background: var(--warning); }
.slot.full, .slot.full:hover { border-color: var(--line); border-left-color: var(--full); color: var(--neutral-text); cursor: not-allowed;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface-3) 8px 16px); }
.slot.full .cap { color: var(--neutral-text); } .slot.full .cap::before { content: "⊘"; font-size: .95rem; line-height: 1; }
.slot.sel, .slot.sel:hover { background: var(--primary-soft); border-color: var(--primary); border-left-color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.slot.sel .t::before { content: "✓ "; color: var(--primary-text); }
.slot.bad { outline: 3px solid var(--error); outline-offset: 1px; }

/* --- pills & tags: always text, plus an icon for status variants --- */
.pill { display: inline-block; padding: 2px var(--s3); border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; background: var(--primary-soft); color: var(--primary-text); line-height: 1.5; }
.pill.warn { background: var(--warning-bg); color: var(--warning-text); box-shadow: inset 0 0 0 1px var(--warning); } .pill.warn::before { content: "◷ "; }
.pill.gray { background: var(--neutral-bg); color: var(--neutral-text); } .pill.gray::before { content: "○ "; }
.pill.red { background: var(--error-bg); color: var(--error-text); box-shadow: inset 0 0 0 1px var(--error); } .pill.red::before { content: "⚠ "; }
td .pill { border-radius: var(--radius-xs); margin-top: var(--s1); }
.summary { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--inverse); color: var(--on-inverse); border-radius: var(--radius); padding: var(--s4); margin-top: var(--s3); box-shadow: var(--shadow-lg); }
.summary h1, .summary h2, .summary h3 { color: var(--on-inverse); }
.summary .muted { color: var(--on-inverse-muted); }
.summary button.ghost { color: var(--on-inverse); border-color: var(--on-inverse-muted); }
.summary button.ghost:hover { background: transparent; }
.kids { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0; }
.kid-chip { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: 999px; background: transparent; border: 1.5px solid var(--on-inverse-muted); color: var(--on-inverse); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); margin: 0; }
.kid-chip:has(input:checked) { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }
.kid-chip input { width: auto; margin: 0; accent-color: var(--primary); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: 0 0 44px; font-size: var(--fs-lg); font-family: var(--font-display); }
.child-head { display: flex; gap: var(--s3); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: var(--s1); background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error); border-radius: var(--radius-xs); padding: 2px var(--s2); font-size: var(--fs-xs); font-weight: 800; }
.kv { display: grid; grid-template-columns: 128px 1fr; gap: var(--s1) var(--s3); font-size: var(--fs-sm); margin-top: var(--s3); } .kv dt { color: var(--text-muted); font-weight: 700; } .kv dd { margin: 0; }
.pickup-row { display: grid; grid-template-columns: 1fr 1fr auto; grid-template-areas: 'n n x' 'r p p'; gap: var(--s2); margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px dashed var(--line); }
.pickup-row input { padding: var(--s2); } .pickup-row [data-f=name] { grid-area: n; } .pickup-row [data-f=relationship] { grid-area: r; } .pickup-row [data-f=phone] { grid-area: p; } .pickup-row [data-rm] { grid-area: x; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 20; max-width: 92vw; width: max-content;
  background: var(--inverse); color: var(--on-inverse); padding: var(--s3) var(--s4); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 700; font-size: var(--fs-sm); }
.toast.error { background: var(--error); color: var(--on-cta); } .toast.error::before { content: "⚠ "; }
.toast.ok { background: var(--primary); color: var(--on-primary); } .toast.ok::before { content: "✓ "; }
.alert { background: var(--error-bg); color: var(--error-text); border-left: 4px solid var(--error); border-radius: var(--radius-sm); padding: var(--s3); font-weight: 700; font-size: var(--fs-sm); margin: var(--s3) 0; }
.bar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--success); }
.bar.low > span { background: var(--warning); }
.bar.full > span { background: repeating-linear-gradient(135deg, var(--error) 0 4px, var(--error-text) 4px 8px); }
.timeline { display: grid; grid-template-columns: 56px 1fr 44px; gap: var(--s1) var(--s2); align-items: center; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); } th, td { text-align: left; padding: var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.daycheck { display: flex; gap: var(--s2); flex-wrap: wrap; } .daycheck label { display: inline-flex; gap: var(--s1); align-items: center; margin: 0; padding: var(--s1) var(--s3); border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 700; }
.daycheck label:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.daycheck input { width: auto; }
.empty { text-align: center; color: var(--text-muted); padding: var(--s5) var(--s2); }
.closed { text-align: center; padding: var(--s6); color: var(--text-muted); }
.sr { position: absolute; left: -9999px; }

/* --- attendance --- */
.status { margin-top: var(--s3); padding: var(--s3); border-radius: var(--radius-sm); font-size: var(--fs-sm); line-height: 1.5; border-left: 4px solid transparent; }
.status.in { background: var(--success-bg); color: var(--success-text); border-left-color: var(--success); }
.status.out { background: var(--info-bg); color: var(--info-text); border-left-color: var(--info); }
.status.none { background: var(--surface-2); color: var(--text-muted); border-left-color: var(--line-strong); }
.status b { margin-right: var(--s1); }
.note { margin-top: var(--s2); font-size: var(--fs-sm); background: var(--secondary-soft); border-radius: var(--radius-xs); padding: var(--s2); color: var(--text); }
.warnline { background: var(--warning-bg); color: var(--warning-text); font-weight: 700; box-shadow: inset 3px 0 0 var(--warning); }
.hist { margin-top: var(--s3); border-top: 1px dashed var(--line); padding-top: var(--s3); }
.hero-count .big { font-size: var(--fs-xl); margin: var(--s1) 0 var(--s2); } .hero-count .big b { font-size: var(--fs-3xl); color: var(--primary-text); font-family: var(--font-display); }
.herenow { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.chip { background: var(--success-bg); color: var(--success-text); padding: var(--s1) var(--s3); border-radius: 999px; font-weight: 800; font-size: var(--fs-sm); box-shadow: inset 0 0 0 1px var(--success); }
.chip::before { content: "✓ "; }
.rcard.checked_in { border-left: 6px solid var(--success); } .rcard.not_arrived { border-left: 6px dashed var(--info); } .rcard.checked_out { border-left: 6px solid var(--full); }
.rcard.checked_out .child-head, .rcard.checked_out > .muted { opacity: .8; }
.panel { margin-top: var(--s3); padding: var(--s3); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.people { display: grid; gap: var(--s2); }
.person { display: flex; align-items: center; gap: var(--s3); margin: 0; padding: var(--s3); border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 400; cursor: pointer; }
.person input { width: auto; accent-color: var(--primary); } .person span:first-of-type { flex: 1; } .person small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.person .ok { color: var(--success-text); font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; }
.person:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.person.other:has(input:checked) { border-color: var(--error); background: var(--error-bg); box-shadow: inset 0 0 0 1px var(--error); }
.alert.stop { background: var(--error-bg); border: 2px solid var(--error); color: var(--error-text); font-weight: 600; } .alert.stop ol { margin: var(--s2) 0; padding-left: var(--s5); }
.alert.warnbox { background: var(--warning-bg); color: var(--warning-text); border-left-color: var(--warning); }
.alertcard { border-left: 6px solid var(--error); } .alertcard > div { margin: var(--s2) 0; }
details.earlier { margin-top: var(--s3); font-size: var(--fs-sm); } details.earlier summary { cursor: pointer; color: var(--primary-text); font-weight: 700; }
.list li.voided { opacity: .6; text-decoration: line-through; }
table.report td { font-size: var(--fs-sm); } .small { font-size: var(--fs-xs); }
.demo-banner { text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--on-secondary); background: var(--secondary); padding: 2px var(--s2); letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) { button, .btn, .slot, .day, .tabbar a { transition: background-color .15s, border-color .15s, color .15s; } }
main:has(#authForm) { max-width: 460px; }

/* --- v4: waitlist, held offers, weekly bookings --- */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: var(--s1); border-radius: 999px; background: var(--cta); color: var(--on-cta); font-size: .75rem; font-weight: 800; line-height: 1; vertical-align: 2px; }
.tabbar a { position: relative; }
.tabbar a .badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
@media (min-width: 1100px) { .tabbar a .badge { position: static; margin-left: auto; } }
.offer-banner { background: var(--primary-soft); border: 2px solid var(--primary); }
.offer-banner h2 { color: var(--primary-text); }
.offer-banner .list li { border-color: var(--primary-soft-2); flex-wrap: wrap; }
.hold { margin-top: var(--s1); font-size: var(--fs-sm); color: var(--text); }
.pill.wl { background: var(--info-bg); color: var(--info-text); box-shadow: inset 0 0 0 1px var(--info); }
.pill.held { background: var(--secondary-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--secondary); }
.slot .wtag { font-size: var(--fs-xs); font-weight: 800; color: var(--info-text); }
.slot.full .wtag, .slot .wtag { text-decoration: none; }
.slot.full { cursor: pointer; }
.summary .repeat-btn { margin-top: var(--s2); color: var(--on-inverse); border-color: var(--on-inverse-muted); }
.summary .repeat-btn:hover { background: transparent; border-color: var(--on-inverse); }
.series-result { border: 2px solid var(--primary); }
.rgroup { margin-top: var(--s3); padding: var(--s3); border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--line-strong); }
.rgroup h3 { margin: 0 0 var(--s1); font-size: var(--fs-md); }
.rgroup.ok { background: var(--success-bg); border-left-color: var(--success); } .rgroup.ok h3 { color: var(--success-text); }
.rgroup.full { background: var(--surface-2); border-left-color: var(--full); } .rgroup.full h3 { color: var(--neutral-text); }
.rgroup.full button { margin-top: var(--s2); }
.rgroup.closed h3 { color: var(--text-muted); }
ul.dates { margin: 0; padding-left: var(--s5); font-size: var(--fs-sm); columns: 2; column-gap: var(--s6); }
ul.dates li { break-inside: avoid; margin: 2px 0; }
.card { scroll-margin-top: 84px; }
.tabs button { min-width: 0; padding-inline: var(--s2); white-space: nowrap; font-size: var(--fs-sm); }
.pill { white-space: nowrap; }
.stack { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); flex: 0 0 auto; }

/* ---------- v5: cancellation policy ---------- */
.policy { background: var(--info-bg); color: var(--text); border-left: 4px solid var(--info); border-radius: var(--radius-sm); padding: var(--s2) var(--s3); font-size: var(--fs-sm); margin: 0 0 var(--s3); }
.policy b { color: var(--info-text); }
.summary .policy-line { color: var(--on-inverse-muted); font-size: var(--fs-sm); margin: var(--s2) 0 0; }
.list li.asking { flex-wrap: wrap; }
.cancel-confirm { flex: 1 0 100%; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--s3); margin-top: var(--s2); }
.cancel-confirm > p { margin: 0 0 var(--s2); }
.cancel-confirm .actions { margin: var(--s2) 0 0; flex-wrap: wrap; }
.alert.late-warn { margin: 0 0 var(--s2); font-weight: 400; color: var(--text); background: var(--warning-bg); border-left: 4px solid var(--warning); }
.alert.late-warn b { color: var(--warning-text); }
.alert.late-warn .pol { margin-top: var(--s2); font-size: var(--fs-sm); }
.pill.late { background: var(--warning-bg); color: var(--warning-text); box-shadow: inset 0 0 0 1px var(--warning); } .pill.late::before { content: "⏱ "; }
.pill.neutral { background: var(--neutral-bg); color: var(--neutral-text); }
.staff-bk.cancelled { background: var(--surface-2); border-radius: var(--radius-sm); padding-inline: var(--s2); }
.staff-bk.cancelled b { text-decoration: line-through; text-decoration-thickness: 1px; }
.late-count { color: var(--warning-text); font-weight: 700; }

/* --- v6: hourly day grid (24 one-hour blocks), occupancy strip, 24/7 settings --- */
.day { position: relative; }
.daysel { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 800; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); padding: 0 4px; }
.day.on .daysel { background: var(--on-primary); color: var(--primary); }
.hgrid { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .hgrid { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); } }
.hgroup h3 { margin: 0 0 var(--s1); font-size: var(--fs-sm); display: flex; gap: var(--s2); align-items: baseline; }
.hgroup h3 .muted { font-weight: 600; font-size: var(--fs-xs); }
.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
@media (min-width: 560px) and (max-width: 899px) { .hours { grid-template-columns: repeat(6, 1fr); } }
.hour { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--s2); border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line);
  border-top: 5px solid var(--success); color: var(--text); text-align: left; min-height: 64px; font-weight: 700; position: relative; }
.hour:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--primary); border-top-color: var(--success); }
.hour .t { font-size: var(--fs-md); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.hour .cap { font-size: var(--fs-xs); font-weight: 700; color: var(--success-text); display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s1); }
.hour .dots i { width: 7px; height: 7px; }
.hour.low { border-top-color: var(--warning); } .hour.low .cap { color: var(--warning-text); } .hour.low .dots i:not(.used) { background: var(--warning); }
.hour.low:hover { border-top-color: var(--warning); }
.hour.full, .hour.full:hover { border-top-color: var(--full); color: var(--neutral-text); background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface-3) 8px 16px); }
.hour.full .cap { color: var(--neutral-text); }
.hour.past { background: var(--surface-2); color: var(--text-muted); border-top-color: var(--line); cursor: not-allowed; opacity: 1; }
.hour.past .cap { color: var(--text-muted); }
.hour.closedh { background: var(--surface-2); color: var(--text-muted); border-top-color: var(--line); }
.hour.sel, .hour.sel:hover { background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-text); }
.hour.full.sel { background: repeating-linear-gradient(135deg, var(--primary-soft) 0 8px, var(--surface-3) 8px 16px); color: var(--text); }
.hour .chk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 12px; line-height: 1; }
.hour .wtag { font-size: var(--fs-xs); font-weight: 800; color: var(--info-text); }
.summary .link-btn { background: none; border: 0; padding: var(--s2) 0 0; min-height: 0; color: var(--on-inverse); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.summary .full-note { margin: var(--s3) 0 var(--s2); color: var(--on-inverse); font-weight: 700; }
.summary .actions button:not(.ghost) { flex: 1; }
.summary .actions .ghost { color: var(--on-inverse); border-color: var(--on-inverse-muted); }
.heatwrap { display: grid; gap: var(--s1); }
.heat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.hc { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-height: 44px; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--text); font-variant-numeric: tabular-nums; }
.hc b { font-size: var(--fs-md); line-height: 1.1; }
.hc small { font-size: 10px; color: inherit; font-weight: 700; opacity: 1; }
.hc.n1 { background: var(--primary-soft); color: var(--primary-text); }
.hc.n2 { background: var(--warning-bg); color: var(--warning-text); }
.hc.full { background: var(--error-bg); color: var(--error-text); box-shadow: inset 0 0 0 1.5px var(--error); }
.nw { white-space: nowrap; }
.hc.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--surface-3) 4px 8px); color: var(--text-muted); }
.hc.now { outline: 2.5px solid var(--primary); outline-offset: 1px; z-index: 1; }
.heatkey { margin: var(--s1) 0 0; }
.pill.night { background: var(--info-bg); color: var(--info-text); box-shadow: inset 0 0 0 1px var(--info); }
.switch { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; font-weight: 400; }
.switch input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); }
.switch b { display: block; } .switch small { color: var(--text-muted); }
#customHours { border: 0; padding: 0; margin: var(--s3) 0 0; }
/* v6: on phones the attendance report stacks each child as a block (In / Out labelled) instead of a cramped 3-column table */
@media (max-width: 600px) {
  table.report thead { display: none; }
  table.report, table.report tbody, table.report tr, table.report td { display: block; width: 100%; }
  table.report tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  table.report td { border: 0; padding: 0; }
  table.report td:first-child { grid-column: 1 / -1; }
  table.report td:nth-child(2)::before, table.report td:nth-child(3)::before { display: block; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
  table.report td:nth-child(2)::before { content: "Check-in"; } table.report td:nth-child(3)::before { content: "Check-out"; }
}
/* --- v7: range picker (tap start + end, From/To, quick-time chips) --- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.picker { display: grid; gap: var(--s2); margin: 0 0 var(--s3); }
.picker .hint { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.picker .hint b { color: var(--primary-text); }
.link-inline { background: none; border: 0; padding: 0 2px; min-height: 0; color: var(--primary-text); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.fromto { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.fromto label { margin: 0; font-weight: 800; font-size: var(--fs-sm); }
.fromto select { width: auto; min-width: 118px; flex: 1 1 118px; max-width: 200px; }
.presets { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 2px 2px var(--s1); margin: 0 -2px; }
.presets::-webkit-scrollbar { display: none; }
.chip-btn { flex: 0 0 auto; min-height: 40px; padding: var(--s1) var(--s3); border-radius: 999px; background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); font-weight: 800; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; }
.chip-btn small { font-weight: 600; color: var(--text-muted); font-size: var(--fs-xs); }
.chip-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.chip-btn.on, .chip-btn.on:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary); }
.chip-btn.on small { color: var(--primary-text); }
.chip-btn:disabled { background: var(--surface-2); color: var(--text-muted); border-color: var(--line); cursor: not-allowed; }
.hour .edge { position: absolute; top: -8px; right: 6px; font-size: 9px; line-height: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--on-primary); background: var(--primary); padding: 0 6px; border-radius: 999px; z-index: 1; }
.hgroup h3 { margin-bottom: var(--s2); }
.hour.anchor, .hour.anchor:hover { border-style: dashed; border-width: 2px; border-top-width: 5px; box-shadow: none; }
.summary .sum-note { color: var(--on-inverse); font-size: var(--fs-sm); margin-top: 2px; }
.summary .sum-tools { display: flex; gap: var(--s1); align-items: center; flex-shrink: 0; }
.summary .book-row { display: flex; gap: var(--s2); align-items: stretch; }
.summary .book-row #bookBtn { flex: 2 1 0; }
.summary .book-row .repeat-btn { flex: 1 1 0; margin-top: 0; white-space: nowrap; }
.summary .collapse-btn { padding-left: var(--s2); padding-right: var(--s2); }
.summary #bookBtn2 { margin-top: var(--s2); }
@media (max-width: 600px) {
  html { scroll-padding-bottom: 280px; }
  .summary { padding: var(--s3); }
  .summary .kids { margin: var(--s2) 0; }
}

.summary { z-index: 2; }
@media (min-width: 600px) { .presets { flex-wrap: wrap; overflow: visible; } }

/* ---------- v8: sign-in help, password reset, demo outbox, admin area ---------- */
.demo-links { text-align: center; margin: var(--s3) 0 0; font-size: var(--fs-sm); } .demo-links a { font-weight: 800; color: var(--primary-text); }
.demo-creds { text-align: center; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.pwlabel { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.pwlabel .forgot { font-size: var(--fs-sm); font-weight: 700; color: var(--primary-text); padding: var(--s2) 0 var(--s1); }
.auth-narrow { max-width: 460px; margin-inline: auto; }
.center { text-align: center; }
.notice { border-radius: var(--radius-sm); padding: var(--s3); margin: var(--s2) 0 var(--s3); border-left: 4px solid transparent; color: var(--text); font-size: var(--fs-sm); line-height: 1.5; }
.notice > b { display: block; } .notice p { margin: var(--s1) 0 0; }
.notice.ok { background: var(--success-bg); border-left-color: var(--success); } .notice.ok > b { color: var(--success-text); }
.notice.warn { background: var(--warning-bg); border-left-color: var(--warning); } .notice.warn > b { color: var(--warning-text); }
.notice.info { background: var(--info-bg); border-left-color: var(--info); } .notice.info > b { color: var(--info-text); }
.notice a { color: inherit; font-weight: 800; }
.stackbtns { flex-direction: column; align-items: stretch; } .stackbtns .btn { width: 100%; }
.done-mark { width: 64px; height: 64px; margin: var(--s2) auto var(--s3); border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 900;
  background: var(--success-bg); color: var(--success-text); box-shadow: inset 0 0 0 3px var(--success); }
label.check { display: flex; align-items: center; gap: var(--s2); font-weight: 600; margin-top: var(--s2); } label.check input { width: auto; accent-color: var(--primary); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.outbox { max-width: 720px; margin: 0 auto; padding-top: var(--s3); } .outbox > p:first-child a { font-weight: 700; color: var(--primary-text); }
.mail.newest { box-shadow: var(--shadow), inset 4px 0 0 var(--primary); }
.mail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); } .mail-subj { font-weight: 800; }
.mail details summary { cursor: pointer; font-weight: 700; color: var(--primary-text); padding: var(--s1) 0; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); color: var(--text); border-radius: var(--radius-sm); padding: var(--s3); font-size: var(--fs-sm); line-height: 1.55; }
.mail-body a { color: var(--primary-text); font-weight: 700; }
.tabs.scrolltabs { overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-sm); } .tabs.scrolltabs::-webkit-scrollbar { display: none; }
.tabs.scrolltabs button { flex: 1 0 auto; }
.pill.role-admin { background: var(--primary); color: var(--on-primary); }
.pill.role-staff { background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary); }
.pill.ok { background: var(--success-bg); color: var(--success-text); box-shadow: inset 0 0 0 1px var(--success); }
.list li.acct { align-items: flex-start; flex-wrap: wrap; }
.acct-main { flex: 1 1 260px; min-width: 0; } .acct-email { overflow-wrap: anywhere; }
.acct-tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s1) 0; }
.acct-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: flex-end; }
.acct-actions select { width: auto; min-height: 36px; padding-block: var(--s1); }
.list li.acct.inactive .acct-main > div:first-child b { color: var(--text-muted); }
.searchrow { display: flex; gap: var(--s2); } .searchrow input { flex: 1; min-width: 0; }
.list.audit li { align-items: flex-start; }
@media (max-width: 520px) { .acct-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .tabs.scrolltabs { gap: 2px; } .tabs.scrolltabs button { padding-inline: 10px; } }
.row > * { min-width: 0; } input[type=date] { min-width: 0; max-width: 100%; }
