/* Child Location - the page shell (plan CHILD-BUNDLEX-001, D2, D5, F1, F2; row T-W0, 17 Nov 2026).
   Loaded after the design folder's own files, copied unchanged into bx/ (see bx/SOURCE.txt):
   bx/fonts.css (the folder's ShopifyInter), bx/tokens.css (C:/dev/design-systems/bundlex-ui
   src/assets/tokens.css) and bx/components.css (C:/dev/design-systems/polaris/polaris-kit, the px-
   parts). This file holds only what the kit lacks: the top bar, the menu (a bottom bar on a phone),
   the page width, the map's own layers, and the yellow notice (the folder's warning Banner in its
   form without a title) written once for every page. Every colour, font, radius, shadow and space is
   a token (--bx-* of tokens.css, --px-space-* of components.css); a size with no token (a bar's
   height, the map's height) is the agreed mock-up's own (C:/temp/research/child-location/v4/web/
   site.css). The parts and their markup: snapshots/plan/CHILD-BUNDLEX-001/TIP-T-W0.txt. */

/* ---------- the page ground (the body carries class="px px-app cl", components.css base) ---------- */
[hidden] { display: none !important; }
/* the element resets every page stands on (out of the old base, T-F2): no outer space by default, links
   and buttons take the text around them; the kit's parts set their own */
* { margin: 0; padding: 0; }
/* CHILD-BUGS-035 D1: the reset above takes away the browser's own centring of a pop-up; every kit pop-up gets it back (the bottom sheet keeps its place) */
dialog.px-modal:not(.cl-sheet) { margin: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
body.cl { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.cl > .cl-main { flex: 1 0 auto; }
/* one look at 360 px (plan CHILD-P5C-001, D8): long words wrap, a table scrolls inside its own box,
   nothing makes the page wider than the window */
body { overflow-wrap: break-word; }
main, .side, .map-main { min-width: 0; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
input, select, textarea { max-width: 100%; }
img { max-width: 100%; }

/* ---------- the top bar ---------- */
.cl-top {
  position: sticky; top: 0; z-index: 40; flex: none;
  display: flex; align-items: center; gap: var(--px-space-small-200);
  min-height: 3.5rem; padding: 0 var(--px-space-large-100);
  background: rgb(var(--bx-color-bg-surface));
  border-bottom: 1px solid rgb(var(--bx-color-border-section));
}
.cl-brand {
  display: inline-flex; align-items: center; gap: var(--px-space-small-200); flex: none;
  min-height: 2.75rem; padding-inline-end: var(--px-space-small-200);
  color: rgb(var(--bx-color-text)); text-decoration: none;
  font-size: max(var(--bx-font-size-heading), var(--bx-font-size-list-primary)); line-height: var(--bx-line-height-heading); font-weight: var(--bx-font-weight-bold); white-space: nowrap;
}
/* CHILD-SETUP-001 T-1B, the lockup of the approved set up screens (designs/setup-flow/css/flow.css, M-4: "logo
   and name out of proportion"): the name 17 on a touch phone (the list-primary token; 15 on a computer as
   before), the mark 20 high (the mock-up's own size), the name lifted 1 onto the mark's centre line */
.cl-brand__name { position: relative; top: -.0625rem; }
/* CHILD-BUGS-021 D11: the website's "al" logo (frame.mjs, the path of the app's ic_app_logo.xml, viewBox
   0 0 1114 630; its blue is in the svg markup), its width by its ratio, no tile; the same logo on the Sign in
   and Create account cards (security.css gives them their own height). */
.cl-logo { display: block; flex: none; height: 1.25rem; width: auto; aspect-ratio: 1114 / 630; }
.cl-brand:focus-visible, .cl-nav__item:focus-visible, .cl-tabbar__item:focus-visible, .cl-topbtn:focus-visible, .cl-flow-back:focus-visible {
  outline: var(--bx-focus-ring-width) solid rgb(var(--bx-color-border-focus)); outline-offset: 1px;
}
.cl-top__gap { flex: 1; }

/* ---------- the two drop-downs of the top bar (plan CHILD-BUNDLEX-002, D4; v4/web/site.css 47 to 74,
   600 to 621): the avatar menu (signed in) and the language menu (signed out); menu.js opens them ---------- */
.cl-dd { position: relative; flex: none; min-width: 0; }
.cl-topbtn {
  display: inline-flex; align-items: center; gap: var(--px-space-small-300);
  min-height: 2.75rem; padding: 0 var(--px-space-small-100);
  border: 0; border-radius: var(--bx-radius-control); background: transparent;
  font: inherit; color: rgb(var(--bx-color-text)); cursor: pointer;
}
.cl-topbtn:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.cl-topbtn[aria-expanded="true"] { background: rgb(var(--bx-color-bg-surface-selected)); }
.cl-topbtn__chev { display: inline-flex; color: rgb(var(--bx-color-icon-secondary)); }
.cl-lang__globe { display: inline-flex; color: rgb(var(--bx-color-icon-secondary)); }
/* a phone shows the short form (EN, VI); from 900 px the language's own name */
.cl-lang__short { display: inline; font-weight: var(--bx-font-weight-medium); }
.cl-lang__long { display: none; }
.cl-dd__menu { top: calc(100% + .25rem); right: 0; min-width: 13rem; }
.cl-dd__menu .px-menu__item { min-height: 2.75rem; }
.cl-dd__menu .px-menu__item > span:not([class]) { flex: none; }
/* CHILD-BUGS-021 D18: a menu heading's words start where its items' words start (the kit's item padding,
   bx/tokens.css:456, .5rem) */
.cl-dd__menu .px-menu__heading { padding-inline-start: var(--px-space-small-200); }
.cl-menu__tick { display: inline-flex; margin-inline-start: auto; color: rgb(var(--bx-color-icon)); }
.cl-dd__menu [role="menuitemradio"][aria-checked="false"] .cl-menu__tick { visibility: hidden; }
.cl-menu__who { padding: var(--px-space-small-200) var(--px-space-small-100); display: flex; flex-direction: column; }
.cl-menu__who small { color: rgb(var(--bx-color-text-secondary)); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); }
.cl-menu__lang .cl-menu__value { margin-inline-start: auto; color: rgb(var(--bx-color-text-secondary)); }
/* the name and the email under it, each on one line, an email cut with dots (CHILD-FEEDBACK-001, P1) */
#cl-acct-menu { max-width: calc(100vw - 2 * var(--px-space-base)); }
.cl-menu__who b, .cl-menu__who small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- the language pop-up (p1-choose.html 64 to 91, b1-desktop.css 7 to 17): the kit's modal as a
   <dialog> with its own backdrop; the list scrolls inside it ---------- */
.cl-langpop { max-height: calc(100dvh - 2rem); }
.cl-langpop[open] { display: flex; flex-direction: column; }
.cl-langpop .px-modal__header { min-height: 2.75rem; }
.cl-langpop .px-modal__title { flex: 1; min-width: 0; }
.cl-langpop .px-modal__body { display: flex; flex-direction: column; gap: var(--px-space-small-200); min-height: 0; flex: 1; overflow: hidden; }
.cl-langpop__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--bx-space-menu-gap); overflow-y: auto; min-height: 0; flex: 1; }
.cl-langpop__list .px-option { min-height: 2.75rem; }
.cl-langpop__list .px-option[aria-selected="false"] .cl-menu__tick { visibility: hidden; }
.cl-close { min-width: 2.75rem; min-height: 2.75rem; }

/* the signed-in person in the avatar button: the round initial; the name from 900 px (no role word,
   CHILD-FEEDBACK-001 D8); the chevron from 900 px (w20-home.html 32 to 34; v4/web/site.css 60 to 68, 447) */
.cl-acct { display: inline-flex; align-items: center; gap: var(--px-space-small-200); }
.cl-acct__text { display: none; flex-direction: column; align-items: flex-start; line-height: var(--bx-line-height-small); text-align: start; }
.cl-acct__name { font-weight: var(--bx-font-weight-medium); }
.cl-acct .cl-topbtn__chev { display: none; }
.cl-acct__av {
  width: 2rem; height: 2rem; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--bx-color-bg-fill-strong)); color: rgb(var(--bx-color-text-on-fill));
  font-weight: var(--bx-font-weight-bold); font-size: var(--bx-font-size-body);
}

/* ---------- the computer menu: six items in the top bar, from 900 px only ---------- */
.cl-nav { display: none; }
.cl-nav__item {
  display: flex; align-items: center; gap: var(--px-space-small-300);
  min-height: 2.75rem; padding: 0 var(--px-space-small); border-radius: var(--bx-radius-control);
  color: rgb(var(--bx-color-text-secondary)); text-decoration: none;
  font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); font-weight: var(--bx-font-weight-medium); white-space: nowrap;
}
.cl-nav__ic { display: inline-flex; align-items: center; justify-content: center; }
.cl-nav__item:hover { background: rgb(var(--bx-color-bg-surface-hover)); color: rgb(var(--bx-color-text)); }
.cl-nav__item[aria-current="page"] { background: rgb(var(--bx-color-bg-surface-selected)); color: rgb(var(--bx-color-text)); }
/* CHILD-IDEAS-005 (item 171): the red count of new alerts sits at the row's right end */
.cl-nav__count { margin-left: auto; flex: none; }

/* ---------- the phone's bottom menu: exactly Home, Map, Alerts, More, under 900 px (v4/web/site.css 450 to 466) ---------- */
.cl-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--px-space-small-400) var(--px-space-small-400) calc(var(--px-space-small-400) + env(safe-area-inset-bottom, 0px));
  background: rgb(var(--bx-color-bg-surface)); border-top: 1px solid rgb(var(--bx-color-border-section));
}
.cl-tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--px-space-small-500);
  min-height: 3.875rem; min-width: 0; border-radius: var(--bx-radius-control);
  color: rgb(var(--bx-color-text-secondary)); text-decoration: none;
  font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); font-weight: var(--bx-font-weight-medium); white-space: nowrap;
}
.cl-tabbar__ic { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 2rem; border-radius: var(--bx-radius-button); }
.cl-tabbar__tx { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cl-tabbar__item[aria-current="page"] { color: rgb(var(--bx-color-text)); }
.cl-tabbar__item[aria-current="page"] .cl-tabbar__ic { background: rgb(var(--bx-color-bg-surface-selected)); }
body.cl-signed-in { padding-bottom: calc(4.875rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- the page ---------- */
.cl-main { padding: var(--px-space-base) var(--px-space-base) var(--px-space-large-300); gap: var(--px-space-base); }
/* the foot of a signed-out page: Privacy policy and Terms of use (w40-sign-in.html 43) */
.cl-foot { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--px-space-base); padding: var(--px-space-small) var(--px-space-base) var(--px-space-base); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); }
.cl-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; color: rgb(var(--bx-color-text-secondary)); text-decoration: underline; }

/* ---------- the page head (frame.mjs backRow): CHILD-BUGS-021 D9, the kit's PageHeader (bundlex-ui
   src/components/PageHeader.vue:103 to 112): the Back arrow on the title row, left of the title, a 28 px
   icon button (the kit's button height and radius); its word "Back" stays for screen readers only ---------- */
.cl-flow-head { display: flex; flex-direction: column; gap: var(--px-space-small-200); }
.cl-flow-head__title { margin: 0; }
/* CHILD-BUGS-027 DD2: the green Live badge beside the Map title (as places.css's kind badge) */
.cl-flow-head__title > .cl-live-badge { vertical-align: middle; }
.cl-flow-back {
  flex: none; display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: var(--bx-height-button); height: var(--bx-height-button); border-radius: var(--bx-radius-button);
  color: rgb(var(--bx-color-icon)); text-decoration: none;
}
.cl-flow-back > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-flow-back:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.cl-flow-head:has(> .cl-flow-back:first-child) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--px-space-small-200); }
.cl-flow-head:has(> .cl-flow-back:first-child) > .cl-flow-head__title { flex: 1 1 0; min-width: 0; }
/* CHILD-BUGS-021 T-B1 (finding 3, ruling R-4): the set-up step line (parent-code.mjs, zalo.mjs) stands between
   Back and the title in the markup; it takes its own full row ABOVE them, so Back and the title share one row */
.cl-flow-head:has(> .cl-flow-back:first-child) > :not(.cl-flow-back):not(.cl-flow-head__title) { flex: 1 0 100%; order: -1; }

/* ---------- the end of a form: Cancel and one main button, equal halves (frame.mjs buttonPair;
   w28-parent-code.html 55; v4/web/w2b3.css 84, 85) ---------- */
/* CHILD-UX-002 D1, D2 (expert round 2: the main button stays in view at the foot of the screen): the pair is a
   sticky foot on the kit's white surface with a 1px top border and the kit card's padding, reaching the page's
   (or the card's) side edges; z-index above the form's fields, below the bottom menu (40) and any dialog. On a
   phone it rests on the bottom menu: the menu's height written from the menu's own parts (.cl-tabbar: two
   --px-space-small-400 paddings, the item's 3.875rem, its 1px top border, the safe area); the menu rule itself
   is pinned word for word by design-tokens.test.mjs and a --cl- name must be a plain token alias
   (pages-look.test.mjs), so the sum is written here. From 900 px (no bottom menu) it rests on the window's foot.
   A card holding a pair clips without being a scroll box (overflow: clip), so the pair sticks to the window. */
/* CHILD-UX-003 D4 (the owner, 22 Nov 2026, 18:34 VM: "instead of menu at the bottom, we switch to save or
   cancel button ... For desktops, you can do as it is"): under 900 px the pair sits in the page under its form
   (no sticky, no white surface, no top line, no negative margin: round 3's phone strip removed); a change
   opens the bar (save-bar.js), below. From 900 px round 3's sticky foot stays exactly as it was. */
.cl-btnpair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--px-space-small); }
@media (min-width: 900px) {
  .cl-btnpair {
    position: sticky; bottom: 0; z-index: 30;
    margin-inline: calc(-1 * var(--px-space-base)); padding: var(--px-space-base);
    background: rgb(var(--bx-color-bg-surface)); border-top: 1px solid rgb(var(--bx-color-border));
  }
}
.px-card:has(.cl-btnpair) { overflow: clip; }
.cl-btnpair > .px-button { width: 100%; min-width: 0; }
/* CHILD-UX-004 D10 (ruling R15): the plain button of a pair (its Cancel) is the kit's white surface with the
   kit's border line (drawn inside, as the kit's buttons draw their edge, so the size stays), never the grey
   that read as a switched-off button; the main and the red buttons keep theirs. */
.cl-btnpair > a.px-button:not(.px-button--primary):not(.px-button--critical) {
  --_bg: rgb(var(--bx-color-bg-surface)); --_bg-h: rgb(var(--bx-color-bg-surface-hover)); --_bg-a: rgb(var(--bx-color-bg-surface-active));
  --_sh: 0 0 0 1px rgb(var(--bx-color-border)) inset;
}
/* CHILD-UX-003 D4, D5, R13 (save-bar.js): with a change open on a phone, body.cl-editing hides the bottom menu
   and the changed region's pair alone (.cl-btnpair--bar) takes the menu's place: the menu's padding, height
   (its item's 3.875rem, two --px-space-small-400 paddings, the 1px top line, the safe area), white surface and
   top line, one layer above it (41). The body keeps the menu's bottom room and the page scrolls a focused field
   above the bar (scroll-padding-bottom, ruling R6). The hold line shows just above the bar; another save region
   waits dimmed. */
@media (max-width: 899.98px) {
  body.cl-editing .cl-tabbar { display: none; }
  html:has(> body.cl-editing) { scroll-padding-bottom: calc(4.875rem + env(safe-area-inset-bottom, 0px)); }
  .cl-btnpair--bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0;
    box-sizing: border-box; min-height: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    padding: var(--px-space-small-400) var(--px-space-small-400) calc(var(--px-space-small-400) + env(safe-area-inset-bottom, 0px));
    /* the buttons keep the page's side gutter (the menu's 4 px put a filled button on the screen's edge) */
    padding-inline: var(--px-space-base);
    background: rgb(var(--bx-color-bg-surface)); border-top: 1px solid rgb(var(--bx-color-border-section));
  }
  .cl-holdline {
    position: fixed; left: var(--px-space-base); right: var(--px-space-base); z-index: 41; margin: 0;
    bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + env(safe-area-inset-bottom, 0px) + var(--px-space-small));
    padding: var(--px-space-small) var(--px-space-base); border-radius: var(--bx-radius-card);
    background: rgb(var(--bx-color-bg-surface)); box-shadow: var(--bx-shadow-card);
    color: rgb(var(--bx-color-text-secondary)); text-align: center;
  }
  .cl-region--waiting { opacity: .5; }
}
.cl-holdline[hidden] { display: none; }

/* ---------- THE BUTTON RULE ON A COMPUTER (plan CHILD-UXHUNT-001, D-5; the drawings research/workfiles/v4/
   desktop/polaris-2026-11-18/shots/child-phone-remove.png, place.png): from 900 px, where the left column
   shows, a button in the page is as wide as its words (never stretched across its column), one height per
   kind (the kit's --bx-height-button; the kit's micro button and icon button keep theirs), and the main
   button carries only the kit's inner edge, no outer glow. A pair (.cl-btnpair, or any .cl-actions row) is
   one row at the end: the plain button left, the main button right, the main action last in the markup.
   Under 900 px nothing here applies: the phone keeps its full-width buttons. Not on the signed-out card
   (.cl-auth, the drawing create-account.png keeps its full-width button) and not the kit's --fill button.
   Classes for the page lanes: .cl-btnpair (frame.mjs buttonPair) or .cl-actions around the buttons of a
   pair; a lone button needs no class. The computer part stands in the one computer block below (the frame's
   pinned block order, design-tokens.test.mjs). ---------- */
.cl-actions { display: flex; flex-direction: column; gap: var(--px-space-small); }
.cl-actions > .px-button { width: 100%; min-width: 0; }

/* ---------- a label above a card, and the card of one-line rows (v4/web/w2b3.css 17 to 47, 103, 166 to 168) ---------- */
/* CHILD-FEEDBACK-003 point 3: the label above a card is the kit's page-section heading (bx/tokens.css
   --bx-font-size-page-section-title, 17 px on a phone, the text colour). CHILD-BUGS-021 D7: the kit's
   PageSection gaps (bundlex-ui README.md:521 to 523, tokens.css:630, :634): the header start above it (32 px
   from the block above with the page's 16 px column gap) and the header end to its card (12 px with that
   gap); on a touch phone the kit's own token values apply by themselves */
.cl-sec {
  margin: var(--bx-space-page-section-header-start) 0 calc(var(--bx-space-page-section-header-end) - var(--px-space-base));
  font-size: var(--bx-font-size-page-section-title); line-height: var(--bx-line-height-page-section-title); font-weight: var(--bx-font-weight-semibold); letter-spacing: var(--bx-letter-spacing-page-section-title); color: rgb(var(--bx-color-text));
}
/* CHILD-BUGS-021 D10: headings at the kit's weight 500 (tokens.css:260; the copied polaris-kit writes 600) */
/* CHILD-BUGS-029 DO (gap 13): the kit's section heading and the card head of Welcome take the same weight, so
   every card heading has one weight */
.px-heading, .px-page__title, .cl-sec, .px-section__heading, .cl-card-head { font-weight: var(--bx-font-weight-semibold); }
/* the kit's segmented control (bx/components.css .px-segmented) as wide as its card, two equal halves at
   the kit button's height for a 44 px tap on a touch phone (CHILD-FEEDBACK-003 D2: one shared rule for History
   and Invite); a count is the kit's badge after the word */
.cl-seg { display: flex; width: 100%; }
.cl-seg > button {
  flex: 1 1 0; min-width: 0; max-width: none; min-height: var(--bx-height-button);
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  gap: var(--px-space-small-200); white-space: nowrap;
}
/* CHILD-BUGS-021 D13: with a mouse each half is the kit's segmented item (tokens.css:280, 24 px; the track
   28 px); a touch phone keeps the 44 px tap above */
@media (pointer: fine) { .cl-seg > button { min-height: var(--bx-height-segmented-item); } }
.cl-seg > button > .px-badge { flex: none; }
/* plan CHILD-BUGS-004 row T-A2, gap 25: History's month calendar (the kit's px-datepicker, Screen 101) as wide
   as its card; a choosable day is a link drawn as the kit's day; the card stays shut while it is hidden */
.cl-calcard[hidden] { display: none; }
.cl-calcard .px-datepicker { display: flex; width: 100%; min-width: 0; }
.cl-calcard .px-datepicker__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* fix 25 (CHILD-BUGS-004 fix pass): every day cell, a link or a day that cannot be chosen (a button, which
   took the site's left-aligned button text), is centred in its column the same way */
.cl-calcard .px-datepicker__day { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; }
.cl-calcard a.px-datepicker__day { text-decoration: none; }
.cl-calcard a.px-datepicker__day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.cl-r5 { list-style: none; margin: 0; padding: 0; }
.cl-r5 > li { margin: 0; padding: 0; border: 0; }
/* CHILD-BUGS-021 D5: the kit's list row (bundlex-ui ListRow.vue, README.md:657, components.css:156 to 158): a
   hairline in the section border colour over every row but the first, none under the last; a row is 16 px
   padding with a 16 px gap, 52 px for one line (tokens.css:647, :648) */
.cl-r5 > li + li { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.cl-r5 .cl-li {
  box-sizing: border-box; display: flex; align-items: center; gap: var(--bx-space-list-row-gap);
  min-height: 3.25rem; padding: var(--bx-space-list-row); margin: 0; border: 0;
  color: rgb(var(--bx-color-text)); text-decoration: none; background: transparent;
  font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body);
}
.cl-r5 a.cl-li:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.cl-r5 .cl-li__title { font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text)); }
/* plan CHILD-BUGS-004 gap 31 (row T-A1's NEEDS): the child's picture before the name never shrinks */
.cl-r5 .cl-li__av { flex: none; }
.cl-r5 .cl-li__end { flex: 1 1 auto; min-width: 0; text-align: end; color: rgb(var(--bx-color-text-secondary)); font-variant-numeric: tabular-nums; }
.cl-r5 .cl-li__go { flex: none; display: inline-flex; color: rgb(var(--bx-color-icon-secondary)); }
.cl-r5 .cl-li__end.cl-bad { color: rgb(var(--bx-color-text-critical)); }
.cl-r5 .cl-li__end.cl-warn { color: rgb(var(--bx-color-text-caution)); }
.cl-r5 .cl-li__end.cl-next { color: rgb(var(--bx-color-text)); font-weight: var(--bx-font-weight-medium); }
/* CHILD-UXHUNT-001 M-2 (narrows CHILD-FEEDBACK-001 P1): the value never wraps and is cut with dots when the
   row is too short; the title takes the free width of the row (never cut at 60% while the row has room)
   and wraps when even that is too short, inside the row's own padding (CHILD-BUGS-021 D5) */
.cl-r5 .cl-li__end { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-r5 .cl-li__title { flex: 1 1 auto; max-width: none; min-width: 0; white-space: normal; overflow-wrap: break-word; }
.cl-r5 .cl-li__title + .cl-li__end { flex: 0 1 auto; max-width: 50%; }
/* CHILD-BUGS-021 D5: the kit-copy row (bx/components.css .px-row, 12 px 16 px) takes the kit's list row
   padding and gap too; its own hairline between rows stays (components.css:408) */
.px-row { gap: var(--bx-space-list-row-gap); padding: var(--bx-space-list-row); }
/* CHILD-BUGS-021 D3: a row icon is a plain icon (ListRow.vue:80 to 82, 97 to 108): no size box, no round
   corner, no fill (the kit copy's tile is bx/components.css:412); the icon itself 16 px */
.px-row__icon { width: auto; height: auto; border-radius: 0; background: none; }
.px-row__icon svg { width: 1rem; height: 1rem; }
/* a row that ends in a badge (Home's set-up list, P2): the title takes the room, the badge keeps its size */
.cl-r5 .cl-li:has(> .cl-li__badge) > .cl-li__title { flex: 1 1 auto; max-width: none; min-width: 0; }
.cl-r5 .cl-li__end.cl-li__badge { flex: none; max-width: none; overflow: visible; }
/* final review R1.4: a plain end wrapper holding a badge (Parent code on Account, Family plan on History) is
   never capped or cut either; the title wraps instead */
.cl-r5 .cl-li__end:has(> .px-badge) { flex: none; max-width: none; overflow: visible; }
.px-card.cl-kidc { overflow: hidden; padding: 0; }
.cl-home { display: flex; flex-direction: column; gap: var(--px-space-base); }
.cl-home > .px-card { margin: 0; }

/* ---------- the map's own layers (map.mjs, map.js) ---------- */
.map-page { display: flex; flex-direction: column; gap: var(--px-space-small); }
.map-main { position: relative; }
.state-tag { position: absolute; left: var(--px-space-small); top: var(--px-space-small); z-index: 2; }
.side { display: flex; flex-direction: column; gap: var(--px-space-small); }
.map { position: relative; overflow: hidden; border-radius: var(--bx-radius-card); background: rgb(var(--bx-color-bg-surface-secondary)); box-shadow: var(--bx-shadow-card); }
.map svg { display: block; }
.map-canvas { width: 100%; height: 330px; }
.map.grey .map-canvas, .map.grey .map-text { filter: grayscale(1); opacity: .75; }
.map-off { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.map-text { padding: var(--px-space-large-100) var(--px-space-base); display: flex; flex-direction: column; align-items: center; gap: var(--px-space-small-200); text-align: center; }
.map-av { width: 3.5rem; height: 3.5rem; }
.map-place { font-size: var(--bx-font-size-heading); line-height: var(--bx-line-height-heading); font-weight: var(--bx-font-weight-bold); color: rgb(var(--bx-color-text)); }
/* CHILD-FEEDBACK-003 point 4: where the child is (text colour), then the accuracy and age on a line of
   its own (small, secondary) */
.map-pos { margin: 0; color: rgb(var(--bx-color-text)); }
.map-pos--sub { font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); color: rgb(var(--bx-color-text-secondary)); }
/* CHILD-BUGS-040 D-9, T-F: "Try again" at the top right of the box that shows when the map did not load, in the
   map icon's row (the icon centred, the button at the row's right end), so no part of the box lies under or over
   it; hidden, it takes no room ([hidden] above) */
.map-empty:has(> .map-retry:not([hidden])) { padding-top: var(--px-space-base); display: grid; grid-template-columns: 1fr auto 1fr; justify-items: center; align-items: center; }
.map-empty:has(> .map-retry:not([hidden])) > * { grid-column: 1 / -1; }
.map-empty:has(> .map-retry:not([hidden])) > .px-row__icon { grid-column: 1 / -1; grid-row: 1; }
.map-empty:has(> .map-retry:not([hidden])) > .map-retry { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
.map-empty > .map-retry { align-self: flex-end; flex: none; height: auto; min-height: 2.75rem; }
/* CHILD-BUGS-029 DN (gap 11): the find button is the kit's secondary icon button (px-button px-button--secondary
   px-button--icon fab, map.mjs); .fab keeps only its place over the map */
.fab { position: absolute; right: var(--px-space-small); top: var(--px-space-small); z-index: 2; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--px-space-small-300) var(--px-space-base); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); color: rgb(var(--bx-color-text-secondary)); }
.legend span { display: inline-flex; align-items: center; gap: var(--px-space-small-300); }
.legend svg, .legend img { flex: none; }
.ring-ok { fill: rgb(var(--bx-color-icon-info) / .12); stroke: rgb(var(--bx-color-icon-info)); stroke-width: 2; }
.ring-bad { fill: rgb(var(--bx-color-icon-critical) / .14); stroke: rgb(var(--bx-color-icon-critical)); stroke-width: 2; stroke-dasharray: 4 3; }
.warn-fill { fill: rgb(var(--bx-color-icon-critical)); }
/* CHILD-BUGS-018 MA-17: on a phone the child's name heading that follows the map box gets the page's normal
   section gap (--px-space-base) above it, not the map page's small gap; from 900 px nothing here applies */
@media (max-width: 899.98px) {
  .map-page:has(.map) .cl-sec:first-child { margin-top: calc(var(--px-space-base) - var(--px-space-small)); }
}

/* ---------- wide screens: from 900 px the menu is a black column on the left (plan CHILD-UI-001, D1, D3,
   D9, D10, D12; the owner's Shopify admin page, read 18 Nov 2026, 20:20 Vietnam, M1). The signed-in header
   (class cl-top cl-rail, frame.mjs renderFrame) becomes the column: the brand at the top, the list area
   between (plan CHILD-UI-003: the five main rows and the Settings button, or on a Settings-area page the
   back row and the pages of More), scrolling by itself in a short window, the account
   button at the bottom (CHILD-BUGS-021 D16). The page sits in one panel inset .25rem. Signed-out pages keep their top
   bar. Under 900 px nothing here applies (D2). ---------- */
@media (min-width: 900px) {
  /* the measured colours of M1, each named once (F6); the ground is one variable: CHILD-BUGS-021 D1, the kit's
     grey page ground on both widths with white cards (undo "white page": var(--bx-color-bg-surface)) */
  :root {
    --cl-rail: rgb(10, 10, 10);
    --cl-rail-text: rgb(220, 220, 220);
    --cl-rail-on: rgb(252, 252, 252);
    --cl-rail-fill: rgba(255, 255, 255, .12);
    --cl-ground: var(--bx-color-bg-page);
  }
  body.cl-signed-in { padding-bottom: 0; padding-inline-start: 15rem; background: var(--cl-rail); }
  body.cl-signed-in > .cl-main { margin: .25rem; border-radius: 1rem; background: rgb(var(--cl-ground)); }
  /* CHILD-UXHUNT-001 D-1, D-2: the white panel fills the window beside the column with the same .25rem on
     every side (no black band at 1440, no 4 px overflow at 1024: the kit's width: 100% plus the margins was
     wider than the room); the page's content keeps the kit's page width (--bx-width-page-base), centred in
     the panel by its side padding. 100% is the body's content width (the window less the column); .5rem
     is the two margins. */
  body.cl-signed-in > .cl-main {
    box-sizing: border-box; width: auto; max-width: none;
    padding-inline: max(var(--bx-space-page-inline), calc((100% - .5rem - var(--bx-width-page-base)) / 2));
  }
  /* the column: fixed, the window's height, a flex column (D12) */
  .cl-rail {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; box-sizing: border-box;
    width: 15rem; min-height: 0; flex-direction: column; align-items: stretch; gap: .25rem;
    padding: .75rem .5rem; background: var(--cl-rail); border-bottom: 0; color: var(--cl-rail-text);
  }
  .cl-rail .cl-top__gap { display: none; }
  .cl-rail .cl-brand { flex: none; padding: 0 .5rem; color: var(--cl-rail-on); }
  /* the list area: between the brand and the bottom buttons, scrolling by itself */
  .cl-rail .cl-nav { display: flex; flex-direction: column; align-items: stretch; gap: .125rem; }
  .cl-rail .cl-rail__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; gap: 0; }
  .cl-rail .cl-nav__item, .cl-rail__item {
    display: flex; align-items: center; gap: .5rem; min-height: 2rem; padding: 0 .75rem;
    border-radius: .5rem; color: var(--cl-rail-text); background: transparent; text-decoration: none;
    font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); font-weight: var(--bx-font-weight-regular); white-space: nowrap;
  }
  .cl-rail .cl-nav__item:hover, .cl-rail__item:hover { background: var(--cl-rail-fill); color: var(--cl-rail-on); }
  .cl-rail .cl-nav__item[aria-current="page"], .cl-rail__item[aria-current="page"] {
    background: var(--cl-rail-fill); color: var(--cl-rail-on); font-weight: var(--bx-font-weight-medium);
  }
  .cl-rail .cl-nav__item:focus-visible, .cl-rail__item:focus-visible, .cl-rail .cl-topbtn:focus-visible, .cl-rail .cl-brand:focus-visible {
    outline: var(--bx-focus-ring-width) solid var(--cl-rail-on); outline-offset: -.125rem;
  }
  .cl-rail__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .cl-rail__tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* the pages of More in their four groups (D9): a small title per group */
  .cl-rail__groups { display: flex; flex-direction: column; gap: .125rem; margin-top: .5rem; }
  .cl-rail__title {
    margin: .75rem .75rem .25rem; color: var(--cl-rail-text);
    font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); font-weight: var(--bx-font-weight-medium);
  }
  .cl-rail__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .125rem; }
  /* plan CHILD-UI-003: the main state's one Settings button at the foot of the list area (D2), and the
     settings state's back row on top, a row with a hairline under it (D3) */
  .cl-rail .cl-rail__settings { flex: none; margin-top: auto; }
  .cl-rail .cl-rail__back { flex: none; margin-bottom: .5rem; border-radius: .5rem .5rem 0 0; border-bottom: 1px solid var(--cl-rail-fill); }
  /* CHILD-BUGS-021 D16: the foot is two rows of one shape (32 px, 12 px side padding, 8 px icon gap):
     Settings, then the person row (the initial in its circle, the first name on one line, the chevron at the
     end); the language is the person menu's Language row, the email stays at the top of that menu */
  .cl-rail .cl-dd--acct { flex: none; width: 100%; }
  .cl-rail .cl-acct {
    width: 100%; min-height: 2rem; padding: 0 .75rem; gap: .5rem; border-radius: .5rem; color: var(--cl-rail-on);
    font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body);
  }
  .cl-rail .cl-acct:hover, .cl-rail .cl-acct[aria-expanded="true"] { background: var(--cl-rail-fill); }
  .cl-rail .cl-acct__av { width: 1.25rem; height: 1.25rem; font-size: var(--bx-font-size-small); background: var(--cl-rail-on); color: var(--cl-rail); }
  .cl-rail .cl-acct__text { flex: 1 1 auto; }
  .cl-rail .cl-topbtn__chev { color: var(--cl-rail-text); }
  /* the account drop-down opens upward from the bottom of the column, its rows unchanged */
  .cl-rail .cl-dd__menu { top: auto; bottom: calc(100% + .25rem); left: 0; right: auto; }
  .cl-tabbar { display: none; }
  .cl-acct__text { display: flex; }
  .cl-acct .cl-topbtn__chev { display: inline-flex; }
  .cl-lang__short { display: none; }
  .cl-lang__long { display: inline; }
  /* R-7 #3: the account block may shrink; a long name is cut with dots on one line */
  .cl-acct { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  /* final review 3 (fix pass 5): the account button sits in its drop-down wrapper, so the wrapper shrinks too
     and holds the button inside it; the name is cut with dots inside the button */
  .cl-dd--acct { flex: 0 1 auto; min-width: 0; }
  .cl-acct__text { min-width: 0; max-width: 100%; }
  .cl-acct__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* CHILD-BUGS-021 D8: the kit's page top 16 px and its blocks 16 px apart (bundlex-ui tokens.css:428, 301) */
  .cl-main { padding: var(--bx-space-page-block-start) var(--bx-space-page-inline) var(--px-space-large-300); gap: var(--px-space-base); }
  /* CHILD-UXHUNT-001 D-5, THE BUTTON RULE ON A COMPUTER (see .cl-actions above): as wide as its words, the
     kit's one height, the main button without the outer glow (only the kit's inner edge), a pair in one row
     at the end, the main button last */
  .cl-main .px-button:not(.px-button--micro):not(.px-button--icon):not(.px-button--fill):not(.cl-auth .px-button) {
    width: fit-content; max-width: 100%; height: var(--bx-height-button); min-height: var(--bx-height-button);
    flex: none; white-space: nowrap;
  }
  /* CHILD-UXHUNT-001 T-B3: the Family data download button (people.css .pp-data-btn) keeps its own wrap rule:
     its words wrap and it grows past the kit's one height, never overflowing its column */
  .cl-main .px-button.pp-data-btn:not(.px-button--micro):not(.px-button--icon):not(.px-button--fill):not(.cl-auth .px-button) {
    height: auto; white-space: normal;
  }
  .cl-main .px-button--primary:not(.cl-auth .px-button) { box-shadow: var(--bx-shadow-button-primary-inset); }
  .cl-main .px-button--primary.px-button--critical:not(.cl-auth .px-button) { box-shadow: var(--bx-shadow-button-critical-inset); }
  .cl-btnpair, .cl-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--px-space-small-200); }
  .cl-btnpair { display: flex; }
  /* CHILD-UX-002 D1, D2: no bottom menu from 900 px, so the sticky pair rests on the window's foot */
  body.cl-signed-in .cl-btnpair { bottom: 0; }
  /* on the grey panel the foot lines up with the cards: their edges, their radius and shadow, no top line
     (inside a card it keeps the phone's look: the card's own edges and the top line) */
  .cl-btnpair:not(.px-card .cl-btnpair) { margin-inline: 0; border-top: 0; border-radius: var(--bx-radius-card); box-shadow: var(--bx-shadow-card); }
  .cl-btnpair > .px-button, .cl-actions > .px-button { width: fit-content; }
  /* plan CHILD-OWNER-034, D4: a top page of the Settings area has its page Back (to /settings, the phone's
     Settings list) on a phone only; on a computer the column's Back row stands for it */
  .cl-flow-back--phone { display: none; }
  /* plan CHILD-OWNER-034, D5 (the owner's picture of Shopify admin Settings, 21 Nov 2026): on a
     Settings-area page (body.cl-in-settings, frame.mjs renderFrame) the column is two parts: a thin strip
     (3.5rem) of the main menu's icons with the brand mark on top and the person button at the foot, and
     beside it the Settings list (15rem: Back, then the four groups). The page panel starts after both. */
  body.cl-signed-in.cl-in-settings { padding-inline-start: 18.5rem; }
  .cl-in-settings .cl-rail {
    display: grid; width: 18.5rem; padding: 0; gap: 0;
    grid-template-columns: 3.5rem 15rem; grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .cl-in-settings .cl-rail .cl-brand { grid-column: 1; grid-row: 1; justify-self: center; padding: .75rem 0 .5rem; }
  .cl-in-settings .cl-rail .cl-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cl-in-settings .cl-rail .cl-strip {
    grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .25rem 0;
  }
  .cl-strip__item {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 2.5rem; height: 2.5rem; border-radius: .5rem; color: var(--cl-rail-text); background: transparent; text-decoration: none;
  }
  .cl-strip__item:hover { background: var(--cl-rail-fill); color: var(--cl-rail-on); }
  .cl-strip__item:focus-visible { outline: var(--bx-focus-ring-width) solid var(--cl-rail-on); outline-offset: -.125rem; }
  .cl-strip__dot {
    position: absolute; top: .375rem; inset-inline-end: .375rem; width: .5rem; height: .5rem; border-radius: 9999px;
    background: rgb(var(--bx-color-bg-fill-critical)); box-shadow: 0 0 0 .125rem var(--cl-rail);
  }
  .cl-in-settings .cl-rail .cl-rail__list {
    grid-column: 2; grid-row: 1 / span 3; padding: .75rem .5rem; border-inline-start: 1px solid var(--cl-rail-fill);
  }
  .cl-in-settings .cl-rail .cl-dd--acct { grid-column: 1; grid-row: 3; justify-self: center; width: auto; padding: .5rem 0 .75rem; }
  .cl-in-settings .cl-rail .cl-acct { width: 2.5rem; min-height: 2.5rem; padding: 0; justify-content: center; }
  .cl-in-settings .cl-rail .cl-acct__text, .cl-in-settings .cl-rail .cl-acct .cl-topbtn__chev { display: none; }
  .cl-in-settings .cl-rail .cl-dd__menu { min-width: 15rem; }
}
@media (max-width: 420px) {
  .cl-top { padding: 0 var(--px-space-small-200) 0 var(--px-space-base); gap: var(--px-space-small-400); }
  .cl-brand { flex: 0 1 auto; min-width: 0; }
  .cl-brand__name { overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- the set-up list of Home and Set-up (plan CHILD-BUGS-029, DO, gap 14; setup.mjs setupRowHtml): the
   kit's set-up parts (bx/components.css .px-setup, .px-setup__task, .px-setup__check: a dashed ring to do, the
   filled check with its tick done). The card's list keeps the site's list row (.cl-r5 .cl-li: its padding, its
   hairline between rows), so the kit's own list and task spacing is not added on top. Page content, so on a
   phone too. The check is a picture (aria-hidden), so its done look is the data attribute data-checked="true",
   never aria-checked (CHILD-BUGS-029 R-14 finding 15); the kit's own checked look, its values unchanged.
   ---------- */
.cl-r5.px-setup { display: block; padding: 0; gap: 0; }
.cl-r5 > li.px-setup__task { display: block; padding: 0; border-radius: 0; }
.px-setup__check[data-checked="true"] { border: 0; background: rgb(var(--bx-color-task-check)); }

/* =====================================================================================================
   THE NOTICE: the folder's warning Banner in its form without a title (C:/dev/design-systems/bundlex-ui
   src/components/Banner.vue, its components.css 1912 to 2078 and 3215, 3297, 3305 to 3315), the values read
   from its own render (C:/temp/research/child-location/v4/bundlex-extract/EXTRACT.md) and matched one by one
   in v4/BANNER-EXACT.md (14 same, 0 differs): fill, shadow, radius, padding, gap, icon 25 px drawn on a
   touch phone (20 px box), text, underlined link, the X. Written once here; a page draws it with
   noticeHtml() of src/pages/frame.mjs, never by hand.
   The owner's rules kept where the folder differs: yellow, never blue (an info notice is drawn as warning);
   an X on every notice, always shown; one sentence, then the action as plain underlined text; on top under
   the page title (the page places it).
   ===================================================================================================== */
:root {
  /* warning: the folder's warning fill with its caution colours (components.css 1928 to 1934) */
  --cl-warn-bg: var(--bx-color-bg-surface-warning); --cl-warn-title: var(--bx-color-text-caution);
  --cl-warn-text: var(--bx-color-badge-text-caution); --cl-warn-icon: var(--bx-color-icon-caution);
  /* success (components.css 1921 to 1926) */
  --cl-ok-bg: var(--bx-color-bg-surface-success); --cl-ok-title: var(--bx-color-text-success);
  --cl-ok-text: var(--bx-color-badge-text-success); --cl-ok-icon: var(--bx-color-icon-success);
  /* critical (components.css 1936 to 1941) */
  --cl-bad-bg: var(--bx-color-bg-surface-critical); --cl-bad-title: var(--bx-color-text-critical);
  --cl-bad-text: var(--bx-color-badge-text-critical); --cl-bad-icon: var(--bx-color-icon-critical);
}
.px-banner, .px-banner.px-banner--info, .px-banner.px-banner--warning {
  --cl-n-bg: var(--cl-warn-bg); --cl-n-title: var(--cl-warn-title); --cl-n-text: var(--cl-warn-text); --cl-n-icon: var(--cl-warn-icon);
}
.px-banner.px-banner--success { --cl-n-bg: var(--cl-ok-bg); --cl-n-title: var(--cl-ok-title); --cl-n-text: var(--cl-ok-text); --cl-n-icon: var(--cl-ok-icon); }
.px-banner.px-banner--critical { --cl-n-bg: var(--cl-bad-bg); --cl-n-title: var(--cl-bad-title); --cl-n-text: var(--cl-bad-text); --cl-n-icon: var(--cl-bad-icon); }
/* the box: the tone fill, no edge, the Card's shadow and corner, 16 px on every side, 6 px from icon to text */
.px-banner {
  position: relative; display: flex; align-items: flex-start; gap: var(--px-space-small-300); padding: var(--px-space-base); box-sizing: border-box; min-width: 0; max-width: 100%;
  border: 0; border-radius: var(--bx-radius-card); background: rgb(var(--cl-n-bg)); box-shadow: var(--bx-shadow-card);
  color: rgb(var(--cl-n-text)); text-align: start;
  font-family: var(--bx-font-family-sans); font-feature-settings: var(--bx-font-feature-settings);
}
/* the icon: the folder's AlertCircleFilled (CheckCircleFilled on success), a 20 px box on the first line,
   in the tone's icon colour; drawn at 1.25 (25 px) on a touch phone */
.px-banner > .px-banner__icon {
  flex: none; box-sizing: content-box; width: 1.25rem; height: 1.25rem; padding: 0; margin: calc((var(--bx-line-height-body) - 1.25rem) / 2) 0 0;
  overflow: visible; border-radius: 0; background: none; color: rgb(var(--cl-n-icon)); fill: currentColor;
}
@media (pointer: coarse) and (max-width: 47.9975em) { .px-banner > .px-banner__icon { scale: 1.25; } }
.px-banner .px-banner__body { flex: 1; min-width: 0; display: block; padding-top: 0; text-align: start; overflow-wrap: anywhere; }
.px-banner .px-banner__body > * + * { margin-top: var(--px-space-small-400); }
.px-banner .px-banner__body p, .px-banner .px-banner__body li { margin: 0; font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); color: rgb(var(--cl-n-text)); }
.px-banner .px-banner__body ul { margin-block: var(--px-space-small-400) 0; padding-inline-start: var(--px-space-large); }
/* a notice with a title: the title is the first sentence of the same text flow, semibold, in the title colour */
.px-banner .px-banner__title { margin: 0; font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); font-weight: var(--bx-font-weight-regular); color: rgb(var(--cl-n-text)); }
.px-banner .px-banner__body > .px-banner__title:has(+ *) { font-weight: var(--bx-font-weight-semibold); color: rgb(var(--cl-n-title)); }
.px-banner .px-banner__body > .px-banner__title:has(+ p), .px-banner .px-banner__body > .px-banner__title + p { display: inline; margin: 0; }
.px-banner .px-banner__body > .px-banner__title + p::before { content: " "; }
/* the action: the folder's banner link, the text's own colour and weight, underlined, in the line */
.px-banner .cl-nlink, .px-banner a:not(.px-button) {
  display: inline; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-weight: inherit;
  color: inherit; text-decoration-line: underline; text-underline-offset: auto; cursor: pointer; white-space: normal;
}
.px-banner .cl-nlink + .cl-nlink { margin-inline-start: var(--px-space-small-200); }
/* the X: a 24 px disc in the notice's fill with a 2 px surface ring, inside the box at its top end corner
   (12 px from the top and the end edge; CHILD-FINISH-001 R-5 W1, it sat on the border before), a 15 px
   cross in the title colour, always shown; its tap area reaches 44 px around it. The text keeps 44 px
   clear at the end so it never runs under the X. */
/* the text keeps clear of the X's whole 44 px tap area (.125rem from the end edge plus 2.75rem; M-5) */
.px-banner:has(> .px-banner__dismiss) { padding-inline-end: 2.875rem; }
/* CHILD-UXHUNT-001 M-5: the button itself is the 44 px tap area (2.75rem, transparent), set .125rem from the
   top and end edge so the drawn 24 px disc (its ::before) keeps its place, its middle 24 px from both edges */
.px-banner > .px-banner__dismiss {
  position: absolute; z-index: 1; top: .125rem; right: auto; inset-inline-end: .125rem;
  width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; margin: 0; padding: 0; border: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px;
  background: transparent; box-shadow: none; color: rgb(var(--cl-n-title)); opacity: 1; cursor: pointer;
}
.px-banner > .px-banner__dismiss::before {
  content: ""; position: absolute; inset: .625rem; border-radius: 9999px;
  background: rgb(var(--cl-n-bg)); box-shadow: inset 0 0 0 .125rem rgb(var(--bx-color-bg-surface));
}
.px-banner > .px-banner__dismiss:is(:hover, :focus-visible)::before {
  box-shadow: inset 0 0 0 .125rem rgb(var(--bx-color-bg-surface)), inset 0 0 0 .75rem rgb(var(--bx-color-bg-icon-button-hover) / var(--bx-color-bg-icon-button-hover-alpha));
}
.px-banner > .px-banner__dismiss .px-icon { position: relative; width: .9375rem; height: .9375rem; color: inherit; }

/* ---------- the page wrappers (plan CHILD-DESK-001, D1, D3; changed by plan CHILD-OWNER-034, D14, the
   owner's words of 21 Nov 2026: "fix witdht of all tables in all screens, make same ... make same as
   alerts"): the wrapper classes .cl-dk-cols (and --half, --map), .cl-dk-col, .cl-dk-flow and .cl-dk-grid2
   stay in the pages' markup, but they are display: contents at EVERY width, so every card, list and table
   is a direct item of the page's own column and takes its full width, the Alerts card's width (966 px at
   1440): one column, the side cards under the main card, in the source order (the phone order, unchanged).
   The computer grid rules (2 to 1, two halves, the map and its side column, the set-up flow, two by two)
   are gone. ---------- */
.cl-dk-cols, .cl-dk-col, .cl-dk-flow, .cl-dk-flow__steps, .cl-dk-flow__card, .cl-dk-grid2 { display: contents; }

/* CHILD-BUGS-020 D14 (the owner's words of 20 Nov 2026, "when on has to be black"): the kit's switch with a
   round knob (as wide as it is high) that travels the whole track, so on (black, knob at the right) and off
   (grey, knob at the left) never look alike; the kit's own sizes, nothing typed */
.px-switch::after { width: var(--bx-size-toggle-knob-height); }
.px-switch:checked::after { transform: translateX(calc(var(--bx-size-toggle-width) - var(--bx-size-toggle-knob-height) - .25rem)); }
/* CHILD-BUGS-020 D2, D13 and ruling R-8: a switch row (settings/ui.mjs switchRow, One place's Tell me when):
   the text at the left, under the title a small grey state line, the switch at the right end of the row
   (the Shopify admin way); the kit's list row: 16 px all round, 16 px gap, a hairline over every row but
   the first */
.cl-r5 .st-swrow:has(> .px-switch), .cl-r5 .cl-li--switch { padding: var(--px-space-base); gap: var(--px-space-base); }
/* its hairline over every row but the first is now the shared .cl-r5 > li + li rule (CHILD-BUGS-021 D5) */
.cl-r5 .st-swrow > .px-switch, .cl-r5 .cl-li--switch > .px-switch { flex: none; margin-inline-start: auto; }
.st-swstate {
  display: block; margin-top: var(--px-space-small-500); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small);
  font-weight: var(--bx-font-weight-regular); color: rgb(var(--bx-color-text-secondary)); overflow-wrap: anywhere;
}
.st-swstate:empty { display: none; }
/* Add place's Tell me when (px-choice): the text at the left, the switch at the right end of the row */
.px-choice.px-choice--end { justify-content: space-between; align-items: center; }
.px-choice.px-choice--end > .px-switch { flex: none; margin: 0; }

/* ===== OLD RULES, REMOVED BY THE PAGE LANES: BEGIN =====
   The rules of the old site.css that pages still draw with, kept so no page breaks until its lane lands
   (plan CHILD-BUNDLEX-001, T-W0 brief point 6). Each lane deletes its part as its last step; the SHARED
   part goes when no page, script or test names its classes any more (grep first). T-2 checks that
   nothing is left between BEGIN and END (server/test/pages-look.test.mjs). These lines carry the old
   colours; F2 is measured outside this block. */
/* Emptied by T-F2 (final review run 1, #2): phone-health.js writes the kit's classes, so no page, script
   or test names the old classes any more; the three element resets every page stood on moved up to "the
   page ground" (no colour in them); h1 and h2 went (every heading carries its kit class). */

/* ===== OLD RULES: END ===== */

/* ---------- CHILD-UX-005 (round 6, row T-1S): the shared rules of the 64 sketches at 9, one rule set for
   both lanes. Each sketch class sk-<name> is built as cl-<name> (TIP-T-1S.txt CLASSES lists the few that
   differ). Colours are the folder's tokens only; every tap target is 44 px or more (ruling R3-5). ---------- */
/* the dock: the page's one main action, full width, in a white strip resting flush on the bottom menu (thumb
   zone); the menu's height is the sum the save bar uses (its item's 3.875rem, two paddings, the 1 px line,
   the safe area). A page with a dock puts cl-has-dock on <body> (renderFrame bodyClass) so nothing hides
   under it. A pair (frame.mjs buttonPair with dock: true) is Cancel (white) and the wider main button; after
   a change save-bar.js moves the pair into the menu's place (.cl-btnpair--bar) and the dock folds away. */
.cl-dock {
  position: fixed; left: 0; right: 0; z-index: 39;
  bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: var(--px-space-small-200); padding: 10px var(--px-space-base);
  background: rgb(var(--bx-color-bg-surface)); border-top: 1px solid rgb(var(--bx-color-border-section));
}
.cl-dock > .px-button, .cl-dock .cl-btnpair > .px-button { width: 100%; min-height: 48px; }
.cl-dock--pair > .cl-btnpair, .cl-dock--pair { grid-template-columns: 1fr 1.6fr; }
.cl-dock--pair > .cl-btnpair { grid-column: 1 / -1; }
.cl-dock--nomenu { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.cl-dock__note { margin: 0; text-align: center; font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }
.cl-dock__info { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 4px 0; line-height: 1.45; }
.cl-dock__info svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: rgb(var(--bx-color-icon-secondary)); }
.cl-dock .px-button[disabled] { color: rgb(var(--bx-color-text-secondary)); background: rgb(var(--bx-color-bg-fill-tertiary)); box-shadow: none; opacity: 1; cursor: default; }
.cl-dock:has(> .cl-btnpair--bar) { padding: 0; border-top: 0; }
body.cl-signed-in.cl-has-dock { padding-bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + 84px + env(safe-area-inset-bottom, 0px)); }
body.cl-signed-in.cl-has-dock.cl-dock-tall { padding-bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + max(112px, var(--cl-dock-room, 0px)) + env(safe-area-inset-bottom, 0px)); }
body.cl-signed-in.cl-has-dock.cl-fullmap { padding-bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + 69px + env(safe-area-inset-bottom, 0px)); }
body.cl-nomenu .cl-tabbar { display: none; }
body.cl-signed-in.cl-has-dock.cl-nomenu { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
/* one button in the save bar (setup steps, Connect Zalo); the bar's buttons 48 px */
.cl-btnpair.cl-one { grid-template-columns: 1fr; }
.cl-btnpair--bar > .px-button { min-height: 48px; }
/* the white Cancel of a pair outside buttonPair (the sheets) */
.cl-cancel { --_bg: rgb(var(--bx-color-bg-surface)); --_sh: 0 0 0 1px rgb(var(--bx-color-border)) inset; }
/* the hero (lane A) and the summary (lane B): the page's answer first, an icon, a big line and a small line */
.cl-hero { padding: var(--px-space-base); display: flex; gap: 12px; align-items: center; }
.cl-hero__ic, .cl-gist__ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--bx-color-bg-surface-secondary)); color: rgb(var(--bx-color-icon)); }
.cl-hero__ic--ok, .cl-gist__ic--ok { background: rgb(var(--bx-color-bg-fill-success-secondary)); color: rgb(var(--bx-color-icon-success)); }
.cl-hero__ic--bad { background: rgb(var(--bx-color-bg-critical-subdued)); color: rgb(var(--bx-color-icon-critical)); }
.cl-gist__ic--am { background: rgb(var(--bx-color-bg-fill-warning)); color: rgb(var(--bx-color-text)); }
.cl-hero__big { font-size: 1.25rem; line-height: 1.625rem; font-weight: var(--bx-font-weight-semibold); color: rgb(var(--bx-color-text)); }
.cl-hero__small { font-size: var(--bx-font-size-small); line-height: 1.4; color: rgb(var(--bx-color-text-secondary)); margin-top: 2px; }
.cl-gist { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: var(--px-space-base); }
.cl-gist__t { margin: 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 650; /* T-FB: the sketches' sk-sum__t, as .cl-mark h2 */ }
.cl-gist__s { margin: 2px 0 0; color: rgb(var(--bx-color-text-secondary)); line-height: 1.45; }
.cl-gist > .px-banner__dismiss {
  flex: none; position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -10px -10px 0 auto; padding: 0;
  border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: rgb(var(--bx-color-icon)); cursor: pointer;
}
/* one quiet help line; a row's second line (cl-two holds the title and a small line; cl-line2 is a small line;
   the sketches' sk-sub and sk-sum are built as cl-line2 and cl-gist, since a name starting .cl-su is kept out
   of site.css by the set-up rule test of CHILD-BUGS-029 DO) */
.cl-note { font-size: var(--bx-font-size-small); line-height: 1.45; color: rgb(var(--bx-color-text-secondary)); }
.cl-note--pad { padding: 0 4px; }
.cl-two { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cl-two small { font-size: var(--bx-font-size-small); line-height: 1.35; color: rgb(var(--bx-color-text-secondary)); font-weight: var(--bx-font-weight-regular); }
.cl-line2 { display: block; margin-top: 2px; font-size: var(--bx-font-size-small); line-height: 1.35; font-weight: var(--bx-font-weight-regular); color: rgb(var(--bx-color-text-secondary)); white-space: normal; }
.cl-li__title:has(.cl-line2) { white-space: normal; }
.cl-lead { margin: 0; color: rgb(var(--bx-color-text-secondary)); line-height: 1.45; }
.cl-center { text-align: center; }
.cl-ok { color: rgb(var(--bx-color-text-success)); }
.cl-bad, .cl-r5 .cl-li__title.cl-bad, .cl-r5 .cl-li__title .cl-bad { color: rgb(var(--bx-color-text-critical)); }
.cl-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; white-space: nowrap; font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text-link)); }
/* the form: one look for every form card, 18 px between fields, fields and choices 48 px, the hint and the
   error under the field itself (the error names the field and the fix) */
.cl-form { display: flex; flex-direction: column; gap: 18px; padding: var(--px-space-base); }
.cl-form .px-field { margin: 0; }
.cl-form .px-input, .cl-field .px-input { min-height: 48px; font-size: 1rem; }
.cl-form .px-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.cl-form .px-choice .px-checkbox { width: 24px; height: 24px; flex: none; }
.cl-field { display: grid; gap: 6px; }
.cl-field--bad .px-input, .px-input[aria-invalid="true"] { box-shadow: 0 0 0 1px rgb(var(--bx-color-border-critical-strong)) inset; background: rgb(var(--bx-color-bg-surface-critical)); }
.cl-err { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: rgb(var(--bx-color-bg-fill-critical)); font-size: var(--bx-font-size-small); line-height: 1.4; font-weight: var(--bx-font-weight-medium); }
.cl-err svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: inherit; fill: currentColor; }
.cl-err[hidden] { display: none; }
/* CHILD-UX-005 s64, s46: a field's hint gives way to its red line */
.cl-field:has(> .cl-err:not([hidden])) > .cl-hint { display: none; }
.cl-hint { margin: 4px 0 0; font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); line-height: 1.4; }
.cl-lbl { display: flex; justify-content: space-between; align-items: baseline; }
.cl-lbl b { font-weight: var(--bx-font-weight-semibold); font-variant-numeric: tabular-nums; }
.cl-slider { width: 100%; height: 44px; accent-color: rgb(var(--bx-color-bg-fill-strong)); }
.cl-slider-ends { display: flex; justify-content: space-between; font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); margin-top: -6px; }
/* a switch row: the words left, the switch right, 60 px */
.cl-swrow { display: flex; align-items: center; gap: 12px; padding: 12px var(--px-space-base); min-height: 60px; box-sizing: border-box; }
.cl-swrow + .cl-swrow { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.cl-swrow .px-switch { flex: none; margin-left: auto; }
/* a part of a setting that does nothing while its switch is off */
.cl-dim { opacity: .4; pointer-events: none; }
/* the segmented switch: the existing .cl-seg (44 px parts); the chosen part white */
.cl-seg > button[aria-checked="true"] { background: rgb(var(--bx-color-bg-surface)); color: rgb(var(--bx-color-text)); box-shadow: var(--bx-shadow-card); }
/* filter chips, 44 px, wrapping */
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chips > button {
  flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; font-size: 0.9375rem; font-weight: var(--bx-font-weight-medium); text-align: center;
  background: rgb(var(--bx-color-bg-surface)); box-shadow: 0 0 0 1px rgb(var(--bx-color-border)) inset; color: rgb(var(--bx-color-text));
}
.cl-chips > button[aria-pressed="true"] { background: rgb(var(--bx-color-bg-fill-strong)); color: rgb(var(--bx-color-bg-surface)); box-shadow: none; }
/* a closed fold row, 52 px, with a chevron; the long help lives inside */
.cl-fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 var(--px-space-base); cursor: pointer; font-weight: var(--bx-font-weight-bold); /* T-FB: the sketches' sk-fold 600 (the kit's semibold is 500) */ }
.cl-fold > summary::-webkit-details-marker { display: none; }
.cl-fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid rgb(var(--bx-color-icon-secondary)); border-bottom: 2px solid rgb(var(--bx-color-icon-secondary)); transform: rotate(45deg); margin-top: -4px; }
.cl-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.cl-fold__body { padding: 0 var(--px-space-base) var(--px-space-base); line-height: 1.5; }
.cl-fold__body p, .cl-fold__body ol, .cl-fold__body ul { margin: 0 0 8px; }
.cl-fold__body a.px-link, .cl-lead a.px-link { display: inline-block; padding-block: 13px; margin-block: -13px; }
/* progress: "2 of 4 done" with a bar (the home's set-up card and Set up) */
.cl-progress { display: flex; flex-direction: column; gap: 8px; padding: var(--px-space-base); }
.cl-progress__bar { height: 8px; border-radius: 4px; background: rgb(var(--bx-color-bg-fill-tertiary)); overflow: hidden; }
.cl-progress__bar > span, .cl-progress__bar > i { display: block; height: 100%; border-radius: 4px; background: rgb(var(--bx-color-bg-fill-success)); }
/* the day switcher of History: earlier day, the day, later day */
.cl-daynav { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.cl-daynav .px-button { min-height: 48px; padding: 0; }
/* the quiet red delete at the end of a page, never in the dock, kept 24 px clear */
.cl-del.px-button { width: 100%; min-height: 48px; color: rgb(var(--bx-color-icon-critical)); --_fg: rgb(var(--bx-color-icon-critical)); }
.cl-delwrap { margin-top: 24px; }
/* the one risky row of a page, red words and a red chevron, at the end */
.cl-danger, .cl-r5 .cl-li.cl-danger .cl-li__title, .cl-r5 .cl-li.cl-danger .cl-li__go, .cl-li.cl-danger .cl-li__go svg { color: rgb(var(--bx-color-bg-fill-critical)); fill: currentColor; }
/* status facts, two to a row, not tappable (sketch sk-tiles, sk-tile, sk-dot) */
.cl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(var(--bx-color-border-section)); }
.cl-stat { background: rgb(var(--bx-color-bg-surface)); padding: 12px var(--px-space-base); display: flex; flex-direction: column; gap: 4px; min-height: 64px; }
.cl-stat__k { font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }
.cl-stat__v { display: flex; align-items: center; gap: 6px; font-weight: var(--bx-font-weight-semibold); }
.cl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--bx-color-icon-success)); }
.cl-dot--am { background: rgb(var(--bx-color-icon-warning)); }
.cl-dot--grey { background: rgb(var(--bx-color-icon-disabled)); }
/* a big state mark over a heading and one line (paired, done) */
.cl-mark { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px var(--px-space-base); }
.cl-mark__ic { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--bx-color-bg-fill-success)); }
.cl-mark__ic svg { width: 32px; height: 32px; }
.cl-mark h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; font-weight: 650; /* the sketch's weight, between the kit's 600 and 700 */ }
.cl-mark p { margin: 0; color: rgb(var(--bx-color-text-secondary)); }
/* numbered short steps */
.cl-steps { margin: 0; padding: 0; list-style: none; counter-reset: cl-step; }
.cl-steps > li { counter-increment: cl-step; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; line-height: 1.45; }
.cl-steps > li::before {
  content: counter(cl-step); flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--bx-color-bg-surface-secondary)); font-weight: var(--bx-font-weight-semibold); font-size: var(--bx-font-size-small);
}
/* two plans side by side, one row a fact */
.cl-cmp { display: table; width: 100%; border-collapse: collapse; }
.cl-cmp th, .cl-cmp td { padding: 11px var(--px-space-base); text-align: left; border-top: 1px solid rgb(var(--bx-color-border-section)); font-weight: var(--bx-font-weight-regular); }
.cl-cmp thead th { border-top: 0; font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); font-weight: var(--bx-font-weight-semibold); }
.cl-cmp td:last-child, .cl-cmp th:last-child { font-weight: var(--bx-font-weight-bold); /* T-FB (s51): the sketch's 600 */ background: rgb(var(--bx-color-bg-surface-secondary)); }
.cl-cmp tbody th { color: rgb(var(--bx-color-text-secondary)); width: 38%; }
/* the pairing or Zalo code, large and spaced */
.cl-code { margin: 0; text-align: center; font-size: 2rem; line-height: 1.2; font-weight: var(--bx-font-weight-bold); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
/* a person or a child: a round picture or initial, the name, one line */
.cl-face { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; text-align: center; }
.cl-face img { width: 72px; height: 72px; border-radius: 50%; background: rgb(var(--bx-color-bg-surface-secondary)); }
.cl-face__n { margin: 0; font-size: 1.25rem; font-weight: var(--bx-font-weight-semibold); }
.cl-face__s { margin: 0; color: rgb(var(--bx-color-text-secondary)); }
.cl-ini { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--bx-color-bg-fill-tertiary)); font-weight: var(--bx-font-weight-semibold); }
.cl-ini--lg { width: 72px; height: 72px; font-size: 1.75rem; }
.cl-ic img { width: 32px; height: 32px; border-radius: 50%; }
/* the Role choice (invite): two cards, the chosen one ringed and filled */
.cl-roles { display: grid; gap: 10px; }
.cl-role {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 56px; padding: 12px; border: 0; border-radius: 12px; text-align: left; font: inherit; color: inherit;
  background: rgb(var(--bx-color-bg-surface)); box-shadow: 0 0 0 1px rgb(var(--bx-color-border)) inset; cursor: pointer;
}
.cl-role[aria-checked="true"] { box-shadow: 0 0 0 2px rgb(var(--bx-color-text)) inset; background: rgb(var(--bx-color-bg-surface-secondary)); }
.cl-role__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(var(--bx-color-border-strong)) inset; margin-top: 1px; }
.cl-role[aria-checked="true"] .cl-role__dot { box-shadow: 0 0 0 7px rgb(var(--bx-color-text)) inset; }
.cl-role b { display: block; font-weight: var(--bx-font-weight-semibold); }
/* a big tappable way to do something: icon, title, one line (Add a place) */
.cl-choice { display: flex; align-items: center; gap: 14px; padding: var(--px-space-base); min-height: 76px; box-sizing: border-box; }
.cl-choice + .cl-choice { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.cl-choice__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--bx-color-bg-surface-secondary)); color: rgb(var(--bx-color-icon)); }
.cl-choice b { display: block; font-size: 1rem; line-height: 1.375; font-weight: var(--bx-font-weight-semibold); color: rgb(var(--bx-color-text)); }
/* the bottom sheet over a dimmed page (a confirm, the account menu): rows reach its edges; a confirm sheet
   with words and buttons takes cl-sheet--pad */
.cl-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(var(--bx-color-bg-fill-strong) / .45); }
.cl-scrim[hidden], .cl-sheet[hidden] { display: none; }
.cl-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0; box-sizing: border-box;
  background: rgb(var(--bx-color-bg-surface)); border-radius: 20px 20px 0 0; box-shadow: var(--bx-shadow-popover);
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
.cl-sheet--pad { padding-inline: var(--px-space-base); padding-bottom: calc(var(--px-space-base) + env(safe-area-inset-bottom, 0px)); }
.cl-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: rgb(var(--bx-color-border)); margin: 0 auto 8px; }
.cl-sheet__head { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.cl-sheet__head h2 { flex: 1; margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: var(--bx-font-weight-semibold); }
.cl-sheet__acts { display: grid; gap: 8px; margin-top: var(--px-space-base); }
.cl-sheet__acts .px-button, .cl-sheet__foot .px-button { width: 100%; min-height: 48px; }
.cl-sheet__who { display: flex; gap: 12px; align-items: center; padding: 8px var(--px-space-base) 12px; border-bottom: 1px solid rgb(var(--bx-color-border-section)); }
.cl-sheet .cl-li { min-height: 56px; }
.cl-sheet__foot { padding: 8px var(--px-space-base) 0; }
.cl-x { flex: none; width: 44px; height: 44px; min-width: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(var(--bx-color-bg-surface-secondary)); color: rgb(var(--bx-color-icon)); cursor: pointer; }
.cl-x:focus-visible { outline: 2px solid rgb(var(--bx-color-border-focus)); outline-offset: 2px; }
/* a confirm <dialog> drawn as the sheet (confirm.js: a tap on the dimmed page closes it) */
dialog.cl-sheet { top: auto; width: auto; max-width: none; max-height: 85vh; border: 0; color: inherit; }
dialog.cl-sheet::backdrop { background: rgb(var(--bx-color-bg-fill-strong) / .45); }

/* ---------- s65 (D11): the account menu. Under 900 px it opens as a sheet from the foot over the dimmed
   page, with the picture, the name and the email, and a 44 px round "Close menu" X at the right of the name
   row (menu.js: the X, Escape and a tap on the dimmed page close it). From 900 px it stays the left column's
   drop-down, without the X. ---------- */
.cl-menu__scrim, .cl-menu__grip { display: none; }
.cl-menu__head { display: flex; align-items: center; gap: 12px; }
.cl-menu__head > .cl-menu__who { flex: 1 1 auto; min-width: 0; padding: 0; }
.cl-menu__av { display: none; }
.cl-menu__close { display: none; }
/* CHILD-UX-005 T-F7 (s65): the right arrow of the rows that open something shows in the phone sheet only */
.cl-menu__go { display: none; }
@media (max-width: 899.98px) {
  .cl-top:has(.cl-acct[aria-expanded="true"]) { z-index: 60; }
  .cl-dd--acct:has(> .cl-acct[aria-expanded="true"]) > .cl-menu__scrim {
    display: block; position: fixed; inset: 0; z-index: 60; background: rgb(var(--bx-color-bg-fill-strong) / .45);
  }
  #cl-acct-menu {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 61; box-sizing: border-box;
    width: auto; min-width: 0; max-width: none; margin: 0; border-radius: 20px 20px 0 0;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--bx-shadow-popover);
    gap: 0;
  }
  #cl-acct-menu .cl-menu__grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgb(var(--bx-color-border)); margin: 0 auto 8px; }
  #cl-acct-menu .cl-menu__head { padding: 4px var(--px-space-base) 12px; }
  #cl-acct-menu .cl-menu__who b { font-size: 1rem; }
  .cl-menu__av { display: inline-flex; flex: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: var(--bx-font-weight-semibold); background: rgb(var(--bx-color-bg-fill-strong)); color: rgb(var(--bx-color-bg-surface)); }
  .cl-menu__close {
    display: inline-flex; flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
    align-items: center; justify-content: center; background: rgb(var(--bx-color-bg-surface-secondary)); color: rgb(var(--bx-color-icon)); cursor: pointer;
  }
  .cl-menu__close:focus-visible { outline: 2px solid rgb(var(--bx-color-border-focus)); outline-offset: 2px; }
  #cl-acct-menu .px-menu__item { min-height: 56px; padding-inline: var(--px-space-base); border-radius: 0; font-size: var(--bx-font-size-body); font-weight: var(--bx-font-weight-medium); gap: var(--bx-space-list-row-gap); }
  #cl-acct-menu .px-menu__divider { margin: 0; }
  /* CHILD-UX-005 T-F7 (s65): the sheet's rows read as the site's list rows (.cl-r5): flush (no item gap, above),
     a 1 px line above every row after the first (the dividers draw it above Language and Your account), the
     20 px icon in the icon colour, and the right arrow at the end; "English" stands just before the arrow */
  #cl-acct-menu .px-menu__item + .px-menu__item { border-top: 1px solid rgb(var(--bx-color-border-section)); }
  #cl-acct-menu .px-menu__item > svg:first-child { width: 1.25rem; height: 1.25rem; color: rgb(var(--bx-color-icon)); }
  #cl-acct-menu .cl-menu__go { display: inline-flex; flex: none; margin-inline-start: auto; color: rgb(var(--bx-color-icon-secondary)); }
  #cl-acct-menu .cl-menu__go svg { width: 1.25rem; height: 1.25rem; color: inherit; }
  #cl-acct-menu .cl-menu__value + .cl-menu__go { margin-inline-start: 0; }
}
/* from 900 px (no bottom menu): the dock is no fixed strip; its buttons stand at the end of the page as the
   computer button rule draws them */
@media (min-width: 900px) {
  .cl-dock { position: static; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--px-space-small-200); padding: 0; background: transparent; border-top: 0; }
  .cl-dock > .px-button, .cl-dock .cl-btnpair > .px-button { width: fit-content; min-height: 0; }
  .cl-dock__note, .cl-dock__info { flex: 1 0 100%; text-align: end; }
  .cl-sheet { left: 15rem; }
}

/* ---------- CHILD-UX-005 (round 6, row T-1A3): Home (s1, s2), Alerts (s24) and One alert (s25) ---------- */
/* a page with a shown dock keeps its foot clear of it under 900 px (the page's bodyClass cl-has-dock does the
   same once the registry hands it over; places.css carries this rule for the places pages) */
@media (max-width: 899.98px) {
  body.cl-signed-in:has(.cl-dock:not([hidden])) { padding-bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + 84px + env(safe-area-inset-bottom, 0px)); }
}
.cl-hero__big, .cl-hero__small { margin: 0; }
.cl-dock > .px-button > svg { flex: none; }
/* Home: the two renewed parts stand in the page's one column with its gap */
.cl-home-part { display: flex; flex-direction: column; gap: var(--px-space-base); }
.cl-home-part:empty { display: none; }
.cl-home-part > .cl-sec { margin-bottom: calc(-1 * var(--px-space-small-300)); }
/* s1: the set-up card: "2 of 4 steps done" and the percent over the bar, the rows to do, the fold of the done */
.cl-home-progress { padding-bottom: 4px; }
.cl-home-progress .cl-lbl > span { font-weight: var(--bx-font-weight-medium); }
.cl-home-progress .cl-lbl > b { font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }
.cl-home-fold { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.cl-home-fold > summary { font-weight: var(--bx-font-weight-medium); }
.cl-home-fold > ul { border-top: 1px solid rgb(var(--bx-color-border-section)); }
#cl-home-setup .cl-r5 .cl-li { min-height: 60px; }
/* CHILD-BUGS-040 D-7, D-11: the plan's notice is one row like "See all history" (the sentence and the chevron,
   the whole row one link), 24 px under the part above it, as between Home's other blocks */
.cl-home-part > * + #cl-trial { margin-top: calc(var(--px-space-large-100) - var(--px-space-base)); }
@media (max-width: 389px) { #cl-trial .m-row { font-size: var(--bx-font-size-body); } }
/* s24: the chips under the title, the red not-allowed row with its grey line, the quiet end line */
.al-chips { margin: 0; }
/* (row T-FA1) a not-allowed row reads red as the sketch's sk-bad draws it: its words and its time in the red of the
   icon (the text-critical token is near black), the grey "Not allowed place" line under them */
.cl-r5 .al-row > .cl-li__title > .al-ic--bad ~ .al-tx, .cl-r5 .al-row:has(.al-ic--bad) > .cl-li__end { color: rgb(var(--bx-color-icon-critical)); }
.cl-r5 .al-row > .cl-li__title:has(> .al-line) { flex-wrap: wrap; row-gap: 0; }
.cl-r5 .al-row > .cl-li__title > .al-line { flex: 1 0 100%; padding-left: calc(16px + var(--px-space-small)); font-size: var(--bx-font-size-small); line-height: 1.35; font-weight: var(--bx-font-weight-regular); color: rgb(var(--bx-color-text-secondary)); }
.al-end { margin: 0; }
.al-end .cl-link { padding: 0; }

/* ---------- CHILD-UX-005 (round 6, row T-FA1): lane A pages under 9 to their sketches ---------- */
/* s1, s2, s3, s5: the Map / Satellite switch is the small switch on the map's top left corner (map.mjs
   mapTypeSwitch, inside #cl-map), never a card above the map: every page with that map gets it. Its two parts
   are 44 px; it goes with the map when the map cannot show (map.js showMapFailure hides it) */
.cl-mapseg { position: absolute; left: 10px; top: 10px; z-index: 2; max-width: calc(100% - 76px); }
.cl-mapseg > .px-field { margin: 0; }
.cl-mapseg .px-segmented { background: rgb(var(--bx-color-bg-surface) / .92); box-shadow: var(--bx-shadow-popover); }
.cl-mapseg .px-segmented > button { height: 44px; min-height: 44px; padding: 0 14px; text-align: center; }
#cl-map:has(> #cl-map-fail:not([hidden])) > .cl-mapseg { display: none; }
/* s3, s5: History. The All / Not allowed switch stands on the page with no white card round it (history.mjs
   cl-dayctl--bare; places.css keeps the card's inner padding, so these win by weight); each visit row starts with a
   round 40 px icon tile (history.mjs, the hero's tile look); the day button carries its calendar icon */
.pl-history .cl-dayctl--bare { padding: 0; }
.pl-history .cl-dayctl--bare > .pl-tabs { padding: 0; }
.cl-hero__ic.cl-vtile { width: 40px; height: 40px; }
.hi-row > .cl-li { padding-block: 12px; min-height: 64px; }
.cl-daynav .cl-daybar__mid > .px-button { gap: 8px; }
.cl-daynav .cl-daybar__mid > .px-button > svg { flex: none; }
.hi-after { margin: 0; }
/* s3, s5 (History) and s23 (One visit): the map under 900 px at the sketch's short height (sk-map--short) */
@media (max-width: 899.98px) {
  .pl-history .map.cl-bigmap, .pl-visit .pl-map.cl-bigmap { aspect-ratio: auto; min-height: 0; height: 150px; }
}
/* s23: One visit. The facts rows' small icons (visit.mjs factRowHtml) in the row's own icon tile; the dock
   button's clock icon */
.pl-visit .cl-dock > .px-button { gap: 8px; }
/* s34 and every tall-dock page (Help, Your plan, Security, Phone health): under 900 px the tall dock's room
   (cl-dock-tall, 112 px) wins over the plain room of a shown dock (84 px, the :has rule above and places.css's
   copy), by weight and by order (the plain rules weigh 0,4,1; this one 0,6,1), so the tall dock never covers the
   page's last row */
@media (max-width: 899.98px) {
  body.cl-signed-in.cl-has-dock.cl-dock-tall:has(.cl-dock:not([hidden])) { padding-bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + max(112px, var(--cl-dock-room, 0px)) + env(safe-area-inset-bottom, 0px)); }
}
