/* BiteSize website — one ground, Cream (UXUI-Web.md WUX-1). Tokens: DESIGN.md §2 + §2.1, Cream side
   only; no dark/cream theme pair — one definition per component (round 41, D153). */
:root {
  --cream: #FFF3E4; --ink: #2B2118; --fox: #FF7A2F; --fox-deep: #E05E14;
  --mint: #34D399; --mint-dark: #0B8059; --coral: #F87171; --sky: #7DD3FC;
  --sky-dark: #1993CC; --sky-text: #1978A4; --sand: #FFE0BF;
  --warm-mist: #806D5C; --warm-line: #F3E7D8; --fox-hover: #B44A0F;
  --error: #B91C1C; --baseline: #D9C7B2; --gap: #B9A992;
  /* The children page (WEB-67, WEB-87): tints for value chips, the bars' grid, the hatch of untracked time, one spacing scale. */
  --card: #FFFFFF; --soft: #FFF8EF; --fox-tint: #FFE8D6; --mint-tint: #DDF5EA; --err-tint: #FDE4E4; --sky-tint: #E0F2FC;
  --grid: #F1E4D4; --hatch: repeating-linear-gradient(135deg, #D9C7B2 0 3px, #FFFFFF 3px 5px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  /* WUX-10 — the Cream form controls the dark theme never needed */
  --field: #FFFFFF; --field-line: #9A8267; --field-active: var(--sky-dark);
  --disabled: #EFE3D4; --disabled-ink: #B0A08E;
  --radius-card: 24px; --radius-btn: 20px;
  /* the day timeline (WUX-33/34) — kind, not identity; the row label identifies the lane */
  --tl-own: #E05E14; --tl-tracked: #1993CC; --tl-none: #806D5C;
  /* PG-23 design §2 — the log level. Colour is never the only cue: each class adds a glyph and a weight. */
  --lvl-error: var(--error); --lvl-warning: #B45309; --lvl-info: var(--sky-text); --lvl-debug: var(--warm-mist);
  /* kept for the app-side names DESIGN.md still lists; nothing on the web stands on them */
  --mist: var(--warm-mist); --line: var(--warm-line); --line-2: var(--field-line);
  /* CI-27 — no font is fetched from anywhere. Roboto is already on Android and Chrome OS
     (the readers this site is for); every other name is the platform's own face, installed
     before the page loaded. A third-party stylesheet would announce every reader of the
     privacy policy to that third party first — see SecurityHeaders (the CSP names no host). */
  --font-ui: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-ui); font-size: 15px; background: var(--cream); color: var(--ink); }
a { color: var(--fox-hover); } a:hover { color: #A7440E; }
.mono { font-family: var(--font-mono); }
.small { font-size: 12px; }
.page { display: flex; flex-direction: column; gap: 24px; padding: 0 40px 40px 40px; max-width: 1200px; }
.page-title { font-size: 28px; font-weight: 700; margin: 0; }
.h2 { font-size: 18px; font-weight: 700; }
.muted { color: var(--warm-mist); font-size: 13px; }
.err { color: var(--error); }
.card { background: #FFFFFF; border-radius: var(--radius-card); padding: 24px 28px;
        display: flex; flex-direction: column; gap: 16px; }
.card-flush { padding: 0; overflow: hidden; gap: 0; }
.btn { border: none; border-radius: var(--radius-btn); padding: 11px 24px; font: inherit;
       font-size: 14px; font-weight: 700; cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--fox); color: var(--ink); }
.btn-secondary { background: none; color: inherit; border: 1px solid var(--field-line); font-weight: 500; }
.btn-danger-outline, .btn-danger { background: none; color: var(--error); border: 1px solid var(--error); font-weight: 500; }
.btn-disabled { background: var(--disabled); color: var(--disabled-ink); cursor: not-allowed; }
.btn-small { padding: 6px 14px; font-size: 13px; min-height: 36px; }
.message.error { color: var(--error); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
        padding: 4px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.pill-mint { background: rgba(52,211,153,0.18); }
.pill-sky { background: rgba(25,147,204,0.14); }
.pill-fox { background: rgba(255,122,47,0.18); }
.pill-muted { background: var(--warm-line); }
.pill-dim { background: var(--warm-line); color: var(--warm-mist); }
.chip-mono { font-family: var(--font-mono); font-size: 12px; background: var(--warm-line);
             border-radius: 8px; padding: 4px 10px; }
.chip-mono-hot { background: rgba(255,122,47,0.18); color: var(--fox-deep); }
/* #77: a phone's error row (140–153) on the Activity log. */
.pill-error { background: rgba(185,28,28,0.12); color: var(--error); }
.chip-mono-error { background: rgba(185,28,28,0.12); color: var(--error); }
.input { background: var(--field); border: 1px solid var(--field-line); border-radius: 10px;
         padding: 6px 10px; font: inherit; font-size: 13px; color: var(--ink); width: 100%; }
.input-active { border-color: var(--field-active); }
.input-wide { border-radius: var(--radius-btn); padding: 9px 14px; font-size: 14px; }
.input:disabled { background: var(--disabled); color: var(--disabled-ink); }
textarea.input { font-family: var(--font-mono); line-height: 1.6; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; color: var(--warm-mist); font-size: 12px; text-transform: uppercase;
            letter-spacing: 0.6px; font-weight: 500; padding: 12px 8px; }
.table td { padding: 11px 8px; border-top: 1px solid var(--warm-line); vertical-align: top; }
.table .lead { padding-inline-start: 24px; } .table .trail { padding-inline-end: 24px; }
.row-hot { background: rgba(255,122,47,0.06); }
.row-error { background: rgba(185,28,28,0.05); } /* #77: a phone's error row on /admin/audit */
/* PG-23: a long line wraps inside its card, and a multi-line message (the boot's `settings` block, one
   key per line) keeps its own line breaks instead of collapsing them into one paragraph. */
td.log-message { max-width: 640px; overflow-wrap: anywhere; white-space: pre-wrap; }
/* PG-23 design §1/§2: the four panels (only the chosen one is not `hidden`) and the level cell. */
.tab-panel { display: flex; flex-direction: column; gap: 24px; }
.tab-panel[hidden] { display: none; }
.lvl { white-space: nowrap; }
.lvl-error { color: var(--lvl-error); font-weight: 700; } .lvl-error::before { content: "✕ "; }
.lvl-warning { color: var(--lvl-warning); font-weight: 500; } .lvl-warning::before { content: "▲ "; }
.lvl-info { color: var(--lvl-info); font-weight: 500; } .lvl-info::before { content: "● "; }
.lvl-debug { color: var(--lvl-debug); font-weight: 400; } .lvl-debug::before { content: "· "; }
.filter-cell { padding: 4px 8px 12px 8px; }
.hdr { display: flex; align-items: center; gap: 16px; padding: 18px 40px; flex-wrap: wrap;
                background: #FFFFFF; border-bottom: 1px solid var(--sand); margin-bottom: 24px; }
.nav-pill { color: var(--warm-mist); border-radius: 999px; padding: 7px 16px; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-pill-active { background: var(--sand); color: var(--ink); }
.stat { display: flex; flex-direction: column; gap: 4px; background: var(--sand);
        border-radius: var(--radius-card); padding: 18px 28px; }
.stat b { font-size: 30px; font-weight: 700; line-height: 1; }
.banner-blocked { display: flex; align-items: center; gap: 10px; background: rgba(185,28,28,0.08);
                  border: 1px solid rgba(185,28,28,0.35); border-radius: var(--radius-btn);
                  padding: 14px 20px; font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 13px; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.pager { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--warm-mist); }
.pager .on { padding: 5px 10px; border-radius: 12px; background: var(--warm-line); color: var(--ink); }
.pager a, .pager span { padding: 5px 10px; text-decoration: none; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 24px;
           border-bottom: 1px solid var(--warm-line); flex-wrap: wrap; }
.footerbar { display: flex; align-items: center; gap: 16px; padding: 14px 24px;
             border-top: 1px solid var(--warm-line); font-size: 13px; color: var(--warm-mist); flex-wrap: wrap; }
.checkbox { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--field-line); accent-color: var(--sky-dark); flex: none; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
            border: 2px dashed var(--field-line); border-radius: var(--radius-card); padding: 28px;
            background: #FFFFFF; }
.note { background: #FFF9F0; border-inline-start: 3px solid var(--fox); border-radius: 0 10px 10px 0;
        padding: 11px 16px; font-size: 13px; color: var(--warm-mist); line-height: 1.55; }
.version-line { margin-top: 8px; }

/* The break control (round 35, D142; the parent's since round 41 / WUX-14): the four pills are the
   tightest touch target on the site — 44 px minimum (UXUI-Web §7). */
.break-control { display: flex; flex-wrap: wrap; gap: 6px; } /* the admin fleet's four buttons */
.pill-button { border: 1px solid var(--field-line); background: transparent; color: var(--ink); border-radius: 999px;
               padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; min-height: 44px; }
.pill-button:hover { border-color: var(--sky-dark); color: var(--sky-text); }
/* PG-13: a category chip that is on (js/audit-filter.js). */
.pill-button[aria-pressed="true"] { background: rgba(25,147,204,0.14); border-color: var(--sky-dark); }
.pill-button[aria-pressed="false"] { color: var(--warm-mist); }

/* WEB-22: Break ▾ — a <details> menu whose sheet floats under the pill; only the child's own page,
   where it is open from the start, lays it inline (.break-menu-inline). */
.break-menu { position: relative; display: inline-block; }
.break-menu > summary { list-style: none; display: inline-flex; align-items: center; }
.break-menu > summary::-webkit-details-marker { display: none; }
.break-menu .sheet { position: absolute; inset-inline-end: 0; top: 48px; z-index: 2; display: flex; flex-direction: column;
                     background: #FFFFFF; border: 1px solid var(--warm-line); border-radius: 14px; padding: 6px;
                     box-shadow: 0 8px 24px rgba(43,33,24,.12); }
.break-menu .sheet button { text-align: start; padding: 10px 12px; border: 0; background: transparent; border-radius: 10px;
                            white-space: nowrap; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; min-height: 44px; }
.break-menu .sheet button:hover { background: var(--warm-line); }
.break-menu-inline { display: block; }
.break-menu-inline .sheet { position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; margin-top: 8px; }
.break-menu:not([open]) .sheet { display: none; }
/* WP-11: on a phone the floating sheet is wider than the room left of its pill, so anchoring it to the pill's
   inline-end pushed most of it off the viewport, where nothing scrolls. Under 640 px it spans the card instead,
   its labels wrap, and a sheet taller than the screen scrolls inside itself. */
@media (max-width: 639px) {
  .break-menu { display: block; width: 100%; }
  .break-menu .sheet { inset-inline: 0; max-height: 60vh; overflow-y: auto; }
  .break-menu .sheet button { white-space: normal; }
}

table.stack { display: table; }

/* WEB-13/14: the Children page — the day bar. The Family summary and the kid cards are the `children page` block below. */
.day-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.day-nav { display: flex; align-items: center; gap: 8px; }
.day-nav a { text-decoration: none; line-height: 1; }
.kids-filter { max-width: 320px; }
.day-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* the child page's No breaks today button */
/* Hover (desk) or focus (a tap on a phone) shows a bar's numbers. */
.tip-host { position: relative; cursor: pointer; outline-offset: 2px; }
.tip-host .bubble { display: none; position: absolute; bottom: calc(100% + 6px); inset-inline-start: 50%; transform: translateX(-50%);
                    background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 10px; border-radius: 8px;
                    white-space: nowrap; z-index: 10; pointer-events: none; }
[dir="rtl"] .tip-host .bubble { transform: translateX(50%); }
.tip-host:hover .bubble, .tip-host:focus .bubble, .tip-host.open .bubble { display: block; }
.chart-wrap { position: relative; }
.chart-hits { position: absolute; inset: 0; pointer-events: none; }
.chart-hits .tip-host { position: absolute; top: 0; bottom: 0; pointer-events: auto; }
/* The SVG does not mirror in Hebrew, so its hit columns and their bubbles are placed by physical left/right. */
.chart-hits .tip-host .bubble, [dir="rtl"] .chart-hits .tip-host .bubble { bottom: auto; top: 4px; inset-inline: auto; left: 50%; right: auto; transform: translateX(-50%); }
.chart-hits .tip-host:first-child .bubble, [dir="rtl"] .chart-hits .tip-host:first-child .bubble { left: 0; transform: none; }
.chart-hits .tip-host:last-child .bubble, [dir="rtl"] .chart-hits .tip-host:last-child .bubble { left: auto; right: 0; transform: none; }
.app-bar { display: block; }
@media (max-width: 639px) {
  .day-quick { width: 100%; } .day-quick .btn { flex: 1; }
  .tip-host .bubble { bottom: auto; top: calc(100% + 4px); white-space: normal; width: max-content; max-width: 240px; }
}

/* children page */
/* Bubbles (WEB-66): server-rendered text, repeated in aria-label. Long sentences wrap; a touch tap adds the Open link (chart-tips.js),
   so an open bubble takes taps. The badge, the last chip and the bars at the ends open inward, so no bubble leaves the card. */
.kid .bubble, .family .bubble { white-space: normal; width: max-content; max-width: min(260px, 80vw); font-weight: 400; text-align: start; }
.tip-host.open .bubble { pointer-events: auto; }
.tip-host:is(:hover, :focus, .open) { z-index: 20; } /* F-6: a shown bubble paints over the rows after it — a hovered segment's filter makes it its own stacking context */
.bubble a.open { display: flex; align-items: center; min-height: 44px; margin-top: 0; color: #FFB27F; font-weight: 700; } /* WEB-73: the tap that follows on a phone */
/* WEB-73 (F-1): every target on the page is 44 px tall at least. What draws smaller keeps its size and gets an invisible hit area
   (the .tbar::after trick, centred on the element): the badge, the chips, the week line, the screen total, the names, the footnote
   marks and the summary segments. `min(0px, 50% - 22px)` grows an edge by what the element lacks of 44 px and never shrinks it. */
:is(.badge, .ic, .wk, .nodata, .fn, .r-top .name, :is(.sum, .nfig) .seg) { position: relative; }
:is(.badge, .ic, .wk, .nodata, .t-head b, .r-top .name, :is(.sum, .nfig) .seg)::after { content: ""; position: absolute; inset-block: min(0px, calc(50% - 22px)); inset-inline: 0; }
.fn::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); } /* an 11 px mark: 44 wide as well */
.nm a { padding-block: 14px; margin-block: -14px; } /* the name link clips its overflow (ellipsis), so its 44 px is padding, taken back by the margin */
.tip-host:focus-visible { outline: 3px solid var(--sky-dark); }
.kid .badge .bubble, .tbars .tbar:first-of-type .bubble, .track .seg:first-child .bubble { inset-inline-start: 0; transform: none; }
.r-bottom .last .bubble, .kid .t-head b .bubble, .tbars .tbar:last-child .bubble, .track .seg:not(:has(~ .seg)) .bubble { inset-inline-start: auto; inset-inline-end: 0; transform: none; }

/* Colours of one meaning, everywhere on the page (WEB-67/68): a bar's segment, a wheel's slice, a time bar, a legend swatch. */
.s-right { background: var(--mint-dark); color: #fff; } .s-wrong { background: var(--coral); color: var(--ink); } .s-unans { background: var(--gap); color: var(--ink); }
.s-break { background: var(--fox-deep); color: #fff; } .s-tracked { background: var(--sky-dark); color: #fff; } .s-other { background: var(--hatch); color: var(--ink); }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* Titles, footnotes, value chips */
.kid .title, .family .title, .nfig .title { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.fn { font-size: 10px; margin-inline-start: 2px; color: var(--fox-hover); text-decoration: none; vertical-align: super; line-height: 0; font-weight: 700; letter-spacing: 0; }
.fn:hover { text-decoration: underline; }
.ic { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: default; background: var(--soft); }
.ic .e { font-size: 15px; line-height: 1; }
.t-need { background: var(--err-tint); color: var(--error); } .t-mint { background: var(--mint-tint); color: var(--mint-dark); }
.t-sky { background: var(--sky-tint); color: var(--sky-text); } .t-muted { background: var(--warm-line); color: var(--warm-mist); }
.ic .mono { font-size: 12px; font-weight: 500; }

/* Summary bars: numbers inside the segments only (WEB-38); 2 px gaps and a rounded end, untracked time hatched (WEB-69). Scoped to
   the summary — the day timeline (.tl) has its own .track, .seg and .axis. */
:is(.sum, .nfig) .track { position: relative; height: 24px; display: flex; }
:is(.sum, .nfig) .gl { position: absolute; top: -3px; bottom: -3px; inset-inline-start: var(--p); width: 1px; pointer-events: none;
                       background: linear-gradient(var(--grid) 0 3px, transparent 3px calc(100% - 3px), var(--grid) calc(100% - 3px)); } /* only the ends show; the bar covers the middle */
:is(.sum, .nfig) .seg { position: relative; flex: none; width: var(--w); min-width: 4px; height: 100%; display: flex; align-items: center; justify-content: center;
                        border-inline-end: 2px solid var(--card); cursor: pointer; }
:is(.sum, .nfig) .seg:not(:has(~ .seg)) { border-inline-end: 0; border-start-end-radius: 5px; border-end-end-radius: 5px; }
:is(.sum, .nfig) .seg:hover, :is(.sum, .nfig) .seg:focus { filter: brightness(.92); outline: none; }
:is(.sum, .nfig) .seg:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.seg i { font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 0 3px; }
.seg.nolabel i { visibility: hidden; }
.s-other i { background: rgba(255,255,255,.85); border-radius: 4px; }
:is(.sum, .nfig) .axis { position: relative; height: 16px; margin-top: 3px; border-top: 1px solid var(--baseline); font-size: 11px; color: var(--mist); }
:is(.sum, .nfig) .axis span { position: absolute; top: 2px; inset-inline-start: var(--p); transform: translateX(-50%); }
:is(.sum, .nfig) .axis span:first-child { transform: none; }
:is(.sum, .nfig) .axis span:last-child { transform: translateX(-100%); }
[dir="rtl"] :is(.sum, .nfig) .axis span { transform: translateX(50%); }
[dir="rtl"] :is(.sum, .nfig) .axis span:first-child { transform: none; }
[dir="rtl"] :is(.sum, .nfig) .axis span:last-child { transform: translateX(100%); }
.nodata { font-size: 13px; color: var(--mist); }

/* Family summary (WEB-32/36…42/70/88): Questions lead, the wider column */
.family { padding: var(--s4) 20px; gap: var(--s3); }
.fam-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fam-top h2 { margin: 0; font-size: 17px; }
.fam-cmds { margin-inline-start: auto; display: flex; gap: 8px; }
.fam-result { margin: 0; font-size: 14px; font-weight: 500; } .fam-result:empty { display: none; }
.fam-result .refused { color: var(--error); } /* WEB-75: only the refused clause is red; the line stays one status line */
.sum { display: grid; grid-template-columns: fit-content(140px) 1.5fr 1fr; gap: 22px 18px; align-items: center; } /* 24 px track + 22 = a 46 px pitch: the 44 px hit areas of two rows do not overlap (WEB-73) */
.sum > :nth-child(3n).track, .nfig.t .track { height: 16px; }
.sum > :nth-child(3n) .seg i, .sum > :nth-child(3n).track .seg i, .nfig.t .seg i { font-size: 10.5px; }
.nm { font-weight: 700; display: flex; align-items: center; gap: 7px; min-width: 0; }
.nm a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; } .nm a:hover { text-decoration: underline; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--mint-dark); } .dot-need { background: var(--error); }
.sum-narrow { display: none; flex-direction: column; gap: var(--s4); }
.nfig { display: grid; grid-template-columns: fit-content(110px) 1fr; gap: 22px 10px; align-items: center; }
.nfig.t { row-gap: 30px; } /* a 16 px track + 30 = 46 */
.nfig .title { grid-column: 1 / -1; }

/* Split buttons (WEB-42) — `.cmd-split`, not `.split`: that one is the site's layout primitive (WUX-32). One ▾ menu open at a time. */
:is(.r-bottom, .fam-cmds) .btn { min-height: 44px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--field-line); background: var(--card); color: var(--ink);
                                 font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
:is(.r-bottom, .fam-cmds) .btn:hover { background: var(--soft); }
:is(.r-bottom, .fam-cmds) .btn-primary { background: var(--fox); border-color: var(--fox); font-weight: 700; }
:is(.r-bottom, .fam-cmds) .btn-primary:hover { background: #FF8B48; }
.cmd-split { display: flex; position: relative; }
.cmd-split > form { display: flex; }
.cmd-split .main { border-start-end-radius: 0; border-end-end-radius: 0; }
.cmd-split .pick { position: static; }
.cmd-split .caret { border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start-width: 0; padding: 0 10px; min-width: 34px; box-shadow: inset 1px 0 0 rgba(43,33,24,.18); }
[dir="rtl"] .cmd-split .caret { box-shadow: inset -1px 0 0 rgba(43,33,24,.18); } /* a shadow offset is a physical side: the divider stays on the caret's start edge (WEB-34) */
:is(.more, .pick) > summary { list-style: none; } :is(.more, .pick) > summary::-webkit-details-marker { display: none; }
/* The sheets of More ▾ and of the family ▾ — the child page's Break ▾ sheet (.break-menu) is its own. */
:is(.more, .cmd-split) .sheet { position: absolute; z-index: 5; inset-inline-end: 0; background: var(--card); border-radius: 16px; box-shadow: 0 10px 30px rgba(60,35,10,.18);
                                padding: 6px; min-width: 240px; display: flex; flex-direction: column; }
.cmd-split .sheet.down { top: calc(100% + 6px); min-width: 180px; }
.cmd-split .sheet .cmd-moved { display: none; margin-top: 4px; border-top: 1px solid var(--line); } /* Off today, moved here under 440 px */
.more .sheet { bottom: calc(100% + 6px); }
.more:not([open]) .sheet, .pick:not([open]) .sheet { display: none; }
:is(.more, .cmd-split) .sheet button { text-align: start; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); }
:is(.more, .cmd-split) .sheet button:hover { background: var(--fox-tint); }
.more .sheet .muted { margin: 2px 12px 6px; }

/* The kid card (WEB-78…82): four regions in one fixed grid — top line, Questions (the wider side), Screen time, commands.
   Dividers run between regions only (WEB-80). A region with nothing to show is not drawn (WEB-79). */
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: var(--s4); align-items: start; } /* WEB-89 */
.kid { container: kid / inline-size; padding: 0; gap: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
       grid-template-areas: "top top" "q t" "bottom bottom"; overflow: visible; }
.kid:not(:has(> .r-t)) { grid-template-areas: "top top" "q q" "bottom bottom"; } /* WEB-79: no Screen time region (no record, or no screen time) — Questions takes the width */
.r-top { grid-area: top; display: flex; align-items: center; gap: 10px; min-width: 0; padding: var(--s3) 18px; border-bottom: 1px solid var(--line); }
.r-q, .r-t { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s4) 18px; min-width: 0; }
.r-q { grid-area: q; }
.r-t { grid-area: t; border-inline-start: 1px solid var(--line); justify-content: flex-start; }
.r-q .title { align-self: flex-start; }
.badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #fff; flex: none; cursor: default; }
.b-ok { background: var(--mint-dark); } .b-need { background: var(--error); } .b-cant { background: var(--mist); } .b-wait { background: var(--sky-dark); }
.r-top .name { font-size: 18px; font-weight: 900; text-decoration: none; color: inherit; min-width: 0; overflow-wrap: anywhere; }
.r-top .name:hover { text-decoration: underline; }
.wheel { display: block; flex: none; max-width: 100%; border-radius: 50%; text-decoration: none; }
.wheel svg { display: block; max-width: 100%; height: auto; }
.wheel .slice { cursor: pointer; }
.wheel .slice:hover, .wheel .slice:focus { opacity: .85; outline: none; }
.wheel .ring { pointer-events: none; }
.wheel .n, .wheel .centre, .wheel .centre-word { font-family: var(--font-ui); user-select: none; }
.under { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wk { font-size: 14px; color: var(--mist); cursor: default; } .wk b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.r-empty { color: var(--mist); font-size: 14px; }
.t-head { display: flex; align-items: baseline; gap: 8px; align-self: stretch; }
.t-head b { margin-inline-start: auto; font-size: 15px; cursor: default; font-variant-numeric: tabular-nums; }

/* Screen time: three CSS bars on the page's one scale (WEB-55/58). The box is the plot: a bar's height and a tick's place are shares of it. */
.tbars { position: relative; align-self: stretch; height: 160px; margin-block: 14px 24px; display: flex; align-items: flex-end; gap: 8px;
         border-bottom: 1px solid var(--baseline); }
.tbar { position: relative; flex: 1; min-width: 0; height: var(--h); border-start-start-radius: 6px; border-start-end-radius: 6px; }
.tbar::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: max(100%, 44px); } /* the 44 px hit area, WEB-73 */
.tbar:focus-visible { outline: none; } .tbar:focus-visible::after { outline: 3px solid var(--sky-dark); }
.tbar i { position: absolute; inset-inline: -6px; bottom: calc(100% + 2px); text-align: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tbar .word { position: absolute; inset-inline: -6px; top: calc(100% + 4px); text-align: center; font-size: 11px; color: var(--mist); white-space: nowrap; }

/* Commands (WEB-59…62): the form holds the buttons and More; the last command's state ends the row. */
.r-bottom { grid-area: bottom; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: var(--s3) 18px; border-top: 1px solid var(--line); }
.cmds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.r-bottom .last { margin-inline-start: auto; }
.more { position: relative; }
.ws { display: none; }

/* The page's one legend (WEB-83) and the separator over the cards */
.kids-sep { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.kids-sep::before, .kids-sep::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: var(--baseline); }
.kids-sep::before { flex: 0 0 18px; }
.legend-foot { margin-top: calc(-1 * var(--s2)); padding: 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mist); scroll-margin-top: 16px; }
.legend-foot .row { display: grid; grid-template-columns: 14px 1fr; align-items: baseline; }
.legend-foot .items { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend-foot .row > b { color: var(--fox-hover); min-width: 12px; }
.legend-foot .items > span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.legend-foot:target { outline: 3px solid var(--fox); outline-offset: 4px; border-radius: 8px; }

/* A card under 640 px wide (a container query on the card): the short command words, one row of buttons (WEB-89). */
@container kid (max-width: 640px) {
  .wl { display: none; } .ws { display: inline; }
  .r-bottom { flex-wrap: nowrap; gap: 5px; }
  .r-bottom .btn { padding: 0 10px; }
  .r-bottom .last { min-width: 0; }
}

/* A page under 700 px (WEB-70/71): the summary becomes two stacked charts, the family commands one row of three, the card's buttons
   an icon over a word with the chip under. A media query, not a container one: a card cannot restyle its own grid from its own size. */
@media (max-width: 699px) {
  .family { padding: 14px; }
  .fam-cmds { margin-inline-start: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .fam-cmds .btn { padding: 0 4px; font-size: 13px; }
  .cmd-split > form { flex: 1; min-width: 0; }
  .cmd-split .main { flex: 1; min-width: 0; }
  .cmd-split .caret { min-width: 24px; padding: 0 4px; } /* WCAG 2.5.8: 24 px wide is enough, and it is 44 px tall */
  .sum { display: none; } .sum-narrow { display: flex; }
  .r-top { gap: 8px; }
  .r-top .name { font-size: 17px; }
  .r-bottom { display: grid; gap: 6px; }
  .cmds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .r-bottom .btn { padding: 0; flex-direction: column; gap: 0; font-size: 11px; min-height: 48px; line-height: 1.1; }
  .r-bottom .btn .e { font-size: 17px; }
  .more, .more summary { width: 100%; }
  .r-bottom .last { justify-self: end; }
  .legend-foot { padding: 0 14px; }
}

/* A card under 520 px wide (WEB-71): top line, Questions, Screen time, commands, one under the other. Cards are one to a row below
   552 px, where the page's side gutters leave a card under 520. */
@media (max-width: 551px) {
  .kid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "q" "t" "bottom"; }
  .kid:not(:has(> .r-t)) { grid-template-areas: "top" "q" "bottom"; }
  .r-top, .r-q, .r-t, .r-bottom { padding-inline: 14px; }
  .r-t { border-inline-start: 0; border-top: 1px solid var(--line); }
}
/* Under 440 px three split buttons do not fit one row (the page's 16 px sides + the card's 14 px padding leave W − 60 px; three columns
   and two 8 px gaps give (W − 76) / 3 — 95 px at 360, 105 at 390 — and a button needs a 24 px ▾ and about 84 px of words). The third
   button (Off today) leaves the row; its entry in the second button's ▾ menu shows in its place (WEB-73, owner 2026-09-29). */
@media (max-width: 439px) {
  .fam-cmds { grid-template-columns: repeat(2, 1fr); }
  .cmd-split[data-narrow="menu"] { display: none; }
  .cmd-split .sheet .cmd-moved { display: block; }
}
/* end children page */

/* The layout framework (WUX-32): one container, three primitives, four widths — no page writes a media query. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.split { display: flex; gap: 20px; flex-wrap: wrap; }
.split > * { flex: 1 1 340px; min-width: 0; }
.scroll-x { overflow-x: auto; }
/* PG-23 §5: the tail scrolls inside its card — 2 000 rows must not grow the page itself. */
.log-pane { max-height: 60vh; overflow-y: auto; }
.consent-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } /* PG-18: state, then how · when */
@media (max-width: 639px) {
  .page { padding: 0 16px 24px 16px; }
  .hdr { padding: 12px 16px; row-gap: 10px; }
  .hdr .tabs { order: 3; flex-basis: 100%; }   /* WEB-12: fox + Sign out on line 1, the tabs on line 2 */
  .hdr .nav-pill { padding: 7px 12px; }
  .admin-bar { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 16px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; } /* one row that scrolls, never wraps */
  .admin-tabs .nav-pill { white-space: nowrap; padding: 7px 10px; }
  .hdr-version { margin-inline-start: 0; font-size: 11px; }
  .hdr-version + .hdr-signout { margin-inline-start: auto; } /* narrow: the version follows the fox, Sign out keeps the end */
  .stack thead { display: none; }
  .stack tr { display: block; border-top: 1px solid var(--warm-line); padding: 10px 0; }
  .stack td { display: flex; justify-content: space-between; gap: 14px; border: none; padding: 3px 0; }
  .stack td::before { content: attr(data-label); color: var(--warm-mist); font-size: 12px; }
}

/* The one header (WEB-10) and the admin sub-tabs under it (WEB-27) — links only, no script. */
.hdr-fox { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.hdr .nav-pill { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; } /* WEB-73: the header's targets are 44 px tall (the Children page walk, F-1) */
.hdr .btn-small { min-height: 44px; }
.version-line a { display: inline-block; padding-block: 15px; margin-block: -15px; } /* the footer's Privacy link: 44 px of hit area on a 14 px line */
.hdr-signout { margin-inline-start: auto; }
.tabs, .admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.admin-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 40px; background: #FFFFFF;
             border-bottom: 1px solid var(--warm-line); margin: -24px 0 24px 0; }
/* Design §6: the versions sit in the header, pushed to its end; Sign out then follows them. */
.hdr-version { margin-inline-start: auto; font-family: var(--font-mono); font-size: 12px; }
.hdr-version + .hdr-signout { margin-inline-start: 0; }
.notfound { align-items: center; padding-top: 72px; }
.notfound-card { width: 420px; max-width: 100%; box-sizing: border-box; }

/* WEB-18: the child's back link, name and sub-tabs; on a phone they stack (design mChildTabs). */
.childbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 639px) { .childbar { flex-direction: column; align-items: flex-start; gap: 10px; } .childbar > .muted { margin-inline-start: 0 !important; } }

/* The day timeline (WUX-33) */
.tl { display: grid; grid-template-columns: 96px 1fr; gap: 3px 10px; align-items: center; }
.tl .lane { font-size: 12px; color: var(--warm-mist); text-align: end; white-space: nowrap; }
.tl .track { position: relative; height: 16px; background: var(--warm-line); border-radius: 5px; }
.tl .seg { position: absolute; top: 0; height: 16px; border-radius: 5px; background: var(--tl-tracked); }
.tl .seg.own { background: var(--tl-own); }
.tl .seg.none { background: var(--tl-none); }
.tl .seg.unspec { background: repeating-linear-gradient(135deg, var(--tl-none) 0 3px, transparent 3px 7px);
                  border: 1px solid var(--tl-none); }
.tl .axis { grid-column: 2; position: relative; height: 16px; font-size: 11px; color: var(--warm-mist); }
.tl .axis span { position: absolute; transform: translateX(-50%); }
[dir="rtl"] .tl .axis span { transform: translateX(50%); }
.tl-totals { display: flex; flex-wrap: wrap; gap: 7px; }
.sw-unspec { background: repeating-linear-gradient(135deg, #806D5C 0 2px, transparent 2px 5px); border: 1px solid var(--tl-none); }

/* The per-app bars (TS-63) */
.bar { height: 12px; border-radius: 999px; background: var(--warm-line); overflow: hidden; margin-top: 5px; }
.bar > div { height: 100%; background: var(--sky-dark); }

/* The served privacy policy (TS-102 / LN-02) — a reading page, not a dashboard: one column,
   generous measure, and the rendered Markdown styled inside .policy so the legal text needs no
   classes of its own. */
.policy-page { max-width: 860px; }
.policy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; }
.policy-versions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.policy { display: block; line-height: 1.65; font-size: 15px; }
.policy h1 { font-size: 26px; margin: 0 0 18px 0; }
.policy h2 { font-size: 20px; margin: 30px 0 10px 0; }
.policy h3 { font-size: 16px; margin: 22px 0 8px 0; }
.policy p, .policy li { margin: 9px 0; }
.policy ul, .policy ol { padding-inline-start: 24px; }
.policy blockquote { margin: 16px 0; padding: 12px 18px; background: var(--sand);
                     border-inline-start: 3px solid var(--fox); border-radius: 10px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; display: block;
                overflow-x: auto; }
.policy th, .policy td { text-align: start; padding: 9px 8px; border-top: 1px solid var(--warm-line);
                         vertical-align: top; }
.policy code { font-family: var(--font-mono); font-size: 13px; }
.policy hr { border: none; border-top: 1px solid var(--warm-line); margin: 26px 0; }

/* The native-auth doors' step panels (round 53, fix round 1 finding 10). `hidden` is a
   `display: none` rule of the lowest specificity there is, so the inline `display: flex` these
   panels used to carry beat it: /signup showed its code box from page load and never hid the
   address box. A class instead — and the attribute made to mean what everyone reading the markup
   assumes it means. */
[hidden] { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* WEB-5: the sign-in card at `/` — the fox and the wordmark over one card (design "Main",
   "SignInPhone"). */
.auth { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 96px 16px 0; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand svg { width: 36px; height: 36px; }
.auth-wordmark { font-size: 26px; font-weight: 700; }
.auth-card { width: 100%; max-width: 420px; box-sizing: border-box; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; }
.auth-card .err { margin: 0; font-size: 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 600px) {
  .auth { padding-top: 56px; }
  .auth-brand svg { width: 32px; height: 32px; }
  .auth-wordmark { font-size: 24px; }
  .auth-card { padding: 20px; gap: 14px; }
}

/* WEB-25: a phone row's Remove and Delete child sit side by side; Delete child opens its form under them. */
.row-actions { text-align: end; }
.row-actions > form, .row-delete { display: inline-block; vertical-align: top; }
.row-delete > summary { list-style: none; display: inline-flex; cursor: pointer; }
.row-delete > summary::-webkit-details-marker { display: none; }
.row-delete[open] { display: block; margin-top: 8px; }
.row-delete-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0 0 auto; max-width: 320px; text-align: start; }

/* WP-4: the tracked-apps list — icon (Google Play, via our server) over the app's first letter, label, tick. */
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.app-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; min-width: 0; }
.app-row input { width: 18px; height: 18px; flex: none; }
.app-icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 8px; overflow: hidden;
  background: rgba(25,147,204,0.14); display: grid; place-items: center; font-weight: 700; }
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* #124 (owner, 2026-10-09): the child's family letter beside its name — "Child A" in the daily browser notification */
.family-letter { display: inline-block; min-width: 1.5em; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid currentColor;
  font-size: 0.75em; font-weight: 600; line-height: 1.5; text-align: center; vertical-align: middle; opacity: 0.75; }
