/* THE DAYCARE SOFTWARE'S LOOK — « Blocs de bois » (daycare/START.md). The custom properties below carry the names and values of
 * daycare/design-system/tokens.json (test/daycare-tokens.test.ts holds them equal); the rules of each piece are in
 * daycare/design-system/components/<Name>/README.md. One file for every page of /garderie. A value that is not a token here is a defect: compare a
 * built screen with its drawing in daycare/screens/ side by side, at 1440 and 390, in both languages. */

:root {
  --ground: #F5F3EE;   /* paper: the page */
  --surface: #FFFFFF;     /* cards, fields */
  --sunk: #EBE8E1;     /* side menu, quoted blocks, done rows */
  --ink: #1E2A4A;      /* night blue: text, the current menu item */
  --ink-2: #46506B;     /* secondary text */
  --ink-3: #5E6781;     /* labels, placeholders */
  --line: #DAD6CC;     /* dividers (decoration) */
  --line-strong: #7C8196;    /* field and control borders (3:1) */
  --action: #2747C7;      /* pencil blue: the one main action, links */
  --action-deep: #1E3AA8;     /* blue for text on the tint */
  --action-soft: #E4E9FB;     /* blue tint: chosen */
  --alert: #B3211B;      /* allergies, alerts, the one red button */
  --ok: #17603D; --ok-soft: #DDEFE4;
  --wait: #6B4300; --wait-soft: #FBE9C6;
  --bad: #9A1B16; --bad-soft: #FADFDC;
  --info: #1E3AA8; --info-soft: #E4E9FB;
  --idle: #46506B; --idle-soft: #EBE8E1;
  --daycare: #0E6B5E;  /* the daycare's own colour (Settings): its mark, the parent's pages, the printed pages */
  --daycare-ink: #FFFFFF;
  --daycare-soft: #DCEEEA;
  --block-circle: #1F8A5B; --block-square: #B07C00; --block-diamond: #7B4FD0; --block-triangle: #D9601A; --block-arch: #D03E82;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-text: Figtree, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-control: 10px; --radius-card: 14px; --radius-dialog: 20px; --radius-pill: 999px; --radius-meter: 3px;
  --control: 40px; --control-touch: 44px; --control-filter: 36px; --control-phone: 48px; --control-main: 52px; --control-call: 56px;
  --tab-bar: 64px; --chip: 24px; --checkbox: 20px; --icon: 18px; --avatar: 36px; --menu-width: 248px; --page-max: 1240px; --phone-width: 390px;
  --shadow-toast: 0 8px 24px rgba(30, 42, 74, 0.22); --shadow-dialog: 0 16px 40px rgba(30, 42, 74, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--font-text); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
a { color: var(--action); }
a:hover { color: var(--action-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--action); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
/* the page's container takes the focus after a move (for screen readers); it draws no ring: it is not a control */
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* under a finger, everything pressed is at least control-touch; the phone's bigger buttons (48, 52, 56) keep their own */
@media (pointer: coarse), (max-width: 480px) { .t44 { min-height: max(var(--control-touch), var(--h, 0px)); min-width: var(--control-touch); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
svg.ic { flex-shrink: 0; }

/* ---- type ---- */
.h1 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.small { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-control);
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.btn:hover { color: var(--ink); border-color: var(--ink); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--surface); }
.btn.primary:hover { background: var(--action-deep); border-color: var(--action-deep); color: var(--surface); }
.btn.strong { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.btn.chosen { background: var(--action-soft); border-color: var(--action); color: var(--action-deep); }
.btn.danger { background: var(--alert); border-color: var(--alert); color: var(--surface); }
.btn.full { width: 100%; }
.btn.big { --h: var(--control-main); min-height: var(--control-main); font-size: 17px; }
.btn.h48 { --h: var(--control-phone); min-height: var(--control-phone); }   /* Plan-review's decision on a computer: drawn 48 px, 15 px text */
.btn.h44 { --h: 44px; min-height: 44px; }   /* drawn at 44 px on a computer too (Notices' two sends, Forms' « Remind the N parents ») */
.btn.call { --h: var(--control-call); min-height: var(--control-call); font-size: 17px; }
.btn[disabled], .btn[aria-disabled=true] { cursor: not-allowed; background: var(--sunk); color: var(--ink-3); border: 1px dashed var(--line-strong); }
.btn.busy[aria-disabled=true] { cursor: progress; }
.link { font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }

/* ---- chips, badges, labels ---- */
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-wait { background: var(--wait-soft); color: var(--wait); }
.tone-bad { background: var(--bad-soft); color: var(--bad); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-idle { background: var(--idle-soft); color: var(--idle); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.mock { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; border: 1px dashed var(--line-strong);
  color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.allergy { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--bad-soft);
  color: var(--bad); border: 1px solid var(--alert); font-size: 13px; font-weight: 700; white-space: nowrap; }
.glabel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.avatar { border-radius: 50%; background: var(--sunk); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; width: 40px; height: 40px; font-size: 15px; }
.mark { border-radius: 50%; background: var(--daycare); color: var(--daycare-ink); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; flex-shrink: 0; width: 40px; height: 40px; font-size: 17px; overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: cover; }

/* ---- cards, notes, lists ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-control); }
.tile-icon { width: 44px; height: 44px; border-radius: var(--radius-control); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.push { margin-left: auto; }

/* ---- fields ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); font-size: 15px; }
.field textarea { padding: 10px 12px; line-height: 1.45; resize: vertical; }
.field .help { font-size: 13px; color: var(--ink-2); }
.field.error input, .field input[aria-invalid=true] { border: 2px solid var(--alert); }
.field .err { display: flex; gap: 6px; align-items: flex-start; color: var(--bad); font-size: 13px; font-weight: 600; }

/* ---- the direction's shell, on the computer ---- */
.shell { min-height: 100vh; display: flex; }   /* the menu always beside the page: under 761 px the phone shell takes over (app.js isPhoneWidth) */
.side { flex: 0 0 var(--menu-width); width: var(--menu-width); padding: 20px 12px; background: var(--sunk); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.side .who { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.side .who .nm { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.side .nav { display: flex; flex-direction: column; gap: 2px; }
.side .nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-control); font-weight: 600; text-decoration: none; color: var(--ink); }
.side .nav a:hover { background: var(--line); color: var(--ink); }
.side .nav a[aria-current=page] { background: var(--ink); color: var(--surface); }
.side .nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.side .more-title { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 0 12px 4px; }
.side .nav.more a { min-height: 36px; color: var(--ink-2); font-weight: 500; }
.side .nav.more a[aria-current=page] { background: var(--ink); color: var(--surface); font-weight: 600; }
/* her name at the foot: the link to « My account » (SideMenu d-menu__foot, d-menu__me) */
.side .foot { margin-top: auto; padding-top: 4px; border-top: 1px solid var(--line); }
.side .foot a.me { display: flex; align-items: center; gap: 12px; min-height: var(--control); padding: 8px; border-radius: var(--radius-control); color: var(--ink); text-decoration: none; }
.side .foot a.me:hover { background: var(--line); color: var(--ink); }
.side .foot a.me .avatar { width: var(--avatar); height: var(--avatar); background: var(--surface); color: var(--ink); font-size: 13px; }
.side .foot a.me .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side .foot a.me .nm { font-weight: 600; overflow-wrap: anywhere; }
.side .foot a.me .role { font-size: 13px; color: var(--ink-2); }
.side .foot a.me > svg { color: var(--ink-3); }
.side .foot a.me[aria-current=page] { background: var(--ink); color: var(--surface); }
.side .foot a.me[aria-current=page] .role { color: inherit; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 32px; border-bottom: 1px solid var(--line); }
.search { flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink-3); }
.search input { flex: 1; min-width: 0; align-self: stretch; min-height: 38px; border: 0; background: transparent; font-size: 15px; color: var(--ink); }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.top .acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-closed { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-control); border: 1px dashed var(--line-strong);
  color: var(--ink-2); font-size: 13px; font-weight: 600; }
.page { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; max-width: 1240px; width: 100%; }
.page.wide { max-width: none; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.head .ttl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.head .acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 24px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px; text-decoration: none; color: var(--ink-2); font-weight: 600;
  border-bottom: 3px solid transparent; }
.tabs a[aria-current=page] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

/* ---- phones: the educator's (5 places) and the director's (4 places) ---- */
.phone { min-height: 100vh; display: flex; flex-direction: column; font-size: 17px; line-height: 1.4; max-width: 520px; margin: 0 auto; background: var(--ground); }
.phone .pbody { flex: 1; display: flex; flex-direction: column; }
.phone .ptop { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.phone .ptop .mark { width: 32px; height: 32px; font-size: 15px; }
.phone .ptop .nm { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.phone .ptop a, .phone .ptop button { position: relative; border: 0; background: none; padding: 0; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.phone .ptop a .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--ink);
  color: var(--surface); font-size: 13px; font-weight: 700; line-height: 18px; text-align: center; }
.tabbar { position: sticky; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px 8px; }
/* Correction F1 (design-system d-tabbar, PhoneBar README): a word is never cut and never under 13 px; a word that does not fit
 * takes a second line, centred, and the bar grows; the places are set from the top, so the icons always sit on one line
 * (the padding puts a one-line place where the centred one was). */
.tabbar a, .tabbar button { border: 0; background: none; font: inherit; cursor: pointer; flex: 1 1 0; min-width: 0; min-height: 64px; box-sizing: border-box;
  padding: calc((32px - 1.4em) / 2) 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  text-decoration: none; color: var(--ink-2); font-size: 13px; line-height: 1.4; font-weight: 600; text-align: center; overflow-wrap: normal; hyphens: manual; }
.tabbar a .pill, .tabbar button .pill { flex: none; }
.tabbar a .pill, .tabbar button .pill { width: 48px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tabbar a[aria-current=page], .tabbar button[aria-current=page] { color: var(--ink); font-weight: 700; }
.tabbar a[aria-current=page] .pill, .tabbar button[aria-current=page] .pill { background: var(--ink); color: var(--surface); }
.phead { padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-bottom: 1px solid var(--line); }
.phone.edu .phead { padding: 20px 16px 16px; }
.phead .eyebrow { font-weight: 600; }
.phead .eyebrow { font-size: 15px; color: var(--ink-2); }
.phead .h1 { font-size: 28px; }
.ppage { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.phone .btn { --h: var(--control-main); min-height: var(--control-main); font-size: 17px; }
.phone .card .btn { --h: var(--control-phone); min-height: var(--control-phone); }
.phone .tile-icon.big { width: 48px; height: 48px; }
.phone .small { font-size: 15px; }

/* ---- states (daycare/screens/States) ---- */
.skel { background: var(--sunk); border-radius: 999px; height: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--surface); border-radius: var(--radius-card);
  padding: 12px 16px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-toast); z-index: 30; max-width: calc(100% - 32px); }
/* the « Undo » message (Toast): radius-control, its one button with a surface border and a surface focus ring */
.toast:has([data-undo]) { flex-wrap: wrap; gap: 8px 16px; padding: 12px 12px 12px 16px; border-radius: var(--radius-control); font-weight: 600; width: max-content; }
.toast:has([data-undo]) > span { flex: 1 1 180px; min-width: 0; }
.toast button { min-height: var(--control-filter); padding: 0 12px; border: 1px solid var(--surface); border-radius: var(--radius-control); background: transparent;
  color: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
.toast button:focus-visible { outline-color: var(--surface); }
/* under a finger the « Undo » button is control-touch too: `.toast button` above outweighs `.t44` (States: 44 on a phone) */
@media (pointer: coarse), (max-width: 480px) { .toast button.t44 { min-height: var(--control-touch); min-width: var(--control-touch); } }

/* ---- the sign-in page ---- */
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.signin .card { width: 100%; max-width: 400px; padding: 32px; gap: 20px; border-radius: var(--radius-dialog); }
.blocks { display: flex; gap: 10px; }
.signin .brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.signin .field input.tall { min-height: var(--control-touch); }
.signin .btn.primary { --h: var(--control-phone); min-height: var(--control-phone); }
.signin #msg { order: 1; }
.signin .signin-links, .signin .signin-foot { order: 2; }
.signin-msg { margin: 0; font-size: 13px; color: var(--ink-2); }
.signin-msg.bad { color: var(--bad); font-weight: 600; }
.signin-foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--ink-2); }
/* a link that does something on this page (not a page of its own): looks like a link, is a button */
.linkish { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0; border: 0; background: none;
  color: var(--action); font-weight: 600; text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--action-deep); }

/* ---- piece 2: groups, children, the health card (daycare/PIECE-2-SPEC.md §3.4; the drawings Groups, Group, Child, M-group,
 *      M-child, Edu-group, Edu-child; the « to confirm » state of Health-unknown). 3 px (the meter's gap) has no token. ---- */
.card.g12 { gap: 12px; }
.card.g8 { gap: 8px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.gcard .title { display: flex; align-items: center; gap: 12px; }
.gcard .title .h2 { overflow-wrap: anywhere; }
.gcard .foot { margin-top: auto; }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv dt { flex: 0 0 150px; font-size: 13px; color: var(--ink-2); }
.kv dd { margin: 0; flex: 1 1 180px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.meter { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.meter > span { width: var(--mw, 14px); height: 8px; border-radius: var(--radius-meter); border: 1px solid var(--line-strong); background: var(--surface); }
.meter > span.on { background: var(--ink); border-color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.cols > .c-main { flex: 3 1 750px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-left { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-right { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.head-row > .acts { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs a { font-weight: 500; min-height: 24px; display: inline-flex; align-items: center; }
.crumbs span { overflow-wrap: anywhere; }
.h1 .with-mark { display: inline-flex; align-items: center; gap: 12px; }
.head .sub-line, .phead .sub-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tbl-wrap { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; padding: 0 16px 8px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tbl td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .cell-stack { display: flex; flex-direction: column; }
.tbl .nowrap { white-space: nowrap; }
.tbl .cell-stack a { display: inline-flex; align-items: center; min-height: 24px; align-self: flex-start; }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person .col { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.person .nm { font-weight: 600; overflow-wrap: anywhere; }
.person .sub { font-size: 13px; color: var(--ink-2); }
.person .avatar { background: var(--sunk); }
.ulist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.li-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.li-row.first { border-top: 0; }
.li-row .txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li-row .m { font-weight: 600; overflow-wrap: anywhere; }
.li-row .phones { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.li-row .phones a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; white-space: nowrap; }
.li-row .phones .small { overflow-wrap: anywhere; text-align: right; }
.tile-icon.s36 { width: 36px; height: 36px; }
.allergy.lg { min-height: 28px; font-size: 15px; }
.allergy.wrap { white-space: normal; overflow-wrap: anywhere; border-radius: var(--radius-card); padding: 2px 10px; }
.chip.lg { font-size: 15px; min-height: 28px; gap: 6px; }
.chip.lg.tone-sunk { background: var(--sunk); color: var(--ink); white-space: normal; }
.allergy-block { display: flex; gap: 12px; align-items: flex-start; background: var(--bad-soft); color: var(--bad); border: 1px solid var(--alert); }
.allergy-block .col { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.allergy-block .ttl { font-size: 17px; font-weight: 700; }
.allergy-block.k-card { padding: 14px 16px; border-radius: var(--radius-control); }
.allergy-block.k-mphone { padding: 14px 16px; border-radius: var(--radius-card); }
.allergy-block.k-edu { padding: 16px; border-radius: var(--radius-card); border-width: 2px; }
.allergy-block.k-edu .col { gap: 6px; }
.allergy-block.k-mphone .ttl, .allergy-block.k-edu .ttl { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.allergy-block.wait { background: var(--wait-soft); color: var(--wait); border-color: var(--wait); }
/* M-child's note (Corrections F3): the group's name is a link in the sentence, in the note's own colour, underlined; the
 * padding makes it 44 px under a finger without moving the lines */
.allergy-block .grp-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; padding: 12px 0; overflow-wrap: normal; }
.allergy-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-card);
  background: var(--bad-soft); color: var(--bad); border: 1px solid var(--alert); font-weight: 700; font-size: 17px; }
.allergy-banner.wait { background: var(--wait-soft); color: var(--wait); border-color: var(--wait); }
.pback { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; margin-left: -4px; align-self: flex-start; }
.phone.edu .phead.back, .phead.back { padding: 4px 16px 16px; }
.phead .eyebrow-row { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.phead .eyebrow-row .mock, .phead .who-row .mock { margin-left: auto; }
.phead .who-row { display: flex; align-items: center; gap: 12px; }
.phead .who-row .mock { align-self: flex-start; }
.phead .with-mark { display: inline-flex; align-items: center; gap: 10px; }
.phead .h1 { overflow-wrap: anywhere; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pcard.list { padding: 16px 16px 4px; gap: 6px; }
.pcard.rows { padding: 4px 16px; gap: 0; }
.pcard.edu-list { padding: 4px 16px; gap: 0; }
.pcard .head-line { display: flex; align-items: center; gap: 8px; }
.prow { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.prow:hover { color: var(--ink); }
.prow.h64 { min-height: 64px; }
.prow.h72 { min-height: 72px; }
.prow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow .t { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.prow .s { font-size: 15px; color: var(--ink-2); }
.prow .tags { margin-top: 4px; }
.prow > svg:last-child { color: var(--ink-3); }
/* one 1 px line per row: on the link between rows, or on every li of a lined list (Edu-group, as drawn) — never both */
.ulist:not(.lined) > li + li > .prow, .ulist.lined > li { border-top: 1px solid var(--line); }
.btn.call { --h: var(--control-call); min-height: var(--control-call); font-size: 17px; }
.btn.call2 { --h: var(--control-main); min-height: var(--control-main); font-size: 17px; }
.btn.call span, .btn.call2 span { overflow-wrap: anywhere; text-align: center; }
.lockline { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.phone .lockline { font-size: 15px; }
/* ---- the forms drawn after the approval (daycare/BUILD-NOTES.md §5; the drawings Child-health, Group-edit, Child-add, Account,
 *      M-more; forms.js). A field: label above, its message then its help under it. ---- */
.ffield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ffield label { font-weight: 600; }
.ffield input, .ffield select, .ffield textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-height: var(--control); padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-control); background: var(--surface); font-size: 15px; }
.ffield select { padding: 0 10px; }
.ffield textarea { padding: 10px 12px; line-height: 1.45; resize: vertical; }
.ffield input[readonly] { background: var(--sunk); color: var(--ink-2); }
/* a value shown, not edited (My account's sign-in e-mail): its label's weight, and it wraps rather than being cut */
.ffield .flabel { font-weight: 600; }
.ffield .fstatic { padding: 9px 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; min-width: 0; }
.ffield [aria-invalid=true], .fdate [aria-invalid=true], .fage [aria-invalid=true] { border: 2px solid var(--alert); }
.help { font-size: 13px; color: var(--ink-2); }
.help:empty { display: none; }
.ferr { display: flex; gap: 8px; align-items: flex-start; color: var(--bad); font-size: 15px; font-weight: 600; }
.ferr svg { margin-top: 2px; }
.opt { font-weight: 500; color: var(--ink-2); }
.lbl-s { font-size: 13px; color: var(--ink-2); font-weight: 500 !important; }
.fchoice { display: flex; align-items: center; gap: 12px; min-height: 32px; cursor: pointer; }
.fchoice input { width: var(--checkbox); height: var(--checkbox); margin: 0; flex-shrink: 0; }
.fset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.lgd { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.lgd.b { font-weight: 700; }
.lgd.h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.fstack { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.fstack.g14 { gap: 14px; }
.fstack.g8 { gap: 8px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
/* Settings-team: the rules' fields, a little wider than a form's (as drawn) */
.fgrid.tgrid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.fradios { display: flex; flex-wrap: wrap; gap: 4px 28px; min-height: var(--control); align-items: center; }
.fdate { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.fdate input, .fdate select, .fage input, .fage select { max-width: 100%; }
.fages { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fage { display: flex; align-items: flex-end; gap: 8px; }
.fline { border-top: 1px solid var(--line); padding-top: 14px; }
.pset { border-top: 1px solid var(--line); padding: 16px 0 0; }
.fcard .h2 { overflow-wrap: anywhere; }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn.fmain { --h: var(--control-touch); min-height: var(--control-touch); }
.btn.busy[aria-disabled=true] { background: var(--info-soft); color: var(--info); border: 1px solid var(--info); }
.btn.quiet.inline { padding: 0; }
.cols > .c-form { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-aside { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-aside.g { flex-basis: 320px; }
.lead36 { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.intro-line { display: inline; }
.intro-line .link { display: inline; min-height: 0; }
.wrap-any { overflow-wrap: anywhere; }
.h1 .with-mark.wrap { flex-wrap: wrap; }
/* Group-edit: the five blocks, each a choice; the chosen one has the ink border, a bolder name and the check */
.blks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.blk { display: flex; align-items: center; gap: 12px; min-height: 56px; border-radius: var(--radius-control); cursor: pointer; background: var(--surface);
  border: 1px solid var(--line-strong); padding: 10px 14px; }
.blk .col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blk .nm { font-weight: 600; }
.blk.on { border: 2px solid var(--ink); padding: 9px 13px; }
.blk.on .nm { font-weight: 700; }
.blk.off { cursor: not-allowed; background: var(--sunk); border-style: dashed; color: var(--ink-2); }
.blk:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
/* Account: the language, two pills (radios); M-more: two buttons, the chosen one filled */
.acct { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.acct-card { gap: 14px; }
.lpills { display: flex; flex-wrap: wrap; gap: 8px; }
.lpill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--control); border-radius: var(--radius-pill); cursor: pointer; background: var(--surface);
  border: 1px solid var(--line-strong); padding: 0 16px; font-weight: 500; }
.lpill.on { border: 2px solid var(--ink); padding: 0 15px; font-weight: 700; }
.lpill:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.lbtn { min-height: var(--control-phone); padding: 0 14px; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); }
.lbtn.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.phone .btn.pw-btn { --h: var(--control-phone); min-height: var(--control-phone); }
.help-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
/* on the director's phone a form is the computer form reflowed (Q12, Corrections C): its own sizes, not the phone's 17 px */
.phone #fform { font-size: 15px; line-height: 1.45; }
.phone #fform .small { font-size: 13px; }
.phone #fform .btn { --h: var(--control); min-height: var(--control); font-size: 15px; }
.phone #fform .btn.fmain { --h: var(--control-touch); min-height: var(--control-touch); }
.phone #fform .prow .t { font-size: 15px; }
/* under a finger every control of a form is at least control-touch (the rule of .t44, which the sizes above would hide) */
@media (pointer: coarse), (max-width: 480px) {
  .fchoice, .ffield input, .ffield select, .lpill, .phone #fform .btn { min-height: var(--control-touch); }
}
/* the confirmation before what cannot be taken back */
.dlg-back { position: fixed; inset: 0; background: rgba(30, 42, 74, .35); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.dlg { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--radius-dialog); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-dialog); }
.dlg p { margin: 0; color: var(--ink-2); }
.dlg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dlg .ffield { margin-top: 4px; }
@media print {
  .noprint { display: none !important; }
  .page { padding: 0; }
  .tbl-wrap { overflow: visible; }
  .shell { display: block; }
  .head-row .acts, .head .acts, .crumbs, .toast { display: none !important; }
}

/* Health-unknown on a group's page: each child to confirm, its two answers (the drawing Health-unknown) */
.confirm-list .li-row { gap: 10px; }
.confirm-list .li-row:first-child { border-top: 1px solid var(--line); }
.confirm-list .who { flex: 1 1 160px; min-width: 0; }
.confirm-list .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard.confirm-card { gap: 12px; }
.phone .confirm-card .btn { --h: var(--control-phone); min-height: var(--control-phone); }

@media (max-width: 760px) {
  .toast { bottom: calc(var(--tab-bar) + 24px); }
  .top { padding: 12px 16px; }
  .page { padding: 20px 16px 40px; }
}
@media print { .side, .top, .tabbar, .ptop { display: none !important; } body { background: var(--surface); } }

/* ---- PIECE 4a: the team (daycare/PIECE-4-SPEC.md §3.4, with Corrections A11–A14; the drawings Team, Schedule, Pay-prep,
 *      Birthdays, Print-certificate) ---- */
:root { --print-name: 64px; --print-title: 40px; }
.tbl th[scope=row] { text-align: left; font-weight: 400; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; font-size: 15px; color: var(--ink); white-space: normal; }
.tbl .who-col { min-width: 190px; }                     /* the Employee column never collapses (Schedule at 1280, Q17) */
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tfoot td { font-weight: 400; }                     /* Correction A13: only « Total » and the grand total are bold */
.tbl .b700 { font-weight: 700; }
.tbl .muted3 { color: var(--ink-3); }
.tbl td.today, .tbl th.today { background: var(--action-soft); }
.tbl th.today { color: var(--ink); font-weight: 700; border-radius: var(--radius-control) var(--radius-control) 0 0; }
.tbl th .sub { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tbl .cell-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tbl .cell-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.trange .t, .nowrap { white-space: nowrap; }
.planned { color: var(--ink-2); }
.chip.c15 { font-size: 15px; }
/* Schedule: the days' heads and cells */
.tbl.sched th.day { padding: 8px 12px; vertical-align: bottom; }
.tbl.sched td { padding: 12px; }
.tbl.sched th.who-col { vertical-align: bottom; }
/* Pay-prep: rows drawn with 10 px (Correction A13) */
.tbl.pay td, .tbl.pay th[scope=row] { padding-top: 10px; padding-bottom: 10px; }
.tbl.pay td.num, .tbl.pay th.num { padding-left: 12px; }
/* Birthdays' year: rows 8 px with a top line */
.tbl.year td { padding-top: 8px; padding-bottom: 8px; }
.lower2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.lower2.g20 { gap: 20px; }
.week-nav { display: inline-flex; gap: 4px; }           /* Correction A14: the two arrows, 18 px, a 4 px gap */
.btn.sq { width: 40px; padding: 0; }
.date-col { flex: 0 0 92px; display: flex; flex-direction: column; }
.date-col .wd { font-weight: 700; }
.date-col .md { font-size: 13px; color: var(--ink-2); }
.pills-f { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pill-f { min-height: var(--control-filter); padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; }
.pill-f[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.inp { width: 100%; min-height: var(--control); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); font-size: 15px; }
.sel { min-height: var(--control); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); font-size: 15px; }
.sel-field { width: 300px; max-width: 100%; }
.card.g14 { gap: 14px; }
/* Birthdays card 2 (drawn): its two buttons are 44 px at 15 px text, 8 px apart; the message box takes no gap while empty */
.cert-card .row { gap: 8px; }
.cert-card .row .btn { --h: var(--control-touch); min-height: var(--control-touch); }
#cert-msg:empty { display: none; }
.cols > .c-b30 { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-b20 { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Notices (piece 5, §4.3): the preview column grows from 320 px, as drawn (679 + 20 + 426 at 1440); Family keeps 340 */
.cols > .c-b20.c-b20-320 { flex-basis: 320px; }
.zone-row { display: flex; align-items: flex-start; gap: 12px; }
.zone-row .addr { font-weight: 600; overflow-wrap: anywhere; }
.fix { display: flex; flex-direction: column; gap: 10px; }
.fix + .fix { border-top: 1px solid var(--line); padding-top: 12px; }
.phone .tabs { padding: 0 16px; background: var(--surface); }
.phone .tabs a { min-height: 44px; }
/* the certificate: the sheet (letter landscape, 1056 × 816) and its preview */
.garland { display: flex; flex-wrap: wrap; justify-content: center; }
.cert { width: 1056px; min-height: 816px; padding: 40px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.cert .frame { flex: 1; border: 2px solid var(--ink); border-radius: var(--radius-dialog); padding: 36px 56px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; gap: 20px; text-align: center; }
.cert-who { display: flex; align-items: center; gap: 12px; font: 600 20px var(--font-display); }
.cert-lines { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.print-name { margin: 0; font-family: var(--font-display); font-size: var(--print-name); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.print-title { font-family: var(--font-display); font-size: var(--print-title); font-weight: 600; line-height: 1.1; color: var(--daycare); }
.cert-when { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 20px; }
.cert-from { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.sigs { display: flex; gap: 64px; width: 72%; justify-content: center; }
.sigs.one { width: 34%; }   /* the director alone (BUILD-NOTES §5 Q11; Print-certificate-team) */
.sig { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sig .line { width: 100%; border-top: 1px solid var(--ink); }   /* Correction A14: no 40 px above */
.sig .nm { font-weight: 600; }
.cert-mini { border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cert-mini .cm-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cert-mini .cm-big { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.cert-mini .cm-second { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.cert-mini .cm-from { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.cert-box { overflow-x: auto; max-width: 100%; }
.print-only { display: none; }
/* Correction A11: a named page, so piece 2's printed list keeps its own page */
@media print {
  #print-cert { page: cert; }
  body.printing-cert > *:not(#print-cert) { display: none !important; }
  body.printing-cert #print-cert { display: block; }
  body.printing-cert .cert { min-height: 100vh; }
}
@page cert { size: letter landscape; margin: 0; }
/* piece 4: a group's label in the team's lists is 500, 15 px in Team, 13 px under a name (Team, Schedule, Birthdays drawings) */
.tbl.team .glabel { font-size: 15px; font-weight: 500; }
.tbl.sched .glabel, #bday-list .glabel { font-size: 13px; font-weight: 500; }
/* ---- PIECE 4b: Edu-punch (daycare/PIECE-4-SPEC.md §4.6; the drawings Edu-punch and Punch-states) ---- */
.pcard.punch-card { gap: 14px; }
.punch-state { display: flex; flex-direction: column; gap: 4px; }
.punch-state .lbl { font-size: 15px; color: var(--ink-2); }
.punch-state .big { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; }
.btn.punch { width: 100%; min-height: 96px; border-radius: 20px; gap: 12px; background: var(--ink); border: 1px solid var(--ink); color: var(--surface);
  font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; text-align: center; }
.btn.punch:hover { color: var(--surface); border-color: var(--ink); }
/* « Punch in again » after a punch out: a normal secondary button, as Punch-states draws it (52 px, radius 10, Figtree 17/600) */
.btn.punch.again { --h: var(--control-main); min-height: var(--control-main); border-radius: var(--radius-control); gap: 8px; padding: 0 16px;
  font-family: var(--font-text); font-size: 17px; font-weight: 600; line-height: 1.4; background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.punch.again:hover { color: var(--ink); }
/* greyed (outside the zone, location off): Punch-states — a solid border, ink-2 text on sunk, still readable */
.btn.punch[aria-disabled=true] { background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line-strong); }
.punch-state .sub { font-size: 15px; color: var(--ink-2); }
.punch-note { margin: 0; font-size: 15px; color: var(--ink-2); }
.pcard.hours-card { gap: 10px; }
.hours-list > li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); box-sizing: border-box; }
.hours-list .d { flex: 1; min-width: 0; }
.hours-list .d .n { font-weight: 700; }
.hours-list .d .r { display: block; font-size: 15px; color: var(--ink-2); }
.hours-list .d .fx { display: block; margin-top: 4px; }   /* the correction's chip under the times (Punch-states) */
.hours-list .v { font-weight: 700; }
.fix .acts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.phead.edu-punch .eyebrow-row { color: var(--ink); }   /* the drawing: the group's name in ink, 15/600 */
.hours-card .head-row { flex-wrap: nowrap; align-items: center; }   /* the drawing at 320: the title wraps, the total stays beside it */
.hours-card .head-row .h2 { min-width: 0; }
.hours-card .head-row .acts { flex-shrink: 0; }

/* ==== PIECE 4c: the team's boards (Employee-edit, Employee, Schedule-edit), the certificate's two-line « From », the whole year ==== */
.fgrid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; align-items: start; }
.days-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fsep { border-top: 1px solid var(--line); }
.emp-title { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.emp-title .avatar { font-size: 15px; }
.lock-line { display: flex; align-items: center; gap: 8px; }
/* Settings › Punch zone and « Team and pay »: the drawing's column of cards, 960 px at most (the page head keeps the width) */
.tparts { max-width: 960px; }
.tbl.emp-week td, .tbl.emp-week th { padding-top: 12px; padding-bottom: 12px; }
.tbl.sched-edit td.can { padding: 8px; }
/* Schedule-edit: the heads of the days that can be changed are ink and bold (the drawing); their sub-line stays 500 and muted */
.tbl.sched-edit th.can { font-weight: 700; color: var(--ink); }
.cell-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.cell-btn:hover { border-color: var(--ink-2); }
.cell-btn[aria-pressed=true] { background: var(--action-soft); border-color: var(--action); color: var(--action-deep); }
.uncovered .note { color: var(--ink); }
.uncovered .note a { color: inherit; font-weight: 600; }
.cert-from2 { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cert-from2 .lbl { font-size: 15px; color: var(--ink-2); }
.cert-from2 .who { font-weight: 600; overflow-wrap: anywhere; }
.year-month { display: flex; flex-direction: column; gap: 4px; }
.year-month + .year-month { margin-top: 12px; }
.year-month .h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); text-transform: none; }

/* ---- PIECE 5a: the parents' pages (daycare/PIECE-5-SPEC.md §3.4; the drawings Families, Family, Notices, Forms, M-forms,
 *      Print-form, Parent-notice, Parent-sign) ---- */
.b600 { font-weight: 600; }
.row.g8 { gap: 8px; } .row.g12 { gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack.g8 { gap: 8px; } .stack.g16 { gap: 16px; }
.lbl13 { font-size: 13px; font-weight: 600; }
.mt8 { margin-top: 8px; }
.fam-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.fam-tools .search { flex: 1 1 260px; max-width: 380px; }
.pill-f { display: inline-flex; align-items: center; gap: 8px; }
.pill-f .edu { font-weight: 500; color: var(--ink-2); }
.pill-f[aria-pressed=true] .edu { color: var(--surface); }
.pill-f[aria-pressed=true] .pblk { fill: var(--surface); stroke: var(--surface); }
.kids { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.kid { display: inline-flex; align-items: center; gap: 6px; }
.mail-cell { overflow-wrap: anywhere; color: var(--ink-2); }
.fam-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam-cell a { overflow-wrap: anywhere; min-height: 24px; display: inline-flex; align-items: center; }
.fam-foot { gap: 12px; }
.tbl.fam td { vertical-align: middle; }
.fam-parent { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.fam-reach { padding-left: 50px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.fam-reach a { min-height: 24px; display: inline-flex; align-items: center; font-weight: 600; }
.li-row .kid-open { flex-basis: 100%; }   /* Family.dc.html: flush with the avatar */
.li-row.top { border-top: 1px solid var(--line); }
.formlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.formlist a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.formlist a:hover { border-color: var(--line-strong); }
.formlist a[aria-current=true] { background: var(--action-soft); border-color: var(--action); }
.formlist .fl-title { font-weight: 700; overflow-wrap: anywhere; }
.card.pad16 { padding: 16px; }
.forms-cols > .c-list { flex: 1 1 300px; min-width: 0; }
.forms-cols > .c-form2 { flex: 3 1 700px; min-width: 0; }
.form-desc { margin: 0; max-width: 66ch; }
.band { background: var(--sunk); border-radius: 10px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.band-l { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.band-n { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.tbl.forms-t td.act, .tbl.forms-t th:last-child { text-align: right; }
.child-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.child-marks { display: inline-flex; flex-wrap: wrap; gap: 4px; padding-left: 46px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.opened { display: inline-flex; flex-direction: column; gap: 4px; }
.nrow { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.nset .fchoice { min-height: 36px; }
.tpl-sel .sel-field, .tpl-sel .sel { width: 320px; max-width: 100%; }   /* §4.3: the Template select is 320 px */
#nnote:empty { display: none; }   /* empty, it takes no gap of the composer's column */
#ndone { display: flex; flex-direction: column; gap: 8px; }
.confirm-box { border: 1px solid var(--line-strong); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.preview-frame { border: 1px solid var(--line); border-radius: 14px; background: var(--ground); overflow: hidden; }
.preview-frame .ph { background: var(--daycare); color: var(--daycare-ink); display: flex; gap: 10px; align-items: center; padding: 10px 14px; font-family: var(--font-display); font-weight: 600; }
.preview-frame .ph .mark { background: var(--surface); color: var(--daycare); }
.pv-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pv-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pv-p { margin: 0; overflow-wrap: anywhere; }
.cut2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mf-list > li { padding: 12px 0; border-top: 1px solid var(--line); }
.mf-row { display: flex; flex-direction: column; gap: 10px; }
.mf-btns { display: flex; gap: 8px; }
.phone .mf-btns .btn { flex: 1 1 0; --h: var(--control-phone); min-height: var(--control-phone); }
.mf-srow { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.mf-srow .person { flex: 1; }
.mf-list .person .sub { font-size: 15px; }   /* M-forms.dc.html: the subs are 15 px */
.mf-mark { display: inline-flex; flex-shrink: 0; }
.mf-mark.ok { color: var(--ok); } .mf-mark.idle { color: var(--idle); }
.person .sub .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pv-page { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sf-page { display: flex; flex-direction: column; gap: 16px; }
.sf-top { align-items: center; }
.sheet-box { overflow-x: auto; max-width: 100%; }
/* the owner's answer 4: what the signature came from, under the sheet, on the screen only */
.sf-evidence { max-width: 816px; gap: 10px; }
.sf-evidence .h3 { margin: 0; }
.sf-dl { margin: 0; display: flex; flex-direction: column; }
.sf-dl .pair { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.sf-dl .pair dt { flex: 0 0 140px; color: var(--ink-2); }
.sf-dl .pair dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sf-ua { font-size: 13px; }
.sf-ev-note { margin: 0; font-size: 13px; }
@media (max-width: 480px) { .sf-dl .pair { flex-direction: column; gap: 2px; } .sf-dl .pair dt { flex: none; } }

/* the parent's page (views.js), in a phone-width frame on the direction's previews; the same look on /garderie/p (5b) */
.p-frame { width: 390px; max-width: 100%; background: var(--ground); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; font-size: 17px; line-height: 1.4;
  font-variant-numeric: tabular-nums; --daycare-ink: #FFFFFF; }
.p-head { background: var(--daycare); color: var(--daycare-ink); padding: 16px; display: flex; align-items: center; gap: 12px; }
.p-disc { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: 17px;
  background: var(--daycare); color: #FFFFFF; }
.p-disc.on { background: #FFFFFF; color: var(--daycare); }
.p-disc img { width: 100%; height: 100%; object-fit: cover; }
.p-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.p-lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 0; color: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.p-main { padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 20px; }
.p-title { display: flex; flex-direction: column; gap: 8px; }
.p-h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.p-sub, .p-help, .p-foot { font-size: 15px; color: var(--ink-2); }
.p-lead { margin: 0; }
.p-text p { margin: 0 0 16px; overflow-wrap: anywhere; }
.p-text p:last-child { margin-bottom: 0; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 8px; }
.p-h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.p-dl { margin: 0; }
.p-row { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.p-row dt { font-size: 15px; color: var(--ink-2); }
.p-row dd { margin: 0; font-weight: 600; }
.p-set { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.p-legend { font-family: var(--font-display); font-weight: 600; font-size: 20px; padding: 0; margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 60px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 0 16px; }
.choice input { width: 22px; height: 22px; accent-color: var(--daycare); margin: 0; }
.choice:has(input:checked) { border: 2px solid var(--daycare); padding: 0 15px; font-weight: 700; }
.p-field { display: flex; flex-direction: column; gap: 6px; }
.p-field label { font-weight: 700; }
.p-field input { min-height: 52px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font-size: 17px; background: var(--surface); }
.p-btn { min-height: 56px; width: 100%; border: 1px solid var(--daycare); border-radius: 10px; background: var(--daycare); color: var(--daycare-ink); text-decoration: none; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.p-btn[aria-disabled=true] { cursor: default; }
.p-foot p { margin: 0 0 12px; }
.p-tel { color: var(--daycare-text, var(--daycare)); display: inline-flex; align-items: center; font-weight: 700; white-space: nowrap; min-height: 44px; }

/* the parent's own page, /garderie/p (5b): parent.js sets --daycare, --daycare-ink, --daycare-soft, --daycare-text from the
 * daycare's brand (rules.ts brandColours: white text on the colour only where it reads at 4.5 to 1) */
body.p-page { font-size: 17px; line-height: 1.4; }
.p-page .p-wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--ground); }
.p-btn:hover { color: var(--daycare-ink); }
.p-btn[aria-busy=true] { opacity: 0.8; cursor: progress; }
.p-btn2 { min-height: 52px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 0 16px; }
.p-mark { width: 64px; height: 64px; border-radius: 999px; background: var(--daycare-soft); color: var(--daycare-text, var(--daycare)); display: flex; align-items: center; justify-content: center; }
.p-small { margin: 0; font-size: 15px; color: var(--ink-2); }
.p-card-do { padding: 16px; gap: 12px; }
.p-err { margin: 0; display: flex; gap: 6px; color: var(--bad); font-size: 15px; font-weight: 600; }
.p-note { padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.p-note.bad { background: var(--bad-soft); color: var(--bad); }
.p-band { background: var(--wait-soft); color: var(--wait); padding: 10px 16px; font-size: 15px; font-weight: 700; }
.p-copy { overflow-x: auto; max-width: 100%; border-radius: 10px; }
.p-copy:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
/* the parent's copy reflows to the page's width (the paper size is the daycare's print, not the parent's phone) */
.p-copy .sheet { width: 100%; min-height: 0; padding: 24px; border-radius: 10px; }
.p-copy .sheet .lh { flex-wrap: wrap; }
.p-copy .sh-h1 { flex-basis: 100%; text-align: left; font-size: 22px; }
.p-copy .sheet .pair dt { flex-basis: 140px; }
@media (max-width: 480px) {
  .p-copy .sheet { padding: 16px; }
  .p-copy .sheet .pair { flex-direction: column; gap: 2px; }
  .p-copy .sheet .pair dt { flex: none; }
  .p-copy .sh-sig { font-size: 24px; }
}
.p-skel { display: flex; flex-direction: column; gap: 14px; padding: 24px 16px; }
.p-skel .bar { background: var(--sunk); border-radius: 999px; height: 14px; }
.p-skel-head { height: 76px; background: var(--sunk); }

/* Print-form's sheet (#print-form, Letter portrait: 816 × 1056 at 96 dpi) */
.sheet { width: 816px; min-height: 1056px; box-sizing: border-box; padding: 64px; background: #FFFFFF; color: var(--ink); font-size: 15px; line-height: 1.45;
  display: flex; flex-direction: column; border: 1px solid var(--line); }
.sheet .lh { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--sheet-colour); }
.sh-disc { width: 56px; height: 56px; border-radius: 999px; background: var(--sheet-colour); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; flex-shrink: 0; overflow: hidden; }
.sh-disc img { width: 100%; height: 100%; object-fit: cover; }
.sh-who { flex: 1; min-width: 0; }
.sh-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.sh-small { font-size: 13px; color: var(--ink-2); }
.sh-h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; text-align: right; }
.sh-sec { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.sh-28 { margin-top: 28px; gap: 12px; }
.sh-h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.sh-dl { margin: 0; }
.sheet .pair { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.sheet .pair dt { flex: 0 0 180px; color: var(--ink-2); }
.sheet .pair dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sh-child, .sh-group { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-child { gap: 10px; }
.answerbox { border: 2px solid var(--ink); border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.sh-sq { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sigbox { background: var(--ground); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.sh-sig { font-family: var(--font-display); font-weight: 600; font-size: 28px; overflow-wrap: anywhere; }
.sh-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
@page formpage { size: letter portrait; margin: 0; }
@media print {
  #print-form { page: formpage; border: 0; }
  body.printing-form .sf-page, body.printing-form .ppage { padding: 0; gap: 0; }
  body.printing-form .sheet-box { overflow: visible; }
  body.printing-form .phead, body.printing-form .tabbar, body.printing-form .ptop { display: none !important; }
}
.kid-sub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.kid-sub .glabel { font-weight: 600; }
.card .ulist > .fam-parent:first-child, .card .ulist > .li-row:first-child:not(.first) { border-top: 1px solid var(--line); }
.head-row > .with-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

/* ---- piece 5c ---- */
.sh-text p { margin: 0 0 10px; overflow-wrap: anywhere; max-width: 70ch; }
.sh-text p:last-child { margin-bottom: 0; }
.p-by { margin-top: 4px; }
.redbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--bad); font: inherit;
  font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.redbtn:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
.form-foot .push-right { margin-left: auto; }
.gboxes { padding-left: 28px; display: flex; flex-direction: column; gap: 0; }
.gboxes .fchoice { min-height: 40px; margin: 0; }
.gbox { gap: 8px; }
.wait-text { color: var(--wait); }
.n-text { max-width: 66ch; }
.stack.g20 { gap: 20px; }
/* Print-outing-list (#print-form, Letter portrait) */
.ol-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.ol-t th, .ol-t td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
.ol-t thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ol-t th[scope=row] { font-weight: 600; }
.ol-box { width: 52px; }
.ol-box .box { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 4px; }
.ol-mark { display: inline-flex; gap: 6px; align-items: flex-start; }
.ol-mark + .ol-mark { margin-top: 4px; }
.ol-mark svg { flex-shrink: 0; margin-top: 2px; }
.ol-again { margin: 20px 0 0; color: var(--ink-2); }
.ol-frame { margin-top: 16px; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 17px; }
.act-pair { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.sent7 { display: inline-block; min-width: 7em; }
.ol-t th[scope=row], .ol-t td .b600 { white-space: nowrap; }
.ol-frame .b700 { font-weight: 700; }
/* piece 5c-2 (d862988): « From » on two lines, the child's sheet and the mini too */
.cert-from2 .who { display: inline-flex; align-items: center; gap: 10px; }
.cert-mini .cm-from2 { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cert-mini .cm-from2 .lbl { font-size: 13px; color: var(--ink-2); }
.cert-mini .cm-from2 .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }

/* ==== PIECE 6a — Program (daycare/screens/Program.dc.html; PIECE-6-SPEC §4.1) ==== */
.prog-cols > .c-prog { flex: 3 1 700px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.prog-cols > .c-ideas { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.prog-file { gap: 12px; }
.prog-file .pf-txt { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.prog-file .pf-acts { display: inline-flex; flex-wrap: wrap; gap: 12px; }
/* piece 7d-4 (Program-pdf): the held PDF's box (its words wrap under each other, the box on the first line), the card beside it */
.prog-card .pdf-ok { align-items: flex-start; }
.prog-card .pdf-ok input { margin-top: 2px; }
.prog-card .pdf-ok span { min-width: 0; overflow-wrap: anywhere; }
#pdf-note { display: flex; flex-direction: column; gap: 12px; }
#pdf-note:focus { outline: none; }
.pdf-sent .li-row .small { overflow-wrap: anywhere; }
.bank-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.bank-filters .sel-field { width: 200px; max-width: 100%; }
.bank-filters .ffield select { width: 200px; max-width: 100%; }
.bank-filters .push { align-self: flex-end; padding-bottom: 8px; }
.tbl.bank td { padding-top: 10px; padding-bottom: 10px; }
.linkbtn { background: transparent; border: 0; padding: 0; font: inherit; color: var(--action); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn.link { font-weight: 600; }
.gpicks { display: flex; flex-wrap: wrap; gap: 8px; }
.gpick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-control); background: transparent;
  border: 1px solid var(--line-strong); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gpick[aria-pressed=true] { background: var(--surface); border: 2px solid var(--ink); padding: 0 11px; font-weight: 700; }
.gpick:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
.idea-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.idea-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; min-width: 0; overflow-wrap: anywhere; }
.idea-list li + li { border-top: 1px solid var(--line); }
.af-wrap { max-width: 760px; }
.card.g18 { gap: 18px; }
.af-seasons .fchoice { min-width: 120px; }

/* ---- PIECE 6b: the educator's plan (daycare/PIECE-6-SPEC.md §4.6–§4.8; the drawings Edu-ideas, Edu-plan, Edu-plan-sent and
 *      States « No connection, on the educator's phone »). A phone page at any width (her shell). ---- */
.phone.edu .phead.edu-ph.back { padding: 8px 16px 16px; }
.edu-ph .eyebrow-row .gname { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.edu-ph .eyebrow-row .push .mock { margin-left: 0; }
.sm2 { font-size: 15px; color: var(--ink-2); }
.sm2c { font-size: 15px; }
.b700 { font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.steps li .dot { width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong); flex: none; }
.steps li.now { font-weight: 700; color: var(--ink); }
.steps li.now .dot { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ideas .idea { background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ideas .idea.on { border: 2px solid var(--action); padding: 15px; }
.ideas .idea .h2, .item-card .h2 { font-size: 20px; overflow-wrap: anywhere; }
.ideas .idea p { margin: 0; overflow-wrap: anywhere; }
.ideas .idea .pick { margin-top: 4px; }
.phone.edu .ideas .btn, .phone.edu .own-box .btn { --h: var(--control-phone); min-height: var(--control-phone); }
.own-box { border: 1px dashed var(--line-strong); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.own-box .h2 { font-size: 20px; }
.own-box p { margin: 0; }
.ep-bar { margin-top: auto; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ep-bar.col-bar { padding: 12px 16px 16px; }
.ep-bar .row-in { display: flex; align-items: center; gap: 12px; }
.ep-bar .ep-count { flex: 1; min-width: 0; font-weight: 600; }
.phone.edu .btn.ep-send { --h: var(--control-call); min-height: var(--control-call); }
.item-card { gap: 16px; }
.days-f { display: flex; flex-direction: column; gap: 6px; }
.days-f .flab, .ep-f label, .own-f label { font-size: 15px; font-weight: 700; }
.dchips { display: flex; gap: 8px; }
.dchip { flex: 1 1 0; min-width: 0; min-height: var(--control-phone); border-radius: var(--radius-control); font-size: 15px; font-weight: 700; cursor: pointer; padding: 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.dchip[aria-pressed=true] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ffield.ep-f textarea, .ffield.own-f textarea, .ffield.own-f input { padding: 12px; border-radius: var(--radius-control); font-size: 17px; line-height: 1.4; }
.ffield.own-f input { min-height: var(--control-phone); padding: 0 12px; }
.ffield textarea[aria-invalid=true], .ffield input[aria-invalid=true] { border: 2px solid var(--alert); }
.phone.edu .btn.quiet.inline { --h: 44px; min-height: 44px; font-size: 15px; padding: 0; }
.ep-top { padding-bottom: 0; }
.off-card { gap: 12px; }
.off-card .h2 { font-size: 20px; }
.decide { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-card); }
.decide .dh { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.decide .quote { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.srow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--line); box-sizing: border-box; }
.srow .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hrow { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.pcard.list .h2 { font-size: 20px; }

/* ---- PIECE 6c: the direction's planning and her tasks (daycare/PIECE-6-SPEC.md §4.2–§4.4, §4.9, §4.10; the drawings Planning,
 *      Plan-review, M-plan, Edu-tasks, Group, M-group, States) ---- */
.b700 { font-weight: 700; }
.chip.tone-sunk { background: var(--sunk); color: var(--ink); }
.wk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.wk-top .h2 { min-width: 0; }
.wk-counts { font-size: 15px; }
.tbl.wk th, .tbl.wk td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.tbl.wk thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-top: 0; }
.tbl.wk th.wk-g { text-align: left; font-weight: 400; min-width: 150px; }
.tbl.wk .wk-g { display: table-cell; }
.wk-g > span { display: flex; margin-bottom: 6px; }
.wk-g > span:last-child { margin-bottom: 0; }
.wk-gn { align-items: center; gap: 8px; }
.wk-acts { gap: 12px; }
.wk-act { display: flex; flex-direction: column; gap: 2px; }
.tbl.wk td.wk-act-col { text-align: right; white-space: nowrap; }
.wk-box { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-control);
  color: var(--ink-2); max-width: 100%; }
.wk-box > svg { flex-shrink: 0; }
.tbl.wk td.wk-span .ferr { margin-top: 8px; }
.tbl.past td, .tbl.past th { vertical-align: middle; }
/* Plan-review */
.pr-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.pr-gtab { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.pr-gtab[aria-current=page] { border: 2px solid var(--ink); padding: 13px 15px; }
span.pr-gtab { border-style: dashed; color: var(--ink-2); }
.pr-gn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pr-cols > .c-main { flex: 3 1 560px; }
.pr-cols > .c-side { flex: 2 1 340px; }
.pr-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.pr-day { font-family: var(--font-head, inherit); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pr-item .h2 { overflow-wrap: anywhere; }
.pr-how { margin: 0; max-width: 72ch; overflow-wrap: anywhere; white-space: pre-line; }
.pr-idea { background: var(--sunk); border-radius: var(--radius-control); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.pr-idea-t { font-size: 13px; font-weight: 700; }
.pr-mark { margin-top: 4px; }
.pr-f textarea { min-height: 108px; padding: 12px; }
/* M-plan (the phone): the comment's label 700, its help 15 / 21 px, as drawn; Plan-review on a computer keeps 600 and 13 px */
.phone .pr-f label { font-weight: 700; }
.phone .pr-f .help { font-size: 15px; line-height: 21px; }
.tk-cut { margin: 0; font-size: 15px; }
.pr-tasks { color: var(--ink-2); gap: 10px; }
.pr-hist > li.pr-h { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pr-hist > li:empty { display: none; }
.phone .pr-item { gap: 8px; }
.phone .pr-item .h2 { font-size: 20px; }
.mp-bar { margin-top: auto; padding: 12px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.phone .mp-bar .btn.primary { min-height: var(--control-call); }
.phone .mp-bar .btn:not(.primary) { min-height: var(--control-main); }
/* Edu-tasks */
/* one 1 px line under the heading, drawn by the first row's own top line (`.ulist.lined`), never a second one on the heading */
.tk-card .head-line { padding-bottom: 0; }
.tk-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; min-height: 64px; cursor: pointer; }
.tk-box { width: 28px; height: 28px; flex-shrink: 0; margin: 0; accent-color: var(--action); }
.tk-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.tk-t { font-weight: 700; font-size: 17px; }
.tk-row.done .tk-t { text-decoration: line-through; color: var(--ink-2); }
.tk-from { display: inline-flex; align-items: center; gap: 6px; }
/* Group's « This week » */
.gp-list > li.gp-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.gp-next { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.week-nav .btn.sq[aria-disabled=true] { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); cursor: default; }
.gp-prow { align-items: center; }
.gp-prow .gp-chip { flex-shrink: 0; margin-left: auto; }
/* Month-ideas (piece 6d; PIECE-6-SPEC §4.5, Corrections B-C2) */
.mi-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mi-head > .acts { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mi-head .muted { font-size: 15px; }
.mi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.mi-card { gap: 12px; }
.mi-card.mi-sunk { background: var(--sunk); }
.mi-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; }
.mi-top .h2 { min-width: 0; overflow-wrap: anywhere; }
.mi-top .chip { margin-left: auto; }
.mi-d { margin: 0; overflow-wrap: anywhere; }
.mi-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.mi-foot > .acts { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 8px; }
.mi-date { width: 216px; max-width: 100%; }
.mi-date label, .mi-form .field label { font-size: 15px; font-weight: 600; }
.mi-date select, .mi-form .field input, .mi-form .field select, .mi-form .field textarea { border-color: var(--line-strong); border-radius: 10px; min-height: 40px; }
.mi-saved:empty { display: none; }
.mi-form .field + .field { margin-top: 4px; }
.mi-form .mi-date { width: 100%; }
.mi-form .field [aria-invalid=true] { border: 2px solid var(--alert); }

/* ==== piece 7a: Payments and M-payments (daycare/screens/Payments, M-payments; PIECE-7-SPEC §7.1, §7.3) ==== */
.pay-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.pay-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-tile .small.b600 { font-weight: 600; }
.pay-num { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.pay-num.tone-txt-wait { color: var(--wait); }
.pay-num.tone-txt-bad { color: var(--bad); }
.cols > .c-pay-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .c-pay-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pay-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pay-li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.pay-txt { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.pay-late .pay-txt { flex-basis: 220px; gap: 2px; }
.pay-late { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pay-sug { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.pay-sug svg { color: var(--ink-2); margin-top: 3px; }
.pay-bad { font-size: 13px; color: var(--bad); font-weight: 600; }
.pay-btns { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.pay-btns .btn.quiet { padding: 0 4px; }
.pay-under { flex-basis: 100%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pay-ask { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--sunk); border-radius: var(--radius-control); }
.pay-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); min-width: 0; }
.pay-fams { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.pay-fam { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: var(--radius-control); cursor: pointer; }
.pay-fam:has(input:checked) { background: var(--action-soft); }
.pay-fam input { margin-top: 4px; }
.pay-kids { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pay-kids legend { padding: 0; margin-bottom: 6px; }
.pay-kid { display: flex; flex-direction: column; gap: 6px; }
.pay-check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pay-check input { width: 20px; height: 20px; }
.pay-addr .ffield input { max-width: 420px; }
/* M-payments: one card per transfer, the buttons full width (48 px), the primary first */
.pay-m { gap: 10px; }
.pay-m .pay-from { font-size: 20px; overflow-wrap: anywhere; }
.pay-sug-p { margin: 0; }   /* the phone's 17 px, as drawn (M-payments) */
.pay-btns-m { display: flex; flex-direction: column; gap: 10px; }
.pay-btns-m .btn { width: 100%; }
.pay-phead { display: flex; flex-direction: column; gap: 6px; }
.pay-phead .pback { align-self: flex-start; }
.toast-undo { background: transparent; border: 0; color: var(--surface); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 4px; }

/* ---- piece 7b: Statements, Print-statement, Parent-balance, the reminder (PIECE-7-SPEC §7.2, §7.4, §7.9) ---- */
.st-intro { margin: 0; max-width: 66ch; }
.st-check span { white-space: nowrap; }
.st-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.c-st-main { flex: 3 1 660px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.c-st-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.st-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.st-check input { width: 20px; height: 20px; accent-color: var(--action); flex-shrink: 0; margin: 0; }
.st-check input[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.st-kid { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.st-kid + .st-kid { margin-top: 4px; }
.st-due { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
/* B-17: the run card's family names are link-look buttons (.linkbtn's colour and underline); the family chosen shows in the
   Preview's heading, never by a bold row (the drawing has the four names at the same weight) */
.st-pv, .st-runfam { font-size: 14px; text-align: left; }
.st-runfam { font-size: 15px; }
.st-pv[aria-pressed="true"] { font-weight: 700; }
.st-send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.st-preview .st-paper { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.st-band { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.st-disc { width: 32px; height: 32px; border-radius: 999px; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.st-disc img { width: 100%; height: 100%; object-fit: cover; }
.st-pbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.st-amt { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.2; }
.st-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.st-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.st-pframe { max-width: 420px; width: 100%; }
.pay-remind-done { margin-top: 8px; }
.pay-remind-bad { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.pay-rm { flex-basis: 100%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pay-rm:empty { display: none; }
.pay-rm .confirm-box { align-self: stretch; }
.pay-rm .pay-remind-done, .pay-rm .pay-remind-bad { margin-top: 0; }
/* Print-statement (#print-statement, Letter portrait: 816 × 1056 at 96 dpi) */
.ps-page { display: flex; flex-direction: column; gap: 12px; }
.ps-for { border: 0; padding: 0; margin: 0; }
.ps-ttl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ps-dl { margin-top: 24px; }
.ps-tbl { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; }
.ps-tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); }
.ps-tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ps-tbl .num { text-align: right; }
.ps-rm { margin-left: 8px; font-size: 13px; }
.ps-total { display: flex; justify-content: flex-end; margin-top: 24px; }
.ps-box { border: 2px solid var(--ink); border-radius: 12px; padding: 14px 20px; display: inline-flex; align-items: baseline; gap: 24px; font-size: 17px; font-weight: 600; }
.ps-big { font-family: var(--font-display); font-size: 28px; font-weight: 600; white-space: nowrap; }
.ps-how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
@page stmtpage { size: letter portrait; margin: 0; }
@media print {
  #print-statement { page: stmtpage; border: 0; }
  body.printing-statement .sf-page, body.printing-statement .ppage { padding: 0; gap: 0; }
  body.printing-statement .sheet-box { overflow: visible; }
  body.printing-statement .phead, body.printing-statement .tabbar, body.printing-statement .ptop, body.printing-statement .head { display: none !important; }
}
/* Parent-balance */
.pb-card { padding: 16px; gap: 2px; }
.pb-one { padding: 16px; }
.pb-label { font-size: 15px; color: var(--ink-2); }
.pb-amount { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.2; }
.pb-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.pb-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 2px; border-top: 1px solid var(--line); margin-top: 0; }
.pb-lines li + li { margin-top: 10px; }
.pb-num { white-space: nowrap; }
.pb-how { padding: 16px 16px 4px; gap: 4px; }
.pb-steps { list-style: none; margin: 0; padding: 0; }
.pb-step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pb-n { width: 28px; height: 28px; border-radius: 999px; background: var(--daycare-soft); color: var(--daycare-text, var(--daycare)); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-stxt { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.pb-addr { overflow-wrap: break-word; }
.pb-copy { min-height: 48px; font-size: 17px; }
.pb-copied:empty { display: none; }

/* ---- piece 7c: the money on the other boards (PIECE-7-SPEC §7.5–§7.8) ---- */
[data-pay-badge][hidden] { display: none !important; }
.more-row .badge[data-pay-badge] { margin-left: 8px; flex-shrink: 0; }
.fam-tools .fam-seg { flex: 0 0 auto; }
.tbl.fam td.bal { white-space: nowrap; }
.bal-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fpay-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border-radius: var(--radius-control); }
.fpay-wait > svg { flex-shrink: 0; }
.fpay-wait .txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--wait); }
.fpay-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tbl.fpay td, .tbl.cpay td { vertical-align: middle; }
.tbl.fpay td .fp-for { display: block; }
.tbl.fpay td .fp-change { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; }
.fee-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 8px; }
.fee-line .ok-line { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.fee-form { padding-top: 12px; border-top: 1px solid var(--line); }
.fee-form .field input { max-width: 220px; }
.fpay-list .fpay-li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.fpay-list .row.between { justify-content: space-between; gap: 12px; }

/* ==== piece 7d-2: billing (billing.js; daycare/screens Billing, Billing-setup, Closures, Child-billing, Agreement-edit, Family-payers, Payers-edit) ==== */
.bl-cards { display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.bl-card { gap: 16px; }
.bl-index { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bl-index a { font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }
.bl-why { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--info); }
.bl-why svg { flex-shrink: 0; margin-top: 1px; }
.ffield .bl-lockbox, .bl-lockbox { max-width: 420px; border-style: dashed !important; background: var(--sunk) !important; color: var(--ink-2) !important; }
.fchoice.bl-locked { cursor: not-allowed; color: var(--ink-2); }
.fchoice.bl-locked svg { vertical-align: -3px; }
.bl-under { margin: -4px 0 4px 36px; }
.bl-group { gap: 4px; }
.bl-group > .lgd { font-weight: 600; margin-bottom: 4px; }
.bl-sub { margin-left: 36px; display: flex; flex-direction: column; gap: 8px; }
.bl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; align-items: start; }
.bl-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bl-inline label { font-weight: 600; }
.bl-inline input, .bl-inline select { min-height: var(--control); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); font-size: 15px; box-sizing: border-box; }
.bl-inline input[aria-invalid=true] { border: 2px solid var(--alert); }
.bl-static { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.bl-static svg { color: var(--ok); }
.bl-h3 { font-size: 17px; font-family: var(--font-display); font-weight: 600; }
.bl-inform { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-top: 8px; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--ground); box-sizing: border-box; }
.bl-ended td, .bl-ended th { color: var(--ink-2); }
.bl-inline-btn { min-height: 24px; padding: 0 4px; }
.bl-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.bl-typecard { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); cursor: pointer; background: var(--surface); }
.bl-typecard.on { border: 2px solid var(--ink); padding: 15px; }
.bl-typecard input { width: var(--checkbox); height: var(--checkbox); margin: 2px 0 0; flex-shrink: 0; }
.bl-typecard .col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bl-typecard .m { font-weight: 600; }
.bl-confirm { max-width: 560px; border: 2px solid var(--ink); }
.bl-year { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bl-sq { width: 44px; padding: 0; }
.bl-count { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.bl-month { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.tbl .bl-mrow th { padding: 16px 0 8px; border-top: 0; text-align: left; color: var(--ink); }
.bl-ask { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); text-align: left; white-space: normal; max-width: 420px; }
.bl-kv dt { flex: 0 0 160px; }
.bl-kv dd { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bl-signer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl-signer .chip { white-space: normal; text-align: left; }
.bl-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.bl-strip .bl-day { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-control); background: var(--sunk); min-width: 0; }
.bl-strip .bl-day .m { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 400px) { .bl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bl-days { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--sunk); }
.bl-days .tbl-wrap { background: transparent; }
.bl-mnav { gap: 12px; }
.bl-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.bl-actions .bl-red { margin-left: auto; }
.btn.quiet.bl-red { color: var(--bad); }
.bl-cancel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); }
.bl-grid { display: flex; flex-direction: column; }
.bl-segrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.bl-segrow > .m { flex: 0 0 110px; font-weight: 600; }
.bl-seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.bl-seg button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.bl-seg button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.bl-share { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bl-pct { display: inline-flex; align-items: center; gap: 8px; }
.bl-pct input { width: 72px; min-height: var(--control); padding: 0 10px; text-align: right; border: 1px solid var(--line-strong); border-radius: var(--radius-control); font-size: 15px; box-sizing: border-box; }
.bl-pct input[aria-invalid=true] { border: 2px solid var(--alert); }
.bl-total { text-align: right; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.bl-acc { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.bl-acc.first { border-top: 0; padding-top: 4px; }
.bl-accno { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.bl-lines { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--sunk); }
.bl-accset { gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.bl-acclgd { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.nowrap { white-space: nowrap; }
.bl-two.bl-dates { grid-template-columns: repeat(auto-fit, minmax(min(316px, 100%), 1fr)); }
.bl-year { flex-wrap: nowrap; }
.bl-year .h2 { min-width: 0; }
@media (max-width: 400px) { .bl-year .h2 { font-size: 17px; } .bl-year { gap: 8px; } }
.bl-grid > .ffield + .ffield { margin-top: 12px; }

/* ---- PIECE 7d-3: « Add a payment », the receipt, refunds, cheques to deposit (Payment-add, Print-receipt, Payments-more) ---- */
.mp-card { max-width: 860px; gap: 14px; }
.mp-h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.mp-accs { display: flex; flex-direction: column; gap: 8px; }
.mp-acc { display: flex; align-items: center; gap: 12px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 14px; background: var(--surface); cursor: pointer; flex-wrap: wrap; }
.mp-acc.on { border: 2px solid var(--ink); padding: 7px 13px; }
.mp-acc input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.mp-acc-w { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.mp-bal { margin-left: auto; }
.mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; align-items: start; }
.mp-grid > .fset { margin: 0; }
.mp-under { display: flex; flex-direction: column; gap: 6px; padding-left: 32px; }
.mp-lines { display: flex; flex-direction: column; }
.mp-line { display: flex; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; cursor: pointer; }
.mp-line input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.mp-line > span:nth-of-type(1) { flex: 1 1 200px; min-width: 0; }
.mp-owed { margin-left: auto; color: var(--ink-2); }
.mp-left { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mp-left span { color: var(--ink-2); }
.mp-phone .mp-grid { grid-template-columns: minmax(0, 1fr); }
.mp-phone .mp-under { padding-left: 0; }
@media (max-width: 760px) { .mp-grid { grid-template-columns: minmax(0, 1fr); } .mp-under { padding-left: 0; } }
.mp-plinks { padding-top: 4px; padding-bottom: 4px; }
.mp-plink { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.mp-plink > .b600 { flex: 1; }
.mp-plt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.mp-pls { font-size: 15px; color: var(--ink-2); }
.mp-plinks .ulist li + li .mp-plink { border-top: 1px solid var(--line); }
.mp-rf { margin-top: 4px; }
.mp-rlink { color: var(--ink); }
.pay-auto { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); }
.pay-auto svg { flex-shrink: 0; margin-top: 2px; }
/* the receipt (#print-receipt, Letter portrait: 816 × 1056 at 96 dpi) */
.rc-band { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 16px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); border: 2px solid var(--bad);
  font-size: 17px; font-weight: 700; }
.rc-ap { display: flex; justify-content: space-between; gap: 16px; }
.rc-ap + .rc-ap { margin-top: 6px; }
.rc-credit { font-weight: 400; }
.rc-thanks { margin: 32px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
@media print {
  #print-receipt { page: stmtpage; border: 0; }
  body.printing-receipt .sf-page, body.printing-receipt .ppage { padding: 0; gap: 0; }
  body.printing-receipt .sheet-box { overflow: visible; }
  body.printing-receipt .phead, body.printing-receipt .tabbar, body.printing-receipt .ptop, body.printing-receipt .head { display: none !important; }
}
.bl-xrow { display: flex; justify-content: space-between; gap: 12px; }
.bl-xrow + .bl-xrow { margin-top: 4px; }
.bl-annex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 6px 0; border-top: 1px solid var(--line); }
.bl-annex:first-child { border-top: 0; padding-top: 0; }
.bl-kx { margin-top: 8px; }
.bl-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); align-self: stretch; }
.bl-kv dd .bl-xrow, .bl-kv dd .bl-annex { align-self: stretch; }
/* 7d-3: a refund's or a cheque's row (the Late row's look, its own name) */
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pay-row .pay-txt { flex-basis: 220px; gap: 2px; }

/* ==== piece 9a: Today (Main, M-today, Today-states) ==== */
[data-count][hidden] { display: none !important; }
.top .btn .badge { margin-left: 2px; }
.search-wrap { flex: 1 1 280px; max-width: 460px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-wrap .search { max-width: none; flex: 0 0 auto; }
.search-line:empty, .psearch-line:empty { display: none; }
.psearch-line { padding: 6px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.t-plans { display: flex; flex-direction: column; gap: 12px; }
.t-plans .head-row { align-items: baseline; }
.t-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.t-plan { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); text-decoration: none; color: var(--ink); min-width: 0; }
.t-plan:hover { color: var(--ink); border-color: var(--line-strong); }
.t-plan-h { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.t-plan .small { font-size: 13px; }
.t-plan .muted3 { color: var(--ink-3); }
.t-chip { margin-top: 6px; }
.cols.t-cols { align-items: flex-start; }
.cols > .t-wait { flex: 2 1 520px; }
.cols > .t-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.t-sec { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.t-sec .badge { min-width: 24px; height: 24px; }
.card .ulist.t-rows > .li-row:first-child { border-top: 1px solid var(--line); }
.t-lead { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-meter { margin-top: 4px; }
.t-more { padding: 12px 0 4px; }
.t-bad { color: var(--bad); }
.t-none { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.t-none-t { margin: 0; font-weight: 700; font-size: 17px; }
.t-tasks { gap: 0; }
.t-task { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
.t-task input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.t-task.p { min-height: 48px; }
.t-task.p input { width: 24px; height: 24px; }
.t-done { color: var(--ink-2); text-decoration: line-through; }
.t-okslot:empty { display: none; }
.t-form { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.t-form fieldset { border: 0; margin: 0; padding: 0; gap: 4px; }
.t-form .flabel { padding: 0; margin-bottom: 4px; }
.t-form select { max-width: 280px; }
.t-form .t-which { padding-left: 32px; }
.t-form.p .ffield input, .t-form.p .ffield select { min-height: var(--control-phone); max-width: none; font-size: 17px; }
.t-form.p .fchoice { min-height: 44px; font-size: 17px; }
.t-form.p .fchoice input { width: 22px; height: 22px; }
.t-form.p .t-form-btns { flex-direction: column; align-items: stretch; }
.t-form-btns .btn.quiet { padding: 0 4px; }
.t-bd { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.t-bd-top { display: flex; gap: 12px; align-items: flex-start; }
.t-bd-top .txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-bd-top .m { font-weight: 600; overflow-wrap: anywhere; }
.t-people > li { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.t-people .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.t-pcard { padding: 16px; gap: 4px; }
.t-pcard .head-row .acts { font-size: 15px; }
.t-pcard .prow { min-height: 64px; }
.t-pcard .prow .t { font-size: 17px; }
.phone .t-list { padding: 16px; }
.phone .t-list .btn.quiet.inline { font-size: 17px; min-height: 44px; }

/* ---- piece 9b: the Inbox (Inbox, Inbox-more, Inbox-phone), « New message », the educator's Messages (Edu-messages) ---- */
.ib-cols { display: flex; align-items: flex-start; gap: 20px; }
.ib-left { flex: 1 1 380px; min-width: 0; max-width: 440px; }
.ib-right { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ib-single { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.ib-back { margin-bottom: -12px; }
.ib-list { gap: 12px; }
.ib-rows { gap: 4px; }
.ib-row, .ib-team { display: flex; gap: 12px; align-items: flex-start; padding: 11px; border-radius: var(--radius-control); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid transparent; border-top-color: var(--line); box-sizing: border-box; }
.ib-row:hover, .ib-team:hover { color: var(--ink); background: var(--ground); }
.ib-row.on, .ib-team.on { background: var(--action-soft); border-color: var(--action); }
.ib-team { align-items: center; border: 1px solid var(--line); }
.ib-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-col .nm { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ib-row.unread .nm { font-weight: 700; }
.ib-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.ib-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); flex-shrink: 0; }
.ib-when { margin-left: auto; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ib-subj { font-weight: 500; overflow-wrap: anywhere; }
.ib-row.unread .ib-subj { font-weight: 600; }
.ib-prev { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.ib-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ib-chan { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.ib-kept { white-space: normal; border-radius: 12px; padding-top: 2px; padding-bottom: 2px; }
.ib-filters { display: flex; }
.ib-fampill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--action-soft); color: var(--action-deep);
  border: 1px solid var(--action); font: inherit; font-weight: 600; cursor: pointer; }
.ib-fam { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--sunk); color: var(--ink);
  font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.ib-msg .person .sub { overflow-wrap: anywhere; }
.ib-body { display: flex; flex-direction: column; gap: 10px; }
.ib-ro { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.ib-p { margin: 0; max-width: 70ch; overflow-wrap: anywhere; }
.ib-marks { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 4px; border-top: 1px solid var(--line); }
.ib-marks .btn.quiet { padding: 0; }
.ib-marks .ferr { flex-basis: 100%; }
.ib-answer textarea { min-height: 160px; }
.ib-btns { gap: 8px; }
.ib-given { margin: 0; }
.row.g20 { gap: 0 20px; }
.ib-bubbles, .em-thread { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--ground); border-radius: var(--radius-control); }
.em-thread { padding: 0; background: none; gap: 10px; }
.ib-bub { max-width: 88%; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line);
  align-self: flex-start; border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere; }
.ib-bub.mine { background: var(--action-soft); border-color: var(--action-soft); align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.ib-bub .who { font-size: 13px; font-weight: 700; }
.ib-bub .when { font-weight: 500; color: var(--ink-2); }
.ib-bub.e { padding: 12px 14px; gap: 4px; }
.ib-bub.e .who { font-size: 15px; }
.em-open { align-self: flex-start; margin-top: 6px; --h: var(--control-phone); min-height: var(--control-phone); font-size: 17px; }
.em-wait { display: flex; gap: 6px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--wait); }
.em-wait svg { margin-top: 2px; flex-shrink: 0; }
.em-bar { background: var(--surface); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
.em-readers { font-size: 15px; color: var(--ink-2); padding: 8px 12px 0; }
.em-row { padding: 10px 12px; display: flex; align-items: flex-end; gap: 8px; }
.em-row textarea { flex: 1; min-width: 0; box-sizing: border-box; min-height: 52px; padding: 13px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  background: var(--surface); font: inherit; font-size: 17px; line-height: 1.4; resize: none; }
.em-send { width: 52px; height: 52px; border-radius: var(--radius-control); background: var(--action); color: var(--surface); border: 1px solid var(--action);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.em-pills { display: flex; }
.tabbar .pill { position: relative; }
.tb-count { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: var(--ink);
  color: var(--surface); border: 1px solid var(--surface); font-size: 13px; font-weight: 700; line-height: 16px; text-align: center; }
.closed-days > li { padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.closed-days > li.top { border-top: 1px solid var(--line); }
.closed-days .d { font-weight: 700; }
.closed-days .w { font-size: 15px; color: var(--ink-2); }
.fam-msg { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.fam-msg .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fam-msg .m { font-weight: 600; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.nm-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.nm-main { flex: 2 1 420px; min-width: 0; max-width: 640px; }
.nm-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nm-picker { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); }
.nm-picker > li + li { border-top: 1px solid var(--line); }
.nm-opt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border: 0; background: var(--surface); border-radius: 0; text-align: left;
  cursor: pointer; font: inherit; color: var(--ink); }
.nm-opt.first { background: var(--action-soft); border-radius: var(--radius-control); }
.nm-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nm-chosen .chip { white-space: normal; }
.phone .ib-row, .phone .ib-team { min-height: 44px; }
.phone .ib-filters .pill-f { min-height: 44px; }
.phone #ibp .ffield input, .phone #ibp .ffield textarea { font-size: 17px; }
.phone #ibp .ffield input { min-height: var(--control-phone); }
@media (max-width: 1099px) { .ib-left { max-width: none; } }
#ibp fieldset.ffield, .nm-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#ibp fieldset.ffield legend { padding: 0; margin-bottom: 6px; }
.ib-marks .btn { text-align: left; justify-content: flex-start; }
/* Inbox-phone: the phone top's inbox, current while the Inbox is open (a dark tile, its count in white on it) */
.phone .ptop a[data-inbox-link][aria-current=page] { background: var(--ink); color: var(--surface); border-radius: var(--radius-control); }
.phone .ptop a[data-inbox-link][aria-current=page] .dot { border: 1px solid var(--surface); }

/* ---- piece 9c: Settings (Settings, Settings-more; PIECE-9-SPEC §6) ---- */
.set-page { gap: 24px; }
.set-index { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.set-index a { font-weight: 500; min-height: 24px; display: inline-flex; align-items: center; color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.set-index a[aria-current=page] { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--ink); }
.phone .set-index { gap: 4px 20px; }
.phone .set-index a { min-height: 44px; font-size: 17px; }
.set-secs { display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.set-sec { gap: 16px; }
.set-sec h2:focus { outline: none; }
.set-sec h2:focus-visible { outline: 2px solid var(--info); outline-offset: 4px; }
.set-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; align-items: start; }
.set-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
.set-grid3 .nowrap { white-space: nowrap; }
.set-boxes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.set-boxes li { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; min-width: 0; }
.set-boxes li .ic { color: var(--ink-2); flex-shrink: 0; }
.set-logo { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--surface); font-weight: 700; font-size: 17px; overflow: hidden; flex-shrink: 0; background: var(--daycare); }
.set-logo img { width: 100%; height: 100%; object-fit: cover; }
.set-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.set-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); padding: 6px 12px 6px 6px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.set-pill.on { border: 2px solid var(--ink); padding: 5px 11px 5px 5px; font-weight: 700; }
.set-pill .sw { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--surface); }
.set-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.set-mcheck { min-height: 44px; }
.set-acc-tbl td { vertical-align: middle; }
.set-arow { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-arow:first-child { border-top: 0; padding-top: 0; }
.set-zone { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.set-zname { flex: 1 1 280px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ffield input.set-ro { border-style: dashed; background: var(--sunk); }
.set-tpl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-tpl-row.first { border-top: 0; padding-top: 0; }
.phone .set-tpl-row { flex-direction: column; align-items: flex-start; }
.set-use-tbl { max-width: 760px; }
.set-use-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-use-row.first { border-top: 0; padding-top: 0; }
.set-use-row .small { color: var(--ink-2); font-size: 15px; }
.b700 { font-weight: 700; }
.set-ai { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.set-ai .h3 { font-size: 17px; }
.set-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.set-steps li { display: flex; flex-direction: column; gap: 8px; }
.set-steps li::marker { font-weight: 600; }
.set-url { box-sizing: border-box; width: 100%; min-height: var(--control); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--sunk); color: var(--ink); font: inherit; }
.set-conns { margin: 0; }
.set-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-conn.first { border-top: 0; }
.set-ask { flex-basis: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-dialog); }
.btn.set-red { background: var(--alert); border-color: var(--alert); color: var(--surface); }
.btn.set-cannot[aria-disabled=true] { border-style: dashed; background: var(--sunk); color: var(--ink-2); cursor: not-allowed; }
.set-cannot-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.set-sbar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 12px 32px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-toast); }
.set-sbar.ph { bottom: 62px; padding: 8px 16px; }
.set-sbar.ph .btn { width: 100%; min-height: 52px; }
.set-sbar.ph .set-cannot-wrap { width: 100%; }
.set-phead { gap: 6px; }
.set-bl-head { padding-bottom: 0; }
.set-bl { max-width: 1100px; display: flex; flex-direction: column; gap: 16px; }
.phone #set-bl > .ppage { padding-top: 0; }
/* the page's status line takes no room while empty (it stays in place, so a screen reader hears it when it fills) */
.set-page .set-status:empty { margin-top: -24px; }
.phone .set-status:empty { margin-top: -16px; }

/* ==== STAFF SIGNING — the direction's side (daycare/STAFF-SIGNING-SPEC.md §5.6; Staff-docs, M-staff-docs, Staff-doc-add) ====
 * Token values only. No sideways scroll at 1440, 390 and 320: long titles wrap, a count and a date stay on one line. */
.sd-cols > .sd-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sd-cols > .sd-side { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sd-docs > li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sd-docs > li.first { border-top: 0; }
.sd-docs > li.on { background: var(--action-soft); margin: 0 -12px; padding: 12px; border-radius: var(--radius-control); border-top-color: transparent; }
.sd-docs > li.on + li { border-top-color: transparent; }
.sd-docs .txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-doc-t { font-weight: 700; align-self: flex-start; min-height: 24px; overflow-wrap: anywhere; }
.sd-meter { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sd-card h2 { overflow-wrap: anywhere; }
.sd-note { padding: 12px 16px; border-radius: var(--radius-control); background: var(--sunk); display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.sd-big { font-family: var(--font-display); font-size: 20px; font-weight: 600; white-space: nowrap; }
.sd-right, .sd-reminded { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; max-width: 100%; }
.sd-reminded .small { text-align: right; }
.sd-text { border: 1px solid var(--line); border-radius: var(--radius-control); padding: 12px 16px; background: var(--ground); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.mt4 { margin-top: 4px; }
.sd-wait { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.sd-wait + .sd-wait { border-top: 1px solid var(--line); padding-top: 12px; }
.sd-pm { display: flex; flex-direction: column; gap: 4px; }
.sd-pbar { position: sticky; bottom: 77px; z-index: 1; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); margin-top: auto; }
.sd-form > .sd-fmain { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sd-form > .sd-fside { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sd-kinds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sd-kind { flex: 1 1 220px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); padding: 12px 14px; cursor: pointer; }
.sd-kind:has(input:checked) { border: 2px solid var(--ink); padding: 11px 13px; }
.sd-kind input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.sd-kind .col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-kl { display: inline-flex; align-items: center; gap: 8px; }
.sd-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-control); background: var(--ground); }
.sd-file.bad { border: 2px solid var(--bad); }
.sd-fname { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.sd-pick { display: flex; flex-direction: column; }
.sd-pick.in { padding-left: clamp(0px, 4vw, 32px); }
.sd-person { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; border-top: 1px solid var(--line); cursor: pointer; }
.sd-person input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.sd-person .col { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.sd-psub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.sd-mini { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--ground); }
.sd-mini-top { padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sd-mini-t { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sd-mini-b { padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sd-mini-x { color: var(--ink-2); overflow-wrap: anywhere; }

/* ---- STAFF SIGNING, step 2 (daycare/STAFF-SIGNING-SPEC.md §4.3–§4.5; the drawings Staff-sign, Staff-signed, Staff-sign-desk,
 *      Staff-docs-places, Staff-docs-states, Print-staff-doc, Print-staff-doc-text) ---- */
/* her app on a computer: the signing page widens to a column of 1040 px so the PDF reads at its size (Staff-sign-desk) */
.phone.edu.ss-desk { max-width: 1040px; }
.ss-desk .ppage.ss-page { padding: 24px clamp(16px, 3vw, 24px); }
.ss-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.ss-cols > .ss-left { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ss-cols > .ss-right { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ss-one { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.ss-doc, .ss-sign { gap: 12px; }
.ss-sign { gap: 14px; }
.ss-pdf { margin: 0; width: 100%; max-width: 560px; align-self: center; border: 1px solid var(--line-strong); border-radius: 4px; background: #FFFFFF; overflow: hidden; }
.ss-pdf canvas { display: block; width: 100%; height: auto; }
.ss-skel { display: block; width: 100%; aspect-ratio: 8.5 / 11; border-radius: 4px; }
.ss-pager { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-pager .btn { flex: 1 1 140px; }
.ss-full { align-self: flex-start; padding: 0; }
.ss-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 66ch; }
.ss-check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  background: var(--surface); box-sizing: border-box; cursor: pointer; font-weight: 600; }
.ss-check.on { border: 2px solid var(--ink); padding: 0 15px; font-weight: 700; }
.ss-check.bad { border: 2px solid var(--bad); padding: 0 15px; }
.ss-check input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; }
.ss-name { font-size: 17px; min-height: 52px; }
.ss-kept { margin: 0; }
.ss-foot { margin: 0; display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: 15px; }
.ss-foot svg { flex-shrink: 0; margin-top: 2px; }
.ss-dls { margin: 0; display: flex; flex-direction: column; }
.ss-dl { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.ss-dl dt { font-size: 15px; color: var(--ink-2); }
.ss-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ss-taken, .ss-fail { gap: 12px; }
.ss-reminded, .t-rem { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; color: var(--wait); font-weight: 600; }
.ss-reminded svg, .t-rem svg { flex-shrink: 0; margin-top: 2px; }
.ss-disc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 0; border: 0; background: transparent; font: inherit; color: var(--ink);
  text-align: left; cursor: pointer; }
.ss-disc .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-disc .t { font-weight: 700; }
.ss-disc .s { font-size: 15px; color: var(--ink-2); }
.ss-chev { display: inline-flex; color: var(--ink-3); }
.ss-chev.open { transform: rotate(-90deg); }
.ss-dpage .ss-cols { max-width: 1040px; }
/* the direction's side: Team's column, Employee's card, the signed sheet and what is kept with the signature */
.sd-cell { text-decoration: none; }
.sd-emp-give { border-top: 1px solid var(--line); padding-top: 8px; }
.sd-tg { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.sd-read-box { display: flex; align-items: flex-start; gap: 20px; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); }
.sd-thumb { width: 104px; flex-shrink: 0; aspect-ratio: 8.5 / 11; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--sunk); overflow: hidden; }
.sd-thumb canvas { display: block; width: 100%; height: auto; }
.sd-sigsec { break-inside: avoid; }
/* the signed sheet as drawn (Print-staff-doc: padding 52, sections 18 apart): a PDF's sheet fits one Letter page */
.sheet.sd-sheet { padding: 52px; }
.sd-sheet .sh-sec, .sd-sheet .sh-28 { margin-top: 18px; }
.sd-sheet-text p { max-width: 66ch; }
.sd-evid { max-width: 816px; }
@media (max-width: 760px) {
  .sd-read-box { flex-direction: column; }
}
@page staffdoc { size: letter portrait; margin: 0; }
@media print {
  #print-staff-doc { page: staffdoc; border: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  body.printing-staff-doc .sf-page, body.printing-staff-doc .ppage { padding: 0; gap: 0; }
  body.printing-staff-doc .sheet-box { overflow: visible; }
  body.printing-staff-doc .phead, body.printing-staff-doc .tabbar, body.printing-staff-doc .ptop { display: none !important; }
}
.ss-sign .help { font-size: 15px; }
