/* Sunshine After-School — parent portal
   Warm, trustworthy, mobile-first. Outfit throughout, soft bento tiles. */

/* Every page here is a full server-rendered navigation (no SPA router). The
   View Transitions API animates across that navigation natively; browsers
   without it get the plain instant swap, no fallback code needed.

   Only the page content moves. The header is named on its own, so it holds
   still instead of fading out and back in with everything else (that was
   the stutter), and the active tab is named too, so the browser glides the
   navy pill from the old tab to the new one. The content is two halves: the
   old page goes quickly, the new one comes in just after with a small lift.
   Pages are fetched on hover/press (the speculation rules in each base
   template), so the new page is usually ready before the animation starts. */
@view-transition {
  navigation: auto;
}
.site-header { view-transition-name: site-header; }
main { view-transition-name: page; }
.tab.is-active { view-transition-name: tab-active; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(site-header) { animation: none; opacity: 0; }
::view-transition-new(site-header) { animation: none; }
::view-transition-group(tab-active) { animation-duration: .26s; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
::view-transition-old(page) { animation: page-fade-out .11s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(page) { animation: page-fade-in .2s cubic-bezier(0, 0, .2, 1) .07s both; }

@keyframes page-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Soft bento: a cream → peach → sky ground, translucent cream tiles, one deep
   navy for the main count / active state / to-do tile, apricot for "now" or
   "done", hatching for "not yet". Outfit throughout, light-weight headlines.
   The legacy names (--blue, --marigold) are kept so every component below and
   in office.css / staffportal.css picks the new palette up unchanged. */
:root {
  --paper: oklch(0.97 0.015 85);
  --ground: linear-gradient(160deg, oklch(0.97 0.015 85) 0%, oklch(0.95 0.035 60) 50%, oklch(0.91 0.045 230) 100%);
  --card: oklch(0.995 0.006 70);
  --tile: oklch(0.995 0.006 70 / 0.8);
  --glass: oklch(1 0 0 / 0.6);
  --ink: oklch(0.2 0.018 240);
  --ink-soft: oklch(0.45 0.018 240);
  --blue: oklch(0.3 0.055 238);          /* navy */
  --blue-deep: oklch(0.25 0.05 238);
  --blue-tint: oklch(0.93 0.02 238);
  --navy-tile: oklch(0.31 0.055 238);
  --navy-raised: oklch(0.39 0.05 238);
  --on-navy: oklch(0.98 0.006 70);
  --on-navy-soft: oklch(0.72 0.018 240);
  --marigold: oklch(0.83 0.11 52);       /* apricot */
  --marigold-tint: oklch(0.94 0.04 62);
  --apricot-ink: oklch(0.45 0.1 50);
  --sky: oklch(0.86 0.04 230);
  --green: oklch(0.52 0.1 155);
  --green-tint: oklch(0.94 0.035 155);
  --clay: oklch(0.56 0.16 35);
  --clay-tint: oklch(0.94 0.035 35);
  --line: oklch(0.88 0.018 240);
  --outline: oklch(0.6 0.018 240);
  --focus: oklch(0.83 0.11 52 / 0.55);
  --hatch: repeating-linear-gradient(135deg, oklch(1 0 0 / 0.8) 0 6px, oklch(1 0 0 / 0.3) 6px 11px);
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 260 / 0.04), 0 4px 14px oklch(0.3 0.02 260 / 0.05);
  --shadow-md: 0 6px 18px oklch(0.3 0.02 260 / 0.08), 0 18px 40px oklch(0.3 0.02 260 / 0.08);
  --radius: 26px;
  --radius-sm: 16px;
  --font-display: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ui: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --tap: 52px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Images never overflow their container (safety net for feed/media). */
img { max-width: 100%; height: auto; }

/* The ground is painted on a fixed layer behind the page rather than with
   background-attachment: fixed, which iOS ignores (leaving a seam where the
   gradient ends on long pages). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; background: var(--ground); pointer-events: none;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(16px, 4.2vw, 17px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ----------
   A pill top bar sitting on the ground: an outlined brand pill on the left,
   glass pills/circles on the right. Deliberately no backdrop-filter or
   transform here — the bottom tab bar lives inside the header on desktop, and
   either would turn the header into the containing block for its
   position:fixed phone layout. */
.site-header { position: relative; z-index: 10; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 10px; padding-top: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px;
  border: 1px solid var(--outline); border-radius: 999px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.12rem;
  color: var(--blue); text-decoration: none; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.brand .sun { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); flex: none; }
.site-header__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.link-quiet {
  color: var(--blue); text-decoration: none; font-weight: 500; font-size: .9rem;
  padding: 8px 6px; border-radius: 999px;
}
.link-quiet:hover { text-decoration: underline; }
.site-header .link-quiet {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
  background: var(--glass); color: var(--ink);
}
.site-header .link-quiet:hover { text-decoration: none; background: var(--card); }

/* ---------- page ---------- */
main { padding: 18px 0 64px; }
.eyebrow {
  font-size: .9rem; font-weight: 400; letter-spacing: 0;
  color: var(--ink-soft); margin: 0 0 6px;
}
h1.page-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 8px;
}
.lede { color: var(--ink-soft); margin: 0 0 22px; }

/* A big, easy-to-tap back button beside the page title, instead of a small
   text link floating above it. */
.page-head { display: flex; align-items: center; gap: 12px; }
.page-head > div { min-width: 0; }
.back-btn {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border-radius: 50%;
  background: var(--card); border: 1px solid transparent; box-shadow: var(--shadow-sm);
  color: var(--blue); font-size: 1.6rem; font-weight: 500; text-decoration: none; line-height: 1;
  transition: border-color .12s ease, background .12s ease;
}
.back-btn:hover { border-color: var(--blue); background: var(--blue-tint); }
.back-btn:active { transform: scale(.96); }
.section-label {
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin: 30px 0 12px;
}
/* Parent bus-ride day rows (child detail) */
.ride-row { display: flex; align-items: center; gap: 12px; }
.ride-row__day { font-weight: 500; min-width: 92px; }
.ride-row__state { margin-left: auto; font-weight: 600; font-size: .92rem; }
.ride-row__state--off { color: var(--clay); }
.away-row { gap: 8px; }
.away-row .ride-row__day { min-width: 0; flex: 1; white-space: nowrap; }
.away-row__form { flex: none; display: flex; align-items: center; gap: 6px; }
.away-row__why {
  height: 38px; width: 92px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  padding: 0 8px; font: inherit; font-size: .8rem; color: var(--ink);
}
.away-row .btn { font-size: .86rem; white-space: nowrap; }

/* Collapsible week groups (staff shifts, office menus) */
.week-group {
  background: var(--card); border: 1px solid transparent;
  border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden;
}
.week-group__summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  cursor: pointer; list-style: none; user-select: none; min-height: var(--tap);
}
.week-group__summary::-webkit-details-marker { display: none; }
.week-group__label { font-weight: 500; font-size: 1.02rem; }
.week-group__count {
  margin-left: auto; font-size: .82rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.week-group__chev { transition: transform .18s ease; color: var(--ink-soft); }
.week-group[open] .week-group__chev { transform: rotate(180deg); }
.week-group > .tiles, .week-group > div { padding: 0 12px 12px; }
.week-group[open] .week-group__summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* Notification groups — color-coded so pickup/drop-off pings (frequent) read
   as visually distinct from field-trip/document updates (infrequent). */
.notif-group--transport .week-group__summary { background: linear-gradient(180deg, var(--blue-tint), var(--paper)); }
.notif-group--updates .week-group__summary { background: linear-gradient(180deg, var(--marigold-tint), var(--paper)); }
.notif-group--transport .week-group__count { color: var(--blue-deep); font-weight: 500; }
.notif-group--updates .week-group__count { color: var(--apricot-ink); font-weight: 500; }
.notif-group--archived .week-group__summary { background: linear-gradient(180deg, #ECEAE4, var(--paper)); }
.notif-group--archived .week-group__count { color: #6b6b6b; font-weight: 500; }
.notif-group--archived .notif__body { opacity: .72; }

/* Swipeable notification row: the body slides over a red "Archive" backing;
   the button is the always-there fallback (and the non-swipe path). */
.notif { position: relative; overflow: hidden; margin-bottom: 10px; border-radius: var(--radius); }
.notif::before {
  content: "Archive"; position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 20px; color: #fff; font-weight: 500; letter-spacing: .02em;
  background: var(--clay); border-radius: var(--radius);
}
.notif__swipe { position: relative; z-index: 1; touch-action: pan-y; will-change: transform; }
.notif__swipe { transition: transform .18s ease; }
.notif--swiping .notif__swipe { transition: none; }
.notif--archiving { transition: height .24s ease, opacity .24s ease; }
.notif .notif__body { margin: 0; }   /* kill feed-card's bottom margin so the red backing can't peek */
/* Left-align the title + "New" pill so the top-right corner is free for the
   archive control (which is a sibling of the body link, hence absolute). */
.notif .feed-card__head { justify-content: flex-start; padding-right: 64px; }
.notif__act-form { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.notif__act {
  border: 1px solid transparent; background: rgba(255,255,255,.9);
  color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.notif__act:hover { color: var(--ink); border-color: var(--ink); }
.notif__act--restore { color: var(--blue-deep); }

/* ---------- week nav + day tabs (parent schedule & menus) ---------- */
.week-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 2px 0 16px; }
.week-nav a { text-decoration: none; }
.week-nav__range { font-weight: 500; min-width: 118px; text-align: center; }
.week-nav__arrow {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--card); color: var(--blue);
  box-shadow: var(--shadow-sm); transition: border-color .12s ease, background .12s ease;
}
.week-nav__arrow:hover { border-color: var(--blue); background: var(--blue-tint); }

/* One shared pill container instead of N separately-bordered boxes. */
.day-tabs {
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 6px; margin: 0 0 14px; scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: 1 0 auto; min-width: 50px; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 4px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; text-decoration: none; text-align: center; min-height: var(--tap);
  justify-content: center; transition: background .15s ease, border-color .15s ease;
}
.day-tab__name { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.day-tab__num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.day-tab.is-today:not(.is-active) { border-color: var(--marigold); }
.day-tab.is-today:not(.is-active) .day-tab__name { color: var(--apricot-ink); }
.day-tab.is-active { background: var(--blue); box-shadow: var(--shadow-sm); }
.day-tab.is-active .day-tab__name { color: #cfe6ee; }
.day-tab.is-active .day-tab__num { color: #fff; }
.day-tab.is-empty:not(.is-active) .day-tab__num { color: var(--ink-soft); opacity: .55; }
@media (hover: hover) and (pointer: fine) {
  .day-tab:not(.is-active):hover { background: var(--paper); }
}

.day-panel__head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.day-panel__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.day-panel__date { color: var(--ink-soft); font-weight: 600; }

/* Meal cards for a single selected day — one per meal, stacked. */
.meal-stack { display: grid; gap: 12px; margin-bottom: 16px; }
.meal-card {
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.meal-card__head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line);
}
.meal-card--breakfast .meal-card__head { background: linear-gradient(180deg, #FFF7EA, var(--paper)); }
.meal-card--lunch .meal-card__head { background: linear-gradient(180deg, #EAF2F5, var(--paper)); }
.meal-card--snack .meal-card__head { background: linear-gradient(180deg, var(--green-tint), var(--paper)); }
.meal-card__ico { font-size: 1.3rem; line-height: 1; }
.meal-card__label { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.meal-card__body { padding: 13px 16px 15px; }
.meal-card__items { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.meal-card__items li { font-weight: 600; padding-left: 16px; position: relative; }
.meal-card__items li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--marigold);
}
.meal-card__note { color: var(--ink-soft); font-size: .85rem; margin: 10px 0 0; }

/* Redesigned daily-schedule list (parent portal only) — whole-bubble pastel
   fills so each block reads as its own tinted chip. Each block is a native
   <details> element: the summary row (time + activity) is always visible;
   the description is collapsed by default and revealed by a tap (mobile) or
   a hover (desktop, via the hover media query below) without needing JS.
   Office's shift schedule keeps using the older .agenda rail styling below,
   untouched. */
.sched-list { display: grid; gap: 10px; }
.sched-item {
  border: 1px solid transparent; border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s ease, opacity .2s ease;
}
.sched-item--a { background: var(--marigold-tint); border-color: #f0d9a8; }
.sched-item--b { background: var(--blue-tint); border-color: #C6DDE4; }
.sched-item--c { background: var(--green-tint); border-color: #CBE4CF; }
.sched-item--d { background: var(--clay-tint); border-color: #EEC7B9; }

.sched-item__summary {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px;
  cursor: pointer; list-style: none; min-height: var(--tap);
}
.sched-item__summary::-webkit-details-marker { display: none; }
.sched-item[data-no-desc] .sched-item__summary { cursor: default; }
.sched-item__time { flex: none; min-width: 66px; }
.sched-item__start {
  display: block; font-weight: 600; font-size: 1.05rem; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.sched-item__start small { font-size: .6em; font-weight: 500; margin-left: 1px; }
.sched-item__duration {
  display: block; font-size: .72rem; font-weight: 500; color: var(--ink-soft);
  margin-top: 2px;
}
.sched-item__body { flex: 1; min-width: 0; }
.sched-item__activity { display: block; font-weight: 500; font-size: 1.03rem; }
.sched-item__chev { flex: none; color: var(--ink-soft); transition: transform .18s ease; }
.sched-item[open] .sched-item__chev { transform: rotate(180deg); }

/* Collapsed by default; opened by the native [open] state (tap) or, on
   pointer devices, by hovering the block — overriding the browser's default
   "display:none when a <details> is closed" so the reveal can be animated. */
.sched-item__desc {
  display: block; margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.45;
  max-height: 0; opacity: 0; overflow: hidden; padding: 0 16px;
  transition: max-height .22s ease, opacity .18s ease, padding-bottom .22s ease;
}
.sched-item[open] .sched-item__desc { max-height: 200px; opacity: 1; padding-bottom: 14px; }
/* Always-visible variant for admin/editing contexts (office schedule editor)
   that aren't wrapped in a <details> — no collapse, just a static caption. */
.sched-item__desc-static { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.4; margin-top: 3px; }
/* Modern browsers render a closed <details>'s body through an internal
   content-visibility box that a child selector can't override, so hover
   can't literally unfold it pre-click — instead hover gives a clear
   "there's more here" affordance, and click/tap (native <details>, works
   everywhere) does the actual reveal. */
@media (hover: hover) and (pointer: fine) {
  .sched-item:not([data-no-desc]):hover { box-shadow: 0 0 0 1px var(--ink-soft); }
  .sched-item:not([data-no-desc]):hover .sched-item__chev { color: var(--ink); transform: translateY(1px); }
}

/* Live "what's happening right now" marker (today's view only). */
.sched-item.is-current { box-shadow: 0 0 0 2px var(--blue); }
.sched-item__rooms {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-left: 6px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .7rem; color: var(--ink-soft); vertical-align: middle;
}
.sched-item__now {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; vertical-align: middle;
  font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-deep); background: #fff; padding: 3px 9px 3px 7px; border-radius: 999px;
}
.sched-item__now-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: sched-pulse 1.6s ease-in-out infinite;
}
@keyframes sched-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.35); } }

/* Fade what's already happened today so attention lands on now + next. */
.sched-item.is-past { opacity: .5; filter: saturate(.65); }
.sched-item.is-past:hover { opacity: .75; }

/* A slightly wider, still-contained column on desktop for this page's
   denser, hover-interactive layout. */
@media (min-width: 700px) {
  body.page-schedule .wrap { max-width: 680px; }
}

/* ---------- day cards (parent schedule & menus) ---------- */
.day-card {
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 16px;
}
.day-card__head {
  display: flex; align-items: baseline; gap: 10px; padding: 13px 18px;
  background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line);
}
.day-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.day-card__date { margin-left: auto; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }

/* Schedule agenda / timeline */
.agenda { list-style: none; margin: 0; padding: 6px 18px 14px; }
.agenda__row { display: grid; grid-template-columns: 76px 20px 1fr; align-items: start; }
.agenda__time {
  font-weight: 500; font-size: .82rem; padding-top: 11px; line-height: 1.25;
  font-variant-numeric: tabular-nums; color: var(--blue-deep);
}
.agenda__to { display: block; color: var(--ink-soft); font-weight: 500; }
.agenda__rail { position: relative; align-self: stretch; }
.agenda__rail::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--line); transform: translateX(-50%);
}
.agenda__rail::after {
  content: ""; position: absolute; left: 50%; top: 14px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--marigold); border: 2px solid var(--card);
  transform: translateX(-50%);
}
.agenda__row:last-child .agenda__rail::before { bottom: 50%; }
.agenda__body { padding: 8px 0 12px 6px; }
.agenda__activity { display: block; font-weight: 500; }
.agenda__desc { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: 1px; }

/* Menus meal rows */
.meal-list { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; gap: 8px; }
.meal-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px;
  border-radius: var(--radius-sm); background: var(--paper); border: 1px solid transparent; }
.meal-row--breakfast { background: #FFF7EA; border-color: #F3E2C0; }
.meal-row--lunch { background: #EAF2F5; border-color: #CFE1E7; }
.meal-row--snack { background: var(--green-tint); border-color: #CBE4CF; }
.meal-row__ico { font-size: 1.35rem; line-height: 1.4; flex: none; }
.meal-row__body { min-width: 0; }
.meal-row__label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); }
.meal-row__items { display: block; font-weight: 600; margin-top: 1px; }
.meal-row__note { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- in-app confirm modal ---------- */
.confirm-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 22px; background: rgba(42, 39, 34, .5);
  backdrop-filter: blur(2px);
}
.confirm-modal[hidden] { display: none; }
.confirm-modal__box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md);
  max-width: 380px; width: 100%; padding: 22px; animation: cm-pop .16s ease-out;
}
@keyframes cm-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-modal__msg { margin: 0 0 18px; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.confirm-modal__actions { display: flex; gap: 10px; }
.confirm-modal__actions .btn { flex: 1; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid transparent;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px;
}
.stack > * + * { margin-top: 14px; }

/* child chips */
.kids { display: flex; flex-wrap: wrap; gap: 10px; }
.kid {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid transparent; border-radius: 999px;
  padding: 7px 14px 7px 8px; box-shadow: var(--shadow-sm);
}
.kid .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 500; font-size: .8rem;
  background: var(--blue);
}
.kid:nth-child(3n+2) .avatar { background: var(--marigold); color: var(--blue); }
.kid:nth-child(3n) .avatar { background: var(--green); }

/* ---------- trip card (the field-trip flyer feel) ---------- */
.trip-card {
  background: var(--card); border: 1px solid transparent;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.trip-card__top {
  background:
    radial-gradient(120% 90% at 90% -20%, #FFE2AE 0%, transparent 55%),
    var(--marigold-tint);
  padding: 18px 18px 16px; border-bottom: 1px solid var(--line);
}
.trip-card__when {
  display: inline-block; font-weight: 500; font-size: .82rem;
  color: var(--apricot-ink); letter-spacing: .02em;
}
.trip-card__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 6vw, 1.6rem); line-height: 1.12; letter-spacing: -.01em;
  margin: 4px 0 0;
}
.trip-card__meta { color: var(--apricot-ink); font-size: .92rem; margin-top: 4px; }
.trip-card__body { padding: 18px; }

/* requirements checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start; padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist .tick {
  flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  background: var(--green-tint); color: var(--green);
  display: grid; place-items: center; font-size: .72rem; font-weight: 600;
}

/* ---------- per-child response block ---------- */
.respondent { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--line); }
.respondent:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.respondent__name { font-weight: 500; font-size: 1.05rem; margin: 0 0 10px; }

/* going / not going toggle */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 500;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.choice .go:has(input:checked)   { border-color: var(--green); background: var(--green-tint); color: var(--green); }
.choice .nogo:has(input:checked) { border-color: var(--clay); background: var(--clay-tint); color: var(--clay); }

/* acknowledge + payment reveal */
.reveal { margin-top: 12px; }
.ack {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.ack input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.ack span { font-size: .95rem; }

/* payment options */
.pay-h { font-weight: 500; font-size: .88rem; margin: 16px 0 9px; color: var(--ink); }
.pay { display: grid; gap: 9px; }
.pay__opt { position: relative; }
.pay__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay__opt label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; min-height: var(--tap); background: var(--card);
  transition: border-color .12s ease, background .12s ease;
}
/* The radio is a sibling that precedes the label, so reflect :checked with the
   adjacent-sibling combinator (label:has(input) never matches — the input is not
   inside the label). This also avoids depending on :has() for the checked state. */
.pay__opt input:checked + label { border-color: var(--blue); background: var(--blue-tint); }
.pay__opt .mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
}
.pay__opt input:checked + label .mark { border-color: var(--blue); }
.pay__opt input:checked + label .mark::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
}
/* Keyboard focus visibility for the visually-hidden native radio. */
.pay__opt input:focus-visible + label { border-color: var(--blue); box-shadow: 0 0 0 4px var(--focus); }
.pay__opt .body { flex: 1; }
.pay__opt .t { display: block; font-weight: 500; }
.pay__opt .s { display: block; font-size: .85rem; color: var(--ink-soft); }
.pay__opt .amt { font-weight: 500; font-variant-numeric: tabular-nums; }
.badge-default {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--green-tint); padding: 3px 7px; border-radius: 6px;
}
.fee-note { font-size: .82rem; color: var(--ink-soft); margin: 8px 2px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--tap); width: 100%; padding: 0 20px;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-ui); font-size: 1.02rem; font-weight: 500;
  text-decoration: none; transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--sun { background: var(--marigold); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn--sun:hover { filter: brightness(.97); }
.btn--ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--line); }

/* launcher tiles (out to tuition / news) */
.tiles { display: grid; gap: 11px; }
.tile {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tile .ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 1.2rem; }
.tile .ico.money { background: var(--green-tint); }
.tile .ico.news { background: var(--marigold-tint); }
.tile .t { display: block; font-weight: 500; }
.tile .s { display: block; font-size: .85rem; color: var(--ink-soft); }
.tile .chev { margin-left: auto; color: var(--ink-soft); }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
}
.pill--need { background: var(--marigold-tint); color: var(--apricot-ink); }
.pill--cleared { background: var(--green-tint); color: var(--green); }

/* trip list row on home */
.trip-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-sm);
}
.trip-row:hover { box-shadow: var(--shadow-md); }
.trip-row .date {
  flex: none; width: 50px; text-align: center; line-height: 1;
  background: var(--marigold-tint); border-radius: 11px; padding: 9px 0; color: var(--apricot-ink);
}
.trip-row .date .d { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.trip-row .date .m { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.trip-row .grow { flex: 1; min-width: 0; }
.trip-row .grow .t { display: block; font-weight: 500; }
.trip-row .grow .s { display: block; font-size: .85rem; color: var(--ink-soft); }

/* ---------- flash ---------- */
.flash {
  border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 18px;
  font-weight: 600; border: 1px solid transparent;
}
.flash--ok { background: var(--green-tint); border-color: #cfe6d4; color: #25623c; }
.flash--err { background: var(--clay-tint); border-color: #ecc8bd; color: var(--clay); }

/* ---------- login ---------- */
.center-card { margin-top: 8vh; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 7px; }
.field input[type=email] {
  width: 100%; min-height: var(--tap); padding: 0 15px; font-size: 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font-family: var(--font-ui); color: var(--ink);
}
.field input[type=email]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--focus); }
/* Generalized form fields (parent self-service forms). */
.field input[type=text], .field input[type=tel], .field select {
  width: 100%; min-height: var(--tap); padding: 0 14px; font-size: 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font-family: var(--font-ui); color: var(--ink);
}
.field input[type=text]:focus, .field input[type=tel]:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--focus);
}
.field.check { display: flex; align-items: center; gap: 11px; }
.field.check label { margin: 0; font-weight: 600; }
.field.check input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.pending-note {
  background: var(--marigold-tint); border: 1px solid #f0d9a8; border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--apricot-ink); font-weight: 600; font-size: .9rem; margin-bottom: 14px;
}

/* ---------- a11y / motion ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-soft); }
footer.site-foot { color: var(--ink-soft); font-size: .82rem; text-align: center; padding: 28px 0 40px; }

/* ---------- newsletter slot content (shared partial: newsletters/_slots.html) ---------- */
.nl-logo { max-height: 44px; margin-bottom: 12px; display: block; }
.nl-slot { margin: 0 0 16px; }
.nl-slot__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 4px;
}
.nl-slot p { margin: 0 0 8px; }
.nl-slot__image { width: 100%; border-radius: var(--radius-sm); margin: 4px 0 12px; display: block; }
.nl-slot__section { margin: 0 0 12px; }
.nl-slot__heading { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: 0 0 4px; }
.nl-slot__list { margin: 0; padding-left: 20px; }
.nl-slot__list li { margin-bottom: 4px; }
.nl-slot__link {
  display: inline-block; margin-top: 2px; font-weight: 500; color: #fff;
  background: var(--blue); border-radius: 999px; padding: 9px 16px; text-decoration: none;
}

/* ---------- in-page tab toggle (Updates / Newsletters) ---------- */
.ptabs { display: flex; gap: 6px; margin: 14px 0 4px; }
.ptab {
  flex: 1; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 500; font-size: .88rem; cursor: pointer;
}
.ptab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.ptab-panel { margin-top: 6px; }

/* ---------- activity feed (shared by parent / staff / office) ---------- */
.feed-card {
  background: var(--card); border: 1px solid transparent;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px 16px 14px; margin-bottom: 14px;
}
.feed-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.feed-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.15; }
.feed-card__badge {
  flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint); padding: 3px 9px; border-radius: 999px;
}
.feed-card__meta { color: var(--ink-soft); font-size: .82rem; margin: 4px 0 0; }
.feed-card__note { margin: 11px 0 0; font-size: .98rem; line-height: 1.5; }
.feed-photos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 13px;
}
.feed-photos--one { grid-template-columns: 1fr; }
.feed-photo {
  display: block; width: 100%; padding: 0; margin: 0; border: 1px solid transparent;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); cursor: pointer;
}
.feed-photos--one .feed-photo img { aspect-ratio: auto; max-height: 460px; width: 100%; object-fit: cover; }
.feed-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- photo lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px;
  background: rgba(20, 18, 15, .82); backdrop-filter: blur(2px);
}
.lightbox[hidden] { display: none; }
.lightbox__inner { max-width: 960px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__inner img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.lightbox__actions { display: flex; gap: 10px; }

/* ---------- in-app document viewer ---------- */
.doc-viewer {
  width: 100%; height: 74vh; min-height: 380px; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-sm);
}
.doc-viewer--img { display: grid; place-items: center; overflow: auto; padding: 10px; }
.doc-viewer--img img { max-width: 100%; height: auto; border-radius: 8px; }
/* PDF.js renders each page to a canvas; the host scrolls. Height auto-fits. */
.doc-viewer--pdf { height: auto; min-height: 0; max-height: 78vh; overflow-y: auto; padding: 10px; display: grid; gap: 10px; }
.doc-viewer--pdf .pdf-page { border-radius: 6px; box-shadow: var(--shadow-sm); }
.doc-viewer--html { border: 1px solid transparent; }
.doc-actions { display: flex; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }

/* Permission-slip link on a trip */
.slip-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 16px;
  background: var(--marigold-tint); border: 1px solid #f0d9a8; border-radius: var(--radius-sm);
  text-decoration: none; color: inherit;
}
.slip-link__ico { font-size: 1.5rem; flex: none; }
.slip-link__body { flex: 1; min-width: 0; }
.slip-link__title { display: block; font-weight: 500; }
.slip-link__hint { display: block; font-size: .85rem; color: var(--ink-soft); }

/* ---------- bus-run pickup board (staff driver screen) ---------- */
.run-meta { color: var(--ink-soft); font-size: .9rem; margin: 0 0 16px; }
.run-meta strong { color: var(--ink); }
.pickup-group { margin-bottom: 20px; }
.pickup-group__head { margin: 0 2px 9px; }
.pickup-group__name { font-weight: 600; letter-spacing: .02em; font-size: .82rem; text-transform: uppercase; color: var(--blue); }
.pickup {
  display: flex; align-items: stretch; gap: 8px; margin-bottom: 9px;
}
.pickup__main {
  flex: 1; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  padding: 12px 14px; min-height: var(--tap); cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .12s ease, background .12s ease;
}
.pickup__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: transparent; }
.pickup__name { flex: 1; min-width: 0; font-weight: 500; }
.pickup__state { font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.pickup.is-on .pickup__main { border-color: #cfe6d4; background: var(--green-tint); }
.pickup.is-on .pickup__dot { background: var(--green); border-color: var(--green); }
.pickup.is-on .pickup__state { color: var(--green); }
.pickup.is-absent .pickup__main { border-color: var(--line); background: var(--paper); opacity: .7; }
.pickup.is-absent .pickup__name { text-decoration: line-through; }
.pickup.is-absent .pickup__state { color: var(--clay); }
.pickup__absent {
  flex: none; width: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink-soft); font-size: 1.1rem; cursor: pointer;
}
.pickup__absent:hover { border-color: var(--clay); color: var(--clay); }

/* ---------- stat tiles (office Today, staff/demo roster dashboards) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 4px 0 6px; }
.stat {
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 15px; text-decoration: none; color: var(--ink);
  display: block;
}
a.stat { transition: transform .1s ease, box-shadow .12s ease; }
a.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.stat__n { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; }
.stat__l { font-size: .82rem; color: var(--ink-soft); margin-top: 5px; }
.stat--alert { border-color: #ecc8bd; background: var(--clay-tint); }
.stat--alert .stat__n { color: var(--clay); }
.stat--good { border-color: #cfe6d4; background: var(--green-tint); }
.stat--good .stat__n { color: var(--green); }

/* ---------- roster / check-in board (office, staff sign-in, demo preview) --- */
.rmeta { color: var(--ink-soft); font-size: .86rem; margin: 0 0 18px; }
.rgroup { margin-bottom: 22px; }
.rgroup__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 2px 10px;
}
.rgroup__name { font-weight: 500; }
.rgroup__count { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rkids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.rkid {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  padding: 9px 11px; min-height: var(--tap); cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .12s ease, background .12s ease;
}
.rkid:hover { border-color: var(--blue); }
.rkid__dot {
  flex: none; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--line); background: transparent;
}
.rkid.is-in { border-color: #cfe6d4; background: var(--green-tint); }
.rkid.is-in .rkid__dot { background: var(--green); border-color: var(--green); }
.rkid__name { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkid__state { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.rkid.is-in .rkid__state { color: var(--green); }
/* Not here, and why: reported away and not-one-of-their-days fade back;
   gone home is done for the day. "Expected" keeps the plain out look. */
.rkid.is-absent, .rkid.is-not_scheduled { opacity: .62; border-style: dashed; }
.rkid.is-absent .rkid__state { color: var(--clay); }
.rkid.is-gone_home .rkid__state { color: var(--apricot-ink); }
.empty-note { color: var(--ink-soft); }

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

/* reveal acknowledge+payment only when "going"; visible by default for no-:has fallback */
.respondent:has(.nogo input:checked) .reveal { display: none; }

/* ---------- QR check-in codes ---------- */
.qr-card { text-align: center; }
.qr-card__name { font-weight: 500; margin: 0 0 10px; }
/* Sized so it fills a phone screen comfortably — the kiosk camera has to read
   it from arm's length, and a small code is the main reason a scan fails. */
.qr-card__code {
  width: 100%; max-width: 300px; aspect-ratio: 1; display: block; margin: 0 auto;
  background: #fff; border-radius: var(--radius-sm); padding: 8px;
}

/* ============================================================================
   Soft bento — shared shape overrides
   Tiles lose their borders and sit on the gradient as soft cream slabs; every
   button and tag becomes a pill. Kept down here so it wins over the component
   rules above without touching each one.
   ============================================================================ */
.card, .stat, .day-card, .meal-card, .trip-card {
  background: var(--tile); box-shadow: none;
}
/* Rows that come in stacks (lists, feeds, request cards) get a solid surface and
   a soft shadow, so each one reads as its own card instead of the stack
   running together into one slab on the gradient. */
.tile, .trip-row, .feed-card, .week-group, .req-card, .roster-line, .ratio-room, .stored-file, .wday {
  background: var(--card); box-shadow: var(--shadow-sm);
}
.tiles { gap: 10px; }
.tile:hover, .trip-row:hover, a.stat:hover { box-shadow: var(--shadow-sm); background: var(--card); }
.tile .ico { border-radius: 50%; background: var(--card); }
.tile .ico.money, .tile .ico.news { background: var(--card); }
.trip-row .date { border-radius: 16px; }
.btn { border-radius: 999px; font-weight: 500; }
.btn--sun { color: var(--blue); }
.btn--ghost { border-color: var(--outline); color: var(--ink); }
.back-btn { background: var(--glass); box-shadow: none; color: var(--ink); font-weight: 400; }
.back-btn:hover { border-color: transparent; background: var(--card); }
.section-label {
  font-size: 1.05rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink); margin: 28px 0 12px;
}
.stat__n, .head-metric b, .dash-stat b { font-weight: 300 !important; letter-spacing: -.04em; }
.feed-card__title, .trip-card__name, .day-card__name, .day-panel__name { font-weight: 400; }
.pill { font-weight: 500; letter-spacing: 0; padding: 5px 11px; }
.pill--need { background: var(--marigold); color: var(--blue); }
.kid { box-shadow: none; background: var(--tile); }
.kid .avatar { background: var(--blue); }
.kid:nth-child(3n+2) .avatar { background: var(--marigold); color: var(--blue); }
.kid:nth-child(3n) .avatar { background: var(--sky); color: var(--blue); }
.day-tabs { background: var(--glass); box-shadow: none; border-radius: 999px; }
.day-tab { border-radius: 999px; }
.ptab { border-color: transparent; background: var(--glass); font-weight: 500; }
.ptab.is-active { background: var(--blue); border-color: var(--blue); color: var(--on-navy); }
.week-nav__arrow { border-color: transparent; background: var(--glass); box-shadow: none; }
.flash { border-radius: var(--radius-sm); font-weight: 500; }
:focus-visible { outline-color: var(--marigold); }
footer.site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ============================================================================
   Pill tab bar — shared by office, staff and parent.
   Phone: a floating glass pill pinned to the bottom, the active tab a dark
   navy pill (the indicator, glided between tabs by tabbar.js).
   Desktop: the same nav sits in the top bar beside the brand.
   ============================================================================ */
main.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.tabbar {
  position: fixed; z-index: 20;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: oklch(1 0 0 / 0.78); backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-radius: 999px; box-shadow: var(--shadow-md);
}
.tabbar__inner {
  position: relative; max-width: 640px; margin: 0 auto; padding: 5px;
  display: flex; gap: 2px;
}
.tabbar__indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  background: var(--blue); border-radius: 999px; opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.tabbar.is-ready .tabbar__indicator { opacity: 1; }
.tab {
  position: relative; z-index: 1;
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  text-decoration: none; color: var(--ink); font-size: .68rem; font-weight: 500;
  min-height: 50px; padding: 4px 2px; border-radius: 999px;
  transition: color .16s ease, transform .16s ease;
}
.tab__l { max-width: 100%; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab__ico { font-size: 1.05rem; line-height: 1; filter: grayscale(1) opacity(.7); transition: filter .16s ease; }
/* No-JS fallback: the active tab paints its own pill until the indicator is placed. */
.tab.is-active { color: var(--on-navy); background: var(--blue); }
.tabbar__indicator { display: none; }
.tab.is-active .tab__ico { filter: none; }
.tab:active { transform: scale(.95); }

@media (min-width: 960px) {
  .site-header .wrap { max-width: 1240px; padding: 14px 28px 0; }
  .site-header .tabbar {
    position: static; margin-left: auto; box-shadow: none;
    background: var(--glass); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .site-header .tabbar__inner { padding: 4px; }
  .site-header .tabbar__indicator { top: 4px; bottom: 4px; }
  .site-header .tab { flex: none; flex-direction: row; min-height: 34px; padding: 0 15px; font-size: .82rem; font-weight: 400; }
  .site-header .tab.is-active { font-weight: 500; }
  .site-header .tab__ico { display: none; }
  .site-header .tabbar + .site-header__tools { margin-left: 4px; }
  main.has-tabbar { padding-bottom: 64px; }
  footer.site-foot { padding-bottom: 40px; }
}

/* ============================================================================
   Bento dashboard pieces (office Today, staff home, parent home)
   ============================================================================ */
.bento-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 40px; margin: 4px 0 22px; }
.bento-head__main { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bento-hello {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.1rem, 8.5vw, 2.85rem); line-height: 1.05; letter-spacing: -.03em; color: var(--ink);
}
.bento-hello small { display: block; font-size: .95rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 6px; }
.bento-figs { flex: 0 1 auto; max-width: 100%; display: flex; flex-wrap: wrap; gap: 14px 30px; padding-bottom: 2px; }
@media (max-width: 480px) { .bento-figs { gap: 12px 22px; } .bento-figs .bento-fig__n { font-size: 2.4rem; } }
.bento-fig { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.bento-fig__n {
  font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: .9; font-weight: 300;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.bento-fig__n small { font-size: .45em; letter-spacing: -.01em; color: var(--ink-soft); }
.bento-fig__l { font-size: .8rem; color: var(--ink-soft); }
.bento-fig.is-alert .bento-fig__n { color: var(--clay); }

/* Segmented progress pill: each part is sized by its count (flex-grow set
   inline), label above, pill below. Navy = the main count, apricot = now,
   hatched = not yet, outline = out. */
.seg { display: flex; gap: 4px; max-width: 660px; }
.seg__part { flex: 1 1 0; min-width: 52px; display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: inherit; }
.seg__label { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg__pill {
  height: 40px; border-radius: 999px; display: flex; align-items: center; padding: 0 14px;
  font-size: .8rem; white-space: nowrap; overflow: hidden; text-decoration: none;
}
.seg__part--navy .seg__pill { background: var(--blue); color: var(--on-navy); }
.seg__part--apricot .seg__pill { background: var(--marigold); color: var(--blue); }
.seg__part--hatch .seg__pill { background: var(--hatch); color: var(--ink); }
.seg__part--outline .seg__pill { border: 1px solid var(--outline); color: var(--ink); }
.seg__part--alert .seg__pill { background: var(--clay); color: var(--on-navy); }

.bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.bento-pair { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btile {
  background: var(--tile); border-radius: 28px; padding: 18px 20px; min-width: 0;
  display: flex; flex-direction: column; color: var(--ink);
}
a.btile { text-decoration: none; transition: background .15s ease; }
a.btile:hover { background: var(--card); }
.btile__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 34px; }
.btile__title { font-size: 1.05rem; font-weight: 400; color: inherit; }
.btile__go {
  margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); color: var(--ink); text-decoration: none;
  display: grid; place-items: center; font-size: .9rem;
}
.btile__big { margin-left: auto; font-size: 1.85rem; line-height: 1; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.btile__note { font-size: .8rem; color: var(--ink-soft); margin: 8px 0 0; }
.btile--dark { background: var(--navy-tile); color: var(--on-navy); }
.btile--dark .btile__note { color: var(--on-navy-soft); }

/* Dashed row list (rooms, shifts) */
.brows { display: flex; flex-direction: column; }
.brow {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed var(--line); color: inherit; text-decoration: none; min-height: 46px;
}
.brow:last-child { border-bottom: 0; }
.brow__name { flex: 1; min-width: 0; font-size: .95rem; color: var(--blue); overflow-wrap: anywhere; }
.brow__name small { display: block; font-size: .76rem; color: var(--ink-soft); }
.brow__meta { flex: none; font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.brow__meta.is-alert { color: var(--clay); font-weight: 500; }
.brow__meta.is-ok { color: var(--green); }
.brow__time { flex: none; min-width: 130px; font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* The to-do list inside the dark tile */
.todo { display: flex; flex-direction: column; gap: 12px; }
.todo__item { display: flex; align-items: center; gap: 11px; color: var(--on-navy); text-decoration: none; min-height: 40px; }
.todo__ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--on-navy); color: var(--blue); display: grid; place-items: center; font-size: 1rem;
}
.todo__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.todo__t { font-size: .9rem; }
.todo__s { font-size: .74rem; color: var(--on-navy-soft); }
.todo__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-raised); }
.todo__act {
  flex: none; height: 30px; padding: 0 13px; border-radius: 999px; display: flex; align-items: center;
  background: var(--marigold); color: var(--blue); font-size: .8rem; font-weight: 500;
}
.todo__item.is-done .todo__ico { background: var(--navy-raised); color: var(--on-navy-soft); }
.todo__item.is-done .todo__t { color: var(--on-navy-soft); }
.todo__check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--marigold); color: var(--blue); font-size: .7rem;
}
a.todo__item:hover .todo__t { text-decoration: underline; }

/* Ring (time/attendance tracker): --p is the filled percent. */
.ring {
  --p: 0; --size: 132px; --bar: 12px;
  width: var(--size); height: var(--size); border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--marigold) calc(var(--p) * 1%), oklch(0.9 0.018 240) 0);
  display: grid; place-items: center;
}
.ring__face {
  width: calc(var(--size) - var(--bar) * 2); height: calc(var(--size) - var(--bar) * 2); border-radius: 50%;
  background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.ring__n { font-size: 1.75rem; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.ring__l { font-size: .7rem; color: var(--ink-soft); }
.ring--sm { --size: 84px; --bar: 9px; }
.ring--sm .ring__n { font-size: 1.2rem; }

/* Two-tone bar (tuition, storage) */
.tbar { display: flex; gap: 4px; height: 34px; }
.tbar__part { flex: 1 1 0; min-width: 8px; border-radius: 12px; display: flex; align-items: center; padding: 0 11px; font-size: .78rem; white-space: nowrap; overflow: hidden; }
.tbar__part--apricot { background: var(--marigold); color: var(--blue); }
.tbar__part--navy { background: var(--blue); color: var(--on-navy); }
.tbar__part--hatch { background: var(--hatch); color: var(--ink); }
.tbar__part--alert { background: var(--clay); color: var(--on-navy); }

/* Photo-style hero tile (a child on the parent home). Hatched sky stands in
   for a photo; the big initial gives each child their own tile. */
.hero {
  position: relative; display: block; height: 176px; border-radius: 28px; overflow: hidden; text-decoration: none;
  background: repeating-linear-gradient(135deg, oklch(0.87 0.03 230) 0 10px, oklch(0.84 0.035 230) 10px 20px);
}
.hero:nth-child(2n of .hero) { background: repeating-linear-gradient(135deg, oklch(0.9 0.045 60) 0 10px, oklch(0.87 0.05 58) 10px 20px); }
.hero__initial {
  position: absolute; right: 20px; top: -6px; font-size: 8rem; line-height: 1; font-weight: 200;
  color: oklch(1 0 0 / 0.6); letter-spacing: -.04em;
}
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(0deg, oklch(0.25 0.05 238 / 0.72), oklch(0.25 0.05 238 / 0));
  display: flex; align-items: flex-end; gap: 10px;
}
.hero__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hero__name { font-size: 1.25rem; color: #fff; }
.hero__sub { font-size: .8rem; color: oklch(0.93 0.018 240); }
.hero__pill {
  flex: none; height: 32px; display: flex; align-items: center; padding: 0 13px; border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.7); color: #fff; font-size: .8rem;
}
.hero__pill.is-in { background: var(--marigold); border-color: var(--marigold); color: var(--blue); }

/* Pill launcher grid (quick actions) */
.pill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.pill-btn {
  min-height: 46px; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  font-size: .88rem; text-decoration: none; text-align: center; transition: background .15s ease;
}
.pill-btn:hover { background: var(--marigold-tint); }
.pill-btn--primary { background: var(--marigold); color: var(--blue); font-weight: 500; box-shadow: none; }
.pill-btn--primary:hover { background: var(--marigold); filter: brightness(.97); }
.pill-btn__n { font-size: .74rem; background: var(--blue); color: var(--on-navy); border-radius: 999px; padding: 1px 7px; }

/* Parent home: one hero tile per child, two up once there's room. */
.parent-kids { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .parent-kids:has(.kid-day + .kid-day) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kid-day { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kid-day:nth-child(2n) .hero { background: repeating-linear-gradient(135deg, oklch(0.9 0.045 60) 0 10px, oklch(0.87 0.05 58) 10px 20px); }

@media (max-width: 480px) {
  .brand { font-size: 1rem; padding: 0 14px; }
  .tabbar__inner:has(.tab:nth-child(8)) .tab { font-size: .6rem; }
}

/* Ticked ring (the reference's time tracker): fine ticks round the outside. */
.ring--ticks::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: repeating-conic-gradient(oklch(0.3 0.018 240 / .55) 0 1deg, transparent 1deg 7deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 4px), #000 calc(50% - 3px));
  mask: radial-gradient(circle, transparent calc(50% - 4px), #000 calc(50% - 3px));
  pointer-events: none;
}
button.btile__go { border: 0; cursor: pointer; font: inherit; }
.bento-pair:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Crossed off: what "Needs you" showed earlier today that's been dealt with. */
.todo__item.is-crossed .todo__t { text-decoration: line-through; }
.todo__tick { border: 0; padding: 0; cursor: pointer; font: inherit; }
button.todo__mark.todo__tick:hover { background: var(--marigold); }
.todo__edit { display: inline-block; margin-top: 14px; font-size: .78rem; color: var(--on-navy-soft); }
.todo__edit:hover { color: var(--on-navy); }

/* ============================================================================
   Sage + hairline — Brightside design spec v1.
   Loaded last so it re-points the tokens every rule above reads. The rules:
   a cool sage ground; light tiles with a 1px navy hairline and no shadow; one
   dark tile per screen; colour carries state only (navy = main count, apricot
   = now / done / the one primary action, hatched = not yet, outline =
   excluded); no red — warnings are an amber-brown text tone, and the alert
   colour is only ever the 8px unread dot; no emoji, nothing under 11px.
   ============================================================================ */
:root {
  --paper: oklch(0.97 0.014 145);
  --ground: linear-gradient(160deg, oklch(0.97 0.014 145) 0%, oklch(0.94 0.03 165) 50%, oklch(0.91 0.04 220) 100%);
  --tile: oklch(0.995 0.005 150 / 0.82);
  --card: oklch(0.995 0.005 150);        /* solid tile — ring faces, popovers */
  --raised: #fff;                        /* icon circles, chips, buttons on a tile */
  --glass: oklch(1 0 0 / 0.55);
  --hairline: oklch(0.3 0.055 238 / 0.22);
  --hairline-dark: oklch(0.2 0.05 238);
  --line: oklch(0.85 0.018 240);         /* dashed dividers */
  --outline: oklch(0.6 0.018 240);
  --ink-2: oklch(0.42 0.03 238);         /* labels over pills, metric captions */
  --ink-soft: oklch(0.45 0.018 240);     /* row meta, timestamps */
  --navy-raised: oklch(0.39 0.05 238);
  --open-check: oklch(0.42 0.03 238);
  --on-navy-soft: oklch(0.7 0.018 240);
  --on-navy-done: oklch(0.6 0.018 240);
  --clay: oklch(0.5 0.13 60);            /* warning text — the spec has no red */
  --clay-tint: oklch(0.96 0.03 80);
  --alert-dot: oklch(0.62 0.18 35);      /* the unread dot, and nothing else */
  --green: var(--blue);                  /* no new hues: "ok" reads in navy */
  --green-tint: var(--raised);
  --icon-fill: #F7B68C;
  --shadow-sm: none;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (min-width: 960px) {
  :root { --ground: linear-gradient(135deg, oklch(0.97 0.014 145) 0%, oklch(0.94 0.03 165) 50%, oklch(0.91 0.04 220) 100%); }
}

/* Icons (core/icons.py): navy line over the soft fill. */
.bico { display: block; flex: none; color: var(--blue); }
.bico__fill { fill: var(--icon-fill); }

/* Tiles: the hairline does the work — no shadows, no coloured fills. */
.btile, .card, .tile, .trip-row, .stat, .kid { border: 1px solid var(--hairline); box-shadow: none; }
.card, .tile, .trip-row, .stat, .kid { background: var(--tile); }
.btile--dark { border-color: var(--hairline-dark); }
.tile:hover, .trip-row:hover, a.stat:hover, a.btile:hover { box-shadow: none; transform: none; background: var(--card); }
.btile__title { font-size: 17px; }
@media (max-width: 480px) { .btile__title { font-size: 15.5px; } }

/* Buttons: apricot is the one primary action; white is secondary; outline is quiet. */
.btn--primary { background: var(--marigold); color: var(--blue); font-weight: 500; box-shadow: none; }
.btn--primary:hover { background: var(--marigold); filter: brightness(.97); }
.btn--sun { box-shadow: none; }
.btn--ghost { background: transparent; border: 1px solid var(--outline); color: var(--ink); }

/* Statuses: "ok" in navy, warnings as amber-brown text or an outline — never a red fill. */
.flash--ok { background: var(--raised); border: 1px solid var(--hairline); color: var(--blue); }
.flash--err { background: var(--clay-tint); border: 1px solid var(--clay); color: var(--clay); }
.seg__part--alert .seg__pill, .tbar__part--alert { background: transparent; box-shadow: inset 0 0 0 1px var(--clay); color: var(--clay); }
.brow__meta.is-ok { color: var(--ink-2); }
.choice .go:has(input:checked) { border-color: var(--blue); background: var(--raised); color: var(--blue); }
.choice .nogo:has(input:checked) { border-color: var(--clay); background: var(--raised); color: var(--clay); }
.stat--alert { border-color: var(--clay); background: var(--tile); }

/* Segmented pill: 40 tall on desktop, 34 on phones; labels in the secondary tone. */
.seg__part { min-width: max(52px, 12%); }
.seg__label { font-size: 13px; color: var(--ink-2); }
@media (max-width: 640px) { .seg__pill { height: 34px; } .seg__label { font-size: 12px; } }
.bento-fig__l { font-size: 13px; color: var(--ink-2); }
@media (max-width: 480px) { .bento-fig__l { font-size: 11.5px; } }

/* The dark "needs you" tile. */
.todo__t { font-size: 13.5px; }
.todo__s { font-size: 11px; }
.todo__ico { color: var(--blue); }
.todo__ico .bico { width: 20px; height: 20px; }
.todo__mark { background: var(--open-check); }
.todo__item.is-done .todo__ico { background: var(--navy-raised); color: var(--on-navy); --icon-fill: oklch(0.5 0.05 238); }
.todo__item.is-done .todo__t { color: var(--on-navy-done); }
.todo__act.is-alert { background: var(--marigold); color: var(--blue); }
.todo__more > summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--on-navy-soft); padding: 2px 0; }
.todo__more > summary::-webkit-details-marker { display: none; }
.todo__more[open] > summary { display: none; }
.todo__more > .todo { margin-top: 12px; }

/* Photo tiles: real photos, or striped sky with a small mono label until one exists. */
.hero, .kid-day:nth-child(2n) .hero, .hero:nth-child(2n of .hero) {
  background: repeating-linear-gradient(135deg, oklch(0.87 0.03 230) 0 10px, oklch(0.83 0.035 230) 10px 20px);
}
.hero__ph { position: absolute; top: 16px; left: 18px; font-family: var(--font-mono); font-size: 11px; color: oklch(0.36 0.04 235); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__name { font-size: 20px; }
.hero__sub { font-size: 12.5px; }
.hero__pill.is-in { background: var(--marigold); border-color: var(--marigold); color: var(--blue); }

/* Small text never below 11px. */
.rkid__state { font-size: 11px; }

/* ---------- Navigation ----------
   Phone: a glass pill floating 18px from the edges, 58 tall, four equal
   word-only tabs, the active one navy. Desktop: the same tabs in a glass
   track in the top bar, then Settings, the bell and the avatar. */
.brand { border-color: var(--outline); color: var(--blue); }
.tabbar {
  left: 18px; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: oklch(1 0 0 / 0.75); box-shadow: none; border: 1px solid var(--hairline);
}
.tabbar__inner { padding: 4px; }
.tabbar__indicator { top: 4px; bottom: 4px; }
.tab { min-height: 48px; font-size: 13px; font-weight: 400; flex-direction: row; }
.tab.is-active { font-weight: 500; }
.tab__ico { display: none; }
.tabbar__inner:has(.tab:nth-child(8)) .tab { font-size: 13px; }
main.has-tabbar { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 959px) {
  .tab--wide { display: none; }
  .site-header .settings-pill { display: none; }
}
@media (min-width: 960px) {
  .tab--more { display: none; }
  .site-header .tabbar { border: 0; }
  .site-header .tab { font-size: 13px; }
}

.bell, .avatar {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; cursor: pointer;
}
.bell { background: var(--glass); color: var(--blue); }
.bell .bico { color: var(--blue); }
.bell__dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--alert-dot); }
.avatar { background: oklch(0.86 0.04 230); color: var(--blue); font-size: 14px; font-weight: 500; list-style: none; }
.avatar::-webkit-details-marker { display: none; }
@media (max-width: 480px) { .bell, .avatar { width: 38px; height: 38px; } .site-header .link-quiet { height: 38px; } .brand { height: 38px; } }
.avatar-menu { position: relative; flex: none; }
.avatar-menu__pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px;
  display: flex; flex-direction: column; padding: 8px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--hairline);
}
.avatar-menu__name { padding: 8px 12px 6px; font-size: 13px; color: var(--ink-2); }
.avatar-menu__item { padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 14px; }
.avatar-menu__item:hover { background: var(--raised); }

/* A plain list of destinations (staff "More"). */
.menu-list { padding: 6px 16px; }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.menu-row:last-child { border-bottom: 0; }
.menu-row__ico { width: 40px; height: 40px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; flex: none; }
.menu-row__t { display: flex; flex-direction: column; font-size: 15px; }
.menu-row__t small { font-size: 12.5px; color: var(--ink-2); }

/* Schedules: one surface, no pastel rotation. */
.sched-item--a, .sched-item--b, .sched-item--c, .sched-item--d { background: var(--tile); border-color: var(--hairline); }

.meal-card--breakfast .meal-card__head, .meal-card--lunch .meal-card__head, .meal-card--snack .meal-card__head { background: none; }
.meal-card__ico { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; }

/* ============================================================================
   Messages — the "Reactions & DM" screen, v1. One conversation per family,
   with the office. Their bubbles are paper with a hairline, yours are navy;
   reactions are the five drawn icons, never emoji.
   ============================================================================ */
:root { --peach-tint: #FDE6D4; --peach-line: #E9A378; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bico__paper { fill: var(--raised); stroke: none; }

.dm { display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--hairline); border-radius: 28px; overflow: hidden;
  height: clamp(480px, calc(100dvh - 150px), 860px); }
.dm-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px 12px 8px; border-bottom: 1px solid var(--hairline); }
.dm-head__back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--blue); border-radius: 50%; }
.dm-head__back:hover { background: var(--raised); }
.dm-head__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--peach-tint); color: var(--blue); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.dm-head__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dm-head__name { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dm-head__name:hover { text-decoration: underline; }
.dm-head__sub { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dm-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 10px; background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain; }
.dm-list > :first-child { margin-top: auto; }
.dm-day { align-self: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 4px 0; }
.dm-empty { margin: auto; max-width: 300px; text-align: center; color: var(--ink-2); font-size: 14px; }
.dm-earlier { align-self: center; }
.dm-poll { display: none; }

.dm-msg { display: flex; flex-direction: column; gap: 4px; }
.dm-msg__col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 82%; }
.dm-msg--me .dm-msg__col { align-items: flex-end; align-self: flex-end; }
.dm-bubble { display: block; text-align: left; font: inherit; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty;
  padding: 10px 14px; margin: 0; color: var(--ink); background: var(--raised); border: 1px solid var(--hairline); border-radius: 20px 20px 20px 6px; }
.dm-msg--me .dm-bubble { background: var(--blue); color: var(--on-navy); border-color: var(--blue); border-radius: 20px 20px 6px 20px; }
button.dm-bubble { cursor: pointer; }
button.dm-bubble:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dm-msg.is-hidden .dm-bubble { text-decoration: line-through; opacity: .55; }
.dm-about { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 0 4px; }
.dm-time { font-size: 11px; color: var(--ink-soft); padding: 0 4px; }
.dm-hide { margin: -2px 0 0; }
.dm-hide__b { border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.dm-tags { padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--hairline); }
.dm-filter { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--raised); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.dm-filter.is-on { background: var(--blue); border-color: var(--blue); color: var(--on-navy); font-weight: 500; }

.dm-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 0; }
.dm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 500;
  color: var(--blue); background: var(--raised); border: 1px solid var(--hairline); cursor: pointer; min-height: 24px; }
.dm-pill.is-mine { background: var(--peach-tint); border-color: var(--peach-line); }
.dm-pill:disabled { cursor: default; }
span.dm-pill { cursor: default; }

.dm-picker { align-self: flex-start; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--hairline); box-shadow: 0 10px 24px -12px oklch(0.3 0.04 240 / 0.4); }
.dm-picker[hidden] { display: none; }
.dm-msg--me .dm-picker { align-self: flex-end; }
.dm-picker__b, .post-react__b { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: transparent; color: var(--blue); cursor: pointer; }
.dm-picker__b:hover, .post-react__b:hover { background: var(--raised); }
.dm-picker__b.is-on, .post-react__b.is-on { background: var(--peach-tint); }

.dm-notice { margin: 0; padding: 10px 16px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--hairline); background: var(--card); }
.dm-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hairline); background: var(--card); }
.dm-notice + .dm-compose { border-top: 0; padding-top: 2px; }
.dm-compose__input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: 22px; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); }
.dm-compose__input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.dm-compose__about { height: 44px; max-width: 30%; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 22px; font: inherit; font-size: 14px; color: var(--ink); background: var(--raised); }
.dm-compose__send .bico { color: var(--on-navy); }
.dm-compose__send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--on-navy); cursor: pointer; }
.dm-compose__send:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dm-readonly { margin: 0; padding: 14px 16px; font-size: 14px; color: var(--clay); border-top: 1px solid var(--hairline); background: var(--card); }
.dm-foot { margin: 0; padding: 10px 16px 14px; font-size: 12.5px; color: var(--ink-soft); background: var(--card); }
/* On a phone the conversation is the whole screen, like the mock: no
   floating tab bar over the compose box — the back arrow leads out. */
@media (max-width: 560px) {
  .page-dm .tabbar, .page-dm .site-foot { display: none; }
  .page-dm main, .page-dm main.has-tabbar { padding: 0; }
  .page-dm main .wrap { padding-left: 0; padding-right: 0; }
  .dm { border-radius: 0; border: 0; border-top: 1px solid var(--hairline); height: calc(100dvh - 92px); max-height: none; }
  .dm-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* Reactions under an activity post. */
.post-react { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.post-react__row { display: flex; gap: 2px; margin: 0; }
.post-react__pills { margin: 0; align-items: center; }
.post-react__who { font-size: 12px; color: var(--ink-2); margin-left: 4px; }

/* The office inbox. */
.inbox-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .inbox-grid { grid-template-columns: 1fr; } }
.inbox-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.inbox-search .office-input { flex: 1 1 200px; min-width: 0; }
.inbox-search__check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.inbox { display: flex; flex-direction: column; }
.inbox__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.inbox__row:last-child { border-bottom: 0; }
.inbox__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--peach-tint); display: grid; place-items: center; font-weight: 600; color: var(--blue); }
.inbox__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.inbox__name { font-size: 15px; }
.inbox__name small { font-size: 12px; color: var(--ink-2); }
.inbox__row.is-unread .inbox__name { font-weight: 600; }
.inbox__snip { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.inbox__time { font-size: 12px; color: var(--ink-soft); }
.inbox__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alert-dot); }

/* Reply to a notification: the button on the card, the quote in the thread. */
.notif__reply { position: absolute; right: 10px; bottom: 10px; z-index: 2; text-decoration: none; display: inline-flex; align-items: center; }
.notif--reply .notif__body { padding-bottom: 52px !important; }
.dm-quote { display: flex; flex-direction: column; gap: 1px; max-width: 100%; padding: 6px 10px; border-left: 3px solid var(--peach-line);
  border-radius: 4px 12px 12px 4px; background: var(--raised); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.35; }
a.dm-quote:hover { background: var(--peach-tint); }
.dm-quote__l, .dm-replying__l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.dm-replying { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; background: var(--card); border-top: 1px solid var(--hairline); }
.dm-replying__t { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--peach-line); padding-left: 8px; }
.dm-replying__x { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-2); text-decoration: none; min-height: 44px; }
.dm-replying + .dm-compose { border-top: 0; }

/* The chat button beside the bell. */
.chat-btn { position: relative; }

/* Notifications on this device (web push). */
.push-card { margin-bottom: 18px; }
.push-card__status { margin: 0 0 10px; }
.push-card__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.push-card__acts .btn { width: auto; padding: 0 20px; }
.push-card__acts [hidden] { display: none; }
.push-card__devices { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.push-card__devices summary { cursor: pointer; }
.push-card__devices ul { list-style: none; margin: 8px 0 0; padding: 0; }
.push-card__devices li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.push-card__devices li:last-child { border-bottom: 0; }
.push-card__devices small { color: var(--ink-soft); }
.push-card__devices form { margin: 0; }

/* The demo landing page. */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 8px; }
.demo-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--tile);
  border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.demo-card:hover { background: var(--card); border-color: var(--blue); }
.demo-card__ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--raised); display: grid; place-items: center; }
.demo-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.demo-card__t { font-size: 15px; font-weight: 500; }
.demo-card__s { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* Photos in messages. */
.dm-photo { display: block; max-width: 260px; border-radius: 20px 20px 20px 6px; overflow: hidden; border: 1px solid var(--hairline); background: var(--raised); }
.dm-msg--me .dm-photo { border-radius: 20px 20px 6px 20px; }
.dm-photo img { display: block; width: 260px; max-width: 100%; height: auto; }
.dm-msg.is-hidden .dm-photo { opacity: .45; }
.dm-react-b { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--hairline); background: var(--raised); color: var(--blue); border-radius: 999px; padding: 2px 10px 2px 6px; font: inherit; font-size: 12px; cursor: pointer; min-height: 28px; }
.dm-compose__cam { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--hairline); color: var(--blue); cursor: pointer; }
.dm-compose__cam:focus-within, .dm-compose__cam:hover { background: var(--peach-tint); }
#dm-photo:focus-visible + * , .dm-compose__cam:has(+ #dm-photo:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.dm-photo-picked { margin: 0; padding: 0 16px 10px; font-size: 13px; color: var(--ink-2); background: var(--card); }

/* ============================================================================
   "There's more" cues on tiles (Tile details, turn 2), by kind of click:
   - the tile, or a link inside it, opens a page → a quiet labelled pill that
     says what's there ("Open", "2 new", "Roster") and fills navy on hover (2d)
   - something unread behind it                 → the pill turns apricot, and
     the tile wiggles now and then until it's read (2h)
   - detail that fits a picture                 → a thin strip of it (2c)
   ============================================================================ */
.btile__go, .btile__link {
  margin-left: auto; flex: none; height: 30px; width: auto; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
  font: inherit; font-size: .8rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btile__go .bico, .btile__link .bico { color: inherit; transition: transform .25s ease; }
a.btile:hover .btile__go, a.btile__head:hover .btile__go, .btile__link:hover, .btile__link:focus-visible, button.btile__go:hover {
  background: var(--blue); border-color: var(--blue); color: var(--on-navy);
}
a.btile:hover .btile__go .bico, a.btile__head:hover .btile__go .bico, .btile__link:hover .bico { transform: translateX(2px); }
.btile__go.is-new { background: var(--marigold); border-color: var(--marigold); color: var(--blue); }
button.btile__go { cursor: pointer; padding: 0; width: 30px; justify-content: center; }   /* an icon-only action */
/* Two tiles across a phone: no room for a word beside the title, so the
   pill keeps its arrow (and a count, when there is one) and drops the rest. */
@media (max-width: 520px) {
  .bento-pair .btile__go { padding: 0 9px; gap: 4px; }
  .bento-pair .btile__go-t { display: none; }
}
.btile__title { min-width: 0; }
.btile--dark .btile__go, .btile--dark .btile__link { border-color: var(--hairline-dark); color: var(--on-navy-soft); }

/* 2h. Only on tiles with something unread; it stops once it's been read. */
.btile--nudge { transform-origin: 50% 100%; animation: tile-nudge 5s cubic-bezier(.3,.7,.4,1) 1.2s infinite; }
@keyframes tile-nudge {
  0%, 10%, 100% { transform: rotate(0); }
  2% { transform: rotate(-2.2deg); } 4% { transform: rotate(1.8deg); }
  6% { transform: rotate(-1deg); }   8% { transform: rotate(.5deg); }
}

/* 2c. How much of the meal went, in miniature. */
.tile-strip {
  display: flex; height: 6px; margin-top: 10px; border-radius: 999px; overflow: hidden;
  background: repeating-linear-gradient(135deg, oklch(0.75 0.02 240) 0 3px, oklch(0.95 0.01 240) 3px 6px);
  transition: height .25s cubic-bezier(.2,.8,.2,1);
}
a.btile:hover .tile-strip { height: 10px; }
.tile-strip__fill { border-radius: 999px; background: var(--blue); }
.tile-strip__fill--all { width: 100%; }
.tile-strip__fill--most { width: 75%; }
.tile-strip__fill--some { width: 40%; }
.tile-strip__fill--none { width: 0; }

@media (prefers-reduced-motion: reduce) {
  .btile--nudge { animation: none; }
  .btile__go, .btile__link, .btile__go .bico, .btile__link .bico, .tile-strip { transition: none; }
}
