/* The parent console (UI-1a). Palette and type follow lockdown/specs/ux/console.html; fonts are served from this origin. */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/dm-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/dm-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/dm-sans-700.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/fraunces-500.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/fraunces-600.woff2) format('woff2'); }
:root {
  --paper: #F6F1E6; --card: #FFFCF5; --ink: #1E2B24; --muted: #66716A; --faint: #8F968F; --line: #E6DECD;
  --forest: #1F4D3A; --forest-soft: #DFE9DF; --marigold: #E3A02F; --clay: #B9573A; --clay-soft: #F5E0D6;
  --shadow: 0 5px 14px rgba(59, 49, 32, .08);
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

/* Phone first: one narrow column. */
.app { max-width: 480px; margin: 0 auto; padding: 0 16px 60px; }
.loading, .empty { color: var(--muted); padding: 24px 0; }
header { display: flex; align-items: center; gap: 8px; padding: 16px 0 6px; position: relative; }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--forest); }
.grow { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); }
.icon-btn svg { width: 18px; height: 18px; }
.menu { position: absolute; right: 0; top: 62px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; min-width: 200px; z-index: 5; }
.menu .who { padding: 8px 10px; color: var(--muted); font-size: 13.5px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px; border-radius: 8px; font-weight: 500; }
.menu button:hover { background: var(--forest-soft); }

.navrow { display: block; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; } /* a phone swipes the row; a desktop scrollbar under it read as broken */
.chip { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 700; white-space: nowrap; }
.chip.on { border-width: 2px; border-color: var(--forest); background: var(--forest-soft); }
.chip.fam { padding: 8px 16px; color: var(--forest); }
.face { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; flex: none; }
nav.tabs { display: flex; background: #ECE5D6; border-radius: 12px; padding: 4px; margin: 4px 0 16px; }
nav.tabs button { flex: 1; background: none; border: 0; padding: 8px 10px; border-radius: 9px; font-weight: 500; color: var(--muted); }
nav.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; }

h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 2px 0 6px; }
.sub { color: var(--muted); margin-bottom: 14px; font-size: 14.5px; }
.card { background: var(--card); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
/* A card is a button so a tap opens the child; a button centres its content, so pin it to the top. */
button.card { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left; border: 0; }
.cards { display: flex; flex-direction: column; gap: 14px; }
/* The product owner 2026-11-27 (asked many times): two cards that follow each other on a page never touch. One rule for every page,
   so a new card or list placed after another one gets the same gap as the cards inside a list. */
#app > div > :is(.card, .cards) + :is(.card, .cards) { margin-top: 14px; }
/* [AI, 2026-11-28: the product owner asked for text on the bare page background to go into a bubble, on every page. A line placed
   straight under #app's shell (not the subtitle that follows the page's own h1) gets the card look, so a new line
   there cannot float.] */
#app > div > :is(.sub:not(h1 + .sub), .note) { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
#app > div > :is(.sub:not(h1 + .sub), .note) { padding: 12px 18px; margin: 14px 0; }
.kid { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.kid .face { width: 44px; height: 44px; font-size: 20px; }
.kid .nm { font-family: var(--serif); font-size: 22px; }
.kid .meta { color: var(--muted); font-size: 13.5px; }
.big { font-family: var(--serif); font-size: 30px; }
.bar { height: 10px; border-radius: 99px; background: #EEE7D8; overflow: hidden; display: flex; margin: 10px 0 8px; }
.bar span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.apps { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.apps div { display: flex; justify-content: space-between; gap: 12px; }
.apps div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps div span:last-child { color: var(--muted); flex: none; }
.status { margin-top: 14px; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: var(--forest-soft); color: var(--forest); }
.status.warn { background: var(--clay-soft); color: var(--clay); }
.later { color: var(--faint); font-size: 13.5px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.stale { color: var(--clay); font-size: 13px; padding: 6px 0; }

/* Activity tab (UI-1b) */
.split { display: flex; flex-direction: column; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.card h2.gap { margin-top: 22px; }
.tracks { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; font-size: 14px; }
.trow.day { grid-template-columns: 38px minmax(0, 1fr) auto; }
.trow .tt { display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tt small, .what small { color: var(--faint); font-size: 12px; white-space: normal; }
.trow .tm { color: var(--muted); text-align: right; white-space: nowrap; }
.track { height: 8px; border-radius: 99px; background: #EEE7D8; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--forest); border-radius: 99px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.ask, .rrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 14px; }
.what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pill { flex: none; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #ECE5D6; color: var(--muted); text-align: right; }
.pill.ok { background: var(--forest-soft); color: var(--forest); }
.pill.no { background: var(--clay-soft); color: var(--clay); }
.pill.wait { background: #F8EBC9; color: #8A6410; }
.btn.small { padding: 6px 14px; font-size: 13.5px; flex: none; }
.panel { margin-top: 10px; padding: 12px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 4px 0 8px; }
.chips.wrap .chip { padding: 7px 14px; }
/* Wraps so a long button and a note fit a phone (the ask page's Refuse ran 22 px past a 390 px screen). */
.panel .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }

/* Sign in */
.signin { max-width: 380px; margin: 60px auto 0; }
.signin h1 { margin-bottom: 18px; }

/* The look (look.mjs, the product owner 2026-11-25 option B). The logo sits beside the name; a sign-in page puts its picture on top
   on a phone and on the left half from 768px; signed-in pages get a short scene band under the header. The picture's
   note shows from 768px only: on a phone it covered the kids. */
.brand { display: flex; align-items: center; gap: 9px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.auth { margin: 0 -16px; }
.auth-art { position: relative; height: 230px; background-size: cover; background-position: center 70%; border-radius: 0 0 26px 26px; }
.auth-badge { display: none; position: absolute; left: 16px; bottom: 16px; background: rgba(255, 252, 245, .95); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.auth-badge b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.auth-side { padding: 0 16px 40px; }
.auth .signin { margin-top: 26px; }
.auth .signin .brand { margin-bottom: 14px; }
.auth .signin h1 { margin-bottom: 6px; }
.tagline { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.look-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.look-chip { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; }
.look-chip.c0 { background: var(--clay-soft); color: var(--clay); }
.look-chip.c1 { background: var(--forest-soft); color: var(--forest); }
.look-chip.c2 { background: #FBEBC8; color: #8A5B0F; }
/* A page image's credit (look.mjs creditLine): small and quiet plain text in a corner of the picture, only where the
   license requires it. */
.look-credit { font-size: 11px; line-height: 1.3; color: #4A4A40; background: rgba(255, 252, 245, .72); border-radius: 6px; padding: 2px 6px;
  max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-art .look-credit { position: absolute; right: 10px; bottom: 8px; }
.setup-panel > .look-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; }
.cover .look-credit { margin-left: auto; }
/* Look v2 (the product owner 2026-11-25): a cover picture behind the top of each signed-in page, fading into the paper. The logo and
   header buttons sit on light pills so the picture never covers them; the page title sits on a frosted bar with the
   tabs after it and the children on the right. */
.cover { height: 30px; display: flex; align-items: flex-start; }
.cover-img { position: absolute; top: 0; left: 0; right: 0; height: 600px; z-index: -1; background-size: cover; background-position: center 92%; }
/* Option A (2026-11-26, the product owner's default pick): the picture runs on down behind the cards and fades slowly into the paper,
   so the page reads as one scene. A mask fades the picture itself, so the paper's texture shows through it. The cards
   are near-opaque, so their words stay readable on it.
   The product owner 2026-11-27: the fade began too early and washed out the kids and the picnic lower down, so it starts later
   and is fainter: the picture stays full to 60% of its height, is still 80% there at 82%, and only then goes to paper. */
.cover-img { -webkit-mask-image: linear-gradient(#000 60%, rgba(0, 0, 0, .8) 82%, transparent 100%);
  mask-image: linear-gradient(#000 60%, rgba(0, 0, 0, .8) 82%, transparent 100%); }
/* The paper (look.mjs PAPER): SVG noise tiles over a tint gradient, down the whole page. A3 adds long fibres (a larger
   tile, so its repeat is not seen) and soft darker edges; A2 is fine grain over cream to warm sand. */
:root {
  --grain-fine-a2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .30 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-fine-a3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .30 0 0 0 0 .22 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .30 0 0 0 0 .22 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-paper] body { min-height: 100vh; }
html[data-paper="a3"] body { background: var(--grain-fibre), var(--grain-fine-a3),
  radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0) 55%, rgba(120, 100, 60, .10) 100%), linear-gradient(#F7F2E7 0%, #EFEBDC 50%, #E2E6D6 100%); }
html[data-paper="a2"] body { background: var(--grain-fine-a2), linear-gradient(#F6F1E6 0%, #F1E8D6 45%, #E6D8BC 100%); }
.cover-img[data-flavor="teen"] { background-position: center 62%; }
header .brand { white-space: nowrap; background: rgba(255, 252, 245, .94); border-radius: 999px; padding: 5px 14px 5px 5px; box-shadow: var(--shadow); }
.titlebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; margin-bottom: 16px; border-radius: 20px;
  background: rgba(255, 252, 245, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.titlebar h1 { margin: 0 4px; font-size: 26px; }
.titlebar nav.tabs { margin: 0; background: #EFE8DA; border-radius: 999px; }
.titlebar nav.tabs button { flex: none; padding: 7px 14px; border-radius: 999px; }
.titlebar nav.tabs button.on { background: var(--forest); color: #fff; }
.kids { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
.kidchip { display: flex; align-items: center; gap: 8px; background: transparent; border: 2px solid transparent; border-radius: 999px; padding: 3px 14px 3px 3px;
  font-weight: 700; color: var(--muted); white-space: nowrap; }
.kidchip .face { width: 30px; height: 30px; font-size: 15px; opacity: .6; }
.kidchip.on { border-color: var(--c, var(--forest)); background: var(--card); color: var(--ink); }
.kidchip.on .face { opacity: 1; }
.kidchip.fam { padding: 6px 14px; color: var(--forest); }
.kidchip.fam.on { border-color: var(--forest); }
.card h3 { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.card h3 small { margin-left: auto; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.summary { margin-bottom: 18px; }
.summary .big { font-size: 44px; font-weight: 600; line-height: 1; }
.summary .big small { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.facts:empty { display: none; }
.facts .status, .fact { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--forest-soft); color: var(--forest); }
.facts .status.warn, .fact.warn { background: var(--clay-soft); color: var(--clay); }
button.i { width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit;
  font: italic 700 11px/1 var(--serif); display: inline-grid; place-items: center; opacity: .7; }
button.i.on { opacity: 1; box-shadow: 0 0 0 2px currentColor; }
.note.tip { margin: 0 0 10px; }
.card h3 button.i { color: var(--muted); }
.inforce .rowline { background: #F1ECE0; border-radius: 12px; padding: 8px 12px; }
.inforce:empty { display: none; }
.summary .oneoff-block { margin: 0; }
.weekcols { display: flex; gap: 8px; height: 92px; align-items: stretch; }
.wcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wfill { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.wfill span { display: block; width: 100%; min-height: 4px; border-radius: 6px; background: #D5E0D5; }
.wcol.today .wfill span { background: var(--forest); }
.wl { font-size: 11.5px; color: var(--muted); }
.wcol.today .wl { color: var(--ink); font-weight: 700; }
@media (min-width: 768px) {
  .cover { height: 40px; }
  .cover-img { height: 1000px; }
  /* IRLB-325: the title bar keeps wrapping and the child chips may shrink to the bar's width and scroll, so five children
     drop to a second row instead of running past the right edge. [AI, 2026-12-01: wrap, not scroll alone, so no chip is hidden.] */
  .titlebar { padding: 12px 16px 12px 20px; }
  .titlebar h1 { font-size: 34px; }
  .kids { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .auth { position: fixed; inset: 0; margin: 0; display: grid; grid-template-columns: 54% 1fr; background: var(--paper); z-index: 1; }
  .auth-art { height: auto; border-radius: 0 30px 30px 0; background-position: center; }
  .auth-badge { display: block; left: 28px; bottom: 28px; font-size: 14px; padding: 12px 16px; }
  .auth-badge b { font-size: 17px; }
  .auth-side { overflow-y: auto; display: grid; place-items: center; padding: 30px; }
  .auth .signin { margin: 0; width: 100%; }
}
/* Item names on the answer page can be one long word (an app id), which would push a phone screen sideways. */
.answerpage { overflow-wrap: anywhere; }
.signin form { display: flex; flex-direction: column; gap: 12px; }
.signin label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
/* The reset page's admin code row stays out until Core asks for it (CORE-ADMIN). */
.signin label[hidden] { display: none; }
.signin input { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; }
.btn { background: var(--forest); color: #fff; border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; }
.btn:disabled { opacity: .6; cursor: default; }
/* G2: "Sign in with Google" sits under the sign-in form at the same weight as its button. */
.google-signin:not(:empty) { margin-top: 12px; }
.google-signin .btn { display: block; text-align: center; text-decoration: none; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.day-one .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.day-one #pc-line { margin: 12px 0 20px; }
.btn.soft { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.err { color: var(--clay); font-size: 14px; min-height: 1.2em; }
.link { background: none; border: 0; color: var(--forest); text-decoration: underline; padding: 0; font-size: 14px; align-self: flex-start; }
.note { color: var(--muted); font-size: 13.5px; }
.note.ok { color: var(--forest); font-weight: 500; margin: 10px 0; }
.note.warn { color: var(--clay); font-weight: 500; margin: 10px 0; }
/* IRLB-635 lines on a PC row: a gap between them, so a wrapped line on a phone does not run into the next. */
.note.surface { margin-top: 6px; }
.picker { display: flex; flex-direction: column; gap: 10px; }

/* iPad and larger: chips and tabs share a row, cards sit two across. */
@media (min-width: 768px) {
  .app { max-width: 920px; padding: 0 32px 60px; }
  header { padding-top: 22px; }
  .menu { top: 68px; }
  h1 { font-size: 36px; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
}

/* Bell and answer view (UI-1c) */
.icon-btn.bell { position: relative; }
.badge { position: absolute; top: -4px; right: -4px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.scrim { position: fixed; inset: 0; background: rgba(20, 28, 24, .25); z-index: 8; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 480px); background: var(--paper); box-shadow: -10px 0 30px rgba(0,0,0,.12); padding: 22px 24px; overflow-y: auto; z-index: 9; }
.drawer h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 14px; }
.drawer .x { float: right; background: none; border: 0; font-size: 26px; color: var(--muted); min-width: 44px; min-height: 44px; }
.nlist { display: flex; flex-direction: column; gap: 10px; }
.nrow { text-align: left; width: 100%; background: var(--card); border: 0; border-left: 4px solid var(--marigold); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.nrow.device { border-left-color: var(--clay); }
/* AA-6: auto-approval notices sit apart from what needs the parent; the advice block on the answer screen. */
.nrow.quiet { border-left-color: var(--forest); box-shadow: none; }
.advice .lenses { margin: 6px 0; padding-left: 18px; font-size: 13.5px; }
.advice .lens.against b { color: var(--clay); }
.advice .lens.for b { color: var(--forest); }
.advice .fit { font-weight: 700; margin-top: 4px; }
.remember { margin: 8px 0; }
.remember .tick { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.nrow.quiet .actions { display: flex; gap: 8px; margin-top: 8px; }
.pref .what { flex: 1; overflow-wrap: anywhere; }
.nrow .t { font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.nrow .w { color: var(--muted); font-size: 12.5px; }
.big.small { font-size: 22px; overflow-wrap: anywhere; }
.quote { color: var(--muted); font-style: italic; margin: 6px 0; overflow-wrap: anywhere; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; margin: 10px 0; }
.fld input { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.fld small { color: var(--faint); font-weight: 400; }
.card .pill { display: inline-block; margin: 8px 0; text-align: left; }
.pill.wait, .pill.ok, .pill.no { display: inline-block; margin: 8px 0; text-align: left; }
/* IRLB-320: a request's outcome is a whole sentence, so under the name it wraps to the row's width. */
.pill.says { align-self: flex-start; max-width: 100%; margin: 6px 0 0; text-align: left; border-radius: 10px; }

/* Content tab (UI-2a) */
.ctools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
/* The search box takes its own row on a phone, so the three buttons do not squeeze it to nothing. */
.search { flex: 1 1 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; }
@media (min-width: 700px) { .search { flex-basis: 0; } }
.clist { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.cgroup h2 { display: flex; align-items: center; gap: 6px; }
.cgroup h2 .count { margin-left: auto; font-weight: 500; color: var(--faint); }
.citem { padding: 10px 0; border-top: 1px solid var(--line); }
.citem:first-of-type { border-top: 0; }
.citem.hidden .what { opacity: .55; }
.citem .cnote { font-style: italic; }
.heads { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #F8EBC9; color: #6B4D0B; font-size: 13.5px; }
.heads.quiet { background: #ECE5D6; color: var(--muted); }
.heads .actions { display: flex; gap: 8px; margin-top: 8px; }
.sub.gap { margin: 14px 0 6px; font-weight: 700; }
.limitrow { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.limitrow .fld { margin: 0; }
.limitrow input { width: 90px; }
.limitrow .wide { flex: 1 1 160px; }
.limitrow .wide input { width: 100%; box-sizing: border-box; }
/* C11 Saved time view: days in two aligned columns, room above the balance field, Change button stays at the top. */
.saved-time .panel .rrow { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 4px 16px; }
.bankfield .rowline { justify-content: flex-start; flex-wrap: wrap; }
.bankfield .rowline > input[type=checkbox] { flex: none; }
.bankfield .rowline > span:first-of-type { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 40px); }
.saved-time .panel .limitrow { margin-top: 12px; }
.limrow:has([data-saved-time]) { align-items: flex-start; }
.limitrow select, .fld select, .fld textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; }
.chips.wrap .chip.swatch, .chip.swatch { padding: 6px; }
.dot.sw { width: 22px; height: 22px; border-radius: 6px; margin: 0; vertical-align: middle; }
.cgroup h2 .btn { margin-left: 6px; font-size: 13px; }
.panelcard { margin: 10px 0 14px; }
.panelcard .actions { display: flex; gap: 8px; margin-top: 8px; }
@media (min-width: 768px) { .clist { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; } }

/* Schedule tab: the Time limits card under the week (Option A, 2026-11-28); an app or site line sits under its category. */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.below-week { margin-top: 14px; }
.limrow small { margin-left: 0; }
.limrow.sub { margin-left: 16px; padding-left: 12px; border-left: 2px solid var(--line); }
.limrow > .btn { flex: none; }
.limits-none .link { display: inline; padding: 0; min-width: 0; min-height: 0; font-size: inherit; }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rowline:last-child { border-bottom: 0; }
/* One-off buttons and their dialog (UI-2c1) */
.oneoffs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.sub-with-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.oneoff-block { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.oneoff-dialog { margin: 0 0 12px; max-width: 460px; }
.oneoff-dialog .fld select, .oneoff-dialog .fld input { width: 100%; box-sizing: border-box; }
.rowline small { margin-left: 4px; }

/* Settings: children and PCs (UI-2c2) */
.settings-cards { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.settings-readonly { border: 0; padding: 0; margin: 0; min-width: 0; }
/* A page-level note on Settings draws as a box; keep it as wide as the cards under it, not the whole page. */
.note.settings-w { max-width: 640px; }
.settings-cards .card h2 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.settings-cards .nm { font-family: var(--serif); font-size: 22px; }
.pcrow { border-bottom: 1px solid var(--line); }
.pcrow:last-child { border-bottom: 0; }
.pcrow .rowline { border-bottom: 0; flex-wrap: wrap; }
.invite-made .code { font-family: var(--serif); font-size: 34px; letter-spacing: .08em; margin: 4px 0 8px; overflow-wrap: anywhere; }
.invite-made .link-text { overflow-wrap: anywhere; min-width: 0; font-size: 13.5px; }
.android-qr { margin: 10px 0; }
.android-qr img { display: block; width: 240px; max-width: 100%; height: auto; border: 1px solid var(--line, #ddd); border-radius: 6px; }
.steps { padding-left: 1.3em; display: grid; gap: 16px; }
.addchild { margin: 14px 0 24px; max-width: 640px; }
.settings-cards .actions { display: flex; gap: 8px; margin-top: 10px; }

/* Admin view (UI-4a) */
.admin-page { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.admin-page .card h2 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.admin-fams { display: flex; flex-direction: column; gap: 8px; }
.admin-fams .btn { text-align: left; }
.admin-page .enf { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.admin-page .enf .pill, .admin-page .pcrow .pill { margin: 0; }
.admin-page .levelform { align-items: flex-end; }
.admin-page .levelform .fld { flex: 1; margin: 0; min-width: 0; }
.admin-page .levelform .fld input, .admin-page .levelform .fld select, .admin-page .panel .fld select, .admin-page .panel .fld input { width: 100%; box-sizing: border-box; }
.admin-page .panel .actions { display: flex; gap: 8px; margin-top: 8px; }
.admin-page .logrow { border-bottom: 1px solid var(--line); padding: 4px 0; }
.admin-page .logrow:last-child { border-bottom: 0; }
.admin-page .logrow.dim { opacity: .55; }
.admin-table { overflow-x: auto; margin-top: 10px; }
.admin-table table { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.admin-table th, .admin-table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
/* All PCs table (UI-4b1) */
.admin-page.wide { max-width: 1100px; }
.viewtabs { display: flex; gap: 8px; margin: 10px 0; }
.admin-page .filters { gap: 18px; justify-content: flex-start; }
.admin-page .chk { display: inline-flex; align-items: center; gap: 4px; }
.admin-table.pcs-table th, .admin-table.pcs-table td { white-space: normal; vertical-align: top; }
.pcs-table .enf { margin: 0; }
.admin-fams .famid { display: block; font-weight: 400; font-size: 11.5px; opacity: .7; }

/* Touch targets (UI-10): an iPad finger needs about 40px. */
nav.tabs button, .btn, .chip, .link, .menu button, .scathead { min-height: 40px; }
.rrow > .actions { display: flex; gap: 8px; flex: none; }
.rrow > .why-not { color: var(--muted); font-size: 12.5px; text-align: right; max-width: 45%; }
.btn.small { display: inline-flex; align-items: center; justify-content: center; }
.chip.swatch { min-width: 40px; justify-content: center; }
.link { padding: 8px 0; min-width: 44px; }
input[type=checkbox] { width: 20px; height: 20px; }
.keep-list { display: grid; gap: 0; margin: 2px 0 6px; }
/* UI-IMPORT-2 (mockup M): the keep list in Content's "Found on <Name>'s PC" bubble and the setup keep step */
.keep-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; border-bottom: 1px solid #F0EADC; }
.keep-row:last-child { border-bottom: 0; }
.keep-row input { accent-color: var(--forest); }
.keep-main { display: flex; flex-direction: column; min-width: 0; }
.keep-name { font-weight: 600; overflow-wrap: anywhere; }
.keep-row.kept .keep-name { color: var(--muted); }
.keep-row .tag { margin-left: 8px; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--forest-soft, #dfe9df); }
.keep-host { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--faint); }
.keep-why { font-size: 12.5px; color: var(--clay); }
.keep-src { font-size: 11.5px; color: var(--faint); }
.keep-tip { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.keep-i { display: inline-grid; place-items: center; width: 18px; height: 18px; min-width: 0; padding: 0; border-radius: 50%; border: 1.2px solid var(--faint); background: none;
  color: var(--faint); font: italic 700 11px Georgia, serif; cursor: help; vertical-align: 1px; }
/* UI-EARL-FOUND: a row the assistant changed, and the line above the list that says what it changed */
.keep-by { margin-left: 6px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #F3E7C9; color: #6B5320; }
.keep-assist { margin: 8px 0 4px; }
.keep-assist .link { padding: 0 4px; min-width: 0; }
.keep-right { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.keep-right.removing { color: var(--clay); }
.keep-right.err { color: var(--clay); }
.keep-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1.5px solid var(--line); margin: 12px 0 10px; scrollbar-width: none; }
.keep-tabs button { background: none; border: 0; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; cursor: pointer; }
.keep-tabs button.on { color: var(--forest); border-bottom-color: var(--forest); }
.keep-tabs .dot { border-radius: 50%; width: 8px; height: 8px; margin-right: 6px; }
.keep-search { width: 100%; margin-bottom: 4px; }
.keep-head, .card .keep-head { display: block; font-family: var(--serif); font-weight: 600; font-size: 17px; margin: 14px 0 2px; }
.keep-group.no .keep-head { color: var(--clay); }
.keep-head small, .card .keep-head small { margin-left: 6px; font-family: var(--sans); font-weight: 500; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.keep-type { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 10px 0 0; }
.keep-fold { margin: 12px 0 0; }
.keep-fold > .link { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--muted); }
.keep-fine { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }
.keep-fine .link { padding: 0; min-width: 0; color: var(--muted); text-decoration: underline; }
.keep-empty { color: var(--faint); }
/* On a phone the "Will be removed" goes under the name rather than squeezing it. */
@media (max-width: 520px) { .keep-row { grid-template-columns: auto 1fr; } .keep-row .keep-right { grid-column: 2; margin-left: 0; } }
.told-us { margin: 6px 0 12px; padding-left: 20px; }
.status-pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #ECE5D6; color: var(--muted, #66716a); text-align: left; max-width: 100%; }
.status-pill.approved { background: var(--forest-soft, #dfe9df); color: var(--forest, #2f5a3a); }
.status-pill.caution { background: #F8EBC9; color: #8A6410; }
.status-pill.queued { background: #E3ECF5; color: #2D5780; }
.adult-hosts { margin: 4px 0 0; padding-left: 20px; font-size: 13px; }
.found-panel { margin: 10px 0; }
.card.found-panel > h2 { font: 600 22px var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 4px; }
.heads.caution-line { background: #F8EBC9; color: #6B4D0B; }
/* A category card's quiet type tabs */
.ttabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 4px; font-size: 12.5px; }
.ttabs button { background: none; border: 0; padding: 4px 0; min-width: 0; font: inherit; color: var(--faint); cursor: pointer; border-bottom: 1.5px solid transparent; }
.ttabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
/* UI-FIND-2: Find in Add, and our status on requests and in the bell */
.find-search { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.find-search .fld { flex: 1 1 220px; }
.find-list { margin: 10px 0; }
.find-row { padding: 8px 0; border-bottom: 1px solid var(--line, #e6decd); }
.find-row .tag { margin-left: 8px; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--forest-soft, #dfe9df); }
.find-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--muted, #66716a); margin: 4px 0; }
.find-sub .reason { color: var(--ink, #2b2f2c); }
.find-sub .host { font-family: ui-monospace, Consolas, monospace; }
.find-sub .src { font-size: 11.5px; color: var(--faint); }
/* IRLB-647: a program ask's identity lines. Only an unbacked claim is a warning; "Not signed" is a plain fact. */
.identity { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.identity .id-line { margin: 2px 0; }
.identity .id-line.warn { display: inline-block; background: var(--clay-soft); color: var(--clay); font-weight: 600; border-radius: 8px; padding: 3px 9px; }
.identity.compact { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; margin: 4px 0; }
.identity.compact .id-line { margin: 0; }
.identity.compact .id-line.warn { padding: 1px 8px; }
.find-row .actions { margin-top: 6px; }

/* Week editor */
.wkeditor { display: flex; flex-direction: column; gap: 14px; }
.wkwarn { margin: 0 0 10px; font-weight: 500; }
/* Kinds of day (UI-SCHED-DAYS): the week strip, a tab per kind, and the kind's routine as a timeline of parts. A kind's
   colour marks its days on the strip and its parts' edge. One column at every width. */
.rstrip { display: flex; gap: 4px; margin: 0 0 12px; }
.rday { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: var(--c); color: #fff; font-weight: 700; font-size: 13px; opacity: .55; }
.rday.on { opacity: 1; }
.rday.pick { opacity: 1; outline: 3px solid var(--marigold); outline-offset: 1px; }
.rday:disabled { opacity: .25; cursor: default; }
/* Named days: a date this week picked to be another day, and the date tapped. */
.rday.once { opacity: 1; box-shadow: inset 0 -4px 0 rgba(255,255,255,.65); }
.rday.at { opacity: 1; outline: 3px solid var(--ink, #222); outline-offset: 1px; }
.rdatebox, .dayis-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; margin: 0 0 12px; }
.rdate { width: 100%; }
.dayis-row { margin-top: 10px; }
.dayis-row .status, .dayis-row .err { width: 100%; }
.fld select[data-field="day-pick"], .fld select[data-field="copy-from"] { min-width: 12em; }
.rnewday .routine { margin: 8px 0; }
nav.tabs.rtabs { flex-wrap: wrap; margin: 0 0 12px; }
.routine { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--line); margin-left: 6px; padding-left: 10px; }
.rpart { border: 1.5px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; background: var(--card); }
.rpart.sel { border-color: var(--forest); border-left-color: var(--c); }
.rhead { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; background: none; border: 0; padding: 8px 12px; text-align: left; min-height: 44px; }
.rhead small, .rgap small { color: var(--muted); font-size: 12.5px; }
.rhead b { font-size: 15px; overflow-wrap: anywhere; }
.rwhat { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rbed { background: #2D3A55; border-color: #2D3A55; color: #fff; }
.rbed .rhead small, .rbed .rwhat, .rbed .note { color: #CCD3E2; }
.rbed .rform { background: var(--card); color: var(--ink); border-radius: 0 0 10px 10px; }
.rbed .rform .note { color: var(--muted); }
.rgap { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 6px 12px; text-align: left; border: 1.5px dashed var(--line);
  border-radius: 12px; background: repeating-linear-gradient(135deg, #F3EDE0 0 6px, #EEE7D8 6px 12px); color: var(--muted); }
.rform { border-top: 1px solid var(--line); padding: 4px 12px 12px; }
.rform fieldset { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; }
.rform legend { font-weight: 700; font-size: 13.5px; padding: 0 0 4px; }
.rform .limitrow input { width: 140px; }
.rpick h3 { font-size: 16px; margin: 0 0 6px; }
.wkticks { display: flex; flex-direction: column; }
.wktick { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; overflow-wrap: anywhere; }
.wktick input { flex: none; }
.rform .actions, .rpick .actions, .wkeditor .actions, .wkswitch .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.wkswitch .rowline span { overflow-wrap: anywhere; min-width: 0; }
/* A4c: the setup panel beside the day-one card. auto-fit puts it beside the card where #app has room (the chat's push
   layout narrows #app) and under it where it has not. */
.setup-layout { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.day-one.folded { padding: 12px 18px; }
.learn-more { border-left: 3px solid var(--line); padding-left: 12px; margin: 8px 0; }
.setup-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* The general-info slot is a bubble in the family panel (design-onboarding-interview.md, "General info"). */
.bub.info-slot { flex-direction: column; align-items: stretch; }
.bub.info-slot.fp-book { flex-direction: row; align-items: flex-start; gap: 14px; }
.fp-book img { width: 84px; height: auto; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.25); flex: none; }
.fp-book p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.info-slot figure { margin: 0 0 8px; }
.info-slot img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.info-slot figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* UI-INT-1a: the day-one page in the product owner's picked layout (evidence/UI-INT-1/mockup-v3f.html). Left about 2/3: the header
   with the progress bars, the chat box, the step's card under it, boxes about 3/4 of that side and centred. Right 1/3,
   full height: the family panel over a photo. #chat-col is a body child outside #app (render() never replaces it, which
   would reload the pane), so #app, its shell div and the card's layout divs become display:contents here, and body
   lays out the header, the chat and the card as one column without moving any node. Narrow: the same column, then
   the panel as a short strip. body.day-one-page is set by placeChat on every draw of the day-one card. */
.chat-col[hidden] { display: none; }
.chat-col { background: var(--card); position: relative; }
/* Over the pane's blank frame until it is ready (day-one.mjs chatLoading); min-height so an auto-height column shows it. */
.chat-col > .chat-loading { position: absolute; inset: 0; z-index: 1; margin: 0; display: flex; align-items: center; justify-content: center;
  min-height: 120px; background: var(--card); color: var(--muted); font-size: 17px; }
/* A refused turn, under the pane (B4, assistant.mjs showRefusal). */
.pane-refused { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); background: #F3EAD2; color: #5A4A1C; font-size: 14px; line-height: 1.4; }
.pane-refused p { margin: 0 0 4px; }
.pane-refused .link { padding: 0; min-height: 0; font-size: 14px; color: var(--forest); text-decoration: underline; }
.ai-limit-pop { max-width: min(420px, 92vw); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--card); color: var(--ink);
  box-shadow: 0 8px 30px rgba(31,77,58,.28); font-size: 15px; line-height: 1.45; }
.ai-limit-pop p { margin: 0 0 10px; }
.ai-limit-pop::backdrop { background: rgba(0,0,0,.2); }
.val { font-size: 12.5px; color: var(--muted); padding: 2px 8px; border-radius: 99px; background: #ECE5D6; }
.vals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
body.day-one-page { display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: 100vh; padding: 0 48px 40px; }
body.day-one-page #app, body.day-one-page #app > div, body.day-one-page .setup-layout, body.day-one-page .setup-side { display: contents; }
body.day-one-page #app > div > *, body.day-one-page .day-one, body.day-one-page #chat-col {
  order: 1; width: min(100%, max(560px, 75%)); max-width: 940px; flex: none; }
/* The header takes the chat's column (width and left edge from the rule above), so the brand and the bar line up over
   the chat bubble (the product owner 2026-11-22: "it feels misaligned"). */
body.day-one-page #app > div > header { order: 0; padding: 26px 0 4px; gap: 12px; }
body.day-one-page #app > div > .scrim, body.day-one-page #app > div > .drawer { width: auto; max-width: none; }
body.day-one-page .brand { font-size: 22px; }
body.day-one-page #chat-col { order: 2; height: max(380px, 62vh); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
/* With the support bot's 'inline-autoheight' the bridge sets the box's height itself (day-one.mjs, chatHeight). */
body.day-one-page #chat-col.auto-height { height: auto; }
/* W14-03: off the setup page (home, a child's page), the chat stays up and sits under the page in the same box. */
body.chat-home #chat-col { width: min(100% - 32px, 940px); margin: 0 auto 40px; height: max(380px, 62vh); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
body.chat-home #chat-col.auto-height { height: auto; }
/* A2 component 5: the everyday chat's Close, just above the chat, at its right edge. */
.chat-bar[hidden] { display: none; }
.chat-bar { display: flex; justify-content: flex-end; width: min(100% - 32px, 940px); margin: 0 auto 6px; }
body.day-one-page .chat-bar { order: 2; width: min(100%, max(560px, 75%)); max-width: 940px; margin: 0; }
.chat-bar .chat-close, .chat-bar .chat-new { font-weight: 600; padding: 6px 10px; }
.voice-head { display: inline-flex; align-items: center; gap: 8px; }
.voice-head img { flex: none; }
/* Who the parent talks to, just above the chat (mockup robot-icons.html, style A chip). Same order as the chat, and
   #app comes before #chat-col in body, so it sits right above it; only while the chat is up. */
.chat-who { display: none; }
body.day-one-page.with-chat .chat-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  order: 2; width: min(100%, max(560px, 75%)); max-width: 940px; flex: none; margin-bottom: -14px; }
/* The chip at 1.5x the mockup's (the product owner 2026-11-22, "like 50% larger"): 42px face, text to suit. */
.who-chip { display: inline-flex; align-items: center; gap: 10px; background: #EFE8DA; border-radius: 999px; padding: 5px 18px 5px 5px; font-weight: 600; font-size: 18px; }
.who-chip small { font-weight: 400; font-size: 15px; color: var(--muted); }
.who-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: 0; }
.chat-who .err { flex-basis: 100%; }
.voice-icon { flex: none; }
/* Setup walk 2 (11f): the chat's own saves, a growing list just under the chat, above the card. */
.chat-saved { font-size: 14px; color: var(--forest); background: var(--forest-soft); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.chat-saved-head { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
body.day-one-page .chat-saved { order: 3; width: min(100%, max(560px, 75%)); max-width: 940px; flex: none; box-sizing: border-box; }
body.day-one-page .day-one { order: 3; border-radius: 22px; padding: 22px 28px; border: 2px solid #F9EBCB; }
/* Setup polish (the product owner 2026-11-26): named steps on solid pills, readable on any paper; done ticked, the current one ringed. */
.fp-progress { display: flex; flex-wrap: nowrap; gap: 5px; margin-left: 10px; }
.fp-step { font-size: 13px; padding: 4px 9px; border-radius: 999px; background: var(--card); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.fp-step.done { background: var(--forest-soft); color: var(--forest); border-color: transparent; font-weight: 600; }
.fp-step.now { border: 1.5px solid var(--marigold); color: var(--ink); font-weight: 600; }
/* The way out, played down: a plain link at the header's right end. */
header .come-back { font-size: 14px; color: var(--muted); min-height: 0; white-space: nowrap; }
header .come-back:hover { color: var(--forest); }
/* The folded home's strip: how far setup is, what is next, and the button. */
.finish-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-left: 4px solid var(--marigold); margin-bottom: 14px; }
.brand-home { text-decoration: none; color: inherit; border-radius: 999px; }
.brand-home:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.finish-what { display: flex; flex-direction: column; }
.finish-what .muted { font-size: 13.5px; color: var(--muted); }
.finish-bar { display: flex; gap: 4px; width: 120px; }
.finish-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.finish-bar .done { background: var(--forest); }
.finish-bar .now { background: var(--marigold); }
/* A child with no PC: one card that sets it up, then a line to the tabs that already work. */
.nopc { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--marigold); }
.nopc-icon { font-size: 34px; line-height: 1; }
.nopc-what { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.nopc-what b { font-family: var(--serif); font-size: 19px; }
.nopc-what .muted { color: var(--muted); }
.nopc-plan { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.nopc-plan .link { display: inline; padding: 0; min-width: 0; font-size: inherit; }
.finish-strip #finish-setup { margin-left: auto; }
/* The family panel. The photo is the cloud's page image for the tab's group (look.mjs showLook, UI-IMAGES-1), through
   the console's own proxy, so the page loads nothing from another site. An image's focus sets its position. */
.setup-panel { position: relative; color: #fff; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: #2A3A30 center / cover no-repeat; border-radius: 22px; }
.fp-tab.locked, .fp-tab.locked:hover { color: rgba(232,240,234,.38); cursor: default; }
.setup-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,35,28,.78) 0%, rgba(20,35,28,.25) 38%, rgba(20,35,28,.55) 100%); }
.setup-panel > * { position: relative; }
.fp-head { padding: 30px 30px 0; }
.fp-eyebrow { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; color: #CFE0D5; }
.fp-name { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: -.5px; margin: 2px 0 14px; color: #fff; overflow-wrap: anywhere; }
.fp-tabs { display: flex; gap: 18px; border-bottom: 1.5px solid rgba(255,255,255,.22); }
.fp-tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1.5px; padding: 6px 0 6px; min-height: 40px; color: rgba(232,240,234,.75); font-weight: 500; font-size: 14px; }
.fp-tab:hover { color: #fff; }
.fp-tab.on { color: #fff; font-weight: 700; border-bottom-color: var(--marigold); }
.fp-body { margin-top: auto; min-height: 0; overflow-y: auto; padding: 24px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.bub { flex: none; background: rgba(255,252,245,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink);
  border-radius: 20px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.bub.new { outline: 2.5px solid var(--marigold); }
.bub.ghost { background: rgba(255,255,255,.18); color: #fff; border: 1.5px dashed rgba(255,255,255,.55); box-shadow: none; justify-content: center; font-weight: 500; min-height: 52px; width: 100%; }
button.bub.ghost:hover { background: rgba(255,255,255,.26); }
.fp-av { width: 40px; height: 40px; border-radius: 50%; background: #2F6F8F; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 17px; flex: none; }
.fp-what { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.fp-title { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; overflow-wrap: anywhere; }
button.fp-title:hover, button.fp-title:focus-visible { text-decoration: underline; }
.fp-what small { color: var(--muted); font-size: 13px; }
/* The chips wrap inside the bubble and the bubble stays inside the panel, a long value included (the product owner 2026-11-22: the
   values bubble ran off the panel's right edge). */
.bub { box-sizing: border-box; max-width: 100%; min-width: 0; }
.fp-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-self: stretch; max-width: 100%; min-width: 0; }
.fp-words span { max-width: 100%; overflow-wrap: anywhere; font-size: 12.5px; color: var(--forest); padding: 2px 9px; border-radius: 99px; background: var(--forest-soft); }
.fp-lines { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.fp-more { min-height: 0; padding: 4px 0 0; font-size: 13px; }
/* IRLB-513: the badge sits on the bubble's top edge, out of the row, so it no longer squeezes a child's text and topic
   chips into a narrow column beside it and the Edit button. */
.bub.new { position: relative; }
.fp-new { position: absolute; top: -10px; right: 16px; font-size: 12px; font-weight: 700; background: var(--marigold); color: #fff; padding: 3px 10px; border-radius: 10px; }
.bub.fp-drill { display: block; }
/* A child's bubble: an Edit button at the right, and the edit form opening inside the bubble (the product owner 2026-11-23). */
.fp-edit-btn { flex: none; align-self: flex-start; }
.bub.editing { align-items: flex-start; background: rgba(255,252,245,.97); }
.fp-edit { align-self: stretch; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line, #E6DECD); }
.fp-edit h4 { margin: 10px 0 4px; font-size: 13px; }
/* The Week tab (mockup week-setup): one row per child; the open one holds its usual-week grid under its line. */
.bub.fp-week { flex-direction: column; align-items: stretch; }
.fp-weekhead { display: flex; gap: 12px; align-items: center; }
.bub.fp-week.open { outline: 2.5px solid var(--marigold); }
.bub.fp-week .week-editor { margin-top: 8px; }
@media (min-width: 900px) {
  /* The panel is fixed to the right third; body keeps the left two thirds for the talk. */
  body.day-one-page { margin-right: 33.333vw; }
  body.day-one-page .setup-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 33.333vw; border-radius: 0; z-index: 2; }
}
@media (max-width: 899px) {
  /* Narrow: header, chat, card, then the panel as a short strip with the tabs; its bubbles scroll sideways. */
  body.day-one-page { padding: 0 16px 40px; gap: 16px; }
  body.day-one-page #app > div > *, body.day-one-page .day-one, body.day-one-page #chat-col, body.day-one-page .setup-panel, body.day-one-page.with-chat .chat-who { width: 100%; }
  body.day-one-page #app > div > header { padding-top: 14px; flex-wrap: wrap; }
  body.day-one-page .fp-progress { order: 5; flex: 1 0 100%; margin: 4px 0 0; }
  body.day-one-page #chat-col { height: max(420px, 72vh); }
  body.day-one-page .day-one { padding: 18px 18px; }
  body.day-one-page .setup-panel { order: 5; }
  .fp-head { padding: 18px 18px 0; }
  .fp-name { font-size: 26px; margin-bottom: 8px; }
  .fp-body { margin-top: 0; flex-direction: row; overflow-x: auto; padding: 16px 18px 18px; align-items: stretch; }
  .fp-body .bub { width: auto; min-width: 230px; max-width: 85%; }
  .fp-body .bub.fp-drill, .fp-body .bub.editing, .fp-body .bub.fp-week.open { min-width: 100%; }
}
.drillhead { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.drillhead h3 { margin: 0; font-size: 17px; }
.drill h4 { margin: 14px 0 2px; font-size: 13.5px; color: var(--muted); }
.drill .item .what { flex: 1; }
.drill .fld select { border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; background: #fff; font: inherit; }
.week-editor { margin-top: 12px; }
/* UI-INT-1b: the interview's own cards under the chat (mockup v3g), and the one value editor (values-picker.mjs). */
.ivcard .kicker { color: #9A6A12; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.ivcard h3 { font: 600 21px var(--serif); margin: 2px 0 12px; }
.ivcard .intro { color: var(--muted); font-size: 14px; margin: -6px 0 12px; }
.ivrow { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.ivlabel { flex: none; width: 120px; color: var(--muted); font-size: 13px; }
.ivfield { flex: 1; min-width: 0; }
.ivnum { width: 5em; border: 1.5px solid var(--forest); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; color: var(--forest); background: #fff; }
.ivsel, .ivtext { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; background: #fff; }
.ivtext { width: 100%; max-width: 360px; box-sizing: border-box; }
.ivchips { display: flex; flex-wrap: wrap; gap: 8px; }
.ivchip { padding: 5px 12px; min-height: 34px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.ivchip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.ivweek { margin: 4px 0 0; padding-left: 20px; line-height: 1.7; }
.values-editor { display: flex; flex-direction: column; gap: 8px; }
.values-editor:not(.editing) { flex-direction: row; flex-wrap: wrap; align-items: center; }
.vlist { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; background: var(--forest-soft); color: var(--forest); font-size: 13.5px; font-weight: 600; }
.vchip-x { border: 0; background: none; color: var(--forest); font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; min-height: 0; }
.vpicker { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.vpicker h4 { margin: 0; }
.vsearch { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; }
.vsets { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 320px; overflow: auto; }
.vset-pick { text-align: left; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.vset-pick small { color: var(--muted); }
.vset-pick .vcount { color: var(--forest); }
.vvals { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.vvals small { color: var(--muted); display: block; }
/* A scrolled flex column shrinks its rows to min-height, so long value text overlapped the next row on a phone. */
.vvals .choice { flex-shrink: 0; align-items: flex-start; }
.vpicker .fld textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; font: inherit; }
@media (max-width: 640px) { .ivrow { flex-direction: column; align-items: flex-start; gap: 6px; } .ivlabel { width: auto; } }

/* Preloader (the product owner 2026-11-27, mockup b5): kids flying a kite, a girl petting a dog, a farm far off. It is drawn in
   index.html so it shows before any script runs, and app.js shows the same node again while a family loads. */
.preloader { position: fixed; inset: 0; z-index: 50; overflow: hidden; color: var(--forest);
  background: linear-gradient(#A9D8E6 0%, #CFE8E4 55%, #E9EFD9 72%); }
.pl-cloud { position: absolute; fill: #F4FAFB; animation: pl-drift 22s linear infinite; }
.pl-c1 { top: 10vh; left: -160px; width: 160px; }
.pl-c2 { top: 22vh; left: -120px; width: 120px; animation-duration: 30s; animation-delay: -12s; }
.pl-c3 { top: 6vh; left: -100px; width: 100px; animation-duration: 38s; animation-delay: -25s; }
@keyframes pl-drift { to { transform: translateX(calc(100vw + 220px)); } }
.pl-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
/* The string and kite swing together around the boy's hand, so the string stays in his hand. */
.pl-flight { transform-origin: 474px 440px; transform-box: view-box; animation: pl-swing 2.6s ease-in-out infinite; }
@keyframes pl-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.pl-kite { transform-origin: 590px 190px; transform-box: view-box; animation: pl-tilt 1.3s ease-in-out infinite; }
@keyframes pl-tilt { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.pl-pet { transform-origin: 548px 498px; transform-box: view-box; animation: pl-pet 1.1s ease-in-out infinite; }
@keyframes pl-pet { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
.pl-tail { transform-origin: 628px 526px; transform-box: view-box; animation: pl-wag .35s ease-in-out infinite; }
@keyframes pl-wag { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.pl-graze { transform-box: fill-box; transform-origin: 100% 0; animation: pl-graze 3s ease-in-out infinite; }
@keyframes pl-graze { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg); } }
.pl-label { position: absolute; left: 0; right: 0; top: 9vh; text-align: center; }
.pl-label b { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.pl-label svg { width: 38px; height: 38px; }
.pl-label span { font-size: 14px; color: #3E5A4B; }
/* boot.mjs's Try again, under the updating words when loading the console fails for 90 s. */
.pl-label > .btn { display: block; margin: 10px auto 0; }
/* On a tall, narrow screen the farm would be cut off at the left edge, so it is left out. */
@media (max-aspect-ratio: 1/1) { .pl-farm { display: none; } }
@media (prefers-reduced-motion: reduce) { .pl-cloud, .pl-flight, .pl-kite, .pl-pet, .pl-tail, .pl-graze { animation: none; } }

/* The Schedule tab's week grid (schedule-grid.mjs, mockup F approved 2026-11-27). Classes start sg- so they do not
   meet the console's own .menu, .chip and .tabs. */
.sg { position: relative; margin-bottom: 16px; }
.sg-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; background: #ECE5D6; border-radius: 24px; padding: 4px; margin-bottom: 12px; }
.sg-tab { position: relative; border: 0; background: none; padding: 8px 20px; border-radius: 999px; color: var(--forest); font-weight: 700; font-size: 14px; }
.sg-tab.on { background: var(--forest); color: #fff; }
.sg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); margin-left: 6px; vertical-align: 1px; }
.sg-ctabs { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; background: #F6EDD6; border-radius: 999px; padding: 3px; margin-left: 6px; box-shadow: inset 0 0 0 1px #E2D3AD; }
.sg-addtab { border: 1.5px dashed var(--forest); }
.sg-addtab.on { border-style: solid; }
/* Tab tips open after a short pause, so they do not flash while the pointer crosses the tabs. */
.sg-ttip { visibility: hidden; opacity: 0; position: absolute; top: calc(100% + 8px); left: 0; width: 280px; background: #22382D; color: #fff; border-radius: 12px; padding: 10px 12px;
  font-size: 12.5px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; z-index: 70; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; transition: opacity .12s; }
.sg-tab:hover .sg-ttip { visibility: visible; opacity: 1; transition-delay: .45s; }
/* Mockup I: the tab row (or simple mode's heading) with the quiet mode link at its end. */
.sg-tabrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sg-tabrow .sg-tabs { margin-bottom: 0; }
.sg-simplehead { font-weight: 700; color: var(--forest); font-size: 15px; }
.sg-modelink { position: relative; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline dotted; padding: 4px 2px; margin-left: auto; }
.sg-modelink b { color: var(--forest); }
.sg-mtip { visibility: hidden; opacity: 0; position: absolute; top: calc(100% + 8px); right: 0; width: 280px; background: #22382D; color: #fff; border-radius: 12px; padding: 10px 12px;
  font-size: 12.5px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; z-index: 70; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; transition: opacity .12s; }
.sg-mtip b { color: #fff; }
.sg-modelink:hover .sg-mtip, .sg-modelink:focus-visible .sg-mtip { visibility: visible; opacity: 1; transition-delay: .45s; }
/* The first visit in simple mode: one note over the grid, gone after "Got it". */
.sg-coach { position: absolute; top: 150px; left: 50%; transform: translateX(-50%); width: 360px; max-width: calc(100% - 24px); background: #22382D; color: #fff; border-radius: 14px; padding: 14px 16px;
  font-size: 13.5px; line-height: 1.45; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.sg-coach::before { content: ''; position: absolute; top: -8px; left: 40px; border: 8px solid transparent; border-top: 0; border-bottom-color: #22382D; }
.sg-coach .btn { display: block; margin-top: 10px; background: var(--marigold); color: #3D2A00; border: 0; font-size: 14px; padding: 6px 12px; border-radius: 10px; }
/* The header's "[icon] Earl can help" (the product owner 2026-11-28). */
.voice-help { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
/* At phone width the label stays on one line (it wrapped to three and made the header tall), so the button is smaller. */
@media (max-width: 520px) { .voice-help { gap: 5px; padding: 6px 9px; font-size: 14px; } }
@media (max-width: 420px) { .voice-help .vh-more { display: none; } }
/* Night walk 2026-12-02: at 375 px with a scroll bar the header ran 9 px wide and cut off the settings button. */
/* Measured 2026-12-02: 360 px usable left the brand (178), voice (81-84) and two 40 px buttons 31-34 px short. If a
   longer voice name still does not fit, the brand is clipped rather than the buttons (min-width 0). */
@media (max-width: 400px) {
  header { gap: 4px; }
  header .brand-home { min-width: 0; overflow: hidden; }
  header .brand { padding-right: 6px; gap: 6px; font-size: 15px; }
  header .voice-help { padding: 6px 7px; }
  header .icon-btn { flex: none; width: 36px; height: 36px; }
}
.sg-catbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sg-lbl { font-weight: 700; font-size: 14px; color: var(--forest); margin-right: 2px; }
.sg-bub { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 5px; font-weight: 700; font-size: 14px; cursor: grab; user-select: none; }
.sg-bub.armed { border-color: var(--forest); background: var(--forest-soft); box-shadow: 0 0 0 3px rgba(31,77,58,.18); }
.sg-bub .sg-tip { display: none !important; }
.sg-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; }
.sg-hint b { color: var(--forest); }
.sg-dh { position: relative; color: var(--muted); font-size: 13px; margin-left: 4px; cursor: help; border-bottom: 1px dotted #A9B3AC; }
.sg-dhpop { display: none; position: absolute; top: 26px; right: 0; width: 380px; max-width: 86vw; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.18); color: var(--ink); cursor: default; }
.sg-dh:hover .sg-dhpop, .sg-dh:focus .sg-dhpop { display: block; }
.sg-dhh { display: block; margin-bottom: 10px; font-size: 14px; color: var(--forest); }
.sg-dhpic { position: relative; display: block; background: #F3EFE4; border-radius: 10px; padding: 34px 12px 12px; }
.sg-fbub { position: absolute; top: 6px; left: 110px; display: inline-flex; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font-weight: 700; font-size: 12px; padding: 2px 10px; transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.sg-dhbar { display: flex; height: 44px; border-radius: 7px; overflow: hidden; }
.sg-dhnotes { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 12.5px; line-height: 1.45; }
.sg-dhnotes b { color: var(--forest); }
.sg-dhnotes .alt { color: var(--muted); }
.sg-rangebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sg-range { font-family: var(--serif); font-size: 17px; color: var(--forest); font-weight: 600; }
/* the grid */
.sg-axis, .sg-row { display: grid; grid-template-columns: 148px 1fr; gap: 10px; }
.sg-axis { margin-bottom: 4px; }
/* In the setup page's family panel (about 330 px wide) the 148 px day column left the hours about 140 px (goal 7 walk,
   2026-12-01). Its usual week shows only Mon to Sun, so a narrow day column fits. */
.fp-body .sg-axis, .fp-body .sg-row { grid-template-columns: 40px 1fr; }
.fp-body .sg-legend { margin-left: 0; }
.sg-a { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.sg-a span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sg-row { align-items: center; margin-bottom: 8px; }
.sg-day { position: relative; font-weight: 700; font-size: 14px; line-height: 1.15; }
.sg-day small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sg-day.today small b { color: var(--clay); }
.sg-day.chg { border-left: 4px solid var(--marigold); padding-left: 7px; margin-left: -11px; }
.sg-day.chg small { color: #8A5D00; font-weight: 600; }
.sg-name { width: 100%; padding: 8px 9px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.sg-cpill { display: inline-block; background: var(--forest); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 1px 8px; margin-left: 5px; white-space: nowrap; vertical-align: 1px; }
.sg-dmenu { border: 0; background: #ECE5D6; color: var(--forest); border-radius: 7px; width: 24px; height: 20px; line-height: 16px; padding: 0; font-size: 15px; font-weight: 800; margin-left: 5px; vertical-align: 1px; }
.sg-dmenu:hover, .sg-dmenu[aria-expanded="true"] { background: var(--forest); color: #fff; }
.sg-track { position: relative; height: 46px; background: #ECE5D6; border-radius: 10px; }
.sg-bar { position: absolute; top: 0; height: 46px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 0 5px 0 8px; cursor: pointer; border: 2px solid transparent; }
.sg-bar:hover, .sg-bar.sel { filter: brightness(1.07); z-index: 6; box-shadow: 0 0 0 2px rgba(31,77,58,.35); }
.sg-bar.dim { color: #22382D; }
.sg-bar.k-bed { padding: 0 4px; justify-content: center; }
.sg-bar.k-bed .sg-nm { font-size: 11px; }
.sg-bar.k-gap { background: #D8D1BD repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 6px, transparent 6px 12px); color: #6A6A5C; }
.sg-nm { min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 12.5px; line-height: 1.2; }
.sg-nm small { display: block; font-weight: 500; font-size: 11px; opacity: .9; }
/* fitBarLabels: a label that does not fit loses its times, then its name; never a cut word. */
.sg-bar.nm-short .sg-nm small { display: none; }
.sg-bar.nm-bare .sg-nm { display: none; }
.sg-bar.k-bed.nm-bare::before { content: '\263E'; font-size: 15px; line-height: 1; }
.sg-bar.ic-bare .sg-icons { display: none; }
.sg-icons { display: flex; gap: 3px; flex: none; }
.sg.armed .sg-bar { cursor: copy; }
.sg.busy .sg-grid { opacity: .7; }
/* category letters, with the name and an x on hover (or a tap on a phone) */
.sg-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--card); border: 2px solid; font-weight: 800; font-size: 12px; line-height: 1; flex: none; }
.sg-ic.all { width: auto; padding: 0 6px; font-size: 11px; border-color: var(--forest); color: var(--forest); }
.sg-tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 7px; z-index: 30; white-space: nowrap; }
.sg-tip > span { display: flex; align-items: center; gap: 6px; background: #22382D; color: #fff; border-radius: 9px; padding: 4px 6px 4px 10px; font-size: 12.5px; font-weight: 600; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.sg-tip button { border: 0; background: #ffffff26; color: #fff; border-radius: 6px; width: 20px; height: 20px; line-height: 18px; padding: 0; font-size: 15px; }
.sg-tip button:hover { background: var(--clay); }
.sg-ic:hover .sg-tip, .sg-ic.open .sg-tip { display: block; }
/* drop zones while dragging */
.sg-zones, .sg-zhint { display: none; }
.sg-bar.dz-zones .sg-zones { display: flex; position: absolute; inset: 0; z-index: 12; border-radius: 7px; overflow: hidden; background: var(--card); cursor: copy; }
.sg-z { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; background: #F4F1EA; border: 2px dashed #9AA79F; font-size: 12px; line-height: 1.2; text-align: left; color: #3D4A43; }
.sg-z b { font-size: 12.5px; } .sg-z small { font-size: 11px; opacity: .85; font-weight: 500; }
.sg-z.hot { background: #F2C66D; border: 2px solid #A8741C; color: #3B2600; }
.sg-bar.znarrow.dz-zones .sg-zones { inset: auto; top: 100%; left: 0; width: 236px; flex-direction: column; gap: 6px; padding: 7px; border-radius: 0 0 14px 14px; box-shadow: 0 8px 22px rgba(0,0,0,.3); overflow: visible; }
.sg-bar.znarrow .sg-z { flex: none; padding: 7px 10px; border-radius: 9px; }
.sg-bar.dz-hint .sg-zhint { display: flex; position: absolute; inset: 0; z-index: 12; align-items: center; justify-content: center; background: rgba(34,56,45,.93); color: #fff; border-radius: 7px; font-weight: 700; font-size: 12px; text-align: center; padding: 0 6px; }
.sg-bar.znarrow.dz-hint .sg-zhint { inset: auto; top: 100%; left: 0; white-space: nowrap; padding: 7px 12px; border-radius: 0 0 10px 10px; }
.sg-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 0 0 94px; }
.sg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sg-legend i.none { background: #D8D1BD repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); }
/* the part popover, the day menu and the "where should this apply?" choice */
.sg-pop, .sg-menu { position: absolute; z-index: 50; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(31,77,58,.28); }
/* Buttons in the grid at mockup F's size: the console's own .btn.small is taller, and its soft Cancel has no outline. */
.sg .btn.small { padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.sg .btn.small.soft { background: #fff; color: var(--forest); border: 1.5px solid var(--forest); }
.sg-pop { top: calc(100% + 8px); width: 310px; border-radius: 18px; padding: 14px 16px; color: var(--ink); cursor: default; }
.sg-ph { display: block; font-family: var(--serif); color: var(--forest); font-size: 17px; }
.sg-where { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
/* Mockup J: the block's name is a field that reads as the heading until hovered or focused. */
.sg-pname { font-family: var(--serif); font-size: 17px; color: var(--forest); font-weight: 700; border: 1.5px dashed transparent; border-radius: 8px; padding: 1px 5px; margin-left: -6px; width: calc(100% - 52px); background: transparent; }
.sg-pname:hover { border-color: var(--line); }
.sg-pname:focus { border-style: solid; border-color: var(--forest); outline: none; background: #fff; }
.sg-pen { font-size: 13px; color: var(--muted); margin-left: 2px; }
.sg-blk { display: flex; gap: 0 14px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.sg-blk .link { font-size: 13px; }
.sg-blk .link.rm { color: #9a4a32; }
.sg-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; color: var(--muted); }
.sg-f { display: flex; gap: 10px; align-items: flex-end; margin: 8px 0; flex-wrap: wrap; }
.sg-f.col { display: block; }
.sg-f label, .sg-flbl { display: block; font-size: 12px; font-weight: 700; color: var(--forest); margin-bottom: 2px; }
.sg-f select { display: block; font: inherit; font-size: 14px; font-weight: 400; padding: 5px 6px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; min-width: 100px; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sg-chip { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 9px 2px 3px; font-size: 12.5px; font-weight: 600; opacity: .55; }
.sg-chip.on { opacity: 1; border-color: var(--forest); background: var(--forest-soft); }
.sg-chip.allc { padding-left: 9px; }
.sg-chip .sg-ic { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; border-width: 1.5px; }
.sg-typ { font-size: 12px; background: #F3EAD2; border-radius: 8px; padding: 5px 8px; margin: 6px 0; color: #5A4A1C; }
.sg-saves { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sg-saves .btn { width: 100%; }
.sg-acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.sg-menu { top: calc(100% + 6px); left: 0; width: 290px; border-radius: 16px; padding: 10px; font-weight: 400; }
.sg-choice { top: calc(100% + 8px); }
.sg-mh { display: block; font-family: var(--serif); color: var(--forest); font-size: 15px; margin-bottom: 2px; }
.sg-scope { font-size: 12.5px; color: #5A4A1C; background: #F3EAD2; border-radius: 8px; padding: 4px 8px; margin: 4px 0 6px; }
.sg-mnote { font-size: 12px; color: var(--muted); margin: 2px 8px; }
.sg-it { display: flex; width: 100%; text-align: left; align-items: flex-start; gap: 8px; border: 0; background: none; padding: 7px 8px; border-radius: 9px; color: var(--ink); }
.sg-it:hover { background: var(--forest-soft); }
.sg-it b { display: block; font-size: 13.5px; } .sg-it small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.sg-it.reset b { color: var(--clay); }
.sg-tick { width: 14px; color: var(--forest); font-weight: 800; flex: none; }
.sg-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.sg-eact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.sg-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--clay); }
.sg-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #22382D; color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; z-index: 80; box-shadow: 0 4px 16px rgba(0,0,0,.3); max-width: 92vw; font-size: 14px; }
.sg-toast button { background: none; border: 0; color: var(--marigold); font-weight: 700; text-decoration: underline; }
/* phone: day names above their row, taller bars, and the popover and menus as sheets from the bottom */
@media (max-width: 600px) {
  .sg-axis, .sg-row { grid-template-columns: 1fr; gap: 2px; }
  .sg-axis > div:first-child { display: none; }
  /* The family panel keeps its 40 px day column on a phone (.fp-body above wins), so its axis keeps the empty cell
     too; without it the hour labels fell into the 40 px column, one on top of the other (walk 2026-12-02). */
  .fp-body .sg-axis > div:first-child { display: block; }
  /* With no day-name column beside it, a centred first or last label hangs past the card's edge; pin both inside. */
  .sg-a span:first-child { transform: none; }
  .sg-a span.end { transform: translateX(-100%); }
  /* A label every 4 hours, and always the last: at 2 hours "7 AM" ran into "9" in a 200 px wide grid. */
  .sg-a span:nth-child(even):not(:last-child) { display: none; }
  .sg-day { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .sg-day small { display: inline; }
  .sg-day.chg { margin-left: 0; }
  .sg-legend { margin-left: 0; }
  .card.sg { padding: 12px; }
  .sg-tabs { display: flex; width: 100%; }
  .sg-tab { padding: 7px 11px; font-size: 13px; }
  .sg-ctabs { margin-left: 0; }
  .sg-track, .sg-bar { height: 58px; }
  .sg-bar { padding: 0 3px 0 5px; }
  .sg-icons { flex-direction: column; gap: 2px; flex-wrap: wrap; max-height: 50px; justify-content: center; }
  .sg-ic { width: 17px; height: 17px; font-size: 10px; border-radius: 5px; border-width: 1.5px; }
  .sg-ic.all { padding: 0 3px; font-size: 9px; }
  .sg-ttip, .sg-mtip { display: none; }
  /* in the page flow above the grid, so it covers neither the categories nor a day */
  .sg-coach { position: static; transform: none; width: auto; max-width: none; margin: 0 0 12px; }
  .sg-coach::before { display: none; }
  .sg-pop, .sg-menu { position: fixed !important; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 18px 18px 0 0; padding-bottom: 20px; max-height: 80vh; overflow: auto; }
  /* the sheets use the bottom of the screen, so the toast goes to the top */
  .sg-toast { bottom: auto; top: 12px; }
  /* Night walk 2026-12-02: in the family panel the blurred bubble (backdrop-filter) is the fixed toast's box, so "top"
     was the bubble's top and the toast covered the week card's title. There it sits at the card's foot and sticks to
     the bottom of the screen while the card runs past it. */
  .fp-body .sg-toast { position: sticky; top: auto; bottom: 12px; left: auto; transform: none; width: fit-content; margin: 10px auto 0; }
}
/* The Content page's top card (the product owner 2026-11-28, mockup K): the intro, the search row and the kind chips together. */
.ctop .intro { font-size: 15px; line-height: 1.45; margin: 0 0 14px; }
.ctop .intro b { color: var(--forest); }
.ctop .intro .link { padding: 0; min-width: 0; min-height: 0; font: inherit; line-height: inherit; vertical-align: baseline; color: var(--forest); } /* a link inside the sentence flows as text */
.ctop .chips { padding-bottom: 0; align-items: center; }
.ctop .chips .lbl { font-size: 13px; color: var(--muted); margin-right: 2px; }
.ctop { margin-bottom: 14px; }

/* Recommended content (P-2a). Each row scrolls sideways inside the card, so the page never does. */
.trk { min-width: 0; margin-bottom: 18px; }
.trk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.trk-head h2 { margin: 0; }
.trk-head .link { align-self: auto; }
.trk-row { border-top: 1px solid var(--line); padding: 14px 0; min-width: 0; }
.trk-head + .trk-row { border-top: 0; }
.trk-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.trk-name small { color: var(--muted); }
/* CC-2a (design-one-content-card.md): each step is one panel; Spark, Explore and Learn are sections in it with a chevron
   in the middle of the gap between them. A section shows 2, 4 or all square tiles, two a row. */
.trk-cols { display: grid; gap: 10px; min-width: 0; }
.trk-col { min-width: 0; background: #F4EEE1; border-radius: 12px; padding: 12px 14px; }
.trk-col .ct { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.trk-now { margin-left: auto; }
.trk-seq { display: flex; align-items: flex-start; gap: 4px; }
.trk-chev { flex: 1 1 0; align-self: center; text-align: center; color: var(--muted); opacity: .6; font-size: 30px; font-weight: 300; line-height: 1; padding: 0 8px; }
.trk-lv { flex: 0 1 auto; min-width: 0; display: grid; gap: 6px; align-content: start; }
.trk-lv .lvn { font-size: 10.5px; letter-spacing: .04em; text-transform: lowercase; color: var(--muted); opacity: .8; }
.trk-lv .more { font-size: 12px; color: var(--muted); justify-self: start; }
.trk-lv .more[hidden], .trk-tile[hidden] { display: none; }
.trk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 84px)); gap: 10px; }
.trk-empty { color: var(--muted); font-size: 12.5px; }
.trk-tile { min-width: 0; }
.trk-item { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; }
.trk-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px;
  font-size: 12px; line-height: 1.25; }
.trk-pic { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
/* A found item the child can't open yet (`access: false`). */
.trk-item.pending .trk-pic { outline: 2px dashed var(--forest); outline-offset: 2px; }
.trk-pic.blank { display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); font-weight: 700; font-size: 20px; }
/* The preview's picture is wide, and a YouTube one plays in place. */
.trk-pv-pic { position: relative; }
.trk-pv-pic .trk-pic { aspect-ratio: 16 / 9; }
.trk-pv-pic iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.trk-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; }
.trk-pv-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.trk-pv-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 860px) { .trk-grid { grid-template-columns: minmax(0, 110px); } }
@media (max-width: 600px) {
  .trk-seq { flex-direction: column; align-items: stretch; gap: 0; }
  .trk-chev { flex: none; align-self: center; transform: rotate(90deg); padding: 4px 0; }
  .trk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.trk-preview { position: fixed; z-index: 20; display: grid; gap: 6px; width: min(280px, calc(100vw - 16px)); padding: 14px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.trk-preview[hidden] { display: none; }
.trk-preview p { margin: 0; }
.trk-preview small { color: var(--muted); }
.trk-preview a { color: var(--forest); }
/* P-2b: removing. The links share the head's right side; a Removed row and the ask inside a preview are stacked. */
.trk-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trk-name .link { margin-left: auto; align-self: auto; font-size: 13px; }
.trk-preview .btn { justify-self: start; }
.trk-ask[hidden], .trk-preview .btn[hidden] { display: none; }
.trk-ask .panel { margin-top: 0; }
.trk-removed { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.trk-removed small { color: var(--muted); }
/* P-7b1: the child's own asks ("Asked for" card). */
.asks .ask-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.asks .ask-row.done { display: block; padding: 8px 0; }
.asks .ask-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.asks .ask-found { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14.5px; }
.asks .ask-found a { color: var(--forest); }
.asks > .link { margin-top: 8px; }
/* P-7: the items waiting for a parent's yes, by interest. The tile is P-2's; the words and buttons sit beside it. */
.waiting .wait-group { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.waiting h2 + .wait-group, .waiting h2 + [role] + .wait-group { border-top: 0; }
.waiting .wait-group h3 { margin: 0 0 8px; font-size: 15px; }
.waiting .wait-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; overflow-wrap: anywhere; }
.waiting .wait-row .trk-tile { flex: none; width: 84px; }
.waiting .wait-row.off .trk-tile { opacity: .55; }
.waiting .wait-what { display: grid; gap: 4px; min-width: 0; }
.waiting .wait-what .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.waiting .wait-what .pill { white-space: normal; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.waiting .wait-what .panel { margin-top: 0; }
.waiting .wait-group > .link { margin: 4px 0 8px; }
/* P-7b2: the child's current step on a track, and steps moved on from. */
.trk-col.earlier { opacity: .55; }
.trk-col .ct .now-step { margin-left: 8px; font-size: 11.5px; vertical-align: middle; }
.pace-part select { min-width: 9.5em; }
.trk .panel { margin-bottom: 10px; }
/* What <name> used (P-3): a label and the words under each item. */
.trk-act .sub { margin: 4px 0 10px; }
.trk-use { display: grid; width: 100%; margin-top: 4px; font-size: 12px; color: var(--muted); }
.trk-hl { color: var(--forest); font-size: 12px; }
.trk-hl[data-highlight="most"] { font-weight: 700; }
.trk-own, .trk-none { color: var(--muted); font-size: 13px; }
.trk-norecord { color: var(--muted); }

/* B5b: the Admin page's Invites view (invites-admin.mjs), the approved mockup's table and pills. */
.invites-admin table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.invites-admin th, .invites-admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.invites-admin th { color: var(--muted); font-weight: 500; font-size: 13px; }
.invites-admin .pill { display: inline-block; margin: 0; text-align: left; font-size: 12px; font-weight: 600; padding: 3px 9px; }
.invites-admin .pill.wait { background: #FCEBC4; color: #7A5410; }
.invites-admin .pill.used { background: var(--forest-soft); color: var(--forest); }
.invites-admin .pill.old { background: var(--clay-soft); color: var(--clay); }
.invites-admin textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; max-width: 560px; width: 100%; resize: vertical; }
/* IRLB-797: the offer to reload once a newer console build is out (reload-offer.mjs). */
.reload-offer { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 480px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-weight: 600; }
