/* 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 hatch of untracked time, one spacing scale. */
  --card: #FFFFFF; --soft: #FFF8EF; --fox-tint: #FFE8D6; --mint-tint: #DDF5EA; --err-tint: #FDE4E4; --sky-tint: #E0F2FC;
  --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;
  /* N11 (owner 2026-10-16): a past day on Children — the line down the page's start edge, the ribbon's tint. Ink on --past-bg ≈ 13 : 1. */
  --past-line: #E0A800; --past-bg: #FFF4C2;
  /* 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; }
.acct-section > .h2 { margin: 0; } /* WR-25: the family Account's four sections each open with a heading */
.danger-card { border: 1px solid var(--error); } /* WR-25: the Leave BiteSize section */
.card-flush { padding: 0; overflow: hidden; gap: 0; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-block-size: 44px; padding-block: 8px; border-block-start: 1px solid var(--line); }
.acc-row:first-child { border-block-start: 0; } /* WR-29 review: the line parts rows; it does not top a card */
.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); }
.seg-links { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); } /* WR-17: the Answers result switch */
.seg-links .nav-pill { text-transform: capitalize; } /* the labels are the lower-case words the "Showing …" line uses */
.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; }
.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); }

table.stack { display: table; }

/* WEB-13/14: the Children page — the day bar. 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; }
.kids-filter { max-width: 320px; }
/* 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; }
@media (max-width: 639px) {
  .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 { 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
   (centred on the element): the badge, the chips, the screen bars, the past week's title and the name.
   `min(0px, 50% - 22px)` grows an edge by what the element lacks of 44 px and never shrinks it. */
:is(.badge, .ic, .sbar, .r-s .title .tip-host, .r-top .name) { position: relative; }
:is(.badge, .ic, .sbar, .r-s .title .tip-host, .r-top .name)::after { content: ""; position: absolute; inset-block: min(0px, calc(50% - 22px)); inset-inline: 0; }
.tip-host:focus-visible { outline: 3px solid var(--sky-dark); }
.kid .badge .bubble, .sbar .bubble { inset-inline-start: 0; transform: none; }
.r-bottom .last .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. */
.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); }

/* Titles, value chips */
.kid .title { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.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; }

.s-other i { background: rgba(255,255,255,.85); border-radius: 4px; }

/* The card's buttons (WR-5: Free day · More play · Reset + break). */
.r-bottom .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; }
.r-bottom .btn:hover { background: var(--soft); }

/* The kid card (WEB-78…82, WR-5): five regions in one fixed grid — top line, Questions (the wider side), Screen time, Past week,
   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 { padding: 0; gap: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
       grid-template-areas: "top top" "q t" "s s" "bottom bottom"; overflow: visible; }
.kid:not(:has(> .r-t)) { grid-template-areas: "top top" "q q" "s s" "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; }
.r-empty { color: var(--mist); font-size: 14px; }

/* WR-5 (owner 2026-10-11): Screen time as two bars with their numbers on them, the day's top apps, the past week. Chart text black or white. */
.r-t { align-items: stretch; }
.sbars { display: flex; inline-size: 100%; min-inline-size: 0; }
.sbar { flex: 1 0 0px; min-inline-size: max-content; block-size: 28px; border-radius: 6px; display: flex; align-items: center; padding-inline: 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sbar-gap { flex: 1 0 0px; }
.sbar-tr { background: var(--sky-dark); color: #000; }
.sbar-tot { background: var(--mist); color: #fff; }
.capp { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-block-size: 44px; font-size: 13px; }
.capp-row { display: flex; justify-content: space-between; gap: 8px; } .capp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thin { display: flex; block-size: 4px; background: var(--line); border-radius: 2px; }
.thin i { flex: 1 0 0px; background: var(--sky-dark); border-radius: 2px; } .thin span { flex: 1 0 0px; }
.r-s { grid-area: s; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: var(--s3) 18px; border-block-start: 1px solid var(--line); }
.subj-dot { inline-size: 9px; block-size: 9px; border-radius: 50%; } .s-best { background: var(--mint-dark); } .s-weakest { background: var(--coral); }
.r-top .name-go { margin-inline-start: 3px; font-size: .8em; font-weight: 500; } /* Q8 (owner 2026-10-13): the name is the link, a small › */

/* Commands (WEB-59…62): the form holds the three buttons; 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; }

/* WR-3 (owner 2026-10-11): the day switch over the cards — ‹ day ›, 44 px arrows. */
.day-switch { display: flex; align-items: center; justify-content: flex-end; gap: 4px 14px; flex-wrap: wrap; }
.dsw { display: flex; align-items: center; gap: 6px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.dsw-btn { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; font-size: 20px; text-decoration: none; }
.dsw-btn[aria-disabled="true"] { background: transparent; border-color: transparent; color: var(--disabled-ink); cursor: not-allowed; }
.dsw-day { min-inline-size: 196px; text-align: center; font-size: 15px; font-weight: 700; white-space: nowrap; padding-inline: 6px; }
.day-back { min-block-size: 44px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--fox-hover); }

/* N11 (owner 2026-10-16): a past day looks clearly not today — a yellow line down the column's start edge, its full height (the right
   edge in Hebrew), and a ribbon under the day switch. The line keeps the content where today's page has it (6 + 34 = the page's 40 px). */
.page.is-past-day { border-inline-start: 6px solid var(--past-line); padding-inline-start: 34px; }
.past-ribbon { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); background: var(--past-bg); color: var(--ink); border: 1px solid var(--past-line); border-radius: var(--radius-btn); padding: var(--s2) var(--s4); font-weight: 500; }
.past-ribbon .past-back { min-block-size: 44px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; text-decoration: underline; }

/* 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; }

/* WR-9: the family's last 30 days — questions answered per day */
.last30-grid { display: flex; flex-direction: column; gap: 10px; }
.last30-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 80px; gap: 10px 14px; align-items: end; }
.m-name { font-weight: 700; min-block-size: 44px; display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.m-cell { min-inline-size: 0; }
.m-scroll { overflow-x: auto; }
.m-bars { display: flex; align-items: flex-end; gap: 2px; block-size: 44px; border-block-end: 1px solid var(--baseline); }
.dcell { flex: 1 1 0; block-size: 44px; display: flex; align-items: flex-end; min-inline-size: 0; }
.dcell i { display: block; inline-size: 100%; block-size: var(--h); min-block-size: 1px; background: var(--mint-dark); border-start-start-radius: 1px; border-start-end-radius: 1px; }
.dcell-today { background: var(--fox-tint); border-start-start-radius: 3px; border-start-end-radius: 3px; }
.m-tot { text-align: end; align-self: center; }

/* A page under 700 px (WEB-71, WR-29): the card's three buttons share the row, their words wrap (no icon over a word), 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) {
  .r-top { gap: 8px; }
  .r-top .name { font-size: 17px; }
  .r-bottom { display: grid; gap: 6px; }
  .cmds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .r-bottom .btn { padding: 0 6px; white-space: normal; line-height: 1.1; }
  .r-bottom .last { justify-self: end; }
}

/* A page under 640 px, the site's phone width (WR-29, WUX-32): top line, Questions, Screen time, Past week, commands, one under the other. */
@media (max-width: 639px) {
  .kid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "q" "t" "s" "bottom"; }
  .kid:not(:has(> .r-t)) { grid-template-areas: "top" "q" "s" "bottom"; }
  .r-top, .r-q, .r-t, .r-s, .r-bottom { padding-inline: 14px; }
  .r-t { border-inline-start: 0; border-top: 1px solid var(--line); }
  .day-switch { inline-size: 100%; justify-content: space-between; }
  .dsw { flex: 1 1 100%; justify-content: space-between; }
  .dsw-day { min-inline-size: 0; flex: 1 1 auto; }
  .day-back { order: 2; margin-inline-start: auto; }
  .page.is-past-day { border-inline-start-width: 4px; padding-inline-start: 12px; } /* 4 + 12 = the phone page's 16 px */
  .last30-head { display: none; }
  .last30-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
  .m-in { min-inline-size: 530px; }
  .m-tot { text-align: start; }
}
/* end children page */

/* parents › today page — WR-18: Right now and More commands; WR-19: the number rows dimmed while breaks are off */
.now-grid { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.now-cmd { min-height: 56px; }
.now-grid .more { flex: 1 1 100%; }
.now-grid .more > summary { list-style: none; display: inline-flex; cursor: pointer; }
.now-grid .more > summary::-webkit-details-marker { display: none; }
.now-grid .sheet { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.now-grid .sheet .btn { min-height: 44px; font-size: 13px; }
.now-status { margin: 0; }
label[data-locked] { opacity: .5; }
/* WR-23: the −/+ buttons and the sync line; F2: the message and waiting slots js/settings-send.js swaps take no box of their own */
[data-send-region="message"], [data-send-region="waiting"] { display: contents; }
.step { min-width: 44px; padding-inline: 0; }
.step { min-height: 44px; } /* WR-29: 44 px targets (Ruling 27) */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sync-line { margin: 0; }
form noscript { display: contents; } /* without script the kept Save button sits in the form's own layout */
/* overview page */
.ov-cmds { display: flex; flex-direction: column; gap: var(--s3); }
.ov-cmd-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ov-cmd-row .btn { min-height: 44px; }
.ov-cmd-second .btn { background: transparent; border: 1px solid var(--field-line); font-size: 13px; }
.ov-cmd-status { margin: 0; }
/* WR-12..WR-14: the two fact cards side by side, the top apps' bars, the last answers' rows */
.ov-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }
.ov-two .card { display: flex; flex-direction: column; gap: var(--s3); }
.ov-big { font-size: 22px; font-weight: 800; }
.ov-link { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.ov-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--s3); align-items: center; min-height: 44px; }
.ov-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ov-bar i { display: block; height: 100%; width: var(--w); }
.ov-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.ov-q { display: grid; grid-template-columns: minmax(52px, auto) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding-block: var(--s2); border-block-end: 1px solid var(--line); }
.ov-q-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* WR-15: the last 7 days — totals, best and weakest, a bar a day for questions and for time; WR-28: the subject table */
.ov-week { display: flex; flex-direction: column; gap: var(--s4); }
.ov-best { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ov-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s3); }
.ov-totals div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-totals b { font-size: 22px; font-weight: 800; }
.ov-chart { display: flex; align-items: flex-end; gap: var(--s2); height: 180px; border-block-end: 1px solid var(--baseline); }
.ov-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
/* Ruling 22: the bars sit in a bar box that takes the column's height left after the number and the day, so --h is to scale */
.ov-stack { flex: 1 1 0; min-height: 0; width: 44%; display: flex; flex-direction: column; justify-content: flex-end; }
.ov-stack i { display: block; height: var(--h); flex: none; }
.ov-stack i:first-child { border-start-start-radius: 4px; border-start-end-radius: 4px; }
.ov-bars { flex: 1 1 0; min-height: 0; display: flex; align-items: flex-end; gap: 2px; width: 70%; }
.ov-bars i { flex: 1; height: var(--h); }
.ov-day { white-space: nowrap; font-size: 11px; max-width: 100%; overflow: hidden; }
.ov-legend { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0; }
.ov-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 4px; vertical-align: middle; }
/* The two first and two last days' bubbles open inwards, so none runs past a phone's edge (WR-29) */
.ov-chart .tip-host:nth-child(-n+2) .bubble, [dir="rtl"] .ov-chart .tip-host:nth-child(-n+2) .bubble { inset-inline-start: 0; inset-inline-end: auto; transform: none; }
.ov-chart .tip-host:nth-last-child(-n+2) .bubble, [dir="rtl"] .ov-chart .tip-host:nth-last-child(-n+2) .bubble { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
.ov-sub-row { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr; gap: var(--s3); align-items: center; min-height: 44px; padding-inline: var(--s2); border-radius: 8px; }
.ov-sub-row.is-best { background: var(--mint-tint); } .ov-sub-row.is-weakest { background: var(--err-tint); }
.ov-sub-row .mlab { display: none; }
/* WR-27: where the time went — a row a group (name, bar, time), the total line; the day columns reuse .ov-chart and .ov-stack */
.ov-tws { display: flex; flex-direction: column; gap: var(--s1); }
.ov-tw { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 44px; }
.ov-tw .ov-bar { height: 22px; border-radius: 6px; }
.ov-tw-total { border-block-start: 1px solid var(--baseline); padding-block-start: var(--s2); }
/* WR-16: the last 30 days — a strip of day cells, each bar to its axis's top; today ringed in ink. Owner 2026-10-24: all 30 days fit a
   phone (no box scrolls sideways, WR-29: the page never widens); each strip is a plot with its y axis at its start (left in English, right
   in Hebrew) and its x axis under it. */
.ov-strips { display: flex; flex-direction: column; gap: var(--s2); }
.ov-strips .title { margin: 0; }
.ov-plot { position: relative; margin-inline-start: 52px; margin-block-start: var(--s2); }
.ov-ticks { position: absolute; inset: 0; pointer-events: none; }
.ov-tick { position: absolute; inset-inline: 0; bottom: var(--y); border-block-start: 1px dashed var(--warm-line); }
.ov-tick:first-child { border-block-start-color: var(--baseline); border-block-start-style: solid; }
.ov-tick b { position: absolute; inset-inline-end: calc(100% + 10px); bottom: -8px; font-size: 12px; font-weight: 400; color: var(--warm-mist); white-space: nowrap; }
/* touch-action: an up-down swipe still scrolls the page and a pinch still zooms it; a sideways press-and-slide is the script's (it scrubs the days). */
.ov-strip { position: relative; display: flex; gap: 3px; height: 120px; border-block-end: 1px solid var(--baseline); touch-action: pan-y pinch-zoom; }
/* A day is a button dressed as its bar: the strip stretches it to its full 120 px (Ruling 31), a thirtieth of its width (owner Q31 A). */
.ov-d { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; appearance: none; border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-start-start-radius: 2px; border-start-end-radius: 2px; }
.ov-d i { display: block; inline-size: 100%; height: var(--h); border-start-start-radius: 2px; border-start-end-radius: 2px; }
.ov-d .c-q { background: var(--mint-dark); } .ov-d .c-ans { background: var(--fox-deep); }
/* A day with nothing: a short grey stub, so it reads as nothing rather than as missing. */
.ov-d i.zero { height: 3px; background: var(--gap); }
/* The picked or hovered day (owner 2026-10-24): a sky-tint column and a sky-dark ring on its bar, in both strips. Today, written after,
   keeps its ink ring. While the mouse is over another day, the picked one steps back. */
.ov-d.picked, .ov-d.hovered { background: var(--sky-tint); }
.ov-d.picked i, .ov-d.hovered i { box-shadow: 0 0 0 2px var(--sky-dark); }
[data-last30-hover] .ov-d.picked:not(.hovered) { background: none; }
[data-last30-hover] .ov-d.picked:not(.hovered) i { box-shadow: none; }
.ov-d.today i { box-shadow: 0 0 0 2px var(--ink); }
/* Review F5: the keyboard focus is a ring of its own, ink, inside the cell — never the picked ring's sky. */
.ov-d:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
/* The x axis: a date under every 7th day, each centred on its day (--x from the server); today's at the end edge, so it never runs out. */
.ov-x { position: relative; block-size: 22px; margin-inline-start: 52px; font-size: 12px; }
.ov-x > * { position: absolute; inset-block-start: 4px; inset-inline-start: var(--x); transform: translateX(-50%); white-space: nowrap; }
[dir="rtl"] .ov-x > * { transform: translateX(50%); }
.ov-x .ov-x-today, [dir="rtl"] .ov-x .ov-x-today { inset-inline-start: auto; inset-inline-end: 0; transform: none; color: var(--ink); font-weight: 700; }
/* The bubble (js/last30-strips.js): the script puts its start (--start, from the strip's start edge, held inside the strip), its arrow
   (--arrow) and, on a computer, its foot over the bar (--rise). Hidden until a day is hovered, focused or picked. */
.ov-bubble { position: absolute; z-index: 3; inset-inline-start: var(--start); bottom: calc(var(--rise) + 12px); pointer-events: none;
             background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.4; white-space: nowrap;
             box-shadow: 0 4px 12px rgba(43,33,24,0.2); }
.ov-bubble[hidden] { display: none; }
.ov-bubble b { display: block; }
.ov-bubble::after { content: ""; position: absolute; bottom: -5px; inset-inline-start: calc(var(--arrow) - 6px); width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.ov-guide { display: none; }
.ov-legend .ov-sw-today { box-shadow: 0 0 0 2px var(--ink); background: none; }
.ov-legend .ov-sw-zero { height: 3px; background: var(--gap); }
.ov-readout { margin: 0; font-weight: 700; }
@media (max-width: 639px) {
  .ov-cmd-row .btn { white-space: normal; flex: 1 1 100%; }
  .ov-q { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .ov-sub-h { display: none; }
  .ov-sub-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: var(--s2); }
  .ov-sub-row .mlab { display: inline; }
  .ov-tw { grid-template-columns: minmax(0, 1fr) auto; }
  .ov-tw .ov-bar, .ov-tw-total .muted { grid-column: 1 / -1; order: 1; } /* the name and the time on top, the bar (or the split) under them */
  .ov-chart { gap: var(--s1); }
}
/* Owner 2026-10-24 (phone mockup): on a phone or any touch screen the bubble rides ABOVE the strip, so the finger never covers it, with a
   thin guide line down to the picked day; the axis takes less room so 30 bars of ~7 px fit 360–430 px. */
@media (max-width: 639px), (hover: none) {
  .ov-plot { margin-inline-start: 40px; margin-block-start: 48px; }
  .ov-x { margin-inline-start: 40px; font-size: 11px; }
  .ov-tick b { inset-inline-end: calc(100% + 6px); font-size: 11px; }
  .ov-bubble { bottom: calc(100% + 8px); padding: 6px 10px; }
  .ov-bubble b { display: inline; }
  .ov-bubble b::after { content: " · "; font-weight: 400; }
  .ov-bubble::after { content: none; }
  .ov-guide:not([hidden]) { display: block; position: absolute; inset-block: -8px 0; inset-inline-start: var(--start); width: 0; border-inline-start: 2px solid var(--sky-dark); pointer-events: none; }
}
/* end overview page */

/* WR-7: Add a child on Children — the dashed card after the cards, and the panel it opens (Pages/Shared/_AddChild.cshtml). */
.add-card { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--baseline); border-radius: var(--radius-card); font-weight: 700; text-decoration: none; color: var(--ink); }
.add-card:hover { border-color: var(--field-line); }
.add-child { gap: var(--s4); }
.add-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.add-top .h2 { margin: 0; }
.add-steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.add-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.add-code label { flex-basis: 100%; }
.add-submit { align-self: flex-start; }
.pair-code { font-size: 22px; letter-spacing: 4px; text-align: center; max-width: 240px; }

/* 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; }
  .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; }
/* SYN-56, SYN-150: ?showVersion=1 — the versions sit in the header, pushed to its end; Sign out then follows them (as before da82b4c1). */
.hdr-version { margin-inline-start: auto; font-family: var(--font-mono); font-size: 12px; }
.hdr-version + .hdr-signout { margin-inline-start: 0; }
.version-top { display: block; padding: 6px 40px 0; text-align: end; } /* a page with no header: one line on top */
@media (max-width: 639px) {
  .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 */
  .version-top { padding: 6px 16px 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; } }
/* WR-10: the Parents pills — the phone's four tabs, under the website's own */
.subtabs { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 6px; padding-block-start: var(--s3); }
.subtabs .muted { margin-inline-end: 6px; }

/* 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. */
/* WR-21: the list holds two parts, Tracked then Untracked; each part's rows are the grid. */
.app-part-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.app-part + .app-part { margin-block-start: var(--s3); } .app-part > .title { margin: 0 0 var(--s2); font-size: 14px; font-weight: 700; }
.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; }
/* Owner 2026-10-24 ("Mark it only and stay in the position to view the current apps"; design "Apps"): a row and its try-again line move
   together (.app-item); a ticked row is tinted mint with "Breaks on", the rest say "No breaks"; "Saved" fades on the row in 2 s (with
   reduced motion it shows, then goes, without a fade), then js/apps-filter.js hides it; a failed save's "Not saved — try again" is a
   button under the row. An icon that did
   not load is hidden (visibility, so a lazy one still loads when it can) and the letter tile under it shows. */
.app-item { display: flex; flex-direction: column; min-width: 0; }
.app-row { padding-inline: 8px; border: 1px solid transparent; border-radius: 12px; }
.app-row.on { background: var(--mint-tint); border-color: var(--mint); }
.app-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-sub { font-size: 13px; color: var(--warm-mist); }
.app-row.on .app-sub { color: var(--mint-dark); }
.app-saved { flex: none; font-size: 12px; font-weight: 500; color: var(--mint-dark); animation: app-saved 2s ease forwards; }
@keyframes app-saved { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes app-saved-still { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .app-saved { animation: app-saved-still 2s steps(1, end) forwards; } }
.app-failed { padding-inline: 8px; }
.app-failed[data-sending] { visibility: hidden; } /* a try-again being sent keeps its place until the answer: a second tap lands on nothing */
.app-failed button { min-block-size: 32px; padding: 0; border: none; background: none; color: var(--error); font: inherit; font-size: 13px;
  font-weight: 700; text-decoration: underline; cursor: pointer; }
.app-icon img[data-icon-failed] { visibility: hidden; }
/* WEB-73 (WR-29 review): the search field and the versions' Details are 44 px targets like every other. */
input[data-apps-filter] { min-block-size: 44px; }
details:has(> [data-versions]) > summary { min-block-size: 44px; line-height: 44px; cursor: pointer; }

/* #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; }

/* WR-20: the subject map */
.track-yr { position: relative; display: block; height: 28px; }
.track-yr::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 13px; height: 2px; background: var(--line); }
.track-yr::after { content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: var(--class); width: 2px; height: 16px; background: var(--ink); }
.track-yr .own { position: absolute; inset-block-start: 7px; inset-inline-start: var(--own); width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: var(--fox); }
.subject-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 150px; gap: var(--s4); align-items: center; padding-block: var(--s2); border-block-start: 1px solid var(--line); }
.subject-row .subject-stats { display: flex; flex-direction: column; gap: var(--s1); font-size: 14px; }
.subject-row .subject-change { grid-column: 1 / -1; }
.subject-row .subject-change > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-block-start: var(--s2); }
.period-links { display: flex; flex-wrap: wrap; gap: var(--s1); }
@media (max-width: 639px) { .subject-row { grid-template-columns: minmax(0, 1fr) auto; } .subject-row .track-yr { grid-column: 1 / -1; } }

/* phone layout */
/* WR-29 (owner 2026-10-09): the pages no other block lays out — Parents › Today, Learning, Apps, Account; Answers; the family Account;
   sign-in; the first visit's add panel; sharing off; the Admin Activity log — at 390 px. Under 640 px: rows stack, tables are the
   framework's stacked rows (.stack + data-label), button rows wrap, every target is 44 px, nothing pushes the page sideways. */
@media (max-width: 639px) {
  :is(.page, .card) { min-inline-size: 0; overflow-wrap: anywhere; }
  .scroll-x table:not(.stack) { overflow-wrap: normal; } /* a wide table scrolls in its own box; its words are never split */
  .stack :is(td.lead, td.trail) { padding-inline: 0; } /* a stacked row's cells line up */
  .card-flush .stack tr { padding-inline: 16px; }
  label[data-setting] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  label[data-setting] .input { flex: 1 1 120px; min-inline-size: 0; }
  .acc-row { flex-wrap: wrap; }
  .acc-row > span:first-child { flex: 1 1 220px; }
  :is(.app-list, .app-part-rows) { grid-template-columns: minmax(0, 1fr); } /* Apps: one column (the rows grid sits in each part, WR-21) */
  input[data-apps-filter] { inline-size: 100%; }
  .add-top { flex-wrap: wrap; }
  .add-code > * { flex: 1 1 100%; }
  .pair-code { max-inline-size: none; }
  .row-delete-form { margin-inline-start: 0; max-inline-size: none; }
  :is([data-no-grant], .add-child) { padding: 20px 16px; }
  .now-grid .btn, .now-grid .more { flex: 1 1 100%; white-space: normal; }
  .toolbar > label { flex: 1 1 100%; } /* Ruling 29: one filter a line — a field keeps its own width (style="width: …"), never wider than the row */
  .toolbar .input { max-inline-size: 100%; }
  .seg-links { flex: 1 1 100%; }
  .seg-links .nav-pill { flex: 1 1 0; justify-content: center; }
  .auth-links { flex-wrap: wrap; }
  :is([data-pin], [data-defaults], [data-leave]) .btn { inline-size: 100%; white-space: normal; }
  :is(.btn-small, .pill-button, .step) { min-block-size: 44px; }
  :is(.nav-pill, .pager a, .pager span, .auth-links a) { min-block-size: 44px; display: inline-flex; align-items: center; }
  .app-row, .app-failed button { min-block-size: 44px; } /* a row, and its try-again */
  /* Ruling 31 (the 390 px walk): what measured under 44 px reaches it — the text keeps its size */
  .input { min-block-size: 44px; } /* fields, selects, date and datetime pickers, the pairing code */
  a[data-back] { min-block-size: 44px; display: inline-flex; align-items: center; } /* "← Children" on every child page */
  .acc-row a { position: relative; display: inline-block; padding-block: 15px; margin-block: -15px; } /* a row's inline link: 44 px of hit area, the line unmoved, painted over the text that wraps under it */
  :is(label[data-subject-on], .toolbar > label:has(> input[type=checkbox])) { min-block-size: 44px; display: inline-flex; align-items: center; gap: 6px; }
  .hdr-fox { min-inline-size: 44px; }
}
/* end phone layout */

/* Limited plan marking (owner 2026-10-24): the pill beside a limited child's name (Shared/_PlanPill — a disclosure, it opens without script)
   and Overview's one line under the tabs. Sky tint, sky text, sky border. */
.plan-pill { position: relative; display: inline-block; }
.pill-plan { border: 1px solid var(--sky); background: var(--sky-tint); color: var(--sky-text); }
.plan-pill > summary { list-style: none; cursor: pointer; min-block-size: 32px; font-size: 13px; }
.plan-pill > summary::-webkit-details-marker { display: none; }
.plan-pill > summary:focus-visible { outline: 2px solid var(--sky-dark); outline-offset: 2px; }
.plan-pop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 30; inline-size: min(300px, 80vw);
            display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--card);
            box-shadow: 0 8px 24px rgba(43,33,24,0.16); font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ink); white-space: normal; }
.plan-line { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 16px;
             background: var(--sky-tint); color: var(--sky-text); line-height: 1.45; }
.plan-line > svg { flex: none; margin-top: 1px; }
@media (max-width: 639px) { .plan-pill > summary { min-block-size: 44px; } }
/* Limited plan, admin side (/admin/plans): the account line, the switch (a link to its confirm step) and the confirm row. */
.plans-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.plans-search { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.plans-search .input { min-inline-size: 260px; }
.plans-empty, .plans-capped { margin: 0; padding: 12px 24px; }
.plan-account td { background: var(--soft); font-size: 13px; }
.plan-name { font-weight: 500; }
.plan-end { text-align: end; }
.plan-asking { background: var(--soft); }
.plan-saved { color: var(--mint-dark); font-weight: 500; }
.plan-switch { display: inline-flex; align-items: center; justify-content: flex-start; box-sizing: border-box; inline-size: 52px; block-size: 32px;
               padding: 3px; border-radius: 16px; background: var(--baseline); vertical-align: middle; }
.plan-switch[data-on="true"] { justify-content: flex-end; background: var(--sky-dark); }
.plan-switch > span { inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.plan-switch:focus-visible { outline: 2px solid var(--sky-dark); outline-offset: 2px; }
.plan-confirm td { background: var(--fox-tint); }
.plan-confirm-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan-confirm-form p { flex: 1 1 280px; margin: 0; line-height: 1.45; }
@media (max-width: 639px) { .plans-search { margin-inline-start: 0; flex: 1 1 100%; } .plans-search .input { min-inline-size: 0; } }
