/* Child Location - the map side, places, place, add a place, history, visit and wrong places pages
   (plan CHILD-BUNDLEX-001, row T-W2, 17 Nov 2026). The pages draw the design folder's kit parts
   (bx/components.css: px-page__title, px-card, px-section, px-row, px-badge, px-button, px-field,
   px-input, px-choice, px-radio, px-checkbox, px-switch, px-range, px-error, px-empty, px-list) and the
   one notice of frame.mjs noticeHtml(). This file keeps only what the kit has no part for: the page
   head, the filter row, the day bar, the day line (timeline), the two or three number boxes, the row's
   end value, the drawn place picture, and the spacing between parts. Every colour, font size, weight,
   radius and space is a token (--bx-* of bx/tokens.css, --px-space-* of bx/components.css); a size with
   no token is the agreed mock-up's own (C:/temp/research/child-location/v4/web/site.css: cl-head,
   its lead line, cl-tile, cl-facts). */

/* ---------- the page head (mock-up cl-head) ---------- */
.pl-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--px-space-small) var(--px-space-base); }
.pl-head__text { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: var(--px-space-small-300); }
.pl-head__actions { display: flex; flex-wrap: wrap; gap: var(--px-space-small-200); max-width: 100%; }

/* ---------- text pieces ---------- */
.pl-stack { display: flex; flex-direction: column; gap: var(--px-space-base); min-width: 0; }
.pl-sh { margin: var(--px-space-small-200) 0 calc(-1 * var(--px-space-small-200)); 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)); }
.pl-strong { font-weight: var(--bx-font-weight-semibold); }
.pl-tg { display: flex; flex-wrap: wrap; gap: var(--px-space-small-300); margin-top: var(--px-space-small-500); }
.pl-head__text > .pl-tg { margin-top: 0; }

/* ---------- buttons: the kit's button, its text may wrap on a narrow phone ---------- */
.pl-btn { max-width: 100%; height: auto; min-height: var(--bx-height-button); white-space: normal; text-align: center; padding-block: var(--px-space-small-400); }
.pl-btns { display: flex; flex-wrap: wrap; gap: var(--px-space-small-200); }
.pl-btns > .pl-btn { flex: 1 1 9rem; }
.pl-gap { margin-top: var(--px-space-base); }

/* ---------- History's day card (CHILD-FEEDBACK-003 D2): the day bar and the two choices (site.css .cl-seg)
   in ONE white card, so the switcher's track stands on white as on Invite ---------- */
.cl-dayctl { display: flex; flex-direction: column; gap: var(--px-space-small); padding: var(--px-space-small-300) var(--px-space-small-300) var(--px-space-small); }
.cl-dayctl > .cl-daybar { padding: 0; }
.cl-dayctl > .pl-tabs { margin: 0; padding: 0 var(--px-space-small-300); }
/* CHILD-UXHUNT-001 M-3: the longer Vietnamese word and its count keep an inner margin from the choice's edge;
   the count sits closer to its word */
.pl-tabs .cl-seg > button { gap: var(--px-space-small-300); padding-inline: var(--px-space-small-200); }
/* ---------- one line per row (CHILD-FEEDBACK-001 P1): a long text is cut with an ellipsis, never
   wrapped ---------- */
.pl-visit .cl-r5 .cl-li__title, .pl-visit .cl-r5 .cl-li__end,
.pl-place .cl-r5 .cl-li__title, .pl-place .cl-r5 .cl-li__end { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- CHILD-OWNER-034 D8: the History table (history.mjs visitRowHtml), the Alerts table shape on
   both tabs: the event icon (alerts.mjs kindIconHtml, the tile of settings.css .al-ic, which History does
   not load), the place, from, to, the total, the arrow. On a phone one line: the place (wrapped onto a
   second line when long, CHILD-UX-002 D6), "08:00 to 09:30" in one cell, the total; the times are never cut. From 900 px a table of
   five columns under the head line (#hi-cols, the kit's table header band as Alerts' #al-cols) ---------- */
.hi-place .al-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--bx-color-icon-secondary)); }
.hi-row > .cl-li { gap: var(--px-space-small); }
.pl-history .hi-row .hi-place { flex: 1 1 auto; min-width: 0; max-width: none; display: flex; align-items: center; gap: var(--px-space-small-200); }
/* CHILD-UX-002 D6 (F4): on a phone the whole name, wrapped onto a second line, never cut with "..."; the
   times and the minutes keep their one line (.hi-when, .hi-total nowrap); from 900 px as before (below) */
.hi-place__name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
/* CHILD-UX-002 D7 (F5): the calendar's days to come stay disabled, in the kit's disabled colour, with no line
   (the kit's .px-datepicker__day:disabled strikes them, bx/components.css line 343) */
.cl-calcard .px-datepicker__day:disabled { text-decoration: none; }
.hi-when, .hi-total { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hi-total { color: rgb(var(--bx-color-text-secondary)); }
/* CHILD-UXHUNT-001 D-9: a not-allowed visit's times are red (the kit's critical text of details) */
.hi-when.cl-bad, .hi-total.cl-bad { color: rgb(var(--bx-color-details-text-critical)); font-weight: var(--bx-font-weight-medium); }
.cl-r5 > .hi-cols + li { border-top: 0; }
#hi-cols { display: none; }
/* fix pass T-B1 (final review finding 5): a visit still running reads "Since 08:00" on a phone; from 900 px
   its From and To cells, as every row */
@media (max-width: 899.98px) { .hi-when--still > .hi-from, .hi-when--still > .hi-to { display: none; } }
@media (min-width: 900px) {
  .hi-row > .cl-li, #hi-cols { display: grid; grid-template-columns: minmax(0, 1fr) 6rem 6rem 7rem 20px; align-items: center; column-gap: var(--px-space-small); }
  .hi-when { display: contents; }
  /* CHILD-UX-002 D6: from 900 px the name cell as before the job (one line) */
  .hi-place__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hi-sep { display: none; }
  .hi-since { display: none; }
  #hi-cols {
    margin: var(--bx-space-table-inset); border-radius: var(--bx-radius-table-header);
    padding: var(--px-space-small-300) calc(var(--px-space-base) - var(--bx-space-table-inset));
    background: rgb(var(--bx-color-bg-surface-secondary));
    font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small);
    font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text-secondary));
  }
}
/* the kind badge beside a place's title (CHILD-FEEDBACK-001 P2) */
.pl-place .cl-flow-head__title .px-badge { vertical-align: middle; }

/* ---------- list rows (the kit's px-row): the end value, the arrow, the icon's tones; CHILD-BUGS-021 D3, D5:
   the row's size and its plain icon are the shared rules of site.css (.px-row, .px-row__icon) ---------- */
.pl-row .px-row__sub { margin: 0; }
.pl-end { flex: none; text-align: end; font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text)); font-variant-numeric: tabular-nums; }
.pl-end--bad { color: rgb(var(--bx-color-text-critical)); }
.pl-chev { flex: none; display: inline-flex; color: rgb(var(--bx-color-icon-secondary)); }
.pl-ic--bad { color: rgb(var(--bx-color-icon-critical)); }
.pl-ic--big { width: 3rem; height: 3rem; }
.pl-ic--big svg { width: 1.75rem; height: 1.75rem; }
.px-empty > .pl-ic--big { width: 4rem; height: 4rem; }
.px-empty .px-section__heading { flex: none; }

/* ---------- the map side: where the child is ---------- */
.pl-where__top { display: flex; justify-content: flex-end; }
.pl-where { display: flex; align-items: center; gap: var(--px-space-small); min-width: 0; }
.pl-where__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--px-space-small-500); }

/* ---------- the drawn place picture (placeMapHtml): every fill a token; the ring is site.css's ring-ok / ring-bad ---------- */
.pl-map svg { display: block; width: 100%; height: auto; }
.pl-map__ground { fill: rgb(var(--bx-color-bg-surface-secondary)); }
.pl-map__block { fill: rgb(var(--bx-color-bg-surface-tertiary)); }
.pl-map__road { stroke: rgb(var(--bx-color-bg-surface)); }
.pl-map__edge { stroke: rgb(var(--bx-color-bg-surface)); }
.pl-map__mark { fill: rgb(var(--bx-color-text-on-fill)); }
.pl-map__here { fill: rgb(var(--bx-color-icon-info)); stroke: rgb(var(--bx-color-bg-surface)); }
/* CHILD-UXHUNT-001 D-8: the place name is a small white pill at the body size
   under the drawing's circle, never SVG text that grows with the box */
.pl-map { position: relative; }
.pl-map__name {
  position: absolute; left: 50%; bottom: var(--px-space-small-200); transform: translateX(-50%);
  max-width: calc(100% - 2rem); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: var(--px-space-small-300) var(--px-space-small-200); border-radius: 9999px; /* the kit's own pill literal (bx/components.css:307); the kit has no full-radius token */
  background: rgb(var(--bx-color-bg-surface)); color: rgb(var(--bx-color-text));
  font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); font-weight: var(--bx-font-weight-medium);
}
.pl-map__name--bad { color: rgb(var(--bx-color-text-critical)); }
/* the box Google's map is drawn in (places.js, add-place.js add pl-live-map) */
.pl-live-map, .pl-pick { height: 15rem; }
/* CHILD-OWNER-038 D3: the map way's map as high as the phone (below 900 px): the screen less what is above
   the map (the top bar, the head and the hint: 12.75rem measured on the local copy at 390 x 844), the gap
   and the button row (4rem), the bottom menu (4.875rem), a small gap (0.625rem) and the safe area; never
   under 17rem (T-3: with 19.375rem the button row sat under the bottom menu). "Use this place" takes the class away (add-place.js), so the map
   goes back to the kit's big-map height with the form under it. */
@media (max-width: 899.98px) {
  /* CHILD-UX-005 T-FA2 (s14): the hint is a note ON the map now, so the map runs down to 12 px above
     the dock (measured on the local copy at 390 x 844: map foot 692, dock top 704) */
  .map.pl-pick.pl-pick--tall { aspect-ratio: auto; height: max(17rem, calc(100dvh - 17.75rem - env(safe-area-inset-bottom, 0px))); }
}
/* CHILD-UX-001 D1 to D3: the map and its round "Find my location" button (places.js moves it into Google's
   RIGHT_BOTTOM slot, above plus and minus) and the line for a refused or failed position, inside one box;
   under the map only "Use this place", full width */
.pl-pickwrap { position: relative; }
.pl-pickwrap + [data-act="use-spot"] { margin-top: var(--px-space-base); }
.pl-locate {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 2.75rem; height: 2.75rem; margin: 0 0.625rem 0.625rem 0; padding: 0; border: 0; border-radius: 50%;
  background: rgb(var(--bx-color-bg-surface)); box-shadow: var(--bx-shadow-card); color: rgb(var(--bx-color-icon-secondary));
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pl-locate[hidden] { display: none; }
.pl-locate:focus-visible { outline: var(--bx-focus-ring-width) solid rgb(var(--bx-color-border-focus)); outline-offset: 0.125rem; }
.pl-locate.is-busy { color: rgb(var(--bx-color-icon-emphasis)); animation: pl-locate-pulse 1.2s ease-in-out infinite; }
@keyframes pl-locate-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .pl-locate.is-busy { animation: none; } }
.pl-locate-note {
  position: absolute; left: 0.625rem; right: 4rem; bottom: 1.75rem; z-index: 2; margin: 0;
  padding: var(--px-space-small-200) var(--px-space-base); border-radius: var(--bx-radius-card);
  background: rgb(var(--bx-color-bg-fill-strong) / 0.9); color: rgb(var(--bx-color-text-on-fill));
  font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body);
}
.pl-locate-note[hidden] { display: none; }

/* ---------- the forms: change a place, add a place ---------- */
.pl-form { display: flex; flex-direction: column; gap: var(--px-space-base); }
.pl-kind { padding: var(--px-space-small) var(--px-space-base); border-radius: var(--bx-radius-control); background: rgb(var(--bx-color-bg-surface)); box-shadow: inset 0 0 0 1px rgb(var(--bx-color-border)); }
.pl-kind:has(input:checked) { box-shadow: inset 0 0 0 2px rgb(var(--bx-color-bg-fill-strong)); }
.pl-kind--bad:has(input:checked) { box-shadow: inset 0 0 0 2px rgb(var(--bx-color-border-critical-strong)); background: rgb(var(--bx-color-bg-surface-critical)); }
.pl-kind .px-choice__text { min-width: 0; }
.pl-radius { display: flex; align-items: center; justify-content: space-between; gap: var(--px-space-small); }
.pl-radius output { flex: none; font-weight: var(--bx-font-weight-bold); }
.pl-radius .px-range { flex: 1; min-width: 0; }
.pl-find { display: flex; gap: var(--px-space-small-200); align-items: center; }
.pl-find .px-input { flex: 1; min-width: 0; }
.pl-find .pl-btn { flex: none; }
.px-row.pl-alert { cursor: pointer; }

/* each search answer add-place.js draws: the kit's choice row (px-choice pl-opt) with the kit radio
   (px-radio) and the kit text (px-choice__text); CHILD-BUGS-029 DM: the browser radio rule is gone.
   The address under the name is the kit's small grey text (px-text--subdued px-text--small). */
.pl-opt { display: flex; align-items: center; gap: var(--px-space-small); min-height: 2.75rem; padding: var(--px-space-small) var(--px-space-base); cursor: pointer; border-bottom: 0; }
.pl-opt + .pl-opt { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.pl-opt b { display: block; font-weight: var(--bx-font-weight-medium); }

/* ---------- plan CHILD-OWNER-1118, row T-A2 (D3, DESIGN.md 1): Add place by address, the suggestion
   list under the field as the person types. The kit's popover (px-popover: surface, radius-popover,
   shadow-popover, space-menu) as wide as the field, 4 px under it, the kit's options (px-option) inside;
   one line a row: pin, the main text, the second text muted, a long one cut with dots ---------- */
/* the address card lets the list hang below the field (px-card clips by default) */
.pl-way .px-card.cl-form4 { overflow: visible; }
/* the field with the kit's search icon inside (components.css px-input-wrap--icon) holds the list */
.pl-combo { position: relative; }
.pl-combo > .pl-sugg {
  top: calc(100% + var(--px-space-small-400)); left: 0; right: 0;
  min-width: 0; max-width: none; margin: 0; list-style: none;
  display: flex; flex-direction: column; gap: var(--bx-space-menu-gap);
}
.pl-sugg .px-option { min-height: 2.75rem; gap: var(--px-space-small-200); }
.pl-sugg__ic { flex: none; display: inline-flex; color: rgb(var(--bx-color-icon-secondary)); }
.pl-sugg__main { flex: none; max-width: 60%; font-weight: var(--bx-font-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sugg__second { flex: 1 1 auto; min-width: 0; color: rgb(var(--bx-color-text-secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- history: the day picker ---------- */
.pl-dayform { display: flex; flex-wrap: wrap; align-items: center; gap: var(--px-space-small-200); max-width: 100%; }
.pl-dayform__label { display: inline-flex; align-items: center; gap: var(--px-space-small-300); }
.pl-dayform__date { width: auto; flex: 1 1 9rem; min-width: 0; }

/* ---------- plan CHILD-BUNDLEX-002, row T-W2: the parts of the agreed design (v4/web/site.css
   cl-bigmap, cl-full, cl-form4, cl-daybar; sizes are the mock-up's own) ---------- */
/* the big map right under the title: map, one place, one visit, add a place */
.map.cl-bigmap, .pl-map.cl-bigmap { width: 100%; aspect-ratio: 4 / 3; min-height: 17rem; height: auto; }
.map.cl-bigmap .map-canvas { height: 100%; }
.cl-bigmap > svg { width: 100%; height: 100%; display: block; }
/* one full-width button (a list page's main button, Get directions, Edit place) */
.cl-full { width: 100%; max-width: 100%; justify-content: center; }
/* Delete place: a plain critical text line, 44 px to touch */
/* CHILD-BUGS-029 DK: it is the kit's tertiary critical button (bx/components.css .px-button--tertiary.px-button--critical),
   the same as every other delete button of the site; no hand rule here */
/* the form inside one card */
.cl-form4 { padding: var(--px-space-base); display: flex; flex-direction: column; gap: var(--px-space-base); }
/* the day bar of History: before, the day, after */
.cl-daybar { display: flex; align-items: center; justify-content: space-between; gap: var(--px-space-small-200); padding: var(--px-space-small-300); }
.cl-daybar__mid { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; position: relative; }
/* CHILD-UXHUNT-001 M-17: the next-day arrow on today is off: no grey fill (the kit gives an aria-disabled
   button the disabled fill, which read as pressed), only the faint icon */
.cl-daybar > .px-button--tertiary[aria-disabled="true"] { background: transparent; box-shadow: none; cursor: default; color: rgb(var(--bx-color-icon-disabled)); }
/* a switch row of "Tell me when" */
.cl-li--switch { cursor: pointer; }
.cl-li--switch .px-switch { flex: none; }
/* the delete pop-up */
.cl-pop .px-modal__footer { display: flex; justify-content: flex-end; gap: var(--px-space-small-200); }
/* CHILD-UX-005 s12: the delete question is the shared bottom sheet (dialog.cl-sheet, site.css); the
   old px-modal sheet rules of CHILD-UX-001 D6 for the delete dialog are gone with it */

/* ---------- plan CHILD-BUGS-004, row T-A3: the Free plan's lock look (upgrade Screen 71, u71.html
   cl-locked, cl-lockic, cl-lockbtn): the frame's lock icon before the name in the secondary icon colour,
   the locked row's name in the secondary text colour, the kit's warning badge at the end ---------- */
.pl-lockic { display: inline-flex; flex: none; vertical-align: -3px; margin-inline-end: var(--px-space-small-300); color: rgb(var(--bx-color-icon-secondary)); }
.pl-locked .cl-li__title { color: rgb(var(--bx-color-text-secondary)); }
.pl-lockbtn { gap: var(--px-space-small-300); }
.pl-lockbtn .pl-lockic { margin-inline-end: 0; }
/* the suggested place's visit rows keep one line, as the place page's rows;
   CHILD-UXHUNT-001 M-2: a place idea's name uses the free width, then wraps
   (a Vietnamese name was cut with dots while half the row was free) */
.pl-suggest .cl-r5 .cl-li__title, .pl-suggest .cl-r5 .cl-li__end,
.pl-ideas .cl-r5 .cl-li__end { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ideas .cl-r5 .cl-li__title { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* ---------- wide screens (from 900 px, as site.css) ---------- */
@media (min-width: 900px) {
  .pl-live-map, .pl-pick { height: 22.5rem; }
  .map.cl-bigmap { aspect-ratio: auto; height: 30rem; }
  .pl-map.cl-bigmap, .pl-pick.cl-bigmap { aspect-ratio: auto; height: 22rem; }
  /* CHILD-OWNER-034 D14 (the owner's words "fix witdht of all tables in all screens, make same ... same as
     alerts"): the computer's two-column rules of Places, One place, Add a place, One visit, History and
     Ideas for places are gone; every card takes the full page column, in the phone order (the source
     order), and Ideas for places keeps its switch as on a phone */
}

/* ===== SHARED WITH OTHER PAGES' OLD MARKUP: BEGIN =====
   The settings, alerts, family, account, Zalo, your-data, security and welcome pages load this file too
   (their own lanes, T-W1, T-W3, T-W4) and drew with these old rules; they are kept, tokenised, so no page
   breaks until its lane lands. T-2's fix pass removes each rule whose class no page file or script names
   any more (grep first): see TIP-T-W2.txt. */
button.row{ width: 100%; background: rgb(var(--bx-color-bg-surface)); border: 0; border-bottom: 1px solid rgb(var(--bx-color-border-section)); font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.row:last-child{ border-bottom: 0; }
a.row:hover,button.row:hover{ background: rgb(var(--bx-color-bg-surface-hover)); }
/* a button at the end of a row keeps its own width; the row's text takes the rest */

/* ===== SHARED WITH OTHER PAGES' OLD MARKUP: END ===== */

/* ---------- CHILD-UX-005 (round 6, row T-1A): lane A screens 1 to 32, page parts of the place, History and
   add pages. The dock itself is site.css (.cl-dock, T-1S); every tap target here is 44 px or more (R3-5). ---------- */
/* a dock that holds nothing shown takes no room; a hidden dock is gone */
.cl-dock[hidden], .cl-dock:not(:has(> :not([hidden]))) { display: none; }
/* the page keeps room for its dock under 900 px (the frame's body class, or the dock itself on the page) */
@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)); }
}
/* Add a place: while the form with its own Cancel and Save shows, the way's dock (Find place, Use this place) folds away */
.pl-add:has(#pl-form:not([hidden])) .pl-way .cl-dock { display: none; }
/* s14: Find my location is a white pill with its word */
.pl-locate.pl-locpill { width: auto; min-width: 44px; height: 44px; padding: 0 14px 0 10px; gap: 6px; border-radius: 22px; color: rgb(var(--bx-color-text)); font-weight: var(--bx-font-weight-medium); font-size: 0.9375rem; }
.pl-locpill__t { white-space: nowrap; }
/* s16: a refused ask turns the pill red with "Try again" (add-place.js is-off); the dark note runs the
   map's width under the pill */
.pl-locate.pl-locpill.is-off { color: rgb(var(--bx-color-details-text-critical)); }
.pl-pickwrap .pl-locate-note { right: 0.625rem; }
/* s19, s22: the quiet way out and the idea's own card */
.pl-wayout, .pl-idea-other { align-self: flex-start; }
.pl-idea-card .cl-two b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: var(--bx-font-weight-semibold); }
.pl-ways { padding: 0; }
/* s6: the blue Add at the end of a starter row */
.pl-add-word { color: rgb(var(--bx-color-text-link)); font-weight: var(--bx-font-weight-semibold); }
/* s8, s9: a list row with a grey second line is at least 52 px */
.cl-r5 .cl-li { min-height: 52px; }
.cl-r5 .cl-li--switch .cl-li__title { white-space: normal; }
/* s12: the delete sheet's words at 16 px */
.pl-sheet-body { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; }
/* s21: the Allowed and Not allowed switch full width, 44 px parts */
.pl-ideas .cl-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.pl-ideas .cl-seg > button { min-height: 44px; }
/* s3 to s5: the day switcher in the dock: arrow, the day (the main button), arrow */
nav.cl-dock.cl-daynav { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: stretch; justify-content: stretch; }
.cl-daynav .cl-daybar__mid { display: block; min-width: 0; }
.cl-daynav .cl-daybar__mid > .px-button { width: 100%; min-height: 48px; }
.cl-daynav > .px-button--icon { width: 48px; min-width: 48px; min-height: 48px; }
.cl-daynav > .px-button.cl-dim { opacity: .4; }
/* s3: a visit row: the place, one grey line "12:39 to 12:53 · 14 min", a red line for a not-allowed visit */
.pl-history .pl-visitrow .hi-place { display: block; }
.pl-visitrow .hi-when { display: block; white-space: normal; }
.pl-visitrow .hi-sep { display: inline; }
.pl-visitrow .hi-total { color: inherit; }
@media (min-width: 900px) {
  .pl-visitrow > .cl-li { display: flex; }
  .pl-visitrow .hi-when { display: block; }
}
/* s4: the calendar is a bottom sheet (site.css .cl-sheet); its day cells 46 px round with 3 px between them,
   today ringed, the picked day black, a dot under a day with visits, its month arrows 44 px, the line and
   "Show today" (white) at its foot */
.cl-calcard { max-height: 92vh; overflow-y: auto; }
.cl-calcard .px-datepicker { max-width: 26rem; margin: 0 auto; padding: 0; border: 0; box-shadow: none; background: none; }
.cl-calcard .px-datepicker__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.cl-calcard .px-datepicker__head > span { font-size: 1.0625rem; font-weight: var(--bx-font-weight-semibold); }
.cl-calcard .px-datepicker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; justify-items: center; }
.cl-calcard .px-datepicker__wd { min-height: 32px; display: grid; place-items: center; font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }
.cl-calcard .px-datepicker__day { position: relative; width: 46px; height: 46px; min-width: 44px; min-height: 44px; border-radius: 50%; font-size: 1rem; text-decoration: none; }
/* T-F3c (final review F5): under 360 px seven 44 px days and six 3 px gaps (326 px) do not fit the sheet, so the
   days share the row's width (each about 38 px at 320 px, above the 24 px least target) and never overflow it */
@media (max-width: 359.98px) {
  .cl-calcard .px-datepicker__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cl-calcard .px-datepicker__day { width: 100%; max-width: 46px; height: auto; aspect-ratio: 1; min-width: 0; min-height: 0; }
}
.cl-calcard .px-datepicker__day.is-today { box-shadow: inset 0 0 0 1.5px rgb(var(--bx-color-border)); background: none; color: rgb(var(--bx-color-text)); }
.cl-calcard .px-datepicker__day.is-selected { background: rgb(var(--bx-color-bg-fill-strong)); color: rgb(var(--bx-color-text-on-fill)); box-shadow: none; }
.cl-calcard .px-datepicker__day:disabled { color: rgb(var(--bx-color-text-disabled)); }
.cl-calcard .px-datepicker__day.has-dot::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cl-calcard .px-button--icon { min-width: 44px; min-height: 44px; }
.cl-calcard .hi-cal-note { text-align: center; margin: 12px 0 0; }
/* s23: the visit's hero */
.pl-visit-hero .cl-hero { align-items: center; }
/* s3, s6: a not-allowed place's name and its "Not allowed place" line in red (after .cl-line2's grey) */
.pl-visitrow .cl-bad, .cl-r5 .cl-li .cl-li__title .cl-bad { color: rgb(var(--bx-color-details-text-critical)); }
/* ---------- CHILD-UX-005 T-FA2 (round 6 fixes, lane A place pages under 9) ---------- */
/* s7, s9: a viewer's quiet line: the lock first, the words, on Places a close cross at its right (44 px) */
.pl-viewer-line { display: flex; align-items: flex-start; gap: 8px; padding: 4px 4px 4px 8px; min-height: 48px; box-sizing: border-box; }
.pl-viewer-line[hidden] { display: none; }
.pl-viewer-line > .pl-lockic { margin: 2px 0 0; }
.pl-viewer-line > .cl-note { flex: 1; min-width: 0; margin: 0; }
.pl-viewer-line > .pl-viewer-x { margin: -12px -4px 0 0; background: transparent; color: rgb(var(--bx-color-icon-secondary)); }
/* s9: a viewer's On reads black, as the sketch */
.cl-r5 .cl-li__end.pl-onval { color: rgb(var(--bx-color-text)); }
/* s13, s22: a chevron at the right of each way */
.pl-ways .cl-choice .cl-two { flex: 1; min-width: 0; }
.pl-choice-go { flex: none; display: inline-flex; margin-left: auto; color: rgb(var(--bx-color-icon-secondary)); }
.pl-idea-card .cl-hero { align-items: center; }
/* s14 to s16: Find my location at the map's top right (Google's RIGHT_TOP slot) */
.pl-locate.pl-locpill { margin: 0.625rem 0.625rem 0 0; }
/* the map way's one note at the foot of the map (white), clear of Google's logo and of plus and minus;
   the dark refused or failed note stands in its place while it shows */
.pl-mapnote {
  position: absolute; left: 0.625rem; right: 3.5rem; bottom: 1.75rem; z-index: 2; margin: 0;
  padding: 10px 12px; border-radius: 12px; background: rgb(var(--bx-color-bg-surface) / 0.95); color: rgb(var(--bx-color-text));
  box-shadow: var(--bx-shadow-popover); font-size: 0.9375rem; line-height: 1.375rem;
}
.pl-mapnote[hidden] { display: none; }
.pl-pickwrap .pl-locate-note { right: 3.5rem; font-size: 0.9375rem; line-height: 1.375rem; }
.pl-pickwrap:has(.pl-locate-note:not([hidden])) .pl-mapnote { visibility: hidden; }
/* s17: "Place set on the map." with a tick */
.pl-mapnote.is-set::before {
  content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* s17, s18: with the form open the pill folds away, so it never covers the pin */
.pl-add:has(#pl-form:not([hidden])) .pl-locate { display: none; }
/* s21: the switch straight on the page */
.pl-ideas-seg { margin: 0; }
/* ---------- CHILD-UX-005 T-FC (round 6, the last screens under 9) ---------- */
/* s17, s18: under 900 px, once "Use this place" opens the form of the map way, the map is the sketch's short map
   (150 px, as History and One visit in site.css), so "Tell me when" shows on the first screen and the Save bar
   never cuts the Radius slider; the place page's map (.pl-map, s8 to s11) and the link and address ways keep
   theirs */
@media (max-width: 899.98px) {
  .pl-add[data-way="map"]:has(#pl-form:not([hidden])) .map.pl-pick.cl-bigmap { aspect-ratio: auto; min-height: 0; height: 150px; }
}
