/* Feen? components (Design System §8, revised 25 Sep 2026 for the v2 component system),
   built only from the tokens in tokens.css. Written by hand for the design-system page;
   the ui-designer uses and extends it. ui_check.py checks it: role colours, the 4dp spacing
   scale, shape tokens and logical properties only. Component text that §8 sizes outside the
   type scale is set here, with a taller :lang(ar) line and never any letter-spacing. */

/* Empty and unavailable things sit in a well: one tonal step below the page with a shaded top lip,
   so empty reads as recessed and filled as raised. Never a dashed edge (revised 25 Sep 2026). */
:root { --well: color-mix(in srgb, var(--color-surface-sunken) 55%, var(--color-background)); --well-lip: inset 0 1.5px 0 rgb(0 0 0 / 0.07); }

/* ---- Screens -------------------------------------------------------------- */
/* The decide flow and dark panels sit on the brand surface (§5, elevation 2). */
.artboard.brand-screen, .on-brand { background: var(--color-surface-brand); color: var(--color-on-brand); }
.screen-pad { padding-inline: var(--space-2xl); }
.stack-s { display: flex; flex-direction: column; gap: var(--space-s); }
.stack-m { display: flex; flex-direction: column; gap: var(--space-m); }
.stack-l { display: flex; flex-direction: column; gap: var(--space-l); }
.row { display: flex; align-items: center; gap: var(--space-s); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.grow { flex: 1; min-width: 0; }
.meta { color: var(--color-ink-muted); }
.subtle { color: var(--color-ink-subtle); }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Buttons (§8) ----------------------------------------------------------- */
/* Rounded rectangles at shape.control; pills only for deciding. Labels are labelLarge. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s); min-height: 56px; padding: 0 var(--space-2xl); border: 2px solid transparent; border-radius: var(--shape-control); font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 20px; white-space: nowrap; transition: opacity var(--duration-quick); }
.btn:lang(ar) { line-height: 22px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-medium { min-height: 52px; }
.btn-small { min-height: 36px; padding: 0 var(--space-l); border-radius: var(--shape-full); font-size: 13px; line-height: 16px; }
.btn-small:lang(ar) { line-height: 18px; }
.btn-pill { border-radius: var(--shape-full); }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-secondary { background: var(--color-surface-brand); color: var(--color-on-brand); }
.btn-outlined { border-color: var(--color-outline-strong); color: var(--color-outline-strong); }
.btn-utility { border-color: var(--color-primary); color: var(--color-primary); }
.btn-text { min-height: 48px; padding: 0 var(--space-m); color: var(--color-primary); }
/* Decision: a pill in Alexandria 700. 64dp on the brand surface; .btn-dock 60dp; .btn-hero 72dp. */
.btn-decision { min-height: 64px; border-radius: var(--shape-full); background: var(--color-accent); color: var(--color-on-accent); font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 28px; }
.btn-decision:lang(ar) { line-height: 34px; }
.btn-dock { min-height: 60px; font-size: 18px; line-height: 24px; }
.btn-dock:lang(ar) { line-height: 30px; }
.btn-dock.btn-secondary { border-radius: var(--shape-full); font-family: var(--font-display); font-weight: 700; }
.btn-hero { min-height: 72px; font-size: 26px; line-height: 32px; }
.btn-hero:lang(ar) { line-height: 40px; }
.on-brand .btn-outlined, .brand-screen .btn-outlined { border-color: var(--color-on-brand); color: var(--color-on-brand); }
.on-brand .btn-text, .brand-screen .btn-text { color: var(--color-on-brand); }
.btn-pressed { opacity: var(--state-pressed-opacity); }
.btn-outlined.btn-pressed, .btn-utility.btn-pressed, .btn-text.btn-pressed { opacity: 1; background: var(--state-wash); }
.btn-focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn-disabled { border-color: transparent; background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-subtle); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: var(--shape-full); color: var(--color-outline-strong); }
.on-brand .icon-btn, .brand-screen .icon-btn { color: var(--color-on-brand); }

/* ---- Chips and the filter button (§8) ----------------------------------------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
.chip-row { display: flex; align-items: center; gap: var(--space-m); }
.chip-scroll { display: flex; flex: 1; min-width: 0; gap: var(--space-s); overflow: hidden; -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); }
[dir="rtl"] .chip-scroll { -webkit-mask-image: linear-gradient(to left, black calc(100% - 28px), transparent); mask-image: linear-gradient(to left, black calc(100% - 28px), transparent); }
.chip { display: inline-flex; align-items: center; gap: var(--space-xs); height: 44px; flex: none; padding: 0 var(--space-l); border: 2px solid var(--color-outline-strong); border-radius: var(--shape-full); color: var(--color-ink); font-family: var(--font-text); font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.chip:lang(ar) { line-height: 22px; }
.chip-selected { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); }
.chip-add { border-width: 1px; border-color: var(--color-outline-control); background: var(--color-surface); color: var(--color-ink); } /* still a choice, so not a well (§5, revised 17 Oct 2026) */
.filter-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 2px solid var(--color-outline-strong); border-radius: var(--shape-full); background: var(--color-surface); color: var(--color-outline-strong); }
.filter-btn-open { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); }
.filter-count { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 var(--space-xs); border: 2px solid var(--color-background); border-radius: var(--shape-full); background: var(--color-accent); color: var(--color-on-accent); font-family: var(--font-text); font-weight: 600; font-size: 10px; line-height: 12px; }
.near-line { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-primary); font-family: var(--font-text); font-weight: 600; font-size: 12px; line-height: 16px; }
.near-line:lang(ar) { line-height: 18px; }

/* ---- Segmented control (§8) --------------------------------------------------- */
.segmented { display: flex; gap: var(--space-xs); padding: var(--space-xs); border-radius: var(--shape-card); background: var(--color-surface-sunken); }
.segment { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s); min-height: 44px; border-radius: var(--shape-m); color: var(--color-ink-muted); font-family: var(--font-text); font-weight: 500; font-size: 15px; line-height: 20px; white-space: nowrap; transition: background var(--duration-quick), color var(--duration-quick); }
.segment:lang(ar) { line-height: 22px; }
.segment-selected { background: var(--color-surface-raised); color: var(--color-ink); font-weight: 600; }
.segment-count { color: var(--color-ink-muted); font-size: 12px; line-height: 16px; }
.segment-count:lang(ar) { line-height: 18px; }
/* The picker's source selector, on the brand surface. */
.segmented-brand { border-radius: var(--shape-m); background: var(--color-on-brand-fill); }
.segmented-brand .segment { min-height: 44px; border-radius: var(--shape-s); color: var(--color-on-brand); font-size: 13px; line-height: 16px; }
.segmented-brand .segment:lang(ar) { line-height: 18px; }
.segmented-brand .segment-selected { background: var(--color-background); color: var(--color-ink); }
/* Unselected counts on the brand track: onBrand at 80% (about 5.9:1), where .segment-count's inkMuted would be about 1.3:1. */
.segmented-brand .segment:not(.segment-selected) .segment-count { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }

/* ---- Rating tiers (§3) ----------------------------------------------------------- */
.tier-high { background: var(--color-accent); color: var(--color-on-accent); }
.tier-middle { background: var(--color-tier-middle, var(--color-surface-brand)); color: var(--color-on-tier-middle, var(--color-on-brand)); }
.tier-low { background: var(--color-surface-sunken); color: var(--color-ink); }
.tier-none { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-subtle); }

/* Rating pill: the place's number on a card. */
.rating-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; flex: none; padding: 0 var(--space-s); border-radius: var(--shape-full); font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 20px; white-space: nowrap; }
.rating-pill.tier-none { font-family: var(--font-text); font-size: 12px; line-height: 16px; }
.rating-pill.tier-none:lang(ar) { line-height: 18px; }

/* Score chip: who rated what, on a card. */
.score-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.score-chip { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-text); font-size: 14px; line-height: 20px; }
.score-chip:lang(ar) { line-height: 22px; }
.score-chip-name { color: var(--color-ink-muted); }
.score { padding: 0 var(--space-s); border-radius: var(--shape-s); font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; }
.score-chip-compact { height: 26px; gap: var(--space-2xs); padding: 0 var(--space-s) 0 var(--space-2xs); border: 1px solid var(--color-outline); border-radius: var(--shape-full); background: var(--color-surface); font-size: 12px; line-height: 16px; }
.score-chip-compact .score { padding: 0; background: none; color: var(--color-ink); font-size: 12px; line-height: 16px; }

/* Score tiles: place detail. */
.score-tiles { display: flex; gap: var(--space-s); }
.score-tile { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); padding: var(--space-m) var(--space-s); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); text-align: center; }
.score-tile-value { align-self: stretch; border-radius: var(--shape-m); font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 44px; }
.score-tile-name { color: var(--color-ink-muted); font-family: var(--font-text); font-size: 12px; line-height: 16px; }
.score-tile-name:lang(ar) { line-height: 18px; }
.score-tile-avg { border-color: var(--color-surface-brand); background: var(--color-surface-brand); color: var(--color-on-brand); }
.score-tile-avg .score-tile-name { color: var(--color-on-brand); }
.score-tile-label { display: flex; align-items: center; height: 30px; font-family: var(--font-text); font-weight: 600; font-size: 12px; line-height: 16px; }
.score-tile-empty .score-tile-value { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-subtle); }

/* ---- Avatars ------------------------------------------------------------------------- */
/* Four member colours, in join order: Nile 800, Saffron, Nile 600, Limestone 200. */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: var(--shape-full); background: var(--color-surface-brand); color: var(--color-on-brand); font-family: var(--font-text); font-weight: 600; font-size: 13px; line-height: 16px; }
.avatar-sm { width: 22px; height: 22px; font-size: 11px; line-height: 14px; }
.avatar-lg { width: 36px; height: 36px; font-size: 14px; line-height: 18px; }
.avatar-xl { width: 40px; height: 40px; font-size: 16px; line-height: 20px; }
.avatar-2xl { width: 72px; height: 72px; font-size: 28px; line-height: 36px; }
.avatar-2 { background: var(--color-accent); color: var(--color-on-accent); }
.avatar-3 { background: var(--color-primary); color: var(--color-on-primary); }
.avatar-4 { background: var(--color-surface-sunken); color: var(--color-ink); }
.avatar-former { background: var(--color-surface-sunken); color: var(--color-ink-subtle); }
.avatar-empty { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-subtle); }
.avatar--on-brand { background: var(--color-background); color: var(--color-outline-strong); } /* §8 Avatars, on a brand surface (the match, 2026-10-26; rule 29 Oct 2026): the Nile 800 member colour, and yours, turns Limestone 50 with Nile 800 initials, so no face vanishes into the surface */
.avatar--on-brand.avatar-3 { background: var(--nile-200); color: var(--nile-900); } /* §8 Avatars: the Nile 600 member colour on a brand surface, Nile 200 with Nile 900 */
.avatar-stack { display: flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 3px var(--color-background); }
.avatar-stack .avatar + .avatar { margin-inline-start: calc(-1 * var(--space-s)); } /* 8dp (§8, revised 17 Oct 2026 from 12dp): the 3dp ring then stops short of the neighbour's initial, a wide Arabic ن, ك or س included */
.row-between:has(> [data-node="home_title"]) { gap: var(--space-xs); } /* the title row's minimum gap, so "Our places" keeps one line beside the wider stack (space-between sets the real gap) */
.on-brand .avatar-stack .avatar, .brand-screen .avatar-stack .avatar { box-shadow: 0 0 0 2px var(--color-surface-brand); }
.emoji-tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--shape-m); background: var(--color-surface-sunken); font-size: 22px; line-height: 28px; }
/* unused since 30 Sep 2026, /sync-design (o2: sign_in#invite_gone draws the bare mark) */
.icon-tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--shape-m); background: var(--color-surface-sunken); color: var(--color-primary); }

/* ---- Rating input: the fill slider (§8) ------------------------------------------------ */
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
.slider-value { color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; }
.slider-value-sm { font-size: 24px; line-height: 32px; }
.slider { display: flex; align-items: stretch; height: 56px; overflow: hidden; border-radius: var(--shape-control); background: var(--color-surface-sunken); }
.slider-sm { height: 48px; border-radius: var(--shape-m); }
.slider-fill { flex: none; background: var(--color-accent); transition: width var(--duration-track); }
.slider-mark { width: 6px; flex: none; margin-inline-start: calc(-1 * var(--space-xs)); border-radius: var(--shape-xs); background: var(--color-ink); }
.slider-scale { display: flex; justify-content: space-between; padding: var(--space-xs) var(--space-s) 0; color: var(--color-ink-muted); font-family: var(--font-text); font-weight: 500; font-size: 12px; line-height: 16px; }
/* Off (Design System §8 Rating input, adopted 30 Sep 2026: "An Off slider keeps the well and draws a hollow thumb (an
   outlined well disc, Nile 800 rim on the well) at the track's start"). The track stays as the slider draws it; the
   thumb is a 24dp well disc with a 2dp outlineStrong rim, 12dp in from the inline-start end. No fill, no mark. */
.slider-off::before { content: ""; align-self: center; width: 24px; height: 24px; flex: none; margin-inline-start: var(--space-m); border: 2px solid var(--color-outline-strong); border-radius: var(--shape-full); background: var(--well); }

/* ---- Place card (§8) ---------------------------------------------------------------------- */
.place-list { display: flex; flex-direction: column; gap: var(--space-m); }
.place-card { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m) var(--space-l); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); color: var(--color-ink); }
.place-card-want { position: relative; overflow: hidden; }
.place-card-want::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--color-accent); }
.place-card-want .new-badge { border-color: var(--color-accent-text); color: var(--color-accent-text); }
.place-card-top, .place-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
/* The raters line (§8 line 3, D-75): faces 3dp apart so a 2dp ring stops short of the next initial, then the time since the last visit. */
.place-card-who { display: flex; align-items: center; gap: var(--space-s); min-height: 22px; }
.place-card-who .avatar-stack .avatar { box-shadow: 0 0 0 2px var(--color-surface); }
.place-card-who .avatar-stack .avatar + .avatar { margin-inline-start: -3px; }
.place-card-who .raters-more { color: var(--color-ink-muted); }
.place-card-since { color: var(--color-ink-subtle); }
.place-card-since-stale { color: var(--color-accent-text); }
.price-tier { color: var(--color-ink-muted); letter-spacing: 0.5px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); color: var(--color-ink-muted); }
/* The category tag (§6, revised 17 Oct 2026): a borderless tonal pill on a light card, Nile 50 under Nile 800 Plex 500,
   so the only 2dp edges above the list are the filter chips'. The 1.5dp edge stays in the box (transparent) so the
   brand-surface rows below can draw it in onBrand 50% without the pill changing size. */
.cat-tag { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-s); border: 1.5px solid transparent; border-radius: var(--shape-xs); background: var(--color-surface-brand-tint); color: var(--color-outline-strong); font-family: var(--font-text); font-weight: 500; font-size: 12px; line-height: 16px; white-space: nowrap; }
.cat-tag:lang(ar) { line-height: 18px; }
.cat-tag-fill { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); }
.distance { color: var(--color-primary); font-weight: 500; }
.new-badge { flex: none; padding: var(--space-2xs) var(--space-s); border: 1.5px solid var(--color-primary); border-radius: var(--shape-s); color: var(--color-primary); font-family: var(--font-text); font-weight: 600; font-size: 12px; line-height: 16px; white-space: nowrap; }
.new-badge:lang(ar) { line-height: 18px; }
.notes-card { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m) var(--space-l); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); } /* unused since 2026-10-15, rich-review (the note is its writer's entry in .take-lines) */

/* ---- Picker (§8) ----------------------------------------------------------------------------- */
.filter-sentence { font-family: var(--font-text); font-weight: 600; font-size: 28px; line-height: 36px; }
.filter-sentence:lang(ar) { line-height: 44px; }
.filter-word { padding-inline: var(--space-xs); border-radius: var(--shape-s); background: var(--color-on-brand-fill); color: var(--color-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.match-count { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 56px; }
.picker-pair { position: relative; display: flex; align-items: stretch; gap: var(--space-xl); }
.picker-card { flex: 1; min-width: 0; min-height: 236px; display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-l); border: 3px solid transparent; border-radius: var(--shape-xl); background: var(--color-background); color: var(--color-ink); transition: transform var(--duration-standard), opacity var(--duration-standard), border-color var(--duration-standard); }
.picker-card-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-xs); }
.picker-card .cat-tag { align-self: flex-start; }
.picker-name { color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; overflow-wrap: anywhere; hyphens: manual; } /* a word too wide for the column carries a soft hyphen in the mocks, standing in for Compose's Hyphens.Auto */
.picker-name:lang(ar) { line-height: 32px; }
.or-disc { position: absolute; inset-block-start: 50%; inset-inline: 0; margin-inline: auto; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--shape-full); background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 0 0 4px var(--color-surface-brand); font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 16px; }
.score-boxes { display: flex; gap: var(--space-s); margin-block-start: auto; }
.score-box { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-xs); border: 1px solid var(--color-outline); border-radius: var(--shape-m); background: var(--color-surface); color: var(--color-ink-muted); text-align: center; font-family: var(--font-text); font-size: 11px; line-height: 16px; }
.score-box-value { border-radius: var(--shape-xs); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 28px; }

/* Surprise us reveal (§8; the motion is P1 polish). */
.reveal { position: relative; display: flex; align-items: center; justify-content: center; height: 380px; }
.reveal-back, .reveal-card { position: absolute; width: 272px; height: 344px; border-radius: var(--shape-xl); }
.reveal-back-far { background: var(--nile-900); transform: rotate(-7deg) translate(-14px, 8px); }
.reveal-back-near { background: var(--color-surface-brand-raised); transform: rotate(5deg) translate(12px, 4px); }
.reveal-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-m); padding: var(--space-2xl); background: var(--color-background); color: var(--color-ink); }
.reveal-name { color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 40px; }
.reveal-name:lang(ar) { line-height: 52px; }

/* ---- Bottom action dock (§8) --------------------------------------------------------------------- */
/* .dock, the two-pill fade strip, is no longer home's dock (Design System §8, revised 29 Sep 2026: the capsule, .dock-band below). Kept for create_group's places step. */
.dock { display: flex; gap: var(--space-m); padding: var(--space-2xl); background: linear-gradient(to top, var(--color-background) 55%, transparent); }
.dock .btn { flex: 1; }

/* ---- Top app bar (§8) --------------------------------------------------------------------------- */
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-m); padding: var(--space-s) var(--space-2xl) 0; }
.topbar-title { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.switcher-pill { display: inline-flex; align-items: center; gap: var(--space-xs); height: 32px; margin-inline-start: calc(-1 * var(--space-m)); padding: 0 var(--space-m); border-radius: var(--shape-full); background: var(--color-surface-sunken); color: var(--color-ink); font-family: var(--font-text); font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.switcher-pill:lang(ar) { line-height: 22px; }
.switcher-pill-count { display: inline-flex; align-items: center; gap: var(--space-s); color: var(--color-ink-muted); font-weight: 400; }
/* The separator is drawn as a 4dp dot, not the "·" glyph: in Arabic the glyph beside a numeral reads as the Arabic-Indic zero "٠" ("12 · مكان" read as 120). 8dp each side (the pill's 4dp gap + 4dp margin before it). */
.switcher-pill-dot, .sep-dot { flex: none; width: 4px; height: 4px; border-radius: var(--shape-full); background: currentColor; font-size: 0; line-height: 0; overflow: hidden; }
.switcher-pill-dot { margin-inline-start: var(--space-xs); color: var(--color-ink-muted); }
/* The pill's hit box: a 48dp transparent button around the 32dp pill, pulled back 8dp top and bottom so the
   layout is unchanged. The button owns the start offset the pill had; the pill inside only draws. */
.switcher-hit { display: inline-flex; align-items: center; min-height: 48px; margin-block: -8px; margin-inline-start: calc(-1 * var(--space-m)); padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.switcher-hit > .switcher-pill { margin-inline-start: 0; min-width: 0; max-width: 100%; }

/* ---- Place-detail header (§8) ------------------------------------------------------------------- */
.brand-header { display: flex; flex-direction: column; gap: var(--space-s); padding: 0 var(--space-2xl) var(--space-2xl); background: var(--color-surface-brand); color: var(--color-on-brand); }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; }
.brand-title:lang(ar) { line-height: 52px; }
.brand-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); opacity: 0.9; }
.edit-tag { padding: var(--space-xs) var(--space-m); border: 1.5px solid var(--color-on-brand); border-radius: var(--shape-s); font-family: var(--font-text); font-weight: 600; font-size: 14px; line-height: 20px; }
.group-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--space-s); height: 28px; padding: 0 var(--space-m); border-radius: var(--shape-full); background: var(--color-surface-brand-raised); font-family: var(--font-text); font-weight: 600; font-size: 13px; line-height: 16px; }
.group-pill:lang(ar) { line-height: 18px; }

/* ---- Bottom sheets, list switcher, dialog (§8) -------------------------------------------------- */
.scrim { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; background: var(--color-scrim); }
.scrim-center { justify-content: center; padding: 0 var(--space-2xl); }
.sheet { display: flex; flex-direction: column; gap: var(--space-s); padding: 0 var(--space-2xl) var(--space-2xl); border-radius: var(--shape-2xl) var(--shape-2xl) 0 0; background: var(--color-surface); color: var(--color-ink); }
.sheet-grabber { width: 40px; height: 4px; margin: var(--space-m) auto var(--space-s); border-radius: var(--shape-full); background: var(--color-outline); }
.sheet-title-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.sheet-section { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m) 0; }
.list-option { display: flex; align-items: center; gap: var(--space-m); min-height: 72px; padding: 0 var(--space-l); border: 2px solid transparent; border-radius: var(--shape-card); }
.list-option-selected { border-color: var(--color-accent); background: var(--color-background); }
.dialog { display: flex; flex-direction: column; gap: var(--space-l); width: 100%; padding: var(--space-2xl); border-radius: var(--shape-2xl); background: var(--color-surface); color: var(--color-ink); }
.dialog-text { display: flex; flex-direction: column; gap: var(--space-s); }
.dialog-actions { display: flex; flex-direction: column; gap: var(--space-s); padding-block-start: var(--space-s); }

/* ---- Text field, paste a link, price selector (§8) ---------------------------------------------- */
.field { display: flex; align-items: center; gap: var(--space-s); min-height: 56px; padding: 0 var(--space-l); border: 1px solid var(--color-outline-control); border-radius: var(--shape-control); background: var(--color-surface); color: var(--color-ink-subtle); }
.field-focused { border: 2px solid var(--color-primary); color: var(--color-ink); }
.suggestions { display: flex; flex-direction: column; margin: 0 var(--space-s); padding: var(--space-xs) 0; border: 1px solid var(--color-outline); border-block-start: 0; border-radius: 0 0 var(--shape-card) var(--shape-card); background: var(--color-surface); }
.suggestion { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding: var(--space-m) var(--space-l); }
.suggestion-new { color: var(--color-primary); font-weight: 600; }
.paste-card { display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-m) var(--space-l); border: 1.5px solid color-mix(in srgb, var(--color-primary) 30%, var(--color-surface)); border-radius: var(--shape-control); background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface)); }
.paste-preview { display: flex; align-items: center; gap: var(--space-m); min-height: 56px; padding: var(--space-s) var(--space-m); border-radius: var(--shape-m); background: var(--color-background); }
.price-selector { display: flex; min-height: 48px; overflow: hidden; border: 2px solid var(--color-outline-strong); border-radius: var(--shape-control); }
.price-option { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--color-outline-strong); font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 20px; }
.price-option + .price-option { border-inline-start: 2px solid var(--color-outline-strong); }
.price-option-selected { background: var(--color-surface-brand); color: var(--color-on-brand); }
.price-option-selected + .price-option-selected { border-inline-start-color: var(--color-on-brand); }

/* ---- Switch (§8) --------------------------------------------------------------------------------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 52px; }
.switch-row + .switch-row { border-block-start: 1px solid var(--color-outline); }
.switch { display: flex; align-items: center; justify-content: flex-start; width: 52px; height: 32px; flex: none; padding: var(--space-xs); border-radius: var(--shape-full); background: var(--color-surface-sunken); }
.switch-on { justify-content: flex-end; background: var(--color-primary); }
.switch-knob { width: 24px; height: 24px; flex: none; border-radius: var(--shape-full); background: var(--color-surface); }
/* On (Design System §8 Switch, p-notif2-2, adopted 9 Nov 2026, /sync-design): primary (Nile) with an onPrimary knob on
   surfaces; on a brand surface an onBrand track with a surfaceBrand (Nile 800) knob. Saffron stays for the one action.
   Disabled rules below (.switch-row:disabled, the notifications inert rules) still outrank these. */
.switch-on .switch-knob { background: var(--color-on-primary); }
.on-brand .switch-on, .brand-screen .switch-on, .notif-zone .switch-on { background: var(--color-on-brand); }
.on-brand .switch-on .switch-knob, .brand-screen .switch-on .switch-knob, .notif-zone .switch-on .switch-knob { background: var(--color-surface-brand); }
/* Off (Design System §8 Switch, adopted 30 Sep 2026): a 2dp outlineControl edge on the track and an inkSubtle knob,
   so the off control reads at 3:1; the on state is unchanged. The edge is drawn inside the track, so the knob keeps
   its 4dp inset. A disabled off switch (.switch-row:disabled) keeps the edge on its well, over the well's lip. */
.switch:not(.switch-on) { box-shadow: inset 0 0 0 2px var(--color-outline-control); }
.switch-row:disabled .switch:not(.switch-on) { box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-outline-control); }
.switch:not(.switch-on) .switch-knob { background: var(--color-ink-subtle); }

/* ---- Panels: invite and permission (§8) ------------------------------------------------------------ */
.invite-panel { display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-xl); border-radius: var(--shape-l); background: var(--color-surface-brand); color: var(--color-on-brand); }
.invite-link { opacity: 0.75; text-align: center; }
/* The invite link's value (Design System §8 Invite panel, adopted 30 Sep 2026): it reads left to right in both
   languages, so Arabic also keeps "feen.app/j/…" and cuts at the code's end. In an Arabic row it still sits at the
   row's start (the right), so nothing moves at 100%. .link-ltr is the class; the node is matched too, so the drawn
   link fields (create_group, crew_setup, group) follow without an edit. */
.link-ltr, [data-node="crew_setup_link_value"] { direction: ltr; }
[dir="rtl"] :is(.link-ltr, [data-node="crew_setup_link_value"]) { text-align: end; }
.permission-card { display: flex; align-items: flex-start; gap: var(--space-m); padding: var(--space-l); border: 1px solid var(--color-outline); border-radius: var(--shape-l); background: var(--color-surface); }

/* ---- Empty state, offline pill, snackbar (§8) ------------------------------------------------------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-l); padding: var(--space-3xl) var(--space-2xl); text-align: center; }
.offline-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--space-s); height: 34px; padding: 0 var(--space-m); border-radius: var(--shape-full); background: var(--color-surface-sunken); font-family: var(--font-text); font-weight: 500; font-size: 13px; line-height: 16px; }
.offline-pill:lang(ar) { line-height: 18px; }
.offline-dot { width: 8px; height: 8px; flex: none; border-radius: var(--shape-full); background: var(--color-ink-subtle); }
.snackbar { display: flex; align-items: center; gap: var(--space-m); min-height: 48px; padding: var(--space-m) var(--space-l); border-radius: var(--shape-control); background: var(--color-ink); color: var(--color-surface); }
/* Error snackbar: the same bar with a leading 20dp warning-circle in Clay 200 (9:1 on ink). One generic
   message and a Try again action serve every failed action; screens don't write their own error bars. */
.snackbar-error .icon { color: var(--color-error-on-ink); }
/* Connection notice: what any screen shows in place of its content when it can't work offline. A bare 32dp
   wifi-slash in inkMuted (no tile), a titleMedium line and one bodyMedium line; it clears by itself. */
.connection-notice { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.connection-notice .icon { font-size: 32px; color: var(--color-ink-muted); margin-block-end: var(--space-xs); }

/* ---- Progress line (§8): bodySmall in inkMuted, the number in labelMedium Nile 600. Never Saffron. -- */
.progress-line { color: var(--color-ink-muted); }
.progress-number { color: var(--color-primary); font-family: var(--font-text); font-weight: 500; font-size: 13px; line-height: 16px; }

/* ---- Onboarding (§8) ----------------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: var(--space-l); }
.step { display: flex; align-items: flex-start; gap: var(--space-m); }
.step-number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: var(--shape-full); background: var(--color-surface-brand); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 20px; }
.step-number-accent { background: var(--color-accent); color: var(--color-on-accent); }
.page-dots { display: flex; justify-content: center; gap: var(--space-s); }
.page-dot { width: 8px; height: 8px; border-radius: var(--shape-full); background: var(--color-outline); }
.page-dot-current { width: 22px; background: var(--color-accent); }
.slots { display: flex; flex-direction: column; gap: var(--space-m); }
.slot { display: flex; align-items: center; gap: var(--space-m); min-height: 56px; padding: 0 var(--space-l); border: 1px solid transparent; border-radius: var(--shape-card); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-subtle); }
.slot-filled { padding: var(--space-s) var(--space-l); border: 1px solid var(--color-outline); background: var(--color-surface); box-shadow: none; color: var(--color-ink); }
.slots-count { color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 24px; }

/* ---- Added by the ui-designer for the first-run screens (25 Sep 2026) ------------------------------ */
/* Every class below is new; none restyles an existing class on its own. */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sign in with Google: a neutral treatment from tokens, never Saffron. Worn with .btn and the
   schematic's .btn-primary, which it overrides. The shipped app uses Google's own multicoloured
   mark and an approved button theme (an asset exception, not a token): see design-notes.md. */
.btn-google { gap: var(--space-m); border: 1px solid var(--color-outline-control); background: var(--color-surface); color: var(--color-ink); }
.btn-google-mark { width: 20px; height: 20px; flex: none; }
/* Busy: the same button, disabled, while Credential Manager and account setup run. */
.btn-busy { border-color: var(--color-outline); background: var(--color-background); color: var(--color-ink-subtle); }
/* Loader, "where to" (called "this or that" until 29 Oct 2026; added 26 Sep 2026, matched to the reference animation): two 8dp dots, one Nile 600
   (primary) and one Saffron (accent), slide straight past each other and back, linear, 1.367s a loop (the swap
   takes 46%, the return 51%, then a short hold). The Saffron dot always passes in front. It sits inside the
   button that started the wait, in place of the button's icon, while the label says what is happening; never
   a separate line or a circular spinner under the button. With reduced motion the dots stand still, side by side. */
.loader { position: relative; display: inline-block; width: 24px; height: 8px; flex: none; }
.loader-dot { position: absolute; inset-block-start: 0; inset-inline-start: 8px; width: 8px; height: 8px; border-radius: var(--shape-full); background: var(--color-primary); animation: loader-swap 1367ms linear infinite; }
.loader-dot + .loader-dot { background: var(--color-accent); animation-name: loader-swap-back; }
@keyframes loader-swap { 0% { transform: translateX(-8px); } 46.34% { transform: translateX(8px); } 97.56%, 100% { transform: translateX(-8px); } }
@keyframes loader-swap-back { 0% { transform: translateX(8px); } 46.34% { transform: translateX(-8px); } 97.56%, 100% { transform: translateX(8px); } }
/* On the brand surface (Design System §7 Loader, adopted 30 Sep 2026: "on surfaceBrand, onBrand and Saffron"): worn on
   .loader for any wait drawn on surfaceBrand. The first dot is onBrand (Nile 600 vanishes on Nile 800), the second
   stays accent. */
.loader-on-brand .loader-dot { background: var(--color-on-brand); }
.loader-on-brand .loader-dot + .loader-dot { background: var(--color-accent); }
@media (prefers-reduced-motion: reduce) {
  .loader-dot { animation: none; transform: translateX(-8px); }
  .loader-dot + .loader-dot { transform: translateX(8px); }
}

/* The invite's group tile on sign-in: a white card (level 1) with the group's crest and name. */
.invite-tile { display: flex; align-items: center; gap: var(--space-m); padding: var(--space-l); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); color: var(--color-ink); }

/* A snackbar floating 12dp above the bottom actions it sits over (§8: over the dock). Its parent is position: relative. */
.snackbar-float { position: absolute; inset-inline: 0; inset-block-end: calc(100% + 12px); }

/* Add 3 places: a filled slot that carries a clear button keeps the 56dp slot height. */
.slot-has-clear { padding-block: var(--space-xs); padding-inline-end: var(--space-xs); }
/* The category tag on a filled slot: the .cat-tag look, with its type left to the node's role. */
.slot-tag { display: inline-flex; align-items: center; flex: none; padding: var(--space-2xs) var(--space-s); border: 1.5px solid transparent; border-radius: var(--shape-xs); background: var(--color-surface-brand-tint); color: var(--color-outline-strong); white-space: nowrap; }
/* Icon-only clear control on a filled slot: a 48dp round hit area, worn with .btn-text. */
.slot-clear { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; padding: 0; border-radius: var(--shape-full); }
/* The text caret in a focused field. */
.field-caret { width: 2px; height: 24px; flex: none; margin-inline-end: calc(-1 * var(--space-xs)); background: var(--color-primary); }
/* A section header inside the autocomplete card ("From My places"). */
.suggestions-header { padding: var(--space-s) var(--space-l) var(--space-xs); color: var(--color-ink-muted); }
/* The picker pair off the brand surface (onboarding's path choice): cards drop to level 1, a
   surface card on its 1dp outline (§5 Elevation), and the or-disc's ring takes the screen's colour. */
.picker-card-level1 { border: 1px solid var(--color-outline); background: var(--color-surface); }
.or-disc-on-background { box-shadow: 0 0 0 4px var(--color-background); }

/* ---- Email sign-in, sign-up and reset (added 25 Sep 2026, Product Spec P0-2) ------------------------- */
/* A labelled field: the label above, then the .field, then an optional note. */
.field-group { display: flex; flex-direction: column; gap: var(--space-s); }
.field-filled { color: var(--color-ink); }
.field-error { border: 2px solid var(--color-error); color: var(--color-ink); }
/* A 48dp trailing control (show password) inside the 56dp field, pulled into the field's end padding. */
.field-action { margin-inline-end: calc(-1 * var(--space-m)); color: var(--color-ink-muted); }
/* A hint or an error under a field: a 16dp glyph and a line of bodySmall. */
.field-note { display: flex; align-items: flex-start; gap: var(--space-xs); color: var(--color-ink-muted); }
.field-note .icon { font-size: 16px; margin-block-start: var(--space-2xs); }
.field-note-error { color: var(--color-error); }
/* A text button that sits flush with the field edge above it, instead of 12dp in. */
.btn-text-flush { align-self: flex-end; margin-inline-end: calc(-1 * var(--space-m)); }
.btn-text-start { align-self: flex-start; margin-inline-start: calc(-1 * var(--space-m)); }
/* A bare mark for a confirmation screen: the glyph itself at 48dp in primary, no tile behind it. */
.mark-48 { align-self: flex-start; font-size: 48px; color: var(--color-primary); }
/* The email option on sign-in, dimmed while the Google attempt runs. */
.btn-text:disabled { color: var(--color-ink-subtle); }
/* Everything else on a screen whose one action is busy (create_group#creating, crew_setup#creating): inert, not
   hidden, and dimmed the way .btn-text:disabled is, so only the busy action looks alive (added 27 Sep 2026). */
.icon-btn:disabled, .check-tick:disabled, .check-tick:disabled > .icon, .check-tick:disabled .meta,
.cover:disabled, .cover:disabled > .icon, .field[aria-disabled="true"], .field[aria-disabled="true"] .icon { color: var(--color-ink-subtle); }
.crest-grid[aria-disabled="true"] { --color-accent: var(--color-ink-subtle); }
.crest-grid[aria-disabled="true"] .crest { color: var(--color-ink-subtle); }
.crest-grid[aria-disabled="true"] .crest-tile-selected { box-shadow: inset 0 0 0 2px var(--color-ink-subtle); }

/* ---- First-run step bar (added 25 Sep 2026) ------------------------------------------------------------ */
/* Three steps for every path: choose (or the invite), sign in, add places. Done and current segments are
   Nile 600, the rest outline; never Saffron (§8 progress). Pinned in the top padding so nothing below moves. */
.step-bar { position: absolute; inset-block-start: var(--space-l); inset-inline: var(--space-2xl); display: flex; gap: var(--space-xs); }
.step-bar-inline { position: static; flex: 1; }
.step-seg { flex: 1; height: 4px; border-radius: var(--shape-full); background: var(--color-outline); }
.step-seg-done { background: var(--color-primary); }

/* ---- Import a Google Maps list (added 26 Sep 2026) ------------------------------------------------------ */
/* One place in the import checklist. Ticked rows are raised (surface, 1dp outline), like a filled slot;
   unticked rows, and places already in the list, sit in the well, like an empty one. Inside a row, the tick
   and the name are one checkbox button filling the row; the state word at the end is its own 48dp button. */
.check-list { display: flex; flex-direction: column; gap: var(--space-s); }
.check-row { display: flex; align-items: center; min-height: 64px; padding-inline-end: var(--space-xs); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); color: var(--color-ink); }
.check-row-off { border-color: var(--color-outline-control); background: transparent; color: var(--color-ink-muted); } /* unticked is still tappable: an open row on the background, not a well (§5, revised 17 Oct 2026) */
.check-tick { display: flex; flex: 1; align-items: center; gap: var(--space-m); min-width: 0; min-height: 62px; padding-inline: var(--space-m) var(--space-s); border-radius: var(--shape-card); text-align: start; }
.check-tick > .icon { color: var(--color-primary); }
.check-row-off .check-tick > .icon { color: var(--color-ink-subtle); }
.check-tick-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.check-state { flex: none; padding-inline: var(--space-m); }
.check-row-off .check-state { color: var(--color-ink-muted); }

/* ---- Invite ticket (added 26 Sep 2026; replaces .invite-tile on sign_in's joiner states) ---------------- */
/* The joiner's invitation as a ticket: a brand-surface body holding the group's crest (bare, a little
   tilted, no tile) and its whole name, and a light tear-off stub with who invited them and the group's
   size. Two 12dp half-circle notches cut the tear line; the stub is a fixed 72dp so the cut always sits
   on the seam, and every piece of content clears the notches by 20dp padding. The wrapper, .invite-ticket-lift,
   casts one tight Nile-tinted shadow that follows the cut silhouette (a mask would clip a shadow on the ticket). */
.invite-ticket { --ticket-stub: 72px; display: flex; flex-direction: column; border-radius: var(--shape-l); overflow: hidden;
  -webkit-mask: radial-gradient(circle 12px at 0 calc(100% - var(--ticket-stub)), transparent 11.5px, black 12px), radial-gradient(circle 12px at 100% calc(100% - var(--ticket-stub)), transparent 11.5px, black 12px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 12px at 0 calc(100% - var(--ticket-stub)), transparent 11.5px, black 12px), radial-gradient(circle 12px at 100% calc(100% - var(--ticket-stub)), transparent 11.5px, black 12px);
  mask-composite: intersect; }
.invite-ticket-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); padding: var(--space-xl); background: var(--color-surface-brand); color: var(--color-on-brand); }
.invite-ticket-crest { width: 56px; height: 56px; flex: none; margin: -4px; color: var(--color-on-brand); transform: rotate(-8deg); }
.invite-ticket-stub { display: flex; align-items: center; gap: var(--space-m); height: var(--ticket-stub); padding-inline: var(--space-xl); background: var(--color-surface); color: var(--color-ink); }
.invite-ticket-lift { filter: drop-shadow(0 1px 1.5px rgb(8 57 53 / 0.22)); }
.invite-ticket-stub .avatar-stack .avatar { box-shadow: 0 0 0 2px var(--color-surface); }

/* Group crests (26 Sep 2026, replacing the group emoji): eight Feen marks from design/brand/crests/, drawn
   inline from the sprite with <use>. The body follows currentColor (Nile, or on-brand on the ticket); the
   Saffron parts use the accent token. Picking one when naming a group: a 4-column grid of 64dp tiles, the
   chosen one on surface with a 2dp primary edge, the others sunken. */
.crest { width: 40px; height: 40px; flex: none; color: var(--color-primary); }
.crest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-s); }
.crest-tile { display: flex; align-items: center; justify-content: center; height: 64px; border-radius: var(--shape-m); background: var(--color-surface-sunken); }
.crest-tile-selected { background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--color-primary); }
.crest-small { width: 32px; height: 32px; }
/* The design-system page's crest catalogue: a wider grid with a caption under each tile. */
.crest-grid-wide { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-m); }
.crest-cell { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-xs); margin: 0; text-align: center; }
.crest-tile-brand { background: var(--color-surface-brand); }
.crest-tile-brand .crest { color: var(--color-on-brand); }

/* ---- Home list: Near me gathers the list (added 26 Sep 2026) ----------------------------------------- */
/* Turning Near me on is home's one moment. The rows slide from where they sat (most recent first) into
   nearest-first order, as Compose's animateItem does at duration.standard, and each distance and the near
   line fade in over duration.quick. Every row rests in its final place: nothing is hidden if the motion never
   runs. Each row carries --from, its old position minus its new one, counted in rows. --gather-pitch is one
   row plus the list's 12dp gap; --gather-lead is the near line plus its gap, which arrives above the list at
   the same moment, so the first frame is exactly the list as it was. On the board, the artboard replays it
   on hover. Reduced motion: no movement, the list simply re-sorts. */
.home-gather { --gather-pitch: 98px; --gather-lead: 37px; }
.home-gather:lang(ar) { --gather-pitch: 100px; }
.artboard:hover .home-gather > .place-card { position: relative; animation: home-gather var(--duration-standard) var(--easing-standard); }
.artboard:hover .home-gather .distance, .artboard:hover .home-gather-line { animation: home-fade var(--duration-quick) var(--easing-standard) var(--duration-quick) backwards; }
@keyframes home-gather { from { transform: translateY(calc(var(--from, 0) * var(--gather-pitch) - var(--gather-lead))); } }
@keyframes home-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .artboard:hover .home-gather > .place-card, .artboard:hover .home-gather .distance, .artboard:hover .home-gather-line { animation: none; }
}

/* ---- Add place: picking a result settles it (added 27 Sep 2026) ---------------------------------------- */
/* Add place's one moment (#picked, brain/features/add-place/design-research.md). The picked result moves up from
   the row it was tapped on into the field, while the category block rises from where the keyboard was, both at
   duration.standard on easing.standard, so the next tap (a category) lands under the thumb. Transform only: both
   rest in their final place and are fully visible if the motion never runs. --settle-from is the tapped row's
   distance below the field (the second Google result in #search); --rise-from is how far the keyboard hid the
   block. On the board, the artboard replays it on hover. Reduced motion: no movement, the field simply fills. */
.add-settle { --settle-from: 152px; }
.add-rise { --rise-from: 160px; }
.artboard:hover .add-settle { animation: add-settle var(--duration-standard) var(--easing-standard); }
.artboard:hover .add-rise { animation: add-rise var(--duration-standard) var(--easing-standard); }
@keyframes add-settle { from { transform: translateY(var(--settle-from)); } }
@keyframes add-rise { from { transform: translateY(var(--rise-from)); } }
@media (prefers-reduced-motion: reduce) {
  .artboard:hover .add-settle, .artboard:hover .add-rise { animation: none; }
}

/* ---- Rate place: the rating input on the well (added 27 Sep 2026) ------------------------------------ */
/* The rating slider (§8 Rating input) worn on a wrapper holding its head, bar and scale. Its track is always the
   well, so every band's fill reads against it (surfaceSunken, the old track, is also the low band's fill); the
   fill takes the value's band (§3). The filter sheet's slider keeps its surfaceSunken track and accent fill.
   .slider-empty: nothing set yet. No fill and no mark are drawn, and the value is "—" in inkSubtle: the same
   well-and-dash as "not rated" everywhere else in the app. */
.slider-rating .slider { background: var(--well); box-shadow: var(--well-lip); }
.slider-rating .slider-fill.tier-high { background: var(--color-accent); }
.slider-rating .slider-fill.tier-middle { background: var(--color-tier-middle, var(--color-surface-brand)); }
.slider-rating .slider-fill.tier-low { background: var(--color-surface-sunken); }
.slider-empty .slider-value { color: var(--color-ink-subtle); }
/* The first touch (#prompt_set, the feature's one moment): the fill grows from the start edge to the finger at
   duration.track, while the value and Save cross over from their empty look at duration.quick. Every piece rests
   in its final state and is fully visible if the motion never runs. On the board, the artboard replays it on
   hover. Reduced motion: the fill jumps, nothing moves. */
.artboard:hover .rate-first .slider-fill { animation: rate-fill var(--duration-track) var(--easing-standard); }
.artboard:hover .rate-first .slider-value { animation: rate-value var(--duration-quick) var(--easing-standard); }
.artboard:hover .rate-first-save { animation: rate-save var(--duration-quick) var(--easing-standard); }
@keyframes rate-fill { from { width: 0; } }
@keyframes rate-value { from { color: var(--color-ink-subtle); } }
@keyframes rate-save { from { background: var(--well); color: var(--color-ink-subtle); } }
@media (prefers-reduced-motion: reduce) {
  .artboard:hover .rate-first .slider-fill, .artboard:hover .rate-first .slider-value, .artboard:hover .rate-first-save { animation: none; }
}

/* ---- Place detail (added 27 Sep 2026) ----------------------------------------------------------------- */
/* Ranked ratings (§8 score tiles, five members and up): one white row per member, sorted high to low. A 30dp
   avatar, the name, and the score on a band-coloured block at the end (Alexandria 700 24sp, shape.m); an unrated
   member's block wears .tier-none (the well with "—"). .score-row-value-lg is the same block at the tile's 34sp,
   for My places' single "Your rating" row, which has no avatar. */
.score-list { display: flex; flex-direction: column; gap: var(--space-s); }
.score-row { display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 56px; padding-block: var(--space-s); padding-inline: var(--space-m) var(--space-s); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); color: var(--color-ink); text-align: start; }
.score-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.score-row-value { display: flex; align-items: center; justify-content: center; min-width: 56px; height: 40px; flex: none; padding-inline: var(--space-s); border-radius: var(--shape-m); font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; }
.score-row-value-lg { min-width: 72px; height: 56px; font-size: 34px; line-height: 44px; }
/* Your own tile or row: the one rating on the screen you can act on (the feature's one moment). A 2dp primary edge
   in place of the 1dp outline (padding 1dp less, so it keeps its size), and its name slot ("You", "Your rating")
   in primary Plex 600. Pressed: the §8 6% Nile 800 wash. Nothing else moves or badges it. */
.score-own { border: 2px solid var(--color-primary); }
.score-tile.score-own { padding: calc(var(--space-m) - 1px) calc(var(--space-s) - 1px); }
.score-row.score-own { padding-block: calc(var(--space-s) - 1px); padding-inline: calc(var(--space-m) - 1px) calc(var(--space-s) - 1px); }
.score-own .score-tile-name, .score-own .score-row-label { color: var(--color-primary); font-weight: 600; }
.score-own:active { background: linear-gradient(var(--state-wash), var(--state-wash)), var(--color-surface); }
.score-own:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* After the rating sheet saves, your score crosses into the block from the not-rated look at duration.quick; every
   other tile stays still. It rests in its final state; on the board, hovering the artboard replays it. */
.artboard:hover .score-own-landed { animation: score-land var(--duration-quick) var(--easing-standard); }
@keyframes score-land { from { background: var(--well); color: var(--color-ink-subtle); } }
@media (prefers-reduced-motion: reduce) { .artboard:hover .score-own-landed { animation: none; } }
/* The group pill's stack: 22dp avatars ringed in the pill's own colour, overlapping by 4dp. */
.group-pill .avatar-stack .avatar { box-shadow: 0 0 0 2px var(--color-surface-brand-raised); }
.group-pill .avatar-stack .avatar + .avatar { margin-inline-start: calc(-1 * var(--space-xs)); }

/* Destructive text button: "Remove from {list}" and the remove dialog's confirm. Error text instead of primary
   (5.7:1 on white), allowed to wrap to two lines so a long list name is never ellipsized; pressed takes an error wash. */
.btn-text-danger { min-height: 48px; padding: var(--space-m); color: var(--color-error); white-space: normal; text-align: center; }
.btn-text-danger.btn-pressed, .btn-text-danger:active { background: color-mix(in srgb, var(--color-error) 6%, transparent); }

/* ---- List switcher (added 27 Sep 2026) ------------------------------------------------------------------- */
/* The §8 sheet with a scrolling rows area and a pinned foot (brain/features/list-switcher/). The rows scroll in
   .sheet-scroll; .sheet-foot holds Create and Join and never scrolls, so both stay one tap away with any number
   of groups (P0-9). .sheet-tall caps the sheet 72dp under the top of the screen, where the rows area takes what is
   left. While rows are under the foot, .sheet-foot-scrolled fades them out over 32dp into the sheet's own surface
   (the 8dp gap plus 24dp of rows): a soft edge in the surface tone, never a drawn rule. With few rows the foot has
   no edge and the rows area simply fits. */
.sheet-tall { max-height: calc(100% - var(--space-4xl) - var(--space-2xl)); }
.sheet-scroll { display: flex; flex-direction: column; gap: var(--space-xs); min-height: 0; overflow-y: auto; }
.sheet-tall .sheet-scroll { flex: 1; }
.sheet-foot { position: relative; display: flex; flex: none; flex-direction: column; gap: var(--space-xs); background: var(--color-surface); }
.sheet-foot-scrolled::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; height: var(--space-3xl); background: linear-gradient(to bottom, transparent, var(--color-surface)); pointer-events: none; }
/* An action set as a row (Create, Join): .list-option at 56dp, the label in primary, and a bare 24dp glyph centred in
   the 40dp slot the avatar and crests use, so every name and label shares one start edge. No tile behind the glyph. */
.list-option-action { min-height: 56px; color: var(--color-primary); }
.list-option-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; }
/* The hand-off (the feature's one moment): after a row is tapped the check moves to it at duration.quick, the sheet
   drops, and the new list's name rises into home's switcher pill from the sheet's side at duration.standard, so the
   one place that names the list is seen to change. Transform only; the pill clips its own content (32dp tall, the
   text 20dp, 6dp clear each side at rest), and everything rests in place if the motion never runs. On the board,
   hovering home#my_places_location_off (F44's landing) replays it. Reduced motion: the pill just changes. */
.switch-settle { overflow: hidden; }
.artboard:hover .switch-settle > * { animation: switch-settle var(--duration-standard) var(--easing-standard); }
@keyframes switch-settle { from { transform: translateY(var(--space-l)); } }
@media (prefers-reduced-motion: reduce) { .artboard:hover .switch-settle > * { animation: none; } }

/* ---- Create group (added 27 Sep 2026) ---------------------------------------------------------------- */
/* A text field whose value wraps instead of ellipsizing (a group name of any length, brief AC 16): 12dp above
   and below, so a second line sits clear of the edge; one line still centres in the 56dp. */
.field-wrap { padding-block: var(--space-m); overflow-wrap: anywhere; }
.field-wrap .field-caret { display: inline-block; margin-inline-end: var(--space-2xs); vertical-align: text-bottom; }
/* A checklist whose names wrap (never cut): 8dp above and below the text, so a two-line name clears the row's edge;
   rows keep their height when the list is a clipped scroll area. */
.check-list-wrap > .check-row { flex: none; }
.check-list-wrap .check-tick { padding-block: var(--space-s); }
/* The optional cover (P0-1): a 96dp square, the crop's own shape. Empty, it sits in the well like every empty
   thing, a bare image glyph over its label; chosen, it is the cropped photo at shape.m with nothing on it, and
   its remove control is a separate 48dp button beside it, so the photo stays one "change it" target. */
.cover-slot { display: flex; align-items: center; gap: var(--space-s); }
.cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); width: 96px; height: 96px; flex: none; padding: var(--space-s); border-radius: var(--shape-m); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-muted); text-align: center; }
.cover > .icon { color: var(--color-ink-subtle); }
.cover-chosen { padding: 0; overflow: hidden; background: none; box-shadow: none; }
/* Sample-photo placeholder: the repo has no photography (§6), so a flat neutral stands in for the picked photo. */
.cover-image, .crop-photo { display: block; background: var(--limestone-400); }
.cover-image { width: 100%; height: 100%; }
/* The sample cover (copy-notes Samples: the Zamalek corniche at dusk, still to be sourced): until the photo exists, a flat
   stand-in of that photo, Cairo Tower against the dusk over the Nile, so a set cover never reads as a broken image. A real
   photo replaces it; it is sample data, not an illustration (revised 17 Oct 2026, was a flat Limestone 400 square). */
/* unused since 2026-10-22, media-pipeline (the covers are sourced photos now) */
.cover-image[data-placeholder="sample photo"] { background: #0F5E57 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M0 0H96V60H0Z' fill='%23EDC98A'/%3E%3Cpath d='M0 36Q48 30 96 38V60H0Z' fill='%23E2AC55'/%3E%3Cpath d='M60 60A11 11 0 0 1 82 60Z' fill='%23FBF3E6'/%3E%3Cpath d='M0 60V55L6 55V51L12 51V54L19 54V49L24 49V55H36V52L44 52V56L52 56V53L58 53V58L96 58V60Z' fill='%230B4A45'/%3E%3Cpath d='M27.6 60L29 31Q25.8 29.6 25.8 26.6L29.4 24.6L30.6 13L31.8 24.6L35.4 26.6Q35.4 29.6 32.2 31L33.6 60Z' fill='%23083935'/%3E%3Cpath d='M0 60H96V96H0Z' fill='%230F5E57'/%3E%3Cpath d='M62 66Q71 64.6 80 66Q71 67.4 62 66ZM65 72Q71 71 77 72Q71 73 65 72ZM68 78Q71 77.4 74 78Q71 78.6 68 78Z' fill='%23E2AC55'/%3E%3Cpath d='M0 86Q24 83 48 86T96 86V96H0Z' fill='%23052724'/%3E%3C/svg%3E") center / cover no-repeat; }
/* The square crop (cover_crop): a utility screen on the darkest neutral, no brand moment. The photo fills the
   stage and the fixed 312dp window shows the square; outside it the photo is dimmed by the window's own spread,
   so the dimmed area always meets the window exactly. A 2dp on-brand edge marks the square. */
.crop-screen { background: var(--limestone-950); color: var(--color-on-brand); }
.crop-screen .icon-btn { color: var(--color-on-brand); }
.crop-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.crop-photo { width: 448px; height: 336px; flex: none; }
.crop-window { position: absolute; width: 312px; height: 312px; border-radius: var(--shape-m); box-shadow: inset 0 0 0 2px var(--color-on-brand), 0 0 0 400px color-mix(in srgb, var(--limestone-950) 64%, transparent); }
/* The place count carried onto the ticket (the feature's one moment): at the stub's end, the number in
   Alexandria 700 in primary, the word after it in labelMedium inkMuted, the same count the create button named.
   On the board, hovering the artboard replays the number landing from 16dp below (easing.land: Design System §7,
   widened 30 Sep 2026 to name the two craft landings, this one and group's Admin mark); it rests in place and is
   fully visible if the motion never runs. Reduced motion: no movement. */
.ticket-count { display: inline-flex; flex: none; align-items: baseline; gap: var(--space-xs); color: var(--color-ink-muted); font-family: var(--font-text); font-weight: 500; font-size: 13px; line-height: 16px; }
.ticket-count-n { display: inline-block; color: var(--color-primary); font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; }
.artboard:hover .ticket-count-n { animation: ticket-count-land var(--duration-standard) var(--easing-land); }
@keyframes ticket-count-land { from { transform: translateY(var(--space-l)); } }
@media (prefers-reduced-motion: reduce) { .artboard:hover .ticket-count-n { animation: none; } }

/* ---- Picker (added 27 Sep 2026) ------------------------------------------------------------------------ */
/* Design System §2, §4, §7, §8 and §9 (the picker), adopted 29 Sep 2026; its card pair left the product on 12 Nov 2026 (drop-the-pair). */
/* A quiet, read-only line on the brand surface (the picker's filter line, on vote_setup since the match): bodyMedium in
   onBrand at 80% (about 7.9:1 on surfaceBrand), balanced over at most two lines and never ellipsized. A <strong> inside is
   the count, in Alexandria 600 at full onBrand. Nothing in it is tappable. */
.picker-line { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); text-wrap: balance; }
.picker-line strong { color: var(--color-on-brand); font-family: var(--font-display); font-weight: 600; }
/* The picker's title mark (picker redo, 28 Sep 2026): the mark's pin question mark drawn inline at the wordmark's own
   proportion (hook in currentColor, the pin in accent; the text keeps the "?" / "؟", visually hidden). The pair it was
   set across left with the match (2026-10-26) and the product (drop-the-pair, 2026-11-12); the mark stays on picker.html.
   .picker-score is the deciding number as display type in the tier's text colour, no pill (the web's card uses it). */
.picker-title-mark { display: inline-block; overflow: visible; width: 0.447em; height: 0.7587em; vertical-align: -0.01em; margin-inline-start: 0.04em; } /* the wordmark's ratio: the hook 3dp over the cap line, the pin's tip on the baseline */
.mark-hook { fill: currentColor; }
.mark-pin { fill: var(--color-accent); }
.picker-title-mark .mark-hook { stroke: currentColor; stroke-width: 12; stroke-linejoin: round; paint-order: stroke; } /* 12/1000 em: the "?" tail, 5.3dp in the outline, meets the 7.3dp stems */
.picker-title-mark:lang(ar) .mark-hook { stroke: none; }
.picker-score { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
.picker-score.tier-high { background: none; color: var(--color-accent-text); }
.picker-score.tier-middle { background: none; color: var(--color-outline-strong); }
.picker-score.tier-low { background: none; color: var(--color-ink); }

/* ---- Sharing prompt row (added 27 Sep 2026, confirm_sheet and home#my_places_nudge, P0-8) ------------------- */
/* The weekly "Share your list" prompt as a note, not an action: the well (level -1, the empty-thing surface) at
   shape.card, the question in bodyMedium over a Start a group text button (flush to the question's start edge), and
   a bare 48dp close icon (spoken "Not now") at the end, its centre on the question's first line. No fill, no
   outline, so on the confirm sheet Open in Maps stays the only filled button and there is no filled-plus-outlined
   pair (.invite-panel is surfaceBrand with a primary button and would outshout it). The question wraps, never cut. */
.nudge-row { display: flex; align-items: flex-start; gap: var(--space-xs); padding-block: var(--space-xs); padding-inline: var(--space-l) var(--space-xs); border-radius: var(--shape-card); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink); }
.nudge-row-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding-block-start: calc(var(--space-m) + var(--space-2xs)); }
.nudge-row-body .btn-text { margin-inline-start: calc(-1 * var(--space-m)); }
.nudge-row .icon-btn { color: var(--color-ink-muted); }
/* A sheet is always the light surface, also over the brand-surface picker (confirm_sheet): its text buttons and icon
   buttons keep their light-surface colours instead of the brand screen's onBrand. */
.brand-screen .sheet .btn-text, .on-brand .sheet .btn-text { color: var(--color-primary); }
.brand-screen .sheet .icon-btn, .on-brand .sheet .icon-btn { color: var(--color-outline-strong); }
.brand-screen .sheet .nudge-row .icon-btn { color: var(--color-ink-muted); }

/* ---- Profile (added 27 Sep 2026, brain/features/profile/) --------------------------------------------------- */
/* A friend's row: home's place card, read-only. The card is a plain group, not a button (no press state, no ripple);
   its one control is a bare 48dp icon button at the inline end, outside the text column. The glyph's centre sits on the
   name's first line: the card's 12dp top padding plus half the 30dp pill is 27dp, and the 48dp button starts 3dp in
   (12dp minus 9dp), so its centre is also at 27dp, in both languages. The end padding drops to 4dp because the button
   brings its own clear space. */
.place-card-add { flex-direction: row; align-items: flex-start; gap: var(--space-xs); padding-inline-end: var(--space-xs); }
.place-card-add-body { display: flex; flex: 1; flex-direction: column; gap: var(--space-s); min-width: 0; }
.place-card-add > .icon-btn { margin-block-start: calc(-1 * var(--space-s) - 1px); }
/* The round crop (cover_crop#avatar): the same window, shown as the circle every avatar is. The kept image is still the
   square behind it. The dimming spread follows the radius, so the darkened area always meets the circle exactly. */
.crop-window-round { border-radius: var(--shape-full); }

/* ---- Settings (added 27 Sep 2026, brain/features/settings/) ------------------------------------------------ */
/* Opened from the profile's visibility line (#from_visibility): the switch row wears a Nile 50 tint (tonal, no edge,
   no glow) so the person sees what they came for. The tint is a background only: title, note and switch are fully
   visible at rest. It fades out after the screen settles; on the board, hovering the artboard replays the fade.
   Reduced motion: the tint simply clears. Every settings row runs 16dp into the 24dp gutter, so tint and press wash
   have room and the text still starts on the gutter. */
.switch-row-found { background: var(--color-surface-brand-tint); }
.artboard:hover .switch-row-found { animation: switch-row-found var(--duration-standard) var(--easing-standard) var(--duration-standard) forwards; }
@keyframes switch-row-found { to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .artboard:hover .switch-row-found { animation: none; } }
/* Disabled in place (settings#offline): the row stays where it is, its words in inkSubtle, the switch's track in the
   well with an outlineControl knob, so on and off still read by the knob's side. Also the Sign out row and the
   destructive text button (Delete account; the delete dialog's action while it is busy). */
.switch-row:disabled, .list-option:disabled, .btn-text-danger:disabled { color: var(--color-ink-subtle); }
.switch-row:disabled .switch { background: var(--well); box-shadow: var(--well-lip); }
.switch-row:disabled .switch-knob { background: var(--color-outline-control); }
/* A dialog whose body scrolls (the delete dialog): §8's dialog capped 48dp under the top and over the bottom of the
   screen. The title and the stacked actions stay put; .dialog-scroll between them takes what is left and scrolls.
   While content is under an edge, the body fades out over 32dp into the dialog's own surface (a mask on the body,
   so it is the surface showing through, never a drawn rule): .dialog-scroll-end when there is more below,
   .dialog-scroll-both when scrolled mid-list. A body that fits wears neither and does not scroll. */
.dialog-tall { max-height: calc(100% - 2 * var(--space-4xl)); }
.dialog-scroll { display: flex; flex-direction: column; gap: var(--space-m); min-height: 0; overflow-y: auto; }
.dialog-scroll-end { -webkit-mask-image: linear-gradient(to bottom, black calc(100% - var(--space-3xl)), transparent); mask-image: linear-gradient(to bottom, black calc(100% - var(--space-3xl)), transparent); }
.dialog-scroll-both { -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--space-3xl), black calc(100% - var(--space-3xl)), transparent); mask-image: linear-gradient(to bottom, transparent, black var(--space-3xl), black calc(100% - var(--space-3xl)), transparent); }
.dialog-tall .dialog-actions { flex: none; }
/* A centered scrim that leaves its foot to a snackbar shown over it (the delete dialog's failure and wrong-account
   snackbars). The scrim gives up the snackbar's 24dp inset plus a three-line snackbar's height (3 x 20dp lines + 2 x 12dp padding = 84dp; the English failure line wraps to three); the dialog,
   .dialog-tall or not, centers in what is left and keeps its 48dp to either edge of it, so the tallest dialog ends
   at least 48dp above the snackbar and never covers its pinned actions. */
.scrim-snackbar { padding-block-end: calc(var(--space-2xl) + 3 * 20px + 2 * var(--space-m)); }

/* ---- Home navigation drawer (added 28 Sep 2026, brain/features/home-nav/) ------------------------------------------ */
/* Design System §8 (Top app bar (home): the avatar door; Side drawer (list switcher)), adopted 29 Sep 2026. */
/* Home's two doors and the drawer they open (P0-9, P0-2), replacing the list switcher sheet. .me-hit is your 36dp avatar
   at the start of home's top bar: a 48dp round button pulled in 6dp above, below and at its start, so the avatar sits on the
   gutter and its line is 36dp tall; the pill after it drops the start offset it has alone, so the two hit boxes sit 8dp
   apart (14dp between the avatar and the pill as drawn). .drawer is the modal panel over .scrim: full height at the start edge (the right in Arabic), at
   most 320dp and always leaving 56dp of scrim, its end corners at shape.2xl, flat (surface against the scrim, no shadow).
   Inside it the header and the rows scroll in .sheet-scroll, and New group, Join with a link and Settings stay in
   .sheet-foot, with .sheet-foot-scrolled's soft edge only while rows are under it. .drawer-header is your header as one
   button: the 72dp avatar over your name and one line, boxed like a .list-option (2dp transparent edge, 16dp in), so the
   avatar shares the rows' start edge (the avatar and crest column). Its end padding is 4dp, not 16: the text is start-aligned, and
   the 256dp column lets a 30-character name wrap to two lines ("Mohamed Abdelrahman" measures 245dp in titleLarge).
   Review round 3: the drawer's bottom padding is --nav-h, the system navigation's height (24dp gesture strip, 48dp under
   .nav-3button), so the pinned foot always clears it; the artboards draw .nav-gesture over the scrim, as home does. */
.me-hit { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; margin-block: calc(-1 * (var(--space-xs) + var(--space-2xs))); margin-inline-start: calc(-1 * (var(--space-xs) + var(--space-2xs))); border-radius: var(--shape-full); }
.me-hit + .switcher-hit { min-width: 0; margin-inline-start: 0; }
/* At 200% (home#large_text) the pill is 48dp itself, so its hit box has nothing to pull back: without this the pill rises 8dp toward the screen edge. */
.font-scale-200 .switcher-hit { margin-block: 0; }
/* Review round 2 (2026-09-28). .sep-dot is the pill's 4dp dot, shared, for list_switcher_row_meta (nav_drawer, add_place#target_sheet),
   the "·" kept inside at font-size 0 so the string is unchanged. The meta line is a .meta-line, built as the pill's count is: the
   dot centred on the line (the numerals' middle), 8dp each side. The pill's name gives way last: when name, caret and count don't
   fit beside the avatar, the count leaves the pill (home_switcher's spoken label keeps it); the name ellipsizes only when it alone
   doesn't fit (home#large_text, #ratings_line). The drawer foot's labels wrap, never cut: 8dp above and below the label, so a
   second line clears the row's edge and one line keeps the 56dp row. */
.drawer .list-option-action > .grow { padding-block: var(--space-s); }
/* A scroll region's rows keep their own height and scroll, never shrink into each other at large text (their 72dp min-height let them). */
.sheet-scroll > * { flex: none; }
.drawer { --drawer-from: -100%; position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column; gap: var(--space-s); width: min(320px, calc(100% - var(--space-4xl) - var(--space-s))); padding: var(--space-s) var(--space-m) var(--nav-h, 24px); border-start-end-radius: var(--shape-2xl); border-end-end-radius: var(--shape-2xl); background: var(--color-surface); color: var(--color-ink); }
[dir="rtl"] .drawer { --drawer-from: 100%; }
.drawer .sheet-scroll { flex: 1; }
.drawer-header { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: var(--space-m); padding-block: var(--space-l) var(--space-xl); padding-inline: var(--space-l) var(--space-xs); border: 2px solid transparent; border-radius: var(--shape-card); text-align: start; }
.drawer-header-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; } /* two lines at most, any name and font scale; the spoken label carries it whole */
.drawer-header-line { color: var(--color-primary); }
/* The craft moment, motion only: as the drawer slides in from its edge, your top-bar avatar grows into the header's. Every
   state rests with the header in place and nothing hidden. .drawer-avatar starts on home_me's spot at half size, its
   translation also cancelling the drawer's, so it travels straight from the top bar into the header while the panel slides
   under it; the scrim darkens with it. --grow-x and --grow-y are measured on the 360dp artboard: the drawer's 304dp less
   home_me's 6dp offset from the header avatar's start edge, and its 18dp rise. The scroll region stops clipping only while
   the replay can run (states whose rows fit, so nothing overflows). On the board, hovering the artboard replays it.
   Reduced motion: no movement, the drawer is simply there. */
.drawer-avatar { --grow-x: 298px; --grow-y: -18px; transform-origin: 0 0; }
[dir="rtl"] .drawer-avatar { --grow-x: -298px; transform-origin: 100% 0; }
.artboard:hover .scrim:has(.drawer-avatar) { animation: drawer-scrim var(--duration-standard) var(--easing-standard); }
.artboard:hover .drawer:has(.drawer-avatar) { animation: drawer-in var(--duration-standard) var(--easing-standard); }
.artboard:hover .drawer:has(.drawer-avatar) .sheet-scroll { overflow: visible; }
.artboard:hover .drawer-avatar { animation: drawer-avatar var(--duration-standard) var(--easing-standard); }
@keyframes drawer-scrim { from { background: transparent; } }
@keyframes drawer-in { from { transform: translateX(var(--drawer-from)); } }
@keyframes drawer-avatar { from { transform: translate(var(--grow-x), var(--grow-y)) scale(0.5); } }
@media (prefers-reduced-motion: reduce) {
  .artboard:hover .scrim:has(.drawer-avatar), .artboard:hover .drawer:has(.drawer-avatar), .artboard:hover .drawer-avatar { animation: none; }
}
/* ---- Floating dock (added 27 Sep 2026, bottom navigation redesign, direction A "Nile band") ----------- */
/* Design System §8 (Bottom action dock: the capsule, 8dp padding, 76dp), adopted 29 Sep 2026. */
/* Every class below is new and restyles nothing that exists. Home's two actions sit in one opaque Nile 800
   capsule, 16dp in from each screen edge (8dp outside the card edges, so it overhangs them; taste round 1)
   and 12dp above the system navigation. Its 8dp
   padding (--dock-pad, space.s; 6dp until 29 Sep 2026) makes each 60dp pill (radius 30) concentric with the
   76dp capsule (radius 38): --dock-h is derived from the pill and the padding. Where to? is
   the Saffron pill and takes the spare width; Add place steps back to a surfaceBrandRaised pill sized to its
   label. No shadow, no blur, no fade, no selected state, and it never moves or hides on scroll. When both
   labels don't fit side by side (a measured rule, not a font-scale number: from 130% at 360dp), .dock-stacked
   puts them in two rows, Where to? on the bottom row, nearest the thumb; the DOM (and TalkBack) order
   stays Where to?, then Add place. It replaces .dock (two pills over a background fade) on home.
   --nav-h is the system navigation's height (24dp gesture strip, 48dp three-button bar) and --dock-h the
   capsule's real height; the list's bottom padding and the snackbar's slot follow both. */
:root { --dock-pad: var(--space-s); --dock-h: calc(var(--dock-pill-h, 60px) + 2 * var(--dock-pad)); }
.dock-float { position: absolute; inset-inline: var(--space-l); inset-block-end: calc(var(--nav-h, 24px) + var(--space-m)); }
.dock-band { display: flex; gap: var(--space-xs); padding: var(--dock-pad); border-radius: var(--shape-full); background: var(--color-surface-brand); }
.dock-band .btn-dock { padding-inline: var(--space-l); }
.dock-band .btn-decision { flex: 1 1 auto; }
.dock-band .btn-secondary { flex: 0 0 auto; background: var(--color-surface-brand-raised); color: var(--color-on-brand); }
.dock-band.dock-stacked { flex-direction: column-reverse; border-radius: calc(var(--dock-pill-h, 60px) / 2 + var(--dock-pad)); }
.dock-band.dock-stacked .btn-dock { flex: none; }
/* The list's bottom padding: the navigation, the 12dp gap, the capsule, then 24dp of air above it. */
.dock-clear { padding-block-end: calc(var(--nav-h, 24px) + var(--space-m) + var(--dock-h) + var(--space-2xl)); }
/* The list fades into the background over the 24dp above the capsule and is gone under and below it (§8 Bottom action dock,
   revised 17 Oct 2026), so a card's edge never meets the capsule flatly. A background-coloured band laid between the list and
   the capsule (not a shadow: no blur, no darkening), on a screen with the floating dock and no scrim over it. */
.artboard:has(> .dock-float):not(:has(.scrim))::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 1; height: calc(var(--nav-h, 24px) + var(--space-m) + var(--dock-h) + var(--space-2xl)); background: linear-gradient(to top, var(--color-background) calc(100% - var(--space-2xl)), transparent); pointer-events: none; }
.artboard:has(> .dock-float):not(:has(.scrim)) > :is(.dock-float, .dock-snackbar, .nav-gesture) { z-index: 2; }
/* A snackbar in the dock's slot: 12dp above the capsule, never over it, and as wide as the pills inside it
   (8dp in from the capsule's sides), so it reads as the band's contents, not a second slab (taste round 1). */
.dock-snackbar { position: absolute; inset-inline: calc(var(--space-l) + var(--dock-pad)); inset-block-end: calc(var(--nav-h, 24px) + var(--space-m) + var(--dock-h) + var(--space-m)); }

/* An empty state's one action in the dock's slot (taste round 1): the dock's own 60dp pill, placed exactly
   where the pills sit inside the capsule (8dp in from the capsule's sides and bottom), so when rows go the
   band falls away and the pill stays. A primary (Saffron) button in the dock pill's shape and type; it is
   not a decision. The screen-pad above it carries .dock-clear, so the message never runs under it.
   home#loading_failed puts its error snackbar here (with .grow), the failed load's one action in the same slot (home-nav merge, 2026-09-28). */
.dock-solo { position: absolute; inset-inline: calc(var(--space-l) + var(--dock-pad)); inset-block-end: calc(var(--nav-h, 24px) + var(--space-m) + var(--dock-pad)); display: flex; }
.dock-solo .btn { flex: 1; border-radius: var(--shape-full); font-family: var(--font-display); font-weight: 700; }

/* Android's system navigation, drawn for placement only (it carries no Feen strings). The gesture strip is
   24dp with the 108 x 4dp handle; content runs edge to edge under it. The three-button bar is 48dp on the
   page colour, Back, Home, Recents, and mirrors in Arabic as Android does. */
.nav-gesture { position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; align-items: center; justify-content: center; height: 24px; }
.nav-gesture::before { content: ""; width: 108px; height: 4px; border-radius: var(--shape-full); background: var(--color-ink); }
.nav-3button { --nav-h: 48px; }
.nav-buttons { position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; align-items: center; justify-content: space-evenly; height: 48px; background: var(--color-background); color: var(--color-ink-muted); }
.nav-back { transform: rotate(-90deg); }
[dir="rtl"] .nav-back { transform: rotate(90deg); }

/* Font scale 200%, a drawing aid for large-text artboards: every text size and line height on home doubled,
   as Android's linear scaling does (the worst case; Android 14's non-linear scaling grows large text less).
   Fixed-height text containers grow with their text. */
.font-scale-200 { --dock-pill-h: 64px; --dock-h: calc(2 * var(--dock-pill-h) + var(--space-xs) + 2 * var(--dock-pad)); }
.font-scale-200 .type-headlineMedium { font-size: 56px; line-height: 72px; }
.font-scale-200 .type-headlineMedium:lang(ar) { line-height: 84px; }
.font-scale-200 .type-titleMedium { font-size: 32px; line-height: 48px; }
.font-scale-200 .type-titleMedium:lang(ar) { line-height: 52px; }
.font-scale-200 .type-bodyMedium { font-size: 28px; line-height: 40px; }
.font-scale-200 .type-bodyMedium:lang(ar) { line-height: 44px; }
.font-scale-200 .type-bodySmall { font-size: 24px; line-height: 32px; }
.font-scale-200 .type-bodySmall:lang(ar) { line-height: 36px; }
.font-scale-200 .type-labelMedium, .font-scale-200 .progress-number { font-size: 26px; line-height: 32px; }
.font-scale-200 .type-labelMedium:lang(ar), .font-scale-200 .progress-number:lang(ar) { line-height: 36px; }
.font-scale-200 .switcher-pill { height: auto; min-height: 32px; padding-block: var(--space-xs); font-size: 28px; line-height: 40px; }
.font-scale-200 .switcher-pill:lang(ar) { line-height: 44px; }
.font-scale-200 .switcher-pill-count { gap: var(--space-l); }
.font-scale-200 .switcher-pill-dot { width: 8px; height: 8px; margin-inline-start: var(--space-m); }
/* Design System §8 Segmented control (adopted 30 Sep 2026): at 200% every tab sets its count on its own line under the label. */
.font-scale-200 .segment { padding: var(--space-s) var(--space-m); flex-direction: column; gap: 0; font-size: 30px; line-height: 40px; white-space: normal; text-align: center; }
.font-scale-200 .segment:lang(ar) { line-height: 44px; }
.font-scale-200 .segment-count { font-size: 24px; line-height: 32px; }
.font-scale-200 .chip { height: auto; min-height: 44px; padding-block: var(--space-xs); font-size: 28px; line-height: 40px; }
.font-scale-200 .chip:lang(ar) { line-height: 44px; }
.font-scale-200 .cat-tag { font-size: 24px; line-height: 32px; }
.font-scale-200 .cat-tag:lang(ar) { line-height: 36px; }
.font-scale-200 .rating-pill { height: auto; min-height: 30px; padding-block: var(--space-2xs); font-size: 30px; line-height: 40px; }
.font-scale-200 .rating-pill.tier-none { font-size: 24px; line-height: 32px; }
.font-scale-200 .rating-pill.tier-none:lang(ar) { line-height: 36px; }
.font-scale-200 .btn-dock { min-height: 64px; padding-block: 0; font-size: 36px; line-height: 48px; }
.font-scale-200 .btn-dock:lang(ar) { line-height: 60px; }

/* ---- Large text, shared (adopted 30 Sep 2026, /sync-design) ------------------------------------------------- */
/* The holes runs' 200% steps, moved from their screens onto the components. Large text only: every rule sits under
   .font-scale-200, so no 100% artboard changes. The dock's pills keep their own step above. */
/* Buttons (Design System §8 Buttons: "At a 200% font scale a button grows with its label"): the label doubles
   (labelLarge 15/20 to 30/40) and wraps, never cut, and the button grows from 64dp. When the label wraps, the icon and
   the label stay one centred group: the icon runs inline with the label's first line, 8dp from it, instead
   of standing alone at the start edge while the label centres. Text buttons keep their 48dp. (The Shuffle pill went with the pair, 2026-11-12.) */
.font-scale-200 .btn:not(.btn-dock) { display: inline-block; align-content: center; height: auto; min-height: 64px; padding-block: var(--space-s); font-size: 30px; line-height: 40px; white-space: normal; text-align: center; }
.font-scale-200 .btn:not(.btn-dock):lang(ar) { line-height: 44px; }
.font-scale-200 .btn-text:not(.btn-dock) { min-height: 48px; }
.font-scale-200 .btn > :is(.icon, svg, .loader) { display: inline-block; vertical-align: middle; margin-inline: var(--space-s); } /* 8dp on both sides: a glyph may lead or trail its label, in either direction */
/* Glyphs beside the doubled labels step from 20 to 24dp, so they still read as the label's lead. */
.font-scale-200 .btn .icon { font-size: 24px; }
/* The picker's card (Design System §8 Picker card pair, Large text): the name stays one step above the category tag
   (28 over the tag's 24; its line clamp, not its size, holds long names), the score numeral doubles and its rater
   count takes its own line under it. */
.font-scale-200 .picker-score { font-size: 56px; line-height: 64px; }
/* Bottom sheets (Design System §8 Bottom sheets: "At a 200% font scale the sheet grows with its text"): the title and
   the slider's scale labels by the type scale's 200% steps (Reset and Show are buttons, above); home's near line too. */
.font-scale-200 .sheet .type-headlineSmall { font-size: 48px; line-height: 64px; }
.font-scale-200 .sheet .type-headlineSmall:lang(ar) { line-height: 76px; }
.font-scale-200 .slider-scale, .font-scale-200 .near-line { font-size: 24px; line-height: 32px; }
.font-scale-200 .near-line:lang(ar) { line-height: 36px; }
/* Price selector (Design System §8: "At 200% it stacks into rows, as the Arabic does, once any label wraps past two
   lines"). The build measures the labels; this drawing aid is the 200% worst case, where they always do. */
.font-scale-200 .price-selector { flex-direction: column; }
.font-scale-200 .price-option { padding: var(--space-s); font-size: 30px; line-height: 40px; text-align: center; }
.font-scale-200 .price-option + .price-option { border-inline-start: 0; border-block-start: 2px solid var(--color-outline-strong); }
.font-scale-200 .price-option-selected + .price-option-selected { border-block-start-color: var(--color-on-brand); }

/* ---- Group vote (added 28 Sep 2026, brain/features/live-vote-2/: concept A "The tray", direction B "The round") ---- */
/* Design System §6, §7, §8 (avatars, buttons: the disabled button on the brand surface) and §9, adopted 29 Sep 2026. */
/* The vote's top bar on the brand surface: Back, the group's crest and name (the h1), Share at the end. Setup holds
   Back and its title. */
.vote-topbar { display: flex; align-items: center; gap: var(--space-xs); min-height: 56px; padding: var(--space-s) var(--space-s) 0; }
.vote-topbar-group { display: flex; flex: 1; min-width: 0; align-items: center; gap: var(--space-s); }
.vote-topbar-group .crest { width: 32px; height: 32px; color: var(--color-on-brand); }
/* The turnout bar (8 Oct 2026, replaces the tea-glass tray): one rounded segment per member across the full width,
   4dp apart, 12dp tall. Segments fill in arrival order from the start edge, never member order, so position says
   nothing about a person. States ride on --vote-tea: empty is a well on the brand surface (onBrand 12%), poured is
   Nile 200 (about 7:1 on Nile 800), yours is Saffron ("what you have selected"), draining is a withdrawn place's voter
   (Nile 200 at 50%). A seat (a member not there yet, vote_setup#not_enough) is an empty segment. */
.vote-seg { --vote-tea: var(--color-on-brand-fill); display: block; flex: 1; min-width: 4px; height: 12px; border-radius: var(--shape-full); background: var(--vote-tea); }
.vote-seg--poured { --vote-tea: var(--nile-200); }
.vote-seg--yours { --vote-tea: var(--color-accent); }
.vote-seg--draining { --vote-tea: color-mix(in srgb, var(--nile-200) 50%, transparent); }
.vote-seg--empty { --vote-tea: var(--color-on-brand-fill); } /* the unpoured glass, as .vote-seg draws it; named by vote_setup (defined at the-match Gate 0, 2026-10-26) */
.vote-tray { display: flex; flex: none; gap: var(--space-xs); }
/* A group of one: yours and one seat, half the width, so two segments never read as a progress bar at 50%. */
.vote-tray--few { width: 50%; }
/* At rest behind a result, and inside the End vote dialog: 8dp tall, 120dp wide. */
.vote-tray--compact { align-self: flex-start; width: 120px; margin-block-start: var(--space-l); }
.vote-tray--compact .vote-seg { height: 8px; }
/* Any group size draws one segment per member; at 4dp gaps and a 4dp minimum the bar holds 30 on a 360dp screen. */
/* The vote mark: three stacked bars of falling length (<symbol id="vote-mark">, 20 x 20 box, 4dp bars), the places filling
   to their share in miniature; three round segments in a row read as a "more" menu at this size. The vote's
   glyph wherever a vote is named outside it (the picker's entry, home's band, the invite tickets). An outline in the
   text's colour; poured fills it. */
.vote-mark { --vote-tea: transparent; --vote-mark-line: currentColor; display: block; flex: none; width: 20px; height: 20px; overflow: visible; }
.vote-mark-seg { fill: var(--vote-tea); stroke: var(--vote-mark-line); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.vote-mark--poured { --vote-tea: currentColor; } /* unused since 2026-10-26, the-match */
[dir="rtl"] .vote-mark { transform: scaleX(-1); }
/* The turnout fraction under the tray: the votes in onBrand, "/members" a tonal step down (onBrand 55%, about 4.6:1).
   56sp, the .match-count size; 40sp beside the compact tray. The time left and who started it sit end-aligned on its
   band, their last line on the fraction's baseline. */
.vote-turnout { color: var(--color-on-brand); font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 64px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vote-turnout-of { margin-inline-start: 0.04em; color: color-mix(in srgb, var(--color-on-brand) 55%, transparent); }
.vote-turnout--compact { font-size: 40px; line-height: 48px; }
.vote-turnout-foot { display: flex; align-items: last baseline; justify-content: space-between; gap: var(--space-l); }
.vote-status { display: flex; flex-direction: column; align-items: flex-end; color: color-mix(in srgb, var(--color-on-brand) 90%, transparent); text-align: end; }
/* One quiet line above the places (the prompt, the withdrawn line, the offline note): bodyMedium in onBrand at 90%. */
.vote-note { color: color-mix(in srgb, var(--color-on-brand) 90%, transparent); text-wrap: balance; }
.vote-note strong { color: var(--color-on-brand); font-weight: 700; }
/* A place in the vote: one button, the background-coloured block the picker's cards are, filled in Nile 100 from the
   start edge to its share of the votes cast (--share). The fill is the block's own background, so it takes the block's
   shape and radius under the 3dp edge, with no inset sliver; its count at the end edge in Alexandria 700 40sp. Blocks never
   re-sort. Yours carries the picker's 3dp Saffron edge. Withdrawn drops into the brand well with no count; at a
   result the losers drop into the same well, their counts kept, so the winner alone stays light. */
.vote-options { display: flex; flex-direction: column; gap: var(--space-m); }
.vote-option { --vote-fill: var(--nile-100); --vote-fill-to: right; position: relative; display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 80px; padding: var(--space-s) var(--space-l); overflow: hidden; border: 3px solid transparent; border-radius: var(--shape-card); background: linear-gradient(to var(--vote-fill-to), var(--vote-fill) var(--share, 0%), transparent 0) border-box var(--color-background); color: var(--color-ink); text-align: start; }
[dir="rtl"] .vote-option { --vote-fill-to: left; }
.vote-option-body { display: flex; flex: 1; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.vote-option-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; }
.vote-option-name:lang(ar) { line-height: 32px; }
.vote-option-meta { display: flex; align-items: center; gap: var(--space-s); }
.vote-option-count { flex: none; min-width: 32px; color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; text-align: end; font-variant-numeric: tabular-nums; }
.vote-option-count--zero { color: var(--color-ink-subtle); }
.vote-option--yours { border-color: var(--color-accent); }
.vote-option--well { --vote-fill: var(--color-on-brand-fill); min-height: 64px; background-color: var(--color-on-brand-fill); color: var(--color-on-brand); }
.vote-option--well .vote-option-name, .vote-option--well .vote-option-count { color: var(--color-on-brand); }
.vote-option--well .vote-option-name { font-size: 18px; line-height: 24px; }
.vote-option--well .vote-option-name:lang(ar) { line-height: 30px; }
.vote-option--well .vote-option-count { font-size: 28px; line-height: 36px; }
.vote-option--well .cat-tag { border-color: var(--color-on-brand-line); background: transparent; color: var(--color-on-brand); }
.vote-option--well .distance { color: var(--nile-200); }
.vote-option--withdrawn .vote-option-name { color: color-mix(in srgb, var(--color-on-brand) 75%, transparent); }
/* Setup's rows: the block to be. A chosen place is already the light block it will be in the vote, a Nile 600 tick at
   its start; a place not chosen sits in the brand well (onBrand 12%) with an onBrand box; at five chosen the rest are
   inert, their words at onBrand 60%. */
.vote-picks { display: flex; flex-direction: column; gap: var(--space-s); }
.vote-pick { display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 64px; padding: var(--space-s) var(--space-l) var(--space-s) var(--space-m); border-radius: var(--shape-card); background: var(--color-on-brand-fill); color: var(--color-on-brand); text-align: start; }
.vote-pick > .icon { color: var(--color-on-brand); }
.vote-pick .cat-tag { border-color: var(--color-on-brand-line); background: transparent; color: var(--color-on-brand); }
.vote-pick .distance { color: var(--nile-200); }
.vote-pick-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; }
.vote-pick-name:lang(ar) { line-height: 30px; }
.vote-pick--on { background: var(--color-background); color: var(--color-outline-strong); }
.vote-pick--on > .icon { color: var(--color-primary); }
.vote-pick--on .cat-tag { border-color: transparent; background: var(--color-surface-brand-tint); color: var(--color-outline-strong); }
.vote-pick--on .distance { color: var(--color-primary); }
.vote-pick--inert { color: color-mix(in srgb, var(--color-on-brand) 60%, transparent); }
.vote-pick--inert > .icon, .vote-pick--inert .cat-tag, .vote-pick--inert .distance { color: color-mix(in srgb, var(--color-on-brand) 60%, transparent); }
.vote-picks[aria-disabled="true"] { opacity: 0.6; }
/* Setup's foot: the count ("2 of 5", its number in Alexandria 700 24sp) beside Start, which takes the rest. */
.vote-setup-foot { display: flex; align-items: center; gap: var(--space-xl); }
.vote-setup-count { flex: none; color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 24px; white-space: nowrap; }
.vote-setup-count-n { color: var(--color-on-brand); font-weight: 700; font-size: 28px; line-height: 36px; }
/* A disabled action on the brand surface (Start with one place chosen; End vote offline). Design System §8 Buttons,
   adopted 30 Sep 2026: it keeps the button's own outline, the border at onBrand 38%, the label at onBrand 60%, no
   fill, so it never reads heavier than the live outlined button. .btn-disabled is the light page's well and reads
   as a lit slab on Nile 800. */
.btn-disabled-on-brand { border-color: color-mix(in srgb, var(--color-on-brand) 38%, transparent); background: transparent; color: color-mix(in srgb, var(--color-on-brand) 60%, transparent); }
/* The result: the winner's name as the screen's h1 in displayLarge onBrand, the fixed words ("it is.", "يلا على")
   a tonal step down, so the place reads first in both languages. */
.vote-result-name { color: var(--color-on-brand); }
.vote-result-fixed { color: color-mix(in srgb, var(--color-on-brand) 60%, transparent); }
/* The result's head: the winner's name (h2) with its count on the end edge, a 40sp Alexandria numeral on the name's
   last line (same size and line height, so bottom-aligned is baseline-aligned). Only the last line gives way to it
   (Compose: measure the last line with onTextLayout, reserve the count's width there); under it one bodyMedium line
   led by the bold votes. The list below holds only the others. */
.vote-result-head { position: relative; }
.vote-result-head h2::after { content: ""; display: inline-block; inline-size: calc(var(--space-3xl) + var(--space-s)); } /* reserves the count's room on the last line only, so a long winner never runs under it */
.vote-result-count { position: absolute; inset-block-end: 0; inset-inline-end: 0; flex: none; color: var(--color-on-brand); font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; font-variant-numeric: tabular-nums; }
.vote-result-count:lang(ar) { line-height: 56px; }
/* A tie: the tied places side by side across the "or" disc, the Lottie's host (design/app/motion/), resting on the
   landed frame: the drawn place light, the other in the well. */
.vote-draw { position: relative; display: flex; align-items: stretch; gap: var(--space-xl); }
.vote-draw .vote-option { flex: 1; min-width: 0; min-height: 72px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--space-xs); padding: var(--space-m); }
.vote-draw .vote-option-count { text-align: start; }
.vote-draw .vote-option-name { font-size: 16px; line-height: 22px; }
.vote-draw .vote-option-name:lang(ar) { line-height: 28px; }
/* The disc sits over both cards: the second card is positioned and later in the DOM, so it needs its own layer. */
.vote-draw .or-disc { z-index: 1; }
/* The picker's entry to a vote: a text button beside Surprise, a 14 × 20 poured glass before the words. Disabled in
   place offline. */
.vote-entry-row { display: flex; justify-content: center; gap: var(--space-s); } /* unused since 2026-10-26, the-match */
.vote-entry .vote-mark { width: 20px; height: 20px; } /* unused since 2026-10-26, the-match */
.vote-entry[aria-disabled="true"] { color: color-mix(in srgb, var(--color-on-brand) 55%, transparent); } /* unused since 2026-10-26, the-match */
.vote-entry[aria-disabled="true"] .vote-mark { --vote-tea: transparent; } /* unused since 2026-10-26, the-match */
/* A dialog over a brand screen (vote#end_confirm) sits on surface: its text buttons return to primary. Its two
   actions sit side by side at the end, the confirming one filled Nile 800 (.btn-secondary). */
.vote-dialog-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.brand-screen .dialog .btn-text { color: var(--color-primary); }

/* ---- Cities (added 28 Sep 2026, brain/features/cities/: concept B "the yafta", direction C "the wall sign") ---------- */
/* Design System §5, §6 and §8 (City plate, chips, the place-detail header), adopted 29 Sep 2026. */
/* The city plate: Feen's street sign (brand Concept 04), the city's one mark, used for cities and nothing else, at most one
   large plate per screen. Nile 800 at shape.l with a 1.5dp onBrand keyline inset by shape.l - shape.m (6dp), so the
   keyline's radius is shape.m and nests exactly. Flat: no gloss, no rivets, no shadow. The name is Alexandria 700. */
.city-plate { --plate-inset: calc(var(--shape-l) - var(--shape-m)); position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; border-radius: var(--shape-l); background: var(--color-surface-brand); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 700; text-align: start; }
.city-plate::before { content: ""; position: absolute; inset: var(--plate-inset); border: 1.5px solid currentColor; border-radius: calc(var(--shape-l) - var(--plate-inset)); pointer-events: none; }
/* The view's plate: full content width, 32dp inside the keyline's box, the UI language's name (the h1, wrapping, never
   cut), a rounded 1.5dp rule in onBrand 50% across the inner width, then the other script small in onBrand 80%. */
.city-plate-lg { display: flex; width: 100%; gap: var(--space-s); padding: var(--space-3xl) var(--space-3xl) var(--space-2xl); }
.city-plate-name { overflow-wrap: anywhere; }
.city-plate-rule { align-self: stretch; height: 1.5px; border-radius: var(--shape-full); background: var(--color-on-brand-line); }
.city-plate-other { color: color-mix(in srgb, var(--color-on-brand) 80%, var(--color-surface-brand)); }
/* The small plate (add place, place detail, the scrolled view's bar, the city chip): 40dp tall at shape.m, its keyline
   inset the full 6dp like the large plate's (shape.l - shape.m, so the keyline's radius is 12 - 6 = 6, nested), one
   name at labelLarge's size in Alexandria 700, never smaller. 40dp, not the concept's 36: inside a 36dp plate the
   keyline came within 3dp of the Arabic ascenders (clear the cut). A 48dp hit box carries it (.city-plate-hit, pulled
   back 4dp top and bottom so the layout keeps the 40dp). */
.city-plate-sm { flex-direction: row; align-items: center; gap: var(--space-xs); min-height: 40px; max-width: 100%; padding: var(--space-s) var(--space-l); border-radius: var(--shape-m); font-size: 15px; line-height: 20px; white-space: nowrap; }
/* Arabic only (cities critique round 2): 44dp tall, so the ascenders of a long Arabic name (the retired greater_cairo plate) clear the keyline by 6dp or more;
   the 48dp hit box is unchanged and gives back 2dp top and bottom instead of 4. */
.city-plate-sm:lang(ar) { min-height: 44px; line-height: 22px; }
.city-plate-hit:lang(ar) { margin-block: calc(-1 * var(--space-2xs)); }
.city-plate-sm::before { border-radius: calc(var(--shape-m) - var(--plate-inset)); }
.city-plate-sm .icon:last-child { margin-inline-end: calc(-1 * var(--space-xs)); }
.city-plate-hit { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; min-height: 48px; margin-block: calc(-1 * var(--space-xs)); padding: 0; border: 0; background: none; color: inherit; font: inherit; }
/* On the place-detail header (Nile 800), the plate steps two Nile steps up, to Nile 600, so it reads as a filled
   object and not an outlined button: surfaceBrandRaised (Nile 700) sat too close to Nile 800 for a frame inside a
   frame. onBrand on Nile 600 is 6.9:1. For this class only; logged as a System proposal in design-notes.md (Cities). */
.city-plate-on-brand { background: var(--nile-600); }
/* No city: the same plate as a well (level -1, the 1.5dp lip), its keyline in outlineControl (3:1 on the well), the words
   in inkMuted. It stands for "no city" everywhere; the large one, wordless, is the "No city yet" poster's frame. */
.city-plate-empty { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-muted); }
.city-plate-empty::before { border-color: var(--color-outline-control); }
/* The large blank plate is the ranked plate emptied: the same name line and other-script line (empty, so the same
   height in each language) and the same rule, drawn in outlineControl, so it reads as that sign with no names on it. */
.city-plate-empty .city-plate-rule { background: var(--color-outline-control); }
/* The wall: a Nile 50 band (surfaceBrandTint, the ramp's lightest step, a level-0 variant proposed for this one screen)
   holding Back, the plate's top 24dp under the Back row, so the wall is never a field of flat tint. The plate straddles the band's lower edge, where the white sheet rises at shape.2xl: the band stops
   exactly at the plate's vertical centre, and the sheet's top corners show either side of it. */
.city-wall { background: var(--color-surface-brand-tint); padding-block: var(--space-s) var(--space-2xl); padding-inline: var(--space-m) var(--space-2xl); }
.city-bar .city-plate-hit { align-self: center; }
/* No city yet (#no_city): the blank plate stands on its post (the "No city yet" Lottie's poster frame: the well plate, a
   Nile 800 post, two shapes), the post's foot running behind the sheet's rising edge. */
.city-sign { position: relative; display: flex; flex-direction: column; align-items: center; margin-block-start: calc(2 * var(--space-4xl)); padding-inline-start: var(--space-m); }
.city-sign > .city-plate { position: relative; z-index: 1; width: 100%; }
.city-sign-post { width: var(--space-m); height: calc(3 * var(--space-4xl) + var(--space-2xl)); margin-block-start: calc(-1 * var(--space-2xl)); border-radius: var(--shape-full) var(--shape-full) 0 0; background: var(--color-surface-brand); }
/* #no_city: the wall takes the room the sheet does not need, the post runs down it and under the sheet's edge, and the
   sheet hugs its words and Add a place, so no white is left over. */
.city-wall-sign { display: flex; flex: 1; flex-direction: column; padding-block-end: 0; }
.city-wall-sign .city-sign { flex: 1; margin-block-start: calc(2 * var(--space-4xl)); }
.city-wall-sign .city-sign-post { flex: 1; height: auto; min-height: calc(2 * var(--space-4xl)); margin-block-end: calc(-1 * var(--space-3xl)); }
.city-sheet.city-sheet-fit { flex: none; gap: var(--space-3xl); padding-block-start: var(--space-3xl); }
.city-sheet-over { position: relative; margin-block-start: calc(-1 * var(--space-3xl)); border-radius: var(--shape-2xl) var(--shape-2xl) 0 0; }
.city-straddle { position: relative; padding-inline: var(--space-2xl); }
.city-straddle::before { content: ""; position: absolute; inset-inline: 0; inset-block: 0 50%; background: var(--color-surface-brand-tint); }
.city-straddle::after { content: ""; position: absolute; inset-inline: 0; inset-block: 50% 0; border-radius: var(--shape-2xl) var(--shape-2xl) 0 0; background: var(--color-surface); }
.city-straddle > .city-plate, .city-straddle > .city-plate-btn { position: relative; z-index: 1; }
.city-plate-btn { display: flex; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; }
.city-sheet { display: flex; flex: 1; flex-direction: column; gap: var(--space-l); padding: var(--space-m) var(--space-2xl) var(--space-2xl); background: var(--color-surface); isolation: isolate; }
/* The count under the plate: the number at displayLarge in Nile 800, its unit small beside it on the baseline. */
.city-count { display: flex; align-items: baseline; gap: var(--space-s); }
.city-count-num { color: var(--color-outline-strong); font-variant-numeric: tabular-nums; }
/* The scrolled view: the band, plate and count scroll away with the list as its header. Once the plate has gone under
   the top, a 64dp Nile 50 bar holds Back and the small plate (the one plate on screen), and the sheet's rows pass
   under it. The large sign becomes its small one; nothing is sticky at rest. */
.city-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-xs); min-height: 64px; padding-inline: var(--space-m) var(--space-2xl); background: var(--color-surface-brand-tint); }
/* A ranked row, flat on the sheet: the name and its average on one line, the category and distance with the rater count
   under the average, then the sources with Save at the end. The averages make one end-aligned column of Alexandria 700
   24sp numerals in the tier's text colour (accentText from 8, Nile 800 from 6, ink below), no fill: no badges, no
   medals, no numbers marking rank. */
.city-rows { display: flex; flex-direction: column; }
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-l); row-gap: var(--space-2xs); padding-block: var(--space-m); color: var(--color-ink); text-align: start; }
.city-row-end { justify-self: end; text-align: end; }
.city-row-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 20px; }
.city-row-foot:has(.btn-text, .city-saved) { min-height: 48px; margin-block: calc(-1 * var(--space-s)) calc(-1 * var(--space-m)); }
.city-row .btn-text { flex: none; gap: var(--space-xs); margin-inline-end: calc(-1 * var(--space-m)); font-size: 13px; line-height: 16px; }
.city-row .btn-text:lang(ar) { line-height: 18px; }
.city-score { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }
.city-score.tier-high, .city-score.tier-middle, .city-score.tier-low { background: none; }
.city-score.tier-high { color: var(--color-accent-text); }
.city-score.tier-middle { color: var(--color-outline-strong); }
.city-score.tier-low { color: var(--color-ink); }
/* After a save: the action gives way to where the place went, a filled bookmark and the words in primary, not a button. */
.city-saved { display: inline-flex; flex: none; align-items: center; gap: var(--space-xs); color: var(--color-primary); font-family: var(--font-text); font-weight: 600; font-size: 13px; line-height: 16px; }
.city-saved:lang(ar) { line-height: 18px; }
/* The "Not rated yet" places: one recessed well at section size (level -1, the lip) holding their rows under one heading,
   quieter than everything above it, so they read as "not yet", never as the bottom of the ranking. */
.city-well { display: flex; flex-direction: column; margin-block-start: var(--space-s); padding: var(--space-l) var(--space-l) var(--space-xs); border-radius: var(--shape-card); background: var(--well); box-shadow: var(--well-lip); }
.city-well-title { color: var(--color-ink-muted); }
.city-well .city-row { grid-template-columns: minmax(0, 1fr); }
/* Loading: the rows as empty wells at a ranked row's height. */
.city-row-wait { min-height: 96px; }
/* The chooser's row: the city in Alexandria 600 20sp, its count at the end as a 24sp numeral over its small unit, most
   places first. The current city (#from_view) takes the list option's selected edge and the check. */
/* The chooser's rows share the sheet's 24dp content edges with its title: the rows' scroll pulls their 16dp padding (and the
   2dp selected outline) back outside the text column, and the check sits before the count, so names start and the
   numeral column ends on the title's edges. */
.sheet-scroll:has(> .city-choice, > .city-option) { margin-inline: calc(-1 * (var(--space-l) + 2px)); }
.city-choice { min-height: 64px; }
.city-choice-count { display: flex; flex: none; flex-direction: column; align-items: flex-end; }
.city-choice-check { width: 20px; flex: none; }
.city-choice-num { color: var(--color-outline-strong); font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 28px; font-variant-numeric: tabular-nums; }
/* The drawer's Cities glyph: the plate on its post, drawn at Phosphor Regular's 1.5dp stroke with round caps. */
.city-glyph { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* The city chip (home#city_filtered, filter_sheet#city): the chosen city is its plate, 44dp like the chips beside it;
   an unchosen city in the sheet is a plain outlined chip. */
.city-plate-chip { flex: none; min-height: 44px; gap: var(--space-s); padding-inline: var(--space-l) var(--space-xl); }
.city-sources { display: flex; align-items: center; gap: var(--space-s); min-width: 0; color: var(--color-ink-muted); }
.city-sources > bdi { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.city-sources > bdi:first-child { flex: 0 1 auto; }
.city-sources > .sep-dot + bdi { flex: 0 1 auto; }
/* The city sheet's rows (add_place#city_sheet): one name each, 56dp, the list option's selected edge and check. */
.city-option { min-height: 56px; }
/* Rows that open (cities review round 1): a row held in one of the viewer's lists is a button. Its hit layer covers the
   row (so the Save action is never nested in it and sits above it), presses to the §8 wash, and the mirrored caret after
   the name, the one on place detail's plate, is the open cue a friend-only row (a plain group) doesn't have. */
.city-row-open { position: relative; }
.city-row-hit { position: absolute; inset-block: 0; inset-inline: calc(-1 * var(--space-m)); padding: 0; border: 0; border-radius: var(--shape-m); background: none; }
.city-row-hit:active, .city-row-pressed > .city-row-hit { background: var(--state-wash); }
.city-row-open .btn-text { position: relative; z-index: 1; } /* .city-sheet isolates it, so it never rises above a scrim laid over the view. */
.city-row-caret { margin-inline-start: var(--space-2xs); color: var(--color-ink-subtle); font-size: 16px; line-height: 1; vertical-align: -2px; }
/* The error snackbar at the view's foot (city_view#load_failed): the view has no dock, so it floats 16dp over the rows. */
.city-snack { position: absolute; inset-inline: var(--space-l); inset-block-end: var(--space-l); z-index: 2; }
/* ---- Shared, adopted 11 Nov 2026 (/sync-design): the atlas index. The Design System's §8 Bottom sheets (p-egypt-1): a list
   that offers every city (49), the city sheet and choosing home, docks its search field at the foot above the keyboard
   (.search-foot, the thumb zone; .search-foot--page on the full-page chooser) and sets its region heads at headlineMedium in
   Nile 800 (outlineStrong, so dark holds) over wrapped runs of names, each a 48dp text button with no fill, edge or pill, not
   rows. Moved here from "Cities for all of Egypt" below, selectors and values unchanged; it replaces .city-option's rows. ---- */
.city-index { display: flex; flex-direction: column; gap: var(--space-3xl); }
.city-region { display: flex; flex-direction: column; }
.city-region-head { margin: 0; color: var(--color-outline-strong); }
.city-run { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2xl); }
.city-run-name { display: inline-flex; flex-direction: column; justify-content: center; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: var(--shape-xs); background: none; color: var(--color-ink); font: 500 16px/24px var(--font-text); text-align: start; }
.city-run-name:lang(ar) { line-height: 26px; }
.city-run-name:active { background: var(--state-wash); }
.city-pick-sheet { padding-block-end: 0; }
.city-pick-sheet .sheet-scroll { gap: var(--space-3xl); padding-block: var(--space-xs) var(--space-l); }
.city-pick-sheet--fit .sheet-scroll { flex: 0 1 auto; } /* typing: the sheet hugs what is left, over the form */
.search-foot { padding-block: var(--space-s) var(--space-2xl); }
.search-foot--page { position: relative; flex: none; padding: var(--space-s) var(--space-2xl) var(--space-3xl); background: var(--color-background); }
.search-foot--scrolled::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; height: var(--space-3xl); background: linear-gradient(to bottom, transparent, var(--color-background)); pointer-events: none; }
/* The Design System's §8 City plate (p-egypt-2): the chosen city inside a region's run is its small plate, set in place of the
   name; the run's own name button gives the plate its hit. */
.city-run-name--current .city-plate-sm { pointer-events: none; }
/* ---- Multi-stop outing (added 28 Sep 2026, brain/features/multi-stop-outing/: concept A "The line", direction B "The platform") ---- */
/* Design System §3, §5 (the brand-surface well, the platform), §7 and §8 (the station disc, the next stop's head, the snackbar on a brand surface), adopted 29 Sep 2026. */
/* Every class below is new and restyles nothing that exists. The outing is a Cairo metro line on the brand surface: 40dp
   stations built like the "or" disc (a 4dp ring in the surface colour cutting the rail, the position in Alexandria 700), a
   6dp onBrand rail that breaks around each leg's distance, the stretch not yet travelled at onBrand 50%, and the next stop as
   a hollow station (a brand-surface well). The next station waits on the platform, a raised block (surfaceBrandRaised, top
   corners shape.2xl) that holds the one thing left to do; the rail crosses its edge. Derived values, no new colour:
   --rail is 6dp (space.2xs + space.xs), --rail-compact 4dp (space.xs), --well-brand onBrand 12% (§3's track value) worn with
   the §5 well's lip. They live here, not in tokens.css, until the §5 brand-surface well proposal lands (design-notes.md). */
:root { --rail: calc(var(--space-2xs) + var(--space-xs)); --rail-compact: var(--space-xs); --well-brand: var(--color-on-brand-fill); --on-brand-ghost: color-mix(in srgb, var(--color-on-brand) 20%, transparent); }

/* The top band: Back, the title (the one h1) over the list's name, End as a quiet text action. */
.outing-top { display: flex; align-items: flex-start; gap: var(--space-xs); padding-block-start: var(--space-s); padding-inline: var(--space-m); }
.outing-top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2xs); padding-block-start: var(--space-xs); }
.outing-list-name { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
/* The offline pill on the brand surface: the pill on onBrand 12%, its dot at onBrand 50%. */
.offline-pill-brand { background: var(--color-on-brand-fill); color: var(--color-on-brand); }
.offline-pill-brand .offline-dot { background: var(--color-on-brand-line); }

/* The line: an ordered list of rows. Each row's first column is the 40dp track, the rail centred in it; rows set the
   rail's length, so a name that wraps simply makes the rail longer. */
.outing-line { list-style: none; display: flex; flex-direction: column; min-height: 0; padding-inline: var(--space-2xl); padding-block-start: var(--space-3xl); }
.outing-row { display: flex; align-items: flex-start; gap: var(--space-l); }
.outing-track { position: relative; flex: none; width: 40px; align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.outing-stop > .outing-track::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc((40px - var(--rail)) / 2); width: var(--rail); background: var(--color-on-brand); }
.outing-stop-first > .outing-track::before { inset-block-start: 20px; }
/* The last stop: solid down to its centre, the not-yet stretch below it (a hard stop, not a gradient fade). */
.outing-stop-last > .outing-track::before { background: linear-gradient(var(--color-on-brand) 20px, var(--color-on-brand-line) 20px); }
.outing-stop-first.outing-stop-last > .outing-track::before { background: var(--color-on-brand-line); }
.outing-station { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--shape-full); background: var(--color-background); color: var(--color-outline-strong); box-shadow: 0 0 0 4px var(--ring, var(--color-surface-brand)); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; }
/* The hollow station: the brand-surface well with its lip, and a 2dp inner edge at onBrand 50% so it reads at 3:1 or more. */
.outing-station-next { background: var(--well-brand); box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-on-brand-line), 0 0 0 4px var(--ring, var(--color-surface-brand)); }
/* A stop's text: the name (headlineSmall, wraps, never cut) over its category tag; the name's first line centres on the disc. */
.outing-stop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding-block: var(--space-xs); color: var(--color-on-brand); text-align: start; overflow-wrap: anywhere; }
.outing-stop-body:lang(ar) { padding-block-start: 1px; }
.outing-stop > .icon-btn { margin-block-start: calc(-1 * var(--space-xs)); margin-inline-end: calc(-1 * var(--space-m)); }

/* A leg: the rail breaks, and the gap holds the distance (Alexandria 600 at titleMedium size, onBrand), with a space.2xl run of
   rail above and below it. Legs share the line's height equally (the not-yet stretch too), so the line reaches the platform:
   a tight group (station, name, tag), air (the leg), a tight group. */
.outing-leg { flex: 1 1 0; min-height: calc(3 * var(--space-2xl) + 2 * var(--space-s)); }
.outing-leg > .outing-track { gap: var(--space-s); }
.outing-rail { flex: 1; width: var(--rail); min-height: var(--space-2xl); background: var(--color-on-brand); }
.outing-leg-value { flex: none; white-space: nowrap; color: var(--color-on-brand); font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 24px; }
.outing-leg-value:lang(ar) { line-height: 26px; }
/* A leg with no distance (a stop with no stored location): the rail runs unbroken, and the leg is shorter. */
.outing-leg-bare { min-height: var(--space-3xl); }
.outing-leg-bare > .outing-track { gap: 0; }
/* The stretch not yet travelled: the rail at onBrand 50%, unbroken, down to the platform's edge. */
.outing-leg-future { flex: 1 1 0; min-height: var(--space-3xl); }
.outing-leg-future > .outing-track { gap: 0; }
.outing-leg-future .outing-rail { background: var(--color-on-brand-line); }
/* Full (4 stops): the last stretch is travelled rail, solid, down to the terminus. */
.outing-leg-end .outing-rail { background: var(--color-on-brand); }
/* Four stops (outing#full, critique round 1): the same rhythm on shorter runs (space.m of rail either side of the value), so
   the fourth station and its two-line name clear the platform; the travelled rail meets the platform's stub directly. */
.outing-line-tight { padding-block-start: var(--space-2xl); }
.outing-line-tight .outing-leg { min-height: calc(2 * var(--space-m) + 2 * var(--space-s) + var(--space-2xl)); }
.outing-line-tight .outing-rail { min-height: var(--space-m); }
.outing-line-tight .outing-leg-end { min-height: 0; }

/* The line's remaining capacity (outing#one_stop, next_stop#what_for; critique round 1): the stations still free, drawn as
   faint rings (onBrand 20%, no well, no numeral, not tappable) on onBrand 20% rail, the fourth ending in the terminus cap.
   Since critique round 2 both screens draw them down the platform's start edge (.next-stop-for-station). */
.outing-station-ghost { background: var(--ring, var(--color-surface-brand)); box-shadow: inset 0 0 0 2px var(--on-brand-ghost), 0 0 0 4px var(--ring, var(--color-surface-brand)); }
/* outing#one_stop (critique round 2): composed like next_stop#what_for, so the tap on the hollow keeps every station where it
   is. The platform rises to one leg under stop 1 and fills the rest; the hollow station 2 and "Then where?" at its top edge
   (the row as tall as what_for's two-line question); the free stations 3 and 4 as faint rings down its start edge in a
   column with the tile grid's rows and padding, the terminus under ring 4; Share at the foot. The line sits 24dp under the
   taller top band. */
.outing-line-rise { padding-block-start: var(--space-2xl); }
.outing-platform.outing-platform-rise { flex: 1; gap: 0; }
.outing-platform-rise .outing-next { min-height: calc(var(--space-2xl) + 72px); }
.outing-platform-rise .outing-next-body { padding-block-start: var(--space-2xl); }
.outing-capacity-rest { flex: 1; display: grid; grid-template-columns: 40px; grid-auto-rows: minmax(96px, 1fr); row-gap: var(--space-s); padding-block: var(--space-l) var(--space-s); }

/* The platform: the raised block at the foot of the screen. Its stations' rings take its colour. */
.outing-platform { --ring: var(--color-surface-brand-raised); position: relative; display: flex; flex: none; flex-direction: column; gap: var(--space-2xl); padding: 0 var(--space-2xl) var(--space-2xl); border-start-start-radius: var(--shape-2xl); border-start-end-radius: var(--shape-2xl); background: var(--color-surface-brand-raised); color: var(--color-on-brand); }
/* The next station's row on the platform: a 24dp stub of rail from the platform's edge into the hollow, the label beside it. */
.outing-next { display: flex; align-items: flex-start; gap: var(--space-l); width: 100%; text-align: start; }
.outing-next > .outing-track { gap: 0; }
.outing-stub { flex: none; width: var(--rail); height: var(--space-2xl); background: var(--color-on-brand-line); }
.outing-stub-solid { background: var(--color-on-brand); }
.outing-next-body { flex: 1; min-width: 0; padding-block-start: calc(var(--space-2xl) + var(--space-xs)); color: var(--color-on-brand); }
.outing-next-body:lang(ar) { padding-block-start: calc(var(--space-2xl) + 1px); }
/* The terminus: a flat 24 x 6dp cap that ends the rail when 4 stops are in; the full line sits beside it. */
.outing-terminus { width: var(--space-2xl); height: var(--rail); flex: none; border-radius: var(--shape-full); background: var(--color-on-brand); }
.outing-full-body { flex: 1; min-width: 0; padding-block-start: calc(var(--space-l) + var(--space-2xs)); color: var(--color-on-brand); }
/* The stop sheet's head (critique round 1): the station on the light surface (Nile 800 fill, onBrand numeral, Alexandria 700)
   leads, beside the name in headlineSmall with its tag under it. The title's words stay the heading's spoken label. */
.outing-station-light { --ring: var(--color-surface); background: var(--color-surface-brand); color: var(--color-on-brand); }
.outing-sheet-head { display: flex; align-items: flex-start; gap: var(--space-l); padding-block: var(--space-xs) var(--space-s); }
.outing-sheet-head-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding-block-start: var(--space-xs); color: var(--color-outline-strong); overflow-wrap: anywhere; }
.outing-sheet-head-body:lang(ar) { padding-block-start: 1px; }
/* A snackbar over the line, inside the gutters. Critique round 2 (a System proposal on §8, design-notes.md): on the brand
   surface the inverse (ink) bar is dark on dark, so it is the surface bar with ink text, 24dp above the platform's edge. */
.outing-snackbar-slot { position: absolute; inset-block-start: 0; inset-inline: var(--space-2xl); height: 0; }
.outing-snackbar-slot .snackbar-float { inset-block-end: calc(100% + var(--space-2xl)); }
.snackbar-on-brand { background: var(--color-surface); color: var(--color-ink); }
/* A screen drawn behind a scrim keeps its stations under the scrim (the stations lift above their rail with z-index). */
.backdrop { isolation: isolate; }
/* The §8 sheet and dialog stay light over the brand surface: their outlined and text buttons keep the light-surface colours. */
.brand-screen .sheet .btn-outlined, .brand-screen .dialog .btn-outlined { border-color: var(--color-outline-strong); color: var(--color-outline-strong); }
.brand-screen .dialog .btn-text { color: var(--color-primary); }

/* Home's band: while the list has an open outing, a Nile 50 band under the top bar holds its label and the compact line,
   28dp Nile 800 stations on a 4dp Nile 800 rail, a name under each (wrapping, never cut; the band's spoken label has them
   whole too). The whole band is one button. The line runs from the start edge, so stop 1 is on the right in Arabic. */
.outing-band { display: flex; flex: none; flex-direction: column; gap: var(--space-m); width: auto; margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-m) var(--space-2xl) var(--space-l); background: var(--color-surface-brand-tint); color: var(--color-ink); text-align: start; }
.outing-band-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); color: var(--color-outline-strong); }
.outing-line-compact { list-style: none; display: flex; gap: var(--space-s); }
.outing-line-compact > li { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.outing-line-compact > li:not(:last-child)::before { content: ""; position: absolute; inset-block-start: calc(14px - var(--rail-compact) / 2); inset-inline-start: 14px; width: calc(100% + var(--space-s)); height: var(--rail-compact); background: var(--color-surface-brand); }
.outing-station-compact { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: var(--shape-full); background: var(--color-surface-brand); color: var(--color-on-brand); box-shadow: 0 0 0 3px var(--ring, var(--color-surface-brand-tint)); font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 16px; }
/* Names wrap under their stations (critique round 1), at most two lines, then ellipsize (review round 3): the band's spoken label ({stop_names}) carries every name whole. */
.outing-compact-name { max-width: 100%; color: var(--color-ink); overflow-wrap: anywhere; hyphens: manual; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* In a dialog (outing#end_confirm): the same compact line on a Nile 50 panel, what is about to end. */
.outing-compact-panel { padding: var(--space-m) var(--space-l) var(--space-l); border-radius: var(--shape-card); background: var(--color-surface-brand-tint); }

/* A station-styled "or" disc between two answers (outing's Coming or not, the vote's day choice): Limestone with Nile 800 type. Since 2026-11-12 (drop-the-pair) never between two places. */
.or-disc-station { background: var(--color-background); color: var(--color-outline-strong); font-weight: 700; font-size: 20px; line-height: 24px; }
/* What for: seven tiles on the platform, three to a row, Any the full width under them. Each tile is onBrand 12% with the
   §6 category glyph over its label; they are the step's choices, so none is Saffron. */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-s); min-height: 96px; padding: var(--space-s); border-radius: var(--shape-card); background: var(--color-on-brand-fill); color: var(--color-on-brand); text-align: center; }
.cat-tile .icon { font-size: 32px; }
.cat-tile-wide { grid-column: 1 / -1; flex-direction: row; gap: var(--space-s); min-height: 56px; }
.cat-tile-wide .icon { font-size: 24px; }
/* What for, critique round 1: the platform rises to one leg under station 1 and fills the rest of the screen; the question
   sits beside the hollow station 2, and the rest of the line (the free stations 3 and 4 as faint rings, then the terminus)
   runs down the platform's start edge beside the tiles, the rings centred on the tile rows. Any spans the full width under
   the terminus. */
.outing-line-short { flex: none; }
.outing-line-short .outing-leg-future { flex: none; min-height: calc(var(--space-4xl) * 2 + var(--space-3xl)); }
.next-stop-for { flex: 1; gap: 0; }
.next-stop-for .outing-next-body { padding-block-start: var(--space-2xl); }
.next-stop-for-rail { min-height: 0; background: var(--on-brand-ghost); }
.cat-tiles-on-line { flex: 1; grid-template-columns: calc(40px + var(--space-s)) repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(96px, 1fr); padding-block: var(--space-l) var(--space-s); }
.next-stop-for-station { position: relative; grid-column: 1; width: 40px; display: flex; align-items: center; justify-content: center; }
.next-stop-for-station::before { content: ""; position: absolute; inset-block: calc(-1 * var(--space-s)) 0; inset-inline-start: calc((40px - var(--rail)) / 2); width: var(--rail); background: var(--on-brand-ghost); }
.next-stop-for-station:first-child::before { inset-block-start: calc(-1 * var(--space-l)); }
.next-stop-for-station-last::before { inset-block-end: calc(50% - 20px - var(--space-s) - var(--rail) / 2); }
.next-stop-for-station .outing-terminus { position: absolute; inset-block-start: calc(50% + 20px + var(--space-s)); background: var(--on-brand-ghost); }
/* The category tag on the brand surface (critique round 1): onBrand-outlined, so Share stays the one Saffron on the outing. */
.cat-tag-on-brand { border-color: var(--color-on-brand-line); background: transparent; color: var(--color-on-brand); }

/* The light surfaces' quiet form of the line: the hollow station as a 20dp well beside "Add a next stop" on the confirm sheet
   and place detail, and, when an outing is open, the stops so far as 12dp Nile 800 dots on a 2dp rail leading into it. */
.station-glyph { display: inline-flex; align-items: center; flex: none; }
.station-glyph-dot { width: 12px; height: 12px; flex: none; border-radius: var(--shape-full); background: var(--color-surface-brand); }
.station-glyph-rail { width: var(--space-xs); height: var(--space-2xs); flex: none; background: var(--color-surface-brand); }
.station-glyph-next { width: 20px; height: 20px; flex: none; border-radius: var(--shape-full); background: var(--well); box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-outline-control); }

/* 200% font scale on the outing (outing#large_text): the line scrolls under the pinned platform; stations grow with their
   numerals, the rail keeps its width. */
.font-scale-200 .outing-line { overflow: hidden; }
.font-scale-200 .outing-station { width: 64px; height: 64px; font-size: 40px; line-height: 48px; }
.font-scale-200 .outing-track { width: 64px; }
.font-scale-200 .outing-stop > .outing-track::before { inset-inline-start: calc((64px - var(--rail)) / 2); }
.font-scale-200 .outing-stop-first > .outing-track::before { inset-block-start: 32px; }
.font-scale-200 .outing-stop-last > .outing-track::before { background: linear-gradient(var(--color-on-brand) 32px, var(--color-on-brand-line) 32px); }
.font-scale-200 .outing-line .type-headlineSmall { font-size: 48px; line-height: 64px; }
.font-scale-200 .outing-line .type-headlineSmall:lang(ar) { line-height: 76px; }
.font-scale-200 .outing-stop-body, .font-scale-200 .outing-stop-body:lang(ar) { padding-block-start: 0; }
.font-scale-200 .outing-leg-value { font-size: 30px; line-height: 40px; }
.font-scale-200 .outing-leg-value:lang(ar) { line-height: 44px; }
.font-scale-200 .outing-platform .type-headlineSmall { font-size: 48px; line-height: 64px; }
.font-scale-200 .outing-platform .type-headlineSmall:lang(ar) { line-height: 76px; }
.font-scale-200 .outing-platform .btn, .font-scale-200 .outing-top .btn { font-size: 30px; line-height: 40px; white-space: normal; }
.font-scale-200 .outing-platform .btn:lang(ar), .font-scale-200 .outing-top .btn:lang(ar) { line-height: 44px; }
.font-scale-200 .outing-next-body { padding-block-start: calc(var(--space-2xl) + var(--space-2xs)); }
/* critique round 1: the leg's value starts at the rail's start edge and runs toward the names, never centred across the
   rail; the glyphs grow with the type (32dp Phosphor, at least 24dp drawn) inside their 48dp targets. */
.font-scale-200 .outing-leg-value { align-self: flex-start; margin-inline-start: calc((64px - var(--rail)) / 2); }
.font-scale-200 .outing-top .icon, .font-scale-200 .outing-stop .icon, .font-scale-200 .outing-platform .icon { font-size: 32px; }
.font-scale-200 .outing-platform .btn { gap: var(--space-s); }
/* The outing at 200% (outing#large_text, #large_text_end; review round 1): only Share is pinned, on a short platform; the
   top band, the line and the hollow station (the line's last row) scroll above it. The _end frame shows the scroll's end. */
.outing-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.outing-scroll-end { justify-content: flex-end; }
.outing-scroll > .outing-line { flex: none; overflow: visible; padding-block-end: var(--space-2xl); }
.outing-scroll-end > .outing-line { flex: 1; padding-block-start: 0; }
/* The leg the scroll came down: its rail runs in from the top edge, the distance near its foot. */
.outing-leg-from-above { flex: 1; }
.outing-scroll-end .outing-leg-future { flex: none; }
.outing-leg-from-above .outing-rail:last-child { flex: none; height: var(--space-l); }
.outing-platform-pinned { padding-block-start: var(--space-l); }
.font-scale-200 .outing-scroll .type-headlineSmall { font-size: 48px; line-height: 64px; }
.font-scale-200 .outing-scroll .type-headlineSmall:lang(ar) { line-height: 76px; }
/* Home's band at 200% (home#outing_large_text, review round 1): the names leave the band (.outing-line-compact-bare, no
   name nodes; the band's spoken label keeps them), the label scales, and the stations grow to 40dp with their numerals. */
.font-scale-200 .outing-band .type-titleSmall { font-size: 28px; line-height: 40px; }
.font-scale-200 .outing-band .type-titleSmall:lang(ar) { line-height: 44px; }
.font-scale-200 .outing-band .outing-band-head .icon { font-size: 32px; }
.font-scale-200 .outing-station-compact { width: 40px; height: 40px; font-size: 28px; line-height: 32px; }
.font-scale-200 .outing-line-compact > li:not(:last-child)::before { inset-block-start: calc(20px - var(--rail-compact) / 2); inset-inline-start: 20px; }
/* place_detail#outing_add (review round 1): with a three-row actions block the ratings scroll and the actions are pinned
   at the foot, on the background, with the screen's own gutters and bottom padding. */
.place-detail-actions-pinned { flex: none; padding: var(--space-l) var(--space-2xl) var(--space-2xl); background: var(--color-background); }
/* The outing's way in on the confirm sheet and place detail: the glyph (.station-glyph) before the label. */
.btn-next-stop { gap: var(--space-s); }

/* ---- Splash (added 29 Sep 2026, splash-screen) ----------------------------------------------------------- */
/* The system launch screen: the glyph still, at the 288dp icon canvas, on the icon's own ground (flat Nile 600, the
   platform's single colour). .splash-handoff draws the exit as a board frame: the destination live beneath, the ground
   on top with the pin's own outline cut as a hard-edged window (SVG mask), the hook clipped by it. No rim, glow or feather. */
.artboard.splash { background: var(--color-launch); }
.splash-cut { position: absolute; inset: 0; display: block; }
.splash-ground-fill { fill: var(--color-launch); }
.splash-hook-fill { fill: var(--limestone-0); }
.splash-pin-fill { fill: var(--color-accent); }
.splash-destination { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--color-background); color: var(--color-ink); }

/* ---- holes-sign_in (29 Sep 2026): the ticket waiting for its group, the language control, the legal links ---- */
/* sign_in#joiner_fetching, #joiner_fetch_failed, #joiner_on_its_way (taste round 1): the invite ticket itself, lifted,
   Nile 800 body and light stub, in #joiner's slot and at #joiner's height; only what is printed on it is missing. The
   body reserves a three-line group name (20 + 48dp crest + 12 + 3 lines + 20), so the headline under it never moves
   when the group lands. */
.invite-ticket-wait .invite-ticket-body { min-height: calc(2 * var(--space-xl) + 48px + var(--space-m) + 78px); }
.invite-ticket-wait .invite-ticket-body:lang(ar) { min-height: calc(2 * var(--space-xl) + 48px + var(--space-m) + 96px); }
/* The stub keeps three empty seats (.avatar-empty) where the members will show, ringed in the stub's own surface. */
.invite-ticket-wait .invite-ticket-stub .avatar-stack .avatar { box-shadow: var(--well-lip), 0 0 0 2px var(--color-surface); }
/* The crest's place: a bare 56dp seat in the crest's own box (48dp in layout, like .invite-ticket-crest), a hollow in
   the brand surface (--well-brand, level -1 on Nile 800). While fetching it holds .loader.loader-on-brand in the hollow
   (synced 30 Sep 2026: the interim light disc, .invite-ticket-seat-busy, is gone). A circle has no visible tilt, so the
   crest's -8deg is not applied. */
.invite-ticket-seat { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; margin: -4px; border-radius: var(--shape-full); background: var(--well-brand); box-shadow: var(--well-lip); }
/* sign_in#offline, #joiner_offline (holes-sign_in, taste round 2): the connection notice's glyph inline at the head of
   its title, so the title sits in the headline's slot (#default's and #joiner's y) and the glyph centres on its line. */
.connection-notice-head { display: flex; align-items: center; gap: var(--space-s); }
.connection-notice-head .icon { flex: none; margin-block-end: 0; }
/* The language control at the top of sign-in and intro#slide_1: a 48dp text button that sits on the logo's row
   without growing it (4dp pulled back on each side of a 40dp logo) and pulls its padding into the gutter. */
.lang-control { margin-block: calc(-1 * var(--space-xs)); margin-inline-end: calc(-1 * var(--space-m)); }
/* sign_in's legal line (review round 1): a lead line, then the two links on a row of their own whose line box is 48dp
   tall, so each link's hit area is exactly that row's box and never reaches the email button above. The row is pulled
   up and down by half its extra height, so the text sits where a plain line would (the box covers the lead line, which
   taps nothing) and the column keeps its height. At large text the row wraps like any line: each wrapped line is again
   48dp and the links (inline blocks, never split) stay on their line's box, so two hit areas never overlap. */
.legal-line { --legal-lh: 16px; text-align: center; }
.legal-line:lang(ar) { --legal-lh: 18px; }
.legal-links { display: block; line-height: 48px; margin-block: calc((var(--legal-lh) - 48px) / 2); }
/* One tappable word inside the row: ink and underlined on the subtle line, 8dp wider each side with no effect on layout. */
.legal-link { display: inline-block; padding-inline: var(--space-s); margin-inline: calc(-1 * var(--space-s)); color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-link:has(+ .legal-link) { padding-inline: var(--space-m) var(--space-xs); margin-inline: calc(-1 * var(--space-m)) calc(-1 * var(--space-xs)); }
.legal-link + .legal-link { padding-inline: var(--space-xs) var(--space-s); margin-inline: calc(-1 * var(--space-xs)) calc(-1 * var(--space-s)); }

/* ---- holes-sign_in large text (review round 1): what the sign-in states do at 200% font scale ------------------- */
/* Behaviours only, under .font-scale-200, so no 100% artboard changes; the harness in brain/features/holes-sign_in/
   shots/ only scales type. Buttons, the offline pill and the snackbar grow with their text instead of clipping it
   (the button rule is the shared one, "Large text, shared", since 30 Sep 2026). */
.font-scale-200 .offline-pill { height: auto; min-height: 34px; padding-block: var(--space-xs); }
.font-scale-200 .snackbar { flex-wrap: wrap; }
/* A floating snackbar would cover the body text it sits over: at large text it takes its own place in the column. */
.font-scale-200 .snackbar-float { position: static; }
/* The empty ticket keeps a found group's height: a three-line name at 3 x 52dp (Arabic 3 x 64dp). */
.font-scale-200 .invite-ticket-wait .invite-ticket-body { min-height: calc(2 * var(--space-xl) + 48px + var(--space-m) + 156px); }
.font-scale-200 .invite-ticket-wait .invite-ticket-body:lang(ar) { min-height: calc(2 * var(--space-xl) + 48px + var(--space-m) + 192px); }
/* The connection notice's title in the headline slot steps down to headlineSmall's size, as #default's headline is,
   so its longest word clears the 24dp gutter beside the inline glyph. */
.font-scale-200 .connection-notice .type-headlineMedium { font-size: 48px; line-height: 64px; }
.font-scale-200 .connection-notice .type-headlineMedium:lang(ar) { line-height: 76px; }
/* When the title breaks, the glyph stays on its first line (centred on that line's box, not on the whole block). */
.font-scale-200 .connection-notice-head { align-items: flex-start; }
.font-scale-200 .connection-notice-head .icon { margin-block-start: calc((64px - 32px) / 2); }
.font-scale-200 .connection-notice-head:lang(ar) .icon { margin-block-start: calc((76px - 32px) / 2); }
/* The legal row keeps its 48dp line box; the lead line is 32dp (Arabic 36dp). */
.font-scale-200 .legal-line { --legal-lh: 32px; }
.font-scale-200 .legal-line:lang(ar) { --legal-lh: 36px; }
/* The invite ticket's stub (shared, coordinator's call): its two lines wrap instead of cutting the inviter or the count,
   and the stub grows. The seam notches then follow the real seam: the ticket's own mask (placed 72dp from the foot)
   gives way to a half notch at the foot of the body and the head of the stub. */
.font-scale-200 .invite-ticket { -webkit-mask: none; mask: none; }
.font-scale-200 .invite-ticket-body {
  -webkit-mask: radial-gradient(circle 12px at 0 100%, transparent 11.5px, black 12px), radial-gradient(circle 12px at 100% 100%, transparent 11.5px, black 12px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 12px at 0 100%, transparent 11.5px, black 12px), radial-gradient(circle 12px at 100% 100%, transparent 11.5px, black 12px);
  mask-composite: intersect; }
.font-scale-200 .invite-ticket-stub { height: auto; min-height: var(--ticket-stub); padding-block: var(--space-m);
  -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 11.5px, black 12px), radial-gradient(circle 12px at 100% 0, transparent 11.5px, black 12px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 12px at 0 0, transparent 11.5px, black 12px), radial-gradient(circle 12px at 100% 0, transparent 11.5px, black 12px);
  mask-composite: intersect; }
.font-scale-200 .invite-ticket-stub .ellipsis { white-space: normal; overflow: visible; }

/* ---- holes-email_auth (29 Sep 2026): the connection notice in the network action's slot -------------------------- */
/* email_auth#sign_in_offline, #create_account_offline, forgot_password#offline, #sent_offline: the one network action
   (Sign in, Create account, Send reset link, Send it again) gone hollow. The notice sits in a well at the action's width
   and radius (a disabled button is a well too, .btn-disabled), at least the button's 56dp, so its foot is the button's
   foot. The glyph is inline at the head of a titleMedium title (.connection-notice-head), 24dp to match that line; one
   bodyMedium line under it. It clears by itself back to the action. */
.connection-notice-slot { gap: var(--space-xs); min-height: 56px; padding: var(--space-m) var(--space-l); border-radius: var(--shape-control); background: var(--well); box-shadow: var(--well-lip); }
.connection-notice-slot .icon { font-size: 24px; }
/* 200% font scale (behaviours only): the three email screens' buttons grow with their text, as sign_in's do, and the
   slot glyph centres on the first line of a titleMedium title (48dp, Arabic 52dp), not headlineMedium's 64dp.
   The button rule is the shared one ("Large text, shared") since 30 Sep 2026. */
.font-scale-200 .connection-notice-slot .connection-notice-head .icon { margin-block-start: calc((48px - 24px) / 2); }
.font-scale-200 .connection-notice-slot .connection-notice-head:lang(ar) .icon { margin-block-start: calc((52px - 24px) / 2); }
/* At 200% an email in the confirmation body (forgot_password#sent, verify_email) is longer than the column: it breaks
   where it must instead of running off the edge. */
.font-scale-200:is([data-screen="forgot_password"], [data-screen="verify_email"]) p { overflow-wrap: anywhere; }
/* holes-email_auth, taste round 1 (29 Sep 2026). The notice's line never breaks onto a short orphan. `pretty` leaves a
   two-line line as it was in Chromium, so it is balanced (Compose LineBreak(strategy = Balanced)). */
.connection-notice-slot .type-bodyMedium { text-wrap: balance; }
/* At 200% the line runs to four lines, where balance leaves a ragged half-width column: there it breaks as a paragraph
   (pretty, Compose LineBreak.Paragraph), which only lifts a one-word last line. */
.font-scale-200 .connection-notice-slot .type-bodyMedium { text-wrap: pretty; }
/* forgot_password#sent_offline: the notice sits under Back to sign in as a status, not a second button: 16dp under it
   (the stack's stack-l), and its height is its content, no button minimum. */
.connection-notice-status { min-height: 0; padding-block: var(--space-s); }
/* forgot_password#sent, #sent_offline: the title breaks as a heading, no lone last word (Compose LineBreak.Heading). */
[data-screen="forgot_password"]:is([data-state="sent"], [data-state="sent_offline"]) [data-node="forgot_password_title"] { text-wrap: balance; }

/* ---- holes-crew_setup (29 Sep 2026): the ticket's hollow on crew_setup#join_later_gone -------------------------- */
/* The group emptied out, so there is no ticket to show: its place keeps the ticket's notched silhouette as a well
   (level -1, the lip on the body's top edge), with no lift, no brand surface and no stub (it ends at the tear line), the way an empty
   thing is drawn everywhere in the app. The bare link-break glyph sits where the crest would, 32dp in inkMuted; the
   headline and message where the name goes. crew_setup only. */
[data-screen="crew_setup"] .invite-ticket-void .invite-ticket-body { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink); }
/* Taste round 1: the stub is torn off, so the hollow ends at the tear line. The stub's height is 0, which puts the mask's
   two notches on the bottom corners; square corners there let each notch half read as a torn corner, not a rounded one. */
[data-screen="crew_setup"] .invite-ticket-void { --ticket-stub: 0px; border-end-start-radius: 0; border-end-end-radius: 0; }
[data-screen="crew_setup"] .invite-ticket-void .invite-ticket-body > .icon { font-size: 32px; color: var(--color-ink-muted); }
/* Taste round 1 (29 Sep 2026). The ticket stub's members overlap 8dp, not the stack's 12dp, so each covered initial sits
   clear in its visible crescent (28 of 36dp) and keeps the 2dp ring. One rule for every ticket stub: crew_setup,
   sign_in, create_group, group. */
.invite-ticket-stub .avatar-stack .avatar + .avatar { margin-inline-start: calc(-1 * var(--space-s)); }
/* The notice's line runs the slot's full width (pretty lifts a lone last word only); email_auth's balance, which breaks
   crew_setup's longer line at ~150dp, stays on the email screens, whose own taste round set it for their strings. */
[data-screen="crew_setup"] .connection-notice-slot .type-bodyMedium { text-wrap: pretty; }

/* ---- holes-import_maps_list (29 Sep 2026): the offline line on import_maps_list#review_offline ------------------- */
/* The offline pill as a bare line docked, centred above Add (taste round 1), drawn as onboarding_add_places#personal_offline draws it inline: no fill,
   no padding, inkMuted, the dot kept. import_maps_list only. */
[data-screen="import_maps_list"] .offline-pill-bare { height: auto; padding-inline: 0; background: transparent; color: var(--color-ink-muted); }
/* 200% font scale: the docked Add and Import grow with their text by the shared button rule ("Large text, shared"). */
/* #review_offline and #review_capped carry one more line in the column (the offline line, docked above Add; a two-line capped count),
   which in Arabic outgrows #review's slack by up to 6dp. The list scrolls under the docked Add, so it may run 8dp closer
   to it: the dock stays bottom-anchored where #review draws it, and nothing moves while there is slack. */
[data-screen="import_maps_list"]:is([data-state="review_offline"], [data-state="review_capped"]) .stack-s:has(> .check-list) { margin-block-end: calc(-1 * var(--space-s)); }
/* 200%: a row's state word takes a line of its own at the row's end, so the name and meta keep the width and wrap instead
   of cutting to three letters; the list's name wraps too. Every state of the screen, behaviours only. */
.font-scale-200[data-screen="import_maps_list"] .check-row { flex-wrap: wrap; padding-block-end: var(--space-xs); }
.font-scale-200[data-screen="import_maps_list"] .check-tick { flex-basis: 100%; padding-block: var(--space-s); }
.font-scale-200[data-screen="import_maps_list"] .check-state { margin-inline-start: auto; }
.font-scale-200[data-screen="import_maps_list"] :is(.check-tick-text, h1) .ellipsis,
.font-scale-200[data-screen="import_maps_list"] h1.ellipsis { white-space: normal; overflow: visible; }
/* 200%: the offline line wraps; its dot stays centred on the first line (the pill's 32dp line), not the whole block. */
.font-scale-200[data-screen="import_maps_list"] .offline-pill-bare { align-items: flex-start; }
.font-scale-200[data-screen="import_maps_list"] .offline-pill-bare .offline-dot { margin-block-start: calc((32px - 8px) / 2); }
/* holes-import_maps_list, taste round 1 (29 Sep 2026). #review_capped leads the count line with its
   figure (#review_nothing_new dropped its figure, taste round 2) as display type (Alexandria headlineMedium in Nile 800, aria-hidden: the sentence beside it carries the number),
   the line beside it in ink. */
[data-screen="import_maps_list"] .import-figure-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-m); }
/* The line keeps 12em beside the figure; at large text it drops under the figure instead of narrowing to a column. */
[data-screen="import_maps_list"] .import-figure-row > p { flex: 1 1 12em; }
[data-screen="import_maps_list"] .import-figure { flex: none; color: var(--color-outline-strong); font-variant-numeric: tabular-nums; }
/* #review_nothing_new: an already-in row is done, not a choice: a bare Nile check in the well, no box to tap. */
[data-screen="import_maps_list"][data-state="review_nothing_new"] .check-row-off .check-tick > .icon { color: var(--color-primary); }
/* #review_nothing_new: the cut-paper list with the pin already in it (4 shapes, §6), centred in the space above the dock. */
[data-screen="import_maps_list"] .import-nothing-art { display: flex; flex: 1; align-items: center; justify-content: center; }
/* #review_offline: the offline line docks above Add (it is about what Add does), centred on the button. */
[data-screen="import_maps_list"][data-state="review_offline"] .stack-s > .offline-pill-bare { align-self: center; }

/* holes-home (2026-09-29): home#vote_open's line. The outing band's place and manner (.outing-band, Nile 50 under the top bar) with one row, the label and the caret,
   so its padding is even and it keeps a 48dp target. Scoped to home: no other screen or state carries it. */
[data-screen="home"] .home-vote-band { justify-content: center; min-height: 48px; padding-block: var(--space-m); }
/* holes-home (review round 1): home's new message snackbars (#place_added_rated, #place_added_rated_other_list,
   #place_removed_by_other) show their line whole: the clamp is lifted, so a long place or list name wraps and the bar
   grows upward from its 12dp-above-dock anchor (.dock-snackbar is pinned by its bottom). Scoped to these states only;
   the drawn #place_removed keeps its clamp until a sync (design-notes, Home holes). */
[data-screen="home"] .home-snackbar-full .clamp-2 { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
/* holes-home (critique round 1): home#vote_open's band leads with the vote mark (<symbol id="vote-mark">), bare,
   24dp tall on the start side: the viewer's own state, never a count. On the Nile 50 band it is drawn in the band's ink
   (Nile 800): an empty outline for not voted, poured Nile 800 for the voted variant. At 200% the label wraps and the glass
   holds its first line (40dp line, 24dp glass). Scoped to home. */
[data-screen="home"] .home-vote-mark { --vote-mark-line: var(--color-surface-brand); width: 24px; height: 24px; }
[data-screen="home"] .home-vote-mark--voted { --vote-tea: var(--color-surface-brand); }
[data-screen="home"] .home-vote-band [data-node="home_vote_label"] { flex: 1; min-width: 0; }
.font-scale-200[data-screen="home"] .home-vote-mark { align-self: flex-start; margin-block-start: var(--space-s); }
/* holes-home (critique round 1): the new message snackbars wrap balanced (Compose LineBreak.Heading / Balanced), so a
   short last word never sits alone on line two. */
[data-screen="home"] .home-snackbar-full .clamp-2 { text-wrap: balance; }
/* holes-place_detail: place_detail#group_four's four tiles, 2 × 2 (§8: from four members the average moves to the line
   above). The tiles keep every part of .score-tile; the row wraps into two rows of two, halves of the 312dp line. Scoped
   to place_detail. */
[data-screen="place_detail"] .score-tiles-2x2 { flex-wrap: wrap; }
[data-screen="place_detail"] .score-tiles-2x2 > .score-tile { flex: 0 0 calc(50% - var(--space-s) / 2); }
/* holes-place_detail: add_place#edit_changed's move warning ("Ratings on this list hide until it's Been there again"),
   a .field-note under the state control, set in ink rather than muted: it is the one rule on the frame and changes what
   the group sees. Scoped to add_place. */
[data-screen="add_place"] .state-warning { gap: var(--space-s); color: var(--color-ink); text-wrap: pretty; }
/* The eye-slash sits in a box one line tall (the warning's own line height, at any scale), so it centres on line one. */
[data-screen="add_place"] .state-warning .icon { display: inline-flex; align-items: center; height: 1lh; margin-block-start: 0; line-height: inherit; }
/* holes-place_detail: 200% font scale on place_detail and add_place (brain/features/holes-place_detail/shots/200/).
   Buttons grow with their text and wrap; place detail's Directions / Rate row stacks when the two labels can't share
   the line; the brand title steps down to headlineMedium's size; the form's title wraps instead of
   ellipsizing. Large text only. */
.font-scale-200[data-screen="place_detail"] [data-node="place_detail_actions"] .row { flex-wrap: wrap; }
.font-scale-200[data-screen="place_detail"] [data-node="place_detail_actions"] .btn-grow { flex: 1 1 100%; }
/* taste round 1: the title never breaks inside a word; at 200% it steps from displayLarge to headlineMedium's size so a long
   word ("Hacienda") keeps a whole line. */
.font-scale-200[data-screen="place_detail"] .brand-title { font-size: 56px; line-height: 72px; overflow-wrap: normal; }
.font-scale-200[data-screen="place_detail"] .brand-title:lang(ar) { line-height: 84px; }
.font-scale-200[data-screen="add_place"] [data-node="add_place_title"] { white-space: normal; }
.font-scale-200[data-screen="add_place"] [data-node="add_place_duplicate_open"] { flex: none; white-space: nowrap; }

/* ---- holes-picker (29 Sep 2026, brain/features/holes-picker/) ------------------------------------------------------ */
/* picker#vote_open: See the vote in Put it to a vote's place leads with the empty glass home#vote_open's line leads with,
   a bare outline in the text's own colour (onBrand here, Nile 800 on home's band), so an open vote never reads as the
   poured "start one" glass nor as #offline's disabled entry (on-brand fill, 55% text). Scoped to the picker. */
[data-screen="picker"] .vote-entry--open .vote-mark { --vote-tea: transparent; } /* unused since 2026-10-26, the-match */
/* holes-picker, taste round 1 (30 Sep 2026): 200% font scale on the picker and the confirm sheet (brain/features/holes-picker/shots/200/).
   Large text only, so no 100% artboard changes; the drawn states of both screens get it too at 200%. Buttons grow with
   their text and wrap (as crew_setup's and place_detail's); the Shuffle pill's label doubles and its height follows;
   Surprise us and the vote entry stack into two 48dp rows, Surprise us first. The card name stays one step above the
   category tag (28 over the tag's 24; its line clamp, not its size, holds long names) and the score numeral doubles,
   its "N ratings" taking its own line under it. */
/* Since 30 Sep 2026 the button, Shuffle, card-name and score steps are the shared rules ("Large text, shared"); what
   stays here is the picker's own: the vote entry's row and glass. */
.font-scale-200[data-screen="picker"] .vote-entry-row { flex-direction: column; align-items: center; gap: 0; } /* unused since 2026-10-26, the-match */
/* The vote mark steps to 24 × 24 beside the doubled label. */
.font-scale-200[data-screen="picker"] .vote-entry .vote-mark { width: 24px; height: 24px; } /* unused since 2026-10-26, the-match */

/* ---- holes-vote (30 Sep 2026, brain/features/holes-vote/) --------------------------------------------------------- */
/* vote#loading, #load_failed: the tray's quiet form, in sign_in#joiner_fetching's manner. The tray is set (five empty
   glasses), the fraction's place holds the ticket's seat (.invite-ticket-seat, busy with the loader, the dots still once
   the lookup failed) on the fraction's 64dp line, the time left is one brand-well line, and the places are brand wells at
   the block's 80dp and radius. Share is shown and not usable, dimmed as the disabled vote entry is (onBrand 55%). */
[data-screen="vote"] .icon-btn:disabled { color: color-mix(in srgb, var(--color-on-brand) 55%, transparent); }
/* Taste round 2 (critique fix 1): the waiting tray sits on #open's exact geometry, so loading → open only fills in.
   The foot keeps .vote-turnout-foot's last-baseline alignment: the fraction's place is a .vote-turnout line box (an
   empty nbsp line in the fraction's own 56/64, 72/80 at 200%) with the seat centred in it; the time block is a
   .vote-status column whose first line holds the bar, centred on the line (1lh), and whose second line is air where
   "started it" goes. The prompt's slot is kept as air (.vote-prompt-air, as #voted). The wells take the option's own
   height per language: 80 in English, 82 in Arabic (border 6 + padding 16 + the name's 32 line + 4 + the meta's 24). */
[data-screen="vote"] { --vote-well-h: 80px; }
[data-screen="vote"]:lang(ar) { --vote-well-h: 82px; }
[data-screen="vote"] .vote-wait-fraction { position: relative; min-width: 56px; }
[data-screen="vote"] .vote-wait-fraction::before { content: "\00a0"; }
/* Synced 30 Sep 2026 (p1): the loader sits bare in the fraction's footprint, .loader-on-brand, at the tray's start edge. */
[data-screen="vote"] .vote-wait-fraction .loader { position: absolute; inset-block-start: 50%; inset-inline-start: 0; translate: 0 -50%; }
[data-screen="vote"] .vote-wait-line { width: 112px; height: 12px; margin-block: calc((1lh - 12px) / 2); border-radius: var(--shape-full); background: var(--well-brand); box-shadow: var(--well-lip); }
[data-screen="vote"] .vote-option-wait { min-height: var(--vote-well-h); border-radius: var(--shape-card); background: var(--well-brand); box-shadow: var(--well-lip); }
/* #load_failed's error snackbar at the foot, inside the gutters (the view has no dock): vote_setup#start_failed's ink bar,
   80dp tall so it takes the last waiting place's whole slot (its smaller radius covers the well's corners) instead of
   leaving a sliver of the well above it. */
[data-screen="vote"] .vote-snack { position: absolute; inset-inline: var(--space-2xl); inset-block-end: var(--space-2xl); z-index: 1; min-height: var(--vote-well-h); }
/* Taste round 1 (critique fixes 1, 2, 4). #voted keeps the prompt's slot as air (the prompt's own line box, empty), so
   the tray, the fraction and the time block sit at #open's exact y: nothing slides while Karim's glass pours.
   #load_failed keeps #loading's Limestone seat with the two dots drawn still, at their reduced-motion rest (the loader
   paused, not a placeholder). sign_in#joiner_vote's body balances its two lines (Compose: LineBreak.Heading). */
[data-screen="vote"] .vote-prompt-air::before { content: "\00a0"; }
[data-screen="vote"] .vote-loader-still .loader-dot { animation: none; transform: translateX(-8px); }
[data-screen="vote"] .vote-loader-still .loader-dot + .loader-dot { transform: translateX(8px); }
/* Synced 30 Sep 2026: every drawn joiner state balances the body too (placement only, strings unchanged; "group." widow). */
[data-screen="sign_in"] [data-node="sign_in_body_joiner"] { text-wrap: balance; }
/* sign_in#joiner_vote, crew_setup#join_later_found_vote: "A vote is waiting" on the ticket's Nile 800 body, under the
   name, led by the vote's own empty vote mark (<symbol id="vote-mark">, 24 x 24): your glass,
   waiting. bodyMedium in onBrand 90%, the vote's quiet line (.vote-note). */
:is([data-screen="sign_in"], [data-screen="crew_setup"]) .invite-ticket-vote { display: flex; align-items: center; gap: var(--space-s); color: color-mix(in srgb, var(--color-on-brand) 90%, transparent); }
:is([data-screen="sign_in"], [data-screen="crew_setup"]) .invite-ticket-vote .vote-mark { width: 24px; height: 24px; }
/* 200% font scale on the vote (brain/features/holes-vote/shots/200/), large text only, so no 100% artboard changes:
   the place name steps to 28 (one step over the tag, as the picker's card name), the counts and the fraction to the
   picker score's 56 / a display 72, End vote grows with its text and wraps. */
.font-scale-200[data-screen="vote"] .vote-option-name { font-size: 28px; line-height: 36px; }
.font-scale-200[data-screen="vote"] .vote-option-name:lang(ar) { line-height: 44px; }
.font-scale-200[data-screen="vote"] .vote-option-count { font-size: 56px; line-height: 64px; }
.font-scale-200[data-screen="vote"] .vote-turnout { font-size: 72px; line-height: 80px; }
/* The time left and who started it take their own lines under the fraction, start-aligned, so neither phrase breaks
   into a ragged four-line column beside it; the group's name in the top bar wraps rather than cutting. */
.font-scale-200[data-screen="vote"] .vote-turnout-foot { flex-direction: column; align-items: flex-start; gap: 0; }
.font-scale-200[data-screen="vote"] .vote-status { align-items: flex-start; text-align: start; }
.font-scale-200[data-screen="vote"] .vote-topbar-group .ellipsis { white-space: normal; overflow: visible; }
/* #load_failed at 200%: the grown snackbar takes the third and fourth wells' slots whole (two 80dp wells and the 12dp
   gap), so no sliver of the third well shows above it (critique fix 3). */
.font-scale-200[data-screen="vote"] .vote-snack { min-height: calc(2 * var(--vote-well-h) + var(--space-m)); }
.font-scale-200:is([data-screen="sign_in"], [data-screen="crew_setup"]) .invite-ticket-vote { align-items: flex-start; }
.font-scale-200:is([data-screen="sign_in"], [data-screen="crew_setup"]) .invite-ticket-vote .vote-mark { margin-block-start: var(--space-s); }

/* ---- holes-next_stop (30 Sep 2026): the what-for step at stops 3 and 4 (hole 54), a refused stop (hole 56) ------------ */
/* next_stop#what_for_stop_3, #what_for_stop_4: a shorter line, not a scrolling one. The stations keep their order and 40dp
   size; the line's length gives way: 24dp of bare rail between two stations (no leg distances on this step) and a 32dp run
   into the platform. The tiles keep their three columns; their rows share what height is left (never under 96dp). */
[data-screen="next_stop"] .next-stop-for-line .outing-leg-bare { min-height: var(--space-2xl); }
[data-screen="next_stop"] .next-stop-for-line .outing-leg-future { min-height: var(--space-3xl); }
/* A tile row's start column with no free station beside it: the line has ended above (stop 4), or its one ring sat higher (stop 3). */
[data-screen="next_stop"] .next-stop-for-gap { grid-column: 1; }
/* Stop 4: no free ring; the ghost rail runs 8dp under the hollow into the cap, as .next-stop-for-station-last joins its ring. */
[data-screen="next_stop"] .next-stop-for-cap { flex: none; width: var(--rail); height: var(--space-s); background: var(--on-brand-ghost); }
[data-screen="next_stop"] .next-stop-for-terminus { background: var(--on-brand-ghost); }
/* outing#offline_refused: #full's line exactly, the stations unmoved. The refused stop's snackbar floats 8dp above Share
   (anchored to Share, 56dp, and the platform's 24dp foot), over the platform's "End of the line" row, which it covers
   while it shows; no name on the line is covered. */
[data-screen="outing"] .outing-snackbar-slot-share { z-index: 1; inset-block: auto calc(var(--space-2xl) + 56px + var(--space-s)); }
[data-screen="outing"] .outing-snackbar-slot-share .snackbar-float { inset-block-end: 0; }
/* outing#end_confirm_my_places: End it's type as a class, not #end_confirm's inline style, so it doubles at 200% with the
   dialog's other text (the drawn #end_confirm keeps its inline style: design-notes, Next stop holes, Still open). */
[data-screen="outing"] .outing-end-danger { font-family: var(--font-text); font-weight: 600; font-size: 15px; }
.font-scale-200[data-screen="outing"] .outing-end-danger { font-size: 30px; line-height: 40px; }
/* 200% font scale on next_stop (checked in brain/features/holes-next_stop/shots/200/; large text only, no 100% change).
   What for: the step scrolls, the line first, then the choices as full-width rows beside the line's gutter (a tile's
   label at 28sp cannot sit three to a row), each 64dp with its glyph at the start.
   (2026-11-12, drop-the-pair: the result is the match's, which draws its own 200% in picker#large_text.) */
.font-scale-200[data-screen="next_stop"] .cat-tiles-on-line { grid-template-columns: calc(64px + var(--space-s)) minmax(0, 1fr); grid-auto-rows: auto; }
.font-scale-200[data-screen="next_stop"] .cat-tiles-on-line .cat-tile { grid-column: 2; flex-direction: row; justify-content: flex-start; min-height: 64px; padding-inline: var(--space-l); gap: var(--space-m); }

/* holes-settings (2026-09-30): settings#private_offline's waiting line and settings#sign_out_waiting's dialog. Only the new
   states carry these classes. The pending line is a .field-note in the switch row's text column; the waiting dialog keeps
   #sign_out_confirm's title-to-text gap (.dialog-text) and lets its body scroll between the title and the pinned actions. */
[data-screen="settings"] .settings-pending { margin-block-start: var(--space-2xs); }
[data-screen="settings"] .settings-dialog-wait > .dialog-text { min-height: 0; }
/* holes-settings at 200% (brain/features/holes-settings/shots/settings_200.html): the scrim keeps room for a four-line snackbar,
   so #delete_wrong_account's dialog still ends 48dp above it; the field-note glyph grows with its text (1.25em) and takes the
   text's line height, so it sits centred on the first line in either language; the list rows keep 12dp above and below their
   two-line text (their 72dp minimum kept), so rows stay apart once the text outgrows the minimum (critique round 1, fixes 3, 5). */
.font-scale-200[data-screen="settings"] .scrim-snackbar { padding-block-end: calc(var(--space-2xl) + 4 * 44px + 2 * var(--space-m)); }
.font-scale-200[data-screen="settings"] :is(.settings-pending, .settings-dialog-wait .field-note) .icon { font-size: 1.25em; line-height: inherit; margin-block-start: 0; }
.font-scale-200[data-screen="settings"] .list-option { padding-block: var(--space-m); }
/* holes-settings, critique round 1 fix 6: profile's reworded connection notice balances its lines, so the Arabic body
   ends on more than one word (#mine_offline, #friend_offline). Profile only; the other notices keep their breaks. */
[data-screen="profile"] .connection-notice [data-node="no_connection_body"] { text-wrap: balance; }

/* ---- holes-create_group (30 Sep 2026): 200% font scale on create_group and group --------------------------------
   Behaviours only, under .font-scale-200, so no 100% artboard changes (harness: brain/features/holes-create_group/shots/).
   Buttons wrap by the shared rule ("Large text, shared"). group's foot snackbar (#copied, #write_refused, #action_failed) takes its own place
   under the page at large text, since the build grows the end padding by the snackbar's real height, not a fixed 48dp. */
.font-scale-200[data-screen="group"] > .snackbar { position: static !important; margin: 0 var(--space-2xl) var(--space-2xl); }
.font-scale-200[data-screen="group"] .screen-pad:has(~ .snackbar) { padding-block-end: var(--space-m) !important; }

/* ---- /sync-design, 30 Sep 2026: what the redrawn screens needed ------------------------------------------------ */
/* s1: an error on the surface bar (.snackbar-on-brand). Clay 200 is the ink bar's icon colour and vanishes on the
   surface, so the icon takes the error role; the action is .btn-text's own primary. */
.snackbar-on-brand.snackbar-error .icon { color: var(--color-error); }
.brand-screen .snackbar-on-brand .btn-text { color: var(--color-primary); }
/* p7: a disabled FILLED button on the brand surface (vote_setup#too_few's Start, a Saffron primary when live).
   .btn-disabled-on-brand is the outline form, approved for outlined buttons such as End vote; a filled button keeps
   a slab so it still reads as the primary, switched off: the brand well (onBrand 12%), no edge, the label at onBrand 60%. */
.btn-disabled-filled-on-brand { border-color: transparent; background: var(--color-on-brand-fill); color: color-mix(in srgb, var(--color-on-brand) 60%, transparent); }
/* o2: sign_in#invite_gone's broken link as a bare 32dp mark (no tile), in the tile's 44dp box so the headline keeps its y. */
/* s1, review fix: vote_setup#start_failed's bar floats over the last chosen row and ends 12dp under it, so it is the
   row's height plus 12dp and covers the row whole (66dp rows in English, 74dp in Arabic); no sliver of the row shows
   above it. The heights follow .vote-pick's two lines: if the row's type changes, these change with it. */
[data-screen="vote_setup"] .snackbar-float { min-height: 78px; }
[data-screen="vote_setup"] .snackbar-float:lang(ar) { min-height: 86px; }
[data-screen="sign_in"] .sign-in-gone-mark { display: flex; align-items: center; align-self: flex-start; width: 32px; height: 44px; font-size: 32px; color: var(--color-primary); }


/* App feedback (2026-10-04, redesign): the spotlight, direction B "the field" (brain/features/app-feedback/concept.md,
   direction.md). Replaces v1's folded note (.feedback-note*, .feedback-scroll*, .feedback-send-*, removed: no other
   screen used them). One Nile 800 block (.feedback-spot) sits 24dp from the other question's
   row (critique r2: the leftover falls above the dock), holding the focused question at display size over its writing well (.feedback-well, §5 level −1 on brand), which
   starts at 144dp and grows with its text; the glyph's hook waits at the block's foot, trailing, over the empty pin well the pin lands in on sent (critique r1). The other question is one plain row on Limestone (.feedback-row). On a focus swap the block and the
   row trade ends (spring.pick, layers feedback_spot / feedback_row_like, feedback_row_dislike). Sent: the block holds the cut-paper logo glyph
   (.feedback-mark), the thank-you set low and start-anchored, the meta trailing at its foot. */
.feedback-page { display: flex; flex: 1; flex-direction: column; min-height: 0; padding-block-end: calc(24px + var(--space-l)); }
.feedback-top { display: flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding-block: var(--space-s) 0; padding-inline: var(--space-m) var(--space-l); } /* as settings' bar (the push from it never jogs) */
.feedback-body { display: flex; flex: 1; flex-direction: column; min-height: 0; padding-block-start: var(--space-s); padding-inline: var(--space-l); }
.feedback-spot { display: flex; flex: 0 1 auto; flex-direction: column; gap: var(--space-l); min-height: 0; padding: var(--space-2xl); border-radius: var(--shape-2xl); background: var(--color-surface-brand); color: var(--color-on-brand); }
.feedback-spot-q { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; letter-spacing: -0.01em; }
.feedback-spot-q:lang(ar) { line-height: 52px; letter-spacing: 0; }
/* The well: 12dp wider each side than the question, so the answer starts on the question's start line; radius nests
   (shape.2xl 28 − 12 = shape.card 16). Focused = the 2dp onBrand 50% inner edge (p-feedback-1, the brand well). */
.feedback-well { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 144px; margin-inline: calc(-1 * var(--space-m)); padding: var(--space-m) var(--space-m) var(--space-l); border-radius: var(--shape-card); background: var(--color-on-brand-fill); box-shadow: var(--well-lip); }
.feedback-well-focus { box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-on-brand-line); }
/* A long answer scrolled to its end (near and over the limit): the text clips at the well's 12dp inset, not its edge. */
.feedback-well-scroll { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, black var(--space-2xl)); } /* the scroll edge: the line under it fades out, never a sliver of glyphs */
.feedback-answer { overflow-wrap: anywhere; }
.feedback-hint { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.feedback-caret { display: inline-block; width: 2px; height: 22px; margin-inline: var(--space-2xs); vertical-align: text-bottom; background: var(--color-on-brand); }
.feedback-hint .feedback-caret { margin-inline: 0 var(--space-2xs); }
.feedback-limit { align-self: flex-end; margin-block-start: var(--space-s); font-variant-numeric: tabular-nums; } /* labelLarge, onBrand */
.feedback-limit-over { color: var(--clay-200); } /* 4.9:1 on the well (onBrand 12% over Nile 800) */
.feedback-row { display: flex; flex: none; align-items: center; gap: var(--space-s); min-height: 64px; padding-block: var(--space-s); padding-inline: var(--space-s) var(--space-l); text-align: start; color: var(--color-ink); } /* critique r1 fix 2: the dot sits in the gutter, so the text stays on the question's start line (40dp) */
.feedback-row-text { display: flex; flex: 1; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
/* critique r2 fix 1: block and row are one group, a fixed 24dp apart whichever is on top; the leftover falls between the group and the dock. */
.feedback-spot + .feedback-row, .feedback-row + .feedback-spot { margin-block-start: var(--space-2xl); }
.feedback-row-dot { width: 8px; height: 8px; flex: none; border-radius: var(--shape-full); box-shadow: inset 0 0 0 1.5px var(--color-primary); } /* hollow ring: no answer yet */
.feedback-row-dot-done { background: var(--color-primary); } /* filled: answered */
.feedback-row-edit { flex: none; color: var(--color-primary); }
.feedback-row-line { display: block; color: var(--color-ink-muted); }
.feedback-row:disabled { opacity: 1; }
/* The over-limit and refused line, under the block, on the question's start line. */
.feedback-line { display: flex; flex: none; align-items: flex-start; gap: var(--space-2xs); padding-block: var(--space-m) 0; padding-inline: var(--space-2xs) var(--space-2xl); } /* critique r3 fix 2: the 20dp icon hangs centred on the rows' 28dp dot gutter (16 + 2 + 10), the text starts on the 40dp line (+20 + 2) */
.feedback-line > .icon { flex: none; color: var(--color-error); }
.feedback-dock { display: flex; flex: none; padding-block-start: var(--space-l); padding-inline: var(--space-l); }
.feedback-dock .btn { flex: 1; }
/* Busy Send keeps its Saffron fill (p-feedback-4): .feedback-send-busy is now the shared busy primary (Shared, 11 Oct 2026, below). */
/* Sent: the block answers the page. The glyph top-start, the words set low; the meta trailing at the foot. */
.feedback-spot--sent { justify-content: flex-end; gap: var(--space-3xl); padding-block-end: var(--space-2xl); } /* critique r1 fix 4: the glyph sits low, start-side, 32dp over the headline; the air is above the group */
/* critique r1 fix 1: in every writing state the glyph waits at the block's foot, trailing: the hook and, under it, the empty pin well
   (§5 level −1 on brand: onBrand 12%, the 1.5dp lip) where the pin lands on sent. One viewBox for every pose, so the hook keeps its place in it; since 17 Oct 2026 the mark is 72dp while writing and grows to 160dp on sent (below). */
.feedback-mark { display: block; width: 95px; height: 160px; flex: none; align-self: flex-end; margin-block-start: auto; overflow: visible; } /* the AR hook mirrors about the stem (translate(460 0)), so the stem stays over the unmirrored pin; its bowl runs ~5dp past the viewBox, so it must not clip */
.feedback-spot--sent .feedback-mark { align-self: flex-start; margin-block-start: 0; }
/* Revised 17 Oct 2026 (§2 The pin in a sentence): while writing, the waiting hook and its socket are a 72dp mark at the
   block's trailing foot, not a 160dp watermark, so the question, the well and the other question share the page; the
   glyph grows to its 160dp only on sent, where the pin lands. */
[data-screen="feedback"] .feedback-spot:not(.feedback-spot--sent) .feedback-mark { width: 43px; height: 72px; margin-block-start: calc(-1 * var(--space-s)); }
.feedback-mark-hook { fill: var(--color-on-brand-line); } /* critique r2 fix 3: at rest the hook is onBrand 50%, so the question stays the brightest mass */
.feedback-spot--sent .feedback-mark-hook { fill: var(--color-on-brand); } /* the landing is the brightening (#sent, #sent_waiting) */
.feedback-mark-pin-hole { fill: var(--color-surface-brand); } /* critique r3 fix 1: lifted, the pin's hole is cut through to the block, so the stem behind never shows in it: one object in flight */
.feedback-mark-pin { fill: var(--color-accent); stroke: var(--color-surface-brand); stroke-width: 12; paint-order: stroke; } /* a 1dp Nile cut edge: hovering, the pin lies over the stem as one paper shape over another */
.feedback-mark-well { fill: var(--color-on-brand-fill); }
.feedback-mark-lip { fill: var(--nile-900); } /* critique r2 fix 2: the socket's lip, a 3dp Nile 900 crescent along the well's top inner edge (the --well-lip shadow, at a value that shows on Nile 800 at 1x) */
.feedback-mark-well { stroke: var(--color-on-brand-line); stroke-width: 1px; vector-effect: non-scaling-stroke; } /* the rim: a 1dp onBrand 50% edge, so the empty well reads as a socket, not a ghost pin */
.feedback-sent-title { text-wrap: balance; }
.feedback-sent-words { display: flex; flex-direction: column; gap: var(--space-s); }
.feedback-sent-meta { display: inline-flex; align-items: center; gap: var(--space-s); align-self: flex-end; margin-block-start: var(--space-2xl); color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); font-variant-numeric: tabular-nums; }
/* 200% font scale, this screen only (the shared .font-scale-200 set has no titleLarge, bodyLarge or labelLarge). */
.font-scale-200[data-screen="feedback"] .type-titleLarge { font-size: 26px; line-height: 34px; } /* critique r1 fix 6: nonlinear scaling, the bar title ≤ 1.3×; the question stays the largest type */
.font-scale-200[data-screen="feedback"] .type-titleLarge:lang(ar) { line-height: 40px; }
.font-scale-200[data-screen="feedback"] .feedback-spot-q { font-size: 56px; line-height: 64px; }
.font-scale-200[data-screen="feedback"] .feedback-spot-q:lang(ar) { line-height: 84px; }
.font-scale-200[data-screen="feedback"] .type-bodyLarge { font-size: 32px; line-height: 48px; }
.font-scale-200[data-screen="feedback"] .type-bodyLarge:lang(ar) { line-height: 52px; }
.font-scale-200[data-screen="feedback"] .feedback-caret { height: 40px; }
.font-scale-200[data-screen="feedback"] .feedback-row { min-height: 96px; }
.font-scale-200[data-screen="feedback"] .feedback-spot { flex: none; }
.font-scale-200[data-screen="feedback"] .feedback-well { flex: none; }
.font-scale-200[data-screen="feedback"] .feedback-body { justify-content: flex-end; overflow: hidden; padding-block-start: 0; }
.font-scale-200[data-screen="feedback"] .feedback-top { border-block-end: 1px solid var(--color-outline); }
.font-scale-200[data-screen="feedback"] .feedback-spot:not(.feedback-spot--sent) .feedback-mark { display: none; } /* at 200% the block's room goes to the question and the well; the glyph waits until the text fits (Compose: fontScale ≥ 1.5) */
.font-scale-200[data-screen="feedback"] .feedback-row-line { white-space: normal; } /* at 200% the row's second line wraps, never truncates */
.font-scale-200[data-screen="feedback"] .feedback-row { align-items: flex-start; } /* critique r3 fix 3: on a tall row the dot sits on the title's first line, not the row's middle */
.font-scale-200[data-screen="feedback"] .feedback-row-dot { margin-block-start: calc((48px - 8px) / 2); } /* titleMedium at 200%: 48dp line */
.font-scale-200[data-screen="feedback"] .feedback-row-dot:lang(ar) { margin-block-start: calc((52px - 8px) / 2); }
.font-scale-200[data-screen="feedback"] .feedback-row-edit { margin-block-start: var(--space-m); } /* the pencil follows the dot onto the first line (24dp icon on the 48dp line) */

/* ---- Hidden gems (P0-12, 2026-10-05, brain/features/hidden-gems-2/) ----------------------------------------------- */
/* Concept B "Not carded yet", direction b "The number leads". The gem is not a card: it stands on the background
   (level 0) after the last Want to try card, 24dp below it, with no fill and no edge, and becomes the standard
   .place-card when added. Its text inset is the card's (padding + the 1dp edge), so the name and meta never move. */
.gem-stack { display: flex; flex-direction: column; gap: var(--space-2xl); } /* the cards (12dp apart), then 24dp of air, then the gem */
.gem-after-empty { margin-block-start: var(--space-s); } /* on an empty Want to try: the screen-pad's 16dp + 8 = 24dp after the empty state */
.gem { display: flex; flex-direction: column; gap: var(--space-m); padding-inline: calc(var(--space-l) + 1px); }
.gem-label { color: var(--color-primary); } /* labelLarge, plain text: no pill, no caps, no icon */
.gem-lead { display: flex; align-items: flex-end; gap: var(--space-m); } /* the vouch, then the reason as its caption */
.gem-reason { min-width: 0; padding-block-end: var(--space-xs); color: var(--color-ink-muted); } /* sits on the numeral's baseline */
.gem-lead-stack { flex-direction: column; align-items: flex-start; gap: var(--space-l); } /* 16dp: clears the face's hang */ /* critique r1: on an empty Want to try the longer reason goes under the vouch line, not beside it as a 3-line caption */
.gem-lead-stack .gem-reason { padding-block-end: 0; }
.gem-lead + .gem-place { margin-block-start: var(--space-xs); } /* the face's lower half hangs under the numeral's baseline: 16dp from the vouch line to the name */
.font-scale-200 .gem-lead + .gem-place { margin-block-start: 0; }
.gem-place { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.gem-city { color: var(--color-ink-muted); }
.gem-actions { display: flex; align-items: center; gap: var(--space-xs); }
.gem-actions .btn-small { position: relative; }
.gem-actions .btn-small::after { content: ""; position: absolute; inset-block: calc(-1 * (48px - 36px) / 2); inset-inline: 0; } /* the 36dp pill's 48dp hit area (§8: extend the hit area, not the visual) */
/* The vouch: the source's average in Alexandria 700 at displayLarge in accentText (the picker's high score), and the
   source's face seated beside its last digit in a 3dp background ring (avatar-stack's construction beside a number). */
.gem-vouch { display: inline-flex; align-items: flex-end; flex: none; }
.gem-vouch-score { color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.gem-vouch-score:lang(ar) { line-height: 48px; } /* Latin digits, no Arabic ascenders: the Latin line box, so the face sits on the same baseline in both languages */
.gem-vouch-face { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-inline-start: var(--space-s); margin-block-end: var(--space-2xs); border-radius: var(--shape-full); background: var(--color-surface-brand); box-shadow: 0 0 0 3px var(--color-background); color: var(--color-on-brand); } /* §8 Group crests, revised 17 Oct 2026: the face sits beside the last digit with an 8dp gap, its foot on the numeral's baseline, and never covers a digit (it bit the 0 by 12dp until then) */
.gem-vouch-face:has(.avatar) { width: 36px; height: 36px; background: none; } /* a friend's avatar is 36dp (.avatar-lg), its own disc */
.gem-vouch-face .crest { display: block; width: 40px; height: 40px; color: var(--color-on-brand); } /* the crest at its own 40dp, inside the disc */
/* On more source lists, a second face sits behind the first, 8dp under it, its letter whole at the inline-end. */
.gem-vouch-more { display: inline-flex; flex: none; margin-inline-start: calc(-1 * var(--space-s)); margin-block-end: calc(-1 * var(--space-xs)); border-radius: var(--shape-full); box-shadow: 0 0 0 3px var(--color-background); }
/* 200% font scale: the vouch keeps its own line (the numeral doubles, never shrinks), the reason wraps under it,
   and Add and Not now stack full width. Same layout, one column. */
.font-scale-200 .gem-lead { flex-direction: column; align-items: flex-start; gap: calc(var(--space-2xl) + var(--space-m)); } /* 36: the 64dp face hangs 24dp under the numeral, then 12dp to the reason */
.font-scale-200 .gem-reason { padding-block-end: 0; }
.font-scale-200 .gem-vouch-score { font-size: 80px; line-height: 88px; }
.font-scale-200 .gem-vouch-score:lang(ar) { line-height: 88px; }
.font-scale-200 .gem-vouch-face, .font-scale-200 .gem-vouch-face .crest { width: 64px; height: 64px; } /* critique r1: the face scales with the numeral */
.font-scale-200 .gem-vouch-face { margin-inline-start: var(--space-l); margin-block-end: var(--space-s); }
.gem-after-empty .gem { padding-inline: 0; } /* critique r2: under an empty state there is no card to align with, so the gem takes the 24dp gutter */
/* Arabic: Latin digits run LTR, so the face meets the leading digit; the same 8dp gap, the same seat. */



.font-scale-200 .gem .type-labelLarge { font-size: 30px; line-height: 40px; }
.font-scale-200 .gem .type-labelLarge:lang(ar) { line-height: 44px; }
.font-scale-200 .gem .type-titleLarge { font-size: 40px; line-height: 52px; } /* a step above the cards' titleMedium (32 at 200%) */
.font-scale-200 .gem .type-titleLarge:lang(ar) { line-height: 60px; }
.font-scale-200 .gem-actions { flex-direction: column; align-items: stretch; gap: var(--space-s); }

/* ===== Interactive widgets (P0-13, 2026-10-11, brain/features/interactive-widgets/): the home-screen widget, concept A "the seam", direction A "the crown".
   A Nile 800 block at the launcher's widget radius (--widget-radius: system_app_widget_background_radius, shape.l as the fallback), 8dp inset.
   Top: the band (crest or avatar, the list's name, the new-pair control in the Shuffle treatment). Middle: one Limestone slab cut by a 4dp Nile 800 seam
   (the gap, the disc ring's 4dp) into two whole-field tap targets, the unchanged .or-disc riding the seam, its ring carving a half-moon out of each field.
   Bottom: the progress line on onBrand, number in 600. The launcher draws it in the system sans (--widget-font), never Alexandria or Plex; no motion.
   .launcher-* is the home-screen context the widget is drawn on (wallpaper, neutral app discs), not a Feen component. */
:root { --widget-radius: var(--shape-l); --widget-inset: var(--space-s); --widget-notch: var(--space-3xl); /* fix r1: 32 = half the disc and its ring (24) plus 8 air, so 20sp names keep two lines */ --widget-font: Roboto, "Noto Sans Arabic", system-ui, sans-serif;
  --widget-field-pressed: color-mix(in srgb, var(--color-surface-brand) 8%, var(--color-background)); } /* --widget-notch and --widget-field-pressed unused since 2026-10-12, calendar-widget; --widget-radius and --widget-inset stay */
.launcher { display: flex; flex-direction: column; gap: var(--space-2xl); padding: var(--space-l) var(--space-l) var(--space-2xl); background: color-mix(in srgb, var(--nile-200) 35%, var(--limestone-300)); }
.launcher-status { display: flex; align-items: center; justify-content: space-between; height: 24px; padding-inline: var(--space-s); font: 500 14px/20px var(--widget-font); color: var(--limestone-850); }
.launcher-status-icons { display: flex; gap: var(--space-xs); }
.launcher-row { display: flex; gap: var(--space-s); align-items: flex-start; }
.launcher-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: var(--space-xl); justify-items: center; }
.launcher-grid-2 { grid-template-columns: repeat(2, 1fr); flex: 1; row-gap: var(--space-xl); }
.launcher-app { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }
.launcher-app::before { content: ""; width: 52px; height: 52px; border-radius: var(--shape-full); background: color-mix(in srgb, var(--limestone-0) 55%, transparent); }
.launcher-app::after { content: ""; width: 40px; height: 6px; border-radius: var(--shape-full); background: color-mix(in srgb, var(--limestone-0) 45%, transparent); }
.launcher-search { display: flex; align-items: center; gap: var(--space-m); height: 52px; margin-block-start: auto; padding-inline: var(--space-l); border-radius: var(--shape-full); background: color-mix(in srgb, var(--limestone-0) 55%, transparent); color: var(--limestone-600); }
.launcher-dock { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; }
.launcher-dock .launcher-app::after { content: none; }
.launcher > .scrim { z-index: 2; } /* unused since 2026-10-12, calendar-widget */

.widget { position: relative; display: flex; flex-direction: column; flex: none; padding: var(--widget-inset); border-radius: var(--widget-radius); background: var(--color-surface-brand); color: var(--color-on-brand); font-family: var(--widget-font); text-align: start; }
.widget-4x2 { width: 328px; height: 184px; }
.widget-2x2 { width: 160px; height: 184px; }
.widget-4x1 { width: 328px; height: 92px; flex-direction: row; align-items: stretch; gap: var(--space-s); }
.widget .crest { width: 28px; height: 28px; color: var(--color-on-brand); --color-accent: var(--color-on-brand-line); } /* the disc stays the one Saffron object */
.widget-avatar { width: 28px; height: 28px; background: var(--color-on-brand); color: var(--color-surface-brand); font-family: inherit; } /* unused since 2026-10-12, calendar-widget */
.widget-band { display: flex; align-items: center; gap: var(--space-s); min-height: 40px; padding-inline-start: var(--space-xs); } /* unused since 2026-10-12, calendar-widget */
.widget-list { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; line-height: 20px; } /* unused since 2026-10-12, calendar-widget */
.widget-new { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 40px; flex: none; margin-inline-start: auto; border: 2px solid var(--color-on-brand); border-radius: var(--shape-full); background: var(--color-on-brand-fill); color: var(--color-on-brand); } /* unused since 2026-10-12, calendar-widget */
.widget-new::after { content: ""; position: absolute; inset: -6px -2px; } /* 48dp hit area, into the inset */ /* unused since 2026-10-12, calendar-widget */
.widget-new-round { width: 40px; } /* unused since 2026-10-12, calendar-widget */
.widget-new-round::after { inset: -6px; } /* unused since 2026-10-12, calendar-widget */
.widget-slab { position: relative; display: flex; flex: 1; min-height: 0; gap: var(--space-xs); border-radius: calc(var(--widget-radius) - var(--widget-inset)); } /* unused since 2026-10-12, calendar-widget */
.widget-slab-stack { flex-direction: column; } /* unused since 2026-10-12, calendar-widget */
.widget-field { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-xs); min-width: 0; min-height: 0; padding: var(--space-xs) var(--space-m); background: var(--color-background); color: var(--color-outline-strong); font: inherit; text-align: start; } /* unused since 2026-10-12, calendar-widget */
.widget-field:active { background: var(--widget-field-pressed); } /* unused since 2026-10-12, calendar-widget */
.widget-field:first-child { border-start-start-radius: inherit; border-end-start-radius: inherit; padding-inline-end: var(--widget-notch); } /* unused since 2026-10-12, calendar-widget */
.widget-field:nth-child(2) { border-start-end-radius: inherit; border-end-end-radius: inherit; padding-inline-start: var(--widget-notch); } /* unused since 2026-10-12, calendar-widget */
.widget-slab-stack .widget-field { padding: var(--space-s) var(--space-m); border-radius: 0; } /* unused since 2026-10-12, calendar-widget */
.widget-slab-stack .widget-field:first-child { justify-content: flex-start; border-start-start-radius: inherit; border-start-end-radius: inherit; } /* unused since 2026-10-12, calendar-widget */
.widget-slab-stack .widget-field:nth-child(2) { justify-content: flex-end; border-end-start-radius: inherit; border-end-end-radius: inherit; } /* unused since 2026-10-12, calendar-widget */
.widget .cat-tag { font-family: inherit; } /* unused since 2026-10-12, calendar-widget */
.widget-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.005em; overflow-wrap: anywhere; } /* unused since 2026-10-12, calendar-widget */
.widget-name:lang(ar) { line-height: 26px; letter-spacing: 0; } /* fix r1: names 20/24 (26 Arabic), the slab's hero; 4x1 keeps 16 */ /* unused since 2026-10-12, calendar-widget */
.widget-4x1 .widget-name { font-size: 16px; line-height: 20px; } /* unused since 2026-10-12, calendar-widget */
.widget-4x1 .widget-name:lang(ar) { line-height: 22px; } /* unused since 2026-10-12, calendar-widget */
.widget-name-1 { -webkit-line-clamp: 1; display: block; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; } /* unused since 2026-10-12, calendar-widget */
.widget .or-disc { z-index: 1; font-family: inherit; font-weight: 600; font-size: 13px; } /* unused since 2026-10-12, calendar-widget */
.widget-progress { position: relative; display: block; padding: var(--space-m) var(--space-xs) var(--space-s); font: inherit; font-size: 12px; line-height: 16px; color: var(--color-on-brand); text-align: start; } /* unused since 2026-10-12, calendar-widget */
.widget-progress:lang(ar) { line-height: 18px; } /* unused since 2026-10-12, calendar-widget */
.widget-progress::after { content: ""; position: absolute; inset: calc(-1 * var(--space-xs)) 0 calc(-1 * var(--widget-inset)); } /* fix r1: 12 above the line, 16 to the widget edge in every state; the hit area reaches 4 over the slab edge and into the inset for 48dp */ /* unused since 2026-10-12, calendar-widget */
.widget-progress b { font-weight: 600; } /* unused since 2026-10-12, calendar-widget */
.widget-band-bare { min-height: 32px; } /* fix r1: no new pair in the band (one place, empty), so the slab takes back 8dp */ /* unused since 2026-10-12, calendar-widget */
/* fix r1: one place, where the progress line runs two lines, the slab gives up the height: band 28, names 18/22 (24 Arabic) */
.widget-long-line .widget-band { min-height: 28px; } /* unused since 2026-10-12, calendar-widget */
.widget-long-line .widget-name { font-size: 18px; line-height: 22px; } /* unused since 2026-10-12, calendar-widget */
.widget-long-line .widget-name:lang(ar) { line-height: 24px; } /* unused since 2026-10-12, calendar-widget */
.widget-long-line .widget-field { gap: var(--space-2xs); } /* unused since 2026-10-12, calendar-widget */
.widget-lines { width: 100%; } /* one place / empty: the one-place line and the unlock line are one 48dp target (fix r1) */ /* unused since 2026-10-12, calendar-widget */
/* One place / Empty: the missing field is a hollow on the brand surface (level -1 on Nile 800), ringed because it opens Add a place. */
.widget-field--well { background: var(--well-brand); box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-on-brand-line); color: var(--color-on-brand); } /* unused since 2026-10-12, calendar-widget */
.widget-field--well:active { background: var(--on-brand-ghost); } /* unused since 2026-10-12, calendar-widget */
.widget-well-label { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); font-weight: 600; font-size: 14px; line-height: 20px; } /* unused since 2026-10-12, calendar-widget */
/* 4x1: crest, then the slab alone (names on two lines, tags drop, new pair drops); 2x2 and 200%: the slab stacks, names on one line. */
.widget-4x1 .widget-band { flex-direction: column; justify-content: center; min-height: 0; padding-block: 0; } /* unused since 2026-10-12, calendar-widget */
.widget-4x1 .widget-field { padding-block: var(--space-s); } /* unused since 2026-10-12, calendar-widget */
.widget-2x2 .widget-name { font-size: 16px; line-height: 20px; } /* fix r1: two lines at 2x2 */ /* unused since 2026-10-12, calendar-widget */
.widget-2x2 .widget-name:lang(ar) { line-height: 22px; } /* unused since 2026-10-12, calendar-widget */
.widget-2x2 .widget-field { padding-block: var(--space-s); } /* unused since 2026-10-12, calendar-widget */
.widget-2x2 .or-disc { inset-inline: auto var(--space-s); margin: 0; } /* fix r1: at 2x2 the disc rides the seam at the end, clear of two-line names */ /* unused since 2026-10-12, calendar-widget */
.widget-200 .widget-list { font-size: 28px; line-height: 36px; } /* unused since 2026-10-12, calendar-widget */
.widget-200 .widget-name { font-size: 32px; line-height: 40px; } /* unused since 2026-10-12, calendar-widget */
.widget-200 .widget-name:lang(ar) { line-height: 44px; } /* unused since 2026-10-12, calendar-widget */
.widget-200 .widget-band { min-height: 48px; } /* unused since 2026-10-12, calendar-widget */
.widget-200 .widget-slab-stack .widget-field { justify-content: center; padding-inline: var(--space-m) calc(var(--space-m) + var(--space-4xl)); } /* unused since 2026-10-12, calendar-widget */
.widget-200 .or-disc { inset-inline: auto var(--space-m); margin: 0; } /* at 200% the disc rides the seam at the end, clear of names that fill the width */ /* unused since 2026-10-12, calendar-widget */
/* Signed out, List gone: the whole glyph large at the start, the one line beside it, the whole widget one target. */
.widget-quiet { flex-direction: row; align-items: center; gap: var(--space-xl); padding-block: var(--space-2xl); padding-inline: var(--space-2xl) var(--space-l); border: 0; }
.widget-glyph { width: 76px; height: 128px; flex: none; color: var(--color-on-brand); }
.widget-quiet-line { flex: 1; min-width: 0; align-self: center; font-weight: 600; font-size: 18px; line-height: 24px; }
.widget-quiet-line:lang(ar) { line-height: 30px; }
.widget-quiet .widget-new { position: absolute; inset-block-end: var(--space-l); inset-inline-end: var(--space-l); margin: 0; } /* unused since 2026-10-12, calendar-widget */
/* unused since 2026-10-11, interactive-widgets fix r1: widget_config draws the empty widget under the scrim instead */
.launcher-spot { width: 328px; height: 184px; flex: none; border-radius: var(--widget-radius); background: color-mix(in srgb, var(--limestone-900) 8%, transparent); box-shadow: var(--well-lip), inset 0 0 0 2px color-mix(in srgb, var(--limestone-0) 45%, transparent); } /* widget_config: where the widget will land */
.widget-blank .widget-slab { flex: 1; } /* widget_config: the widget to be, its empty form (wells, disc on the seam) under the scrim (fix r1) */ /* unused since 2026-10-12, calendar-widget */
.list-option-current { border-color: var(--color-primary); background: var(--color-surface-brand-tint); } /* calendar#choose_day*: the day chooser's chosen list, Cities' chosen treatment; Saffron stays for the tap (widget_config retired 2026-10-12) */
.widget-config-gone { padding: var(--space-m) var(--space-l); border-radius: var(--shape-card); background: var(--color-surface-brand-tint); color: var(--color-ink); } /* unused since 2026-10-12, calendar-widget */

/* ---- Shared, adopted 11 Oct 2026 (/sync-design): app feedback, hidden gems, the outing calendar ------------------------ */
/* §8 Buttons, Busy: "A busy primary keeps its Saffron fill and onAccent ink while the write is in flight, the loader's dots in
   onAccent and surface; outlined and text buttons keep today's busy form." Worn as .btn-primary.btn-busy (.feedback-send-busy is the
   same form); a busy .btn-decision wears it too (19 Oct 2026); the Google button and every other button keep .btn-busy. */
:is(.btn-primary.btn-busy:not(.btn-google), .btn-decision.btn-busy) { border-color: transparent; background: var(--color-accent); color: var(--color-on-accent); }
:is(.btn-primary.btn-busy:not(.btn-google), .btn-decision.btn-busy, .feedback-send-busy) .loader-dot { background: var(--color-on-accent); }
:is(.btn-primary.btn-busy:not(.btn-google), .btn-decision.btn-busy, .feedback-send-busy) .loader-dot + .loader-dot { background: var(--color-surface); }
/* §8 Group crests: "Used as a face …, a crest carries its own disc, as an avatar does": the crest at 40dp in onBrand on a 40dp
   surfaceBrand disc with a 3dp background ring (64dp at 200%). Where it sits on the numeral is the host's (.gem-vouch-face). */
.crest-face { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: var(--shape-full); background: var(--color-surface-brand); box-shadow: 0 0 0 3px var(--color-background); color: var(--color-on-brand); }
.crest-face .crest { display: block; width: 40px; height: 40px; color: var(--color-on-brand); }
.font-scale-200 .crest-face, .font-scale-200 .crest-face .crest { width: 64px; height: 64px; }
/* §5 Shape, Tear line: "2dp half-circle bites at an 8dp pitch, on a torn day leaf's top edge only (a lived day), and under the band
   of today's leaf once its outing ended." A mask on the torn edge; .tear-line wears it. */
:root { --tear-line: radial-gradient(circle var(--space-2xs) at var(--space-xs) 0, transparent 98%, var(--color-ink) 100%) 0 0 / var(--space-s) 100% repeat-x; }
.tear-line { -webkit-mask: var(--tear-line); mask: var(--tear-line); }
/* §6 Illustration: "The tear-off wall-calendar leaf (natiga) is also a UI component, the day's one mark: every date an outing or
   a vote carries, never a decoration, an icon, or a chip." The leaf, its sizes, and its torn and ending forms (§5 Tear line).
   outing-calendar (P0-14), concept B "the natiga": the day leaf, the one drawn object that carries a date. Three flat shapes:
   a binding band, the leaf, and on it the full weekday over an Alexandria numeral over the month. Width is fixed by the longest
   Arabic weekday («الأربعاء») at the leaf's size, so EN and AR leaves match; the leaf grows in height, never width. */
.day-leaf { --leaf-w: 64px; --leaf-band: var(--space-s); position: relative; isolation: isolate; display: flex; flex: none; flex-direction: column; width: var(--leaf-w); color: var(--color-ink); text-align: center; }
.day-leaf-band { height: var(--leaf-band); flex: none; border-start-start-radius: var(--shape-m); border-start-end-radius: var(--shape-m); background: var(--color-surface-brand); }
.day-leaf-sheet { display: flex; flex-direction: column; align-items: center; padding: var(--space-xs) var(--space-xs) var(--space-s); border-end-start-radius: var(--shape-m); border-end-end-radius: var(--shape-m); background: var(--color-surface); }
.day-leaf-top { font-family: var(--font-text); font-weight: 500; font-size: 12px; line-height: 16px; white-space: nowrap; }
.day-leaf-top:lang(ar) { line-height: 18px; }
.day-leaf-num { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; font-variant-numeric: tabular-nums; }
.day-leaf-month { font-family: var(--font-text); font-size: 12px; line-height: 16px; color: var(--color-ink-muted); white-space: nowrap; }
.day-leaf-month:lang(ar) { line-height: 18px; }
/* --hero: the nearest outing's leaf, the numeral at the vote fraction's 56sp, on its pad: two 2dp lips under it (fixed decoration, never a count). */
.day-leaf--hero { --leaf-w: 96px; --leaf-band: var(--space-l); }
.day-leaf--hero .day-leaf-sheet { padding: var(--space-s) var(--space-xs) var(--space-m); }
.day-leaf--hero .day-leaf-top { font-weight: 600; font-size: 14px; line-height: 20px; }
.day-leaf--hero .day-leaf-top:lang(ar) { line-height: 22px; }
.day-leaf--hero .day-leaf-num { font-weight: 700; font-size: 56px; line-height: 56px; }
.day-leaf--hero .day-leaf-num:lang(ar) { line-height: 64px; }
.day-leaf--hero::before, .day-leaf--hero::after { content: ""; position: absolute; z-index: -1; inset-block-end: calc(-1 * var(--space-2xs)); inset-inline: var(--space-2xs); height: var(--space-l); border-end-start-radius: var(--shape-m); border-end-end-radius: var(--shape-m); background: var(--color-outline); }
.day-leaf--hero::after { z-index: -2; inset-block-end: calc(-2 * var(--space-2xs)); inset-inline: var(--space-xs); background: var(--limestone-300); }
/* --sm: the vote's days and the sheet's headline row (titleLarge numeral). */
.day-leaf--sm { --leaf-w: 56px; --leaf-band: var(--space-xs); }
.day-leaf--sm .day-leaf-num { font-size: 20px; line-height: 26px; }
/* --on-brand: a leaf on Nile 800, the leaf in Limestone 50, the band surfaceBrandRaised. */
.day-leaf--on-brand .day-leaf-sheet { background: var(--limestone-50); }
.day-leaf--on-brand .day-leaf-band { background: var(--nile-600); } /* §5 One step and §6 the natiga (p-calmain-4, landed 16 Oct 2026, in the Design System 17 Oct): Nile 700 vanished on the Nile 800 block; Nile 600 reads as the band */
/* --torn: a lived day. No band; the top edge is the tear line (2dp half-circle bites at an 8dp pitch), in the well's tone. */
.day-leaf--torn .day-leaf-band { display: none; }
.day-leaf--torn .day-leaf-sheet { padding-block-start: var(--space-s); border-radius: 0 0 var(--shape-m) var(--shape-m); background: var(--well); -webkit-mask: var(--tear-line); mask: var(--tear-line); }
.day-leaf--torn .day-leaf-num { color: var(--color-ink-muted); }
/* --ending: today's leaf once its outing ended: the band kept, the tear line under it, the leaf already in the well's tone. */
.day-leaf--ending .day-leaf-sheet { margin-block-start: var(--space-2xs); padding-block-start: var(--space-s); background: var(--color-surface); -webkit-mask: var(--tear-line); mask: var(--tear-line); }
/* ---- outing-calendar (P0-14), feature-scoped ---------------------------------------------------------------------- */
/* The compact line on Nile 800 (the calendar's hero block): onBrand stations on a 50% onBrand rail. */
.outing-line-compact--on-brand { --ring: var(--color-surface-brand); }
.outing-line-compact--on-brand > li:not(:last-child)::before { background: var(--color-on-brand-line); }
.outing-line-compact--on-brand .outing-station-compact { background: var(--color-on-brand); color: var(--color-surface-brand); }
.outing-line-compact--on-brand .outing-compact-name { color: var(--color-on-brand); }
/* outing-calendar (P0-14), screens: the leaf's states. A bottom-edge badge (.day-leaf-badge) half outside the leaf carries the check
   of a chosen leaf or the crest of a taken day, so a leaf never changes height in a strip. */
.day-leaf-badge { position: absolute; z-index: 1; inset-block-end: calc(-1 * var(--space-s) - 2px); inset-inline: 0; margin-inline: auto; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--shape-full); background: var(--color-surface-brand); color: var(--color-on-brand); box-shadow: 0 0 0 2px var(--badge-ring, var(--color-surface)); font-size: 14px; }
.day-leaf-badge .crest { width: 16px; height: 16px; color: var(--color-on-brand); --color-accent: var(--saffron-300); }
/* --chosen: the one Saffron on a strip; ink on Saffron, 3% up, the check on its bottom edge. */
.day-leaf--chosen { transform: scale(1.03); }
.day-leaf--chosen .day-leaf-sheet { background: var(--color-accent); color: var(--color-on-accent); }
.day-leaf--chosen .day-leaf-month { color: var(--color-on-accent); }
/* --taken: a day the list already has an outing on (outing#change_day): the leaf in the well's tone, the list's crest on its edge. */
.day-leaf--taken .day-leaf-band { background: var(--color-outline-strong); }
.day-leaf--taken .day-leaf-sheet { background: var(--well); box-shadow: var(--well-lip); }
.day-leaf--taken .day-leaf-num { color: var(--color-ink-muted); }
/* §6 Illustration, the natiga (shared, adopted 17 Oct 2026, p-calmain-2): "today's leaf as the calendar's way in (a real date, never a
   blank calendar glyph)". --glyph: today's own leaf, 24dp, numeral only, on home's top bar, the drawer's Calendar row and the calendar's
   Choose a day. Left in place: `.font-scale-200 .day-leaf-num` below must keep winning over its numeral at 200%. */
.day-leaf--glyph { --leaf-w: 24px; --leaf-band: 5px; }
.day-leaf--glyph .day-leaf-band { border-start-start-radius: var(--shape-xs); border-start-end-radius: var(--shape-xs); }
.day-leaf--glyph .day-leaf-sheet { padding: 1px 0 2px; border-end-start-radius: var(--shape-xs); border-end-end-radius: var(--shape-xs); background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-outline-strong); }
.day-leaf--glyph .day-leaf-num { font-size: 12px; line-height: 14px; }
/* A leaf inside a button keeps its 48dp target from the button; the leaf alone is drawn. */
.day-leaf-btn { display: flex; flex: none; flex-direction: column; align-items: center; padding: var(--space-xs) 0 var(--space-m); border-radius: var(--shape-m); }
.day-leaf-btn:disabled { opacity: 1; }

/* .day-strip: the chooser (confirm sheet, change the day, vote setup). Today, then 30 days; three leaves and a fourth's edge in view,
   the far edge fading out as the chip row does. Replaces any date dialog. */
.day-strip { display: flex; gap: var(--space-l); margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-xs) var(--space-2xl) 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent); mask-image: linear-gradient(to right, black calc(100% - 40px), transparent); }
[dir="rtl"] .day-strip { -webkit-mask-image: linear-gradient(to left, black calc(100% - 40px), transparent); mask-image: linear-gradient(to left, black calc(100% - 40px), transparent); }
.day-strip .day-leaf { --leaf-w: 72px; }
.day-leaf:has(.day-leaf-badge) .day-leaf-sheet { padding-block-end: var(--space-m); }
/* In a sheet the strip is a well (level -1) the leaves lie in; on the brand surface it is surfaceBrandRaised. */
.day-strip-well { padding-block: var(--space-m) var(--space-l); background: var(--well); box-shadow: var(--well-lip); }
.day-strip-on-brand.day-strip-well { background: var(--color-surface-brand-raised); box-shadow: none; }
.day-leaf-btn--current { box-shadow: inset 0 0 0 2px var(--color-outline-strong); }
.day-strip-on-brand .day-leaf-btn--current { box-shadow: inset 0 0 0 2px var(--color-on-brand-line); }
.day-leaf-btn { padding-inline: var(--space-xs); }
/* --on-surface: a leaf on a white sheet (the confirm sheet's headline row): the leaf in Nile 50 under its Nile 800 band. */
.day-leaf--on-surface .day-leaf-sheet { background: var(--color-surface-brand-tint); }
.day-strip-on-brand .day-leaf-badge { --badge-ring: var(--color-surface-brand); }
/* The time row: a well to fill (Add a time), or the time filled in with Clear. Inline, never a dialog or a wheel. */
/* unused since 2026-10-17, calendar-time-picker (replaced by .hour-rail / .hour-rail-slim / .time-readout) */
.day-time-row { justify-content: flex-start; min-height: 56px; }
.day-time-row .day-time-value { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 28px; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.day-time-row .grow { flex: 1; }
.day-line { color: var(--color-ink-muted); text-wrap: pretty; }
.day-line strong { color: var(--color-ink); font-weight: 600; }
.day-line-warn { display: flex; gap: var(--space-s); color: var(--color-ink); }
.day-line-warn .icon { flex: none; color: var(--clay-600); }

/* The confirm sheet's headline row: the name, then today's (or the set day's) small leaf at the end edge. */
.cs-day-head { display: flex; align-items: flex-start; gap: var(--space-l); }
.cs-day-head > :first-child { flex: 1; min-width: 0; }
.cs-day-head .day-leaf { margin-block-start: calc(-1 * var(--space-2xs)); }
.cs-day-time { margin-block-start: var(--space-xs); color: var(--color-ink); font-variant-numeric: tabular-nums; text-align: center; }

/* .vote-days: 2 to 4 small leaves on the brand surface, each with its count under it in the vote's digit; the "or" disc between exactly two.
   The viewer's day carries the place vote's 3dp Saffron edge. */
.vote-days { position: relative; display: flex; justify-content: center; gap: var(--space-l); }
.vote-days-2 { gap: var(--space-3xl); }
.vote-days .or-disc { inset-block-start: 40px; }
.vote-day { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); min-width: 72px; padding: var(--space-xs); border: 3px solid transparent; border-radius: var(--shape-l); }
.vote-day .day-leaf { --leaf-w: 64px; }
.vote-day--yours { border-color: var(--color-accent); }
.vote-day--drawn { border-color: var(--color-on-brand); }
.vote-day-count { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 32px; font-variant-numeric: tabular-nums; color: var(--color-on-brand); }
.vote-day-count--zero { color: color-mix(in srgb, var(--color-on-brand) 55%, transparent); }
.vote-day-prompt { color: var(--color-on-brand); text-align: center; }
/* vote_setup's day choice: a three-way segmented control on the brand surface, then the strip in its form. */
.vote-setup-day { display: flex; flex-direction: column; gap: var(--space-m); }

/* The calendar screen (direction A, "hung on the block"): the hero leaf's band rises 12dp off the Nile 800 block onto the Limestone;
   later outings and past days hang their leaves in one start-aligned column. */
.cal-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cal-screen { display: flex; flex: 1; flex-direction: column; padding-block: var(--space-s) 0; } /* unused since 2026-11-01, calendar-month */
.cal-top { gap: var(--space-xs); min-height: 48px; margin-inline-start: calc(-1 * var(--space-m)); } /* unused since 2026-11-01, calendar-month */
.cal-hero { position: relative; display: flex; flex-direction: column; gap: var(--space-xl); width: 100%; margin-block-start: var(--space-2xl); padding: var(--space-xl); border-radius: var(--shape-xl); background: var(--color-surface-brand); color: var(--color-on-brand); text-align: start; } /* unused since 2026-11-01, calendar-month */
/* Clickable card: the card is an <article>, and one empty button stretched over it is the tap target (the whole card, far past 48dp)
   and the one thing TalkBack reads, with calendar_hero (a11y). The card's own content is aria-hidden so it isn't read twice. */
.cal-hero-open { position: absolute; inset: 0; border-radius: inherit; } /* unused since 2026-11-01, calendar-month */
.cal-hero-open:focus-visible { outline: 2px solid var(--color-on-brand); outline-offset: 2px; } /* unused since 2026-11-01, calendar-month */
.cal-hero-head { display: flex; align-items: flex-start; gap: var(--space-l); } /* unused since 2026-11-01, calendar-month */
.cal-hero .day-leaf--hero { margin-block-start: calc(-1 * (var(--space-xl) + var(--space-m))); } /* unused since 2026-11-01, calendar-month */
.cal-hero-id { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; padding-block-start: var(--space-xs); } /* unused since 2026-11-01, calendar-month */
.cal-hero-id .crest { width: 32px; height: 32px; color: var(--color-on-brand); } /* unused since 2026-11-01, calendar-month */
.cal-hero-id .avatar { background: var(--color-on-brand); color: var(--color-surface-brand); } /* unused since 2026-11-01, calendar-month */
.cal-hero-time { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; color: var(--color-on-brand); } /* unused since 2026-11-01, calendar-month */
/* Review round 1: in the hero block the stop names wrap in full, never clamp (home's band keeps its two-line clamp). */
.cal-hero .outing-compact-name { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none; } /* unused since 2026-11-01, calendar-month */
/* Review round 1: vote_setup's day states, scrolled: the top bar keeps its title and wears a 1dp onBrand ghost edge, the content clipping under it. */
.vote-topbar--scrolled { padding-block-end: var(--space-s); box-shadow: inset 0 -1px 0 var(--on-brand-ghost); }
.cal-rows { display: flex; flex-direction: column; gap: var(--space-m); margin-block-start: var(--space-3xl); } /* unused since 2026-11-01, calendar-month */
.cal-row { display: flex; align-items: flex-start; gap: var(--space-l); width: 100%; min-height: 48px; text-align: start; } /* unused since 2026-11-01, calendar-month */
.cal-row-text { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; padding-block-start: var(--space-s); }
.cal-row-head, .cal-past-head { display: flex; align-items: center; gap: var(--space-s); min-width: 0; }
.cal-row-head .crest, .cal-past-head .crest { width: 24px; height: 24px; }
.cal-time { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.cal-places { color: var(--color-ink-muted); }
.cal-past { display: flex; flex: 1; flex-direction: column; gap: var(--space-l); margin-inline: calc(-1 * var(--space-2xl)); margin-block-start: var(--space-2xl); padding: var(--space-l) var(--space-2xl) var(--space-3xl); background: var(--well); box-shadow: var(--well-lip); } /* unused since 2026-11-01, calendar-month */
.cal-past .day-leaf--torn .day-leaf-sheet { background: var(--color-surface-sunken); } /* unused since 2026-11-01, calendar-month */
.cal-past-title { color: var(--color-ink); } /* unused since 2026-11-01, calendar-month */
.cal-past-day { display: flex; align-items: flex-start; gap: var(--space-l); }
.cal-past-entries { display: flex; flex-direction: column; gap: var(--space-s); min-width: 0; padding-block-start: var(--space-xs); }
.cal-past-list { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.cal-past-places { display: flex; flex-wrap: wrap; column-gap: var(--space-m); row-gap: var(--space-xs); } /* unused since 2026-11-01, calendar-month */
.cal-past-place { position: relative; min-height: 24px; max-width: 100%; color: var(--color-ink); font-weight: 500; text-align: start; text-decoration: underline; text-decoration-color: var(--color-outline-strong); text-underline-offset: 3px; } /* each place reads as its own link, no commas */
/* Touch target: the 24dp name gets a 48dp-tall hit area from ::before (12dp above and below). Its width is the name's; names sit 4dp apart so hits never overlap. */
.cal-past-place::before { content: ""; position: absolute; inset: calc(-1 * var(--space-m)) calc(-1 * var(--space-2xs)); }
/* past_only: in the hero's place, the nothing-planned line over Where to?, on Nile 50: a quiet block, no nag. */
.cal-none { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); margin-block-start: var(--space-2xl); padding: var(--space-xl); border-radius: var(--shape-xl); background: var(--color-surface-brand-tint); } /* unused since 2026-11-01, calendar-month */
/* empty: the cut-paper pad on its nail beside a tea glass. */
.cal-empty { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: var(--space-l); padding-block-end: var(--space-3xl); } /* unused since 2026-11-01, calendar-month */
.cal-empty-art { width: 200px; height: 180px; align-self: center; } /* unused since 2026-11-01, calendar-month */
/* 200% text: leaves keep their width and grow in height; the hero's head stacks. */
.font-scale-200 .day-leaf-top, .font-scale-200 .day-leaf-month { font-size: 20px; line-height: 26px; white-space: normal; }
.font-scale-200 .day-leaf { --leaf-w: 112px; }
.font-scale-200 .day-leaf--hero { --leaf-w: 136px; }
.font-scale-200 .day-leaf--hero .day-leaf-top { font-size: 24px; line-height: 32px; }
.font-scale-200 .cal-hero-head { flex-direction: column; } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-row, .font-scale-200 .cal-past-day { flex-direction: column; gap: var(--space-m); }
/* outing's top band: the outing's small leaf after Back (its time under it), Change the day under the list name. */
.outing-day { display: flex; flex: none; flex-direction: column; align-items: center; gap: var(--space-xs); margin-block-start: var(--space-xs); }
.outing-day-time { color: var(--color-on-brand); font-variant-numeric: tabular-nums; }
.outing-change-day { min-height: 40px; padding-inline: var(--space-m); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-on-brand-line); }
.outing-top .outing-change-day { position: relative; }
.outing-top .outing-change-day::before { content: ""; position: absolute; inset-block: -4px; inset-inline: 0; }
.font-scale-200 .outing-top { flex-wrap: wrap; }
.font-scale-200 .outing-top-title { order: 3; flex-basis: 100%; padding-inline: var(--space-m); }
/* home's outing band: the outing's small leaf at the band's start (its time under it), the label and the line beside it. */
.outing-band:has(.outing-band-day) { flex-direction: row; align-items: flex-start; gap: var(--space-l); }
.outing-band-day { display: flex; flex: none; flex-direction: column; align-items: center; gap: var(--space-xs); }
.outing-band-time { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.outing-band-body { display: flex; flex: 1; flex-direction: column; gap: var(--space-m); min-width: 0; }
/* place_detail#outing_pick: the list's outings, nearest first, each a row leaf with its time and stops; the stop it would become at the end edge.
   An outing that already holds the place is inert: its leaf in the well's tone and the reason under its stops. */
.outing-pick-rows { display: flex; flex-direction: column; gap: var(--space-xs); padding-block: var(--space-s); }
.outing-pick-row { display: flex; align-items: flex-start; gap: var(--space-l); width: 100%; min-height: 48px; padding: var(--space-s); border-radius: var(--shape-card); text-align: start; }
.outing-pick-row .cal-row-text { flex: 1; }
.outing-pick-row--inert .cal-time, .outing-pick-row--inert .cal-places { color: var(--color-ink-subtle); }
.outing-pick-reason { display: inline-flex; align-items: center; gap: var(--space-xs); margin-block-start: var(--space-2xs); color: var(--color-ink-muted); }
.outing-pick-next { display: inline-flex; align-self: center; align-items: center; gap: var(--space-xs); color: var(--color-primary); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 28px; }
/* On the brand surface (vote setup) a strip's leaves wait in the on-brand fill, and the chosen ones light up in Limestone with the check:
   Saffron stays on Start the vote. A leaf past the fourth is inert at 40%. */
.day-strip-on-brand .day-leaf--on-brand .day-leaf-sheet { background: var(--color-on-brand-fill); color: var(--color-on-brand); }
.day-strip-on-brand .day-leaf--on-brand .day-leaf-month { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.day-strip-on-brand .day-leaf--chosen .day-leaf-sheet { background: var(--limestone-50); color: var(--color-ink); }
.day-strip-on-brand .day-leaf--chosen .day-leaf-month { color: var(--color-ink-muted); }
.day-strip-on-brand .day-leaf-badge { --badge-ring: var(--limestone-50); background: var(--color-surface-brand); }
.day-leaf-btn[aria-disabled="true"] { opacity: 0.4; }
.vote-setup-day .day-strip { margin-block-start: var(--space-xs); }
/* vote#one_day: the vote's one day, read-only, its leaf beside the turnout. vote#result_*: the winning day's leaf beside its votes and what it became. */
.vote-one-day { display: flex; justify-content: flex-start; margin-block-end: var(--space-l); }
.vote-result-day { display: flex; align-items: center; gap: var(--space-l); }
.vote-result-day .vote-day { padding: var(--space-2xs); }
.vote-result-day-text { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; color: var(--color-on-brand); }
.vote-result-day-text .vote-note { margin: 0; }

/* outing-calendar (P0-14), critique round 1. */
/* Fix 1 and the references: the calendar's row and past leaves at 72dp with a displayLarge (40) numeral, one date column read before
   the names, 24dp between rows. At 200% every leaf numeral scales with its type (hero 56 to 112, rows 40 to 80, small 20 to 40,
   plain 28 to 56) and the leaves widen to hold it; the hero's stops run as a column so a name never breaks inside a word. */
.cal-row .day-leaf, .cal-past-day .day-leaf { --leaf-w: 72px; }
.cal-row .day-leaf-num, .cal-past-day .day-leaf-num { font-weight: 700; font-size: 40px; line-height: 44px; }
.cal-rows { gap: var(--space-2xl); } /* unused since 2026-11-01, calendar-month */
/* 16 Oct 2026 refinement. Dates read downwards: when the asking row's day comes before the hero's, it leads (.cal-rows--lead) and the
   hero's hung leaf (it rises xl + m = 32 above the block) keeps 24 clear of it. */
.cal-rows--lead { margin-block-start: var(--space-xl); } /* unused since 2026-11-01, calendar-month */
.cal-rows--lead + .cal-hero { margin-block-start: calc(var(--space-xl) + var(--space-m) + var(--space-2xl)); } /* unused since 2026-11-01, calendar-month */
/* Every upcoming row leads with where: the stops in order, titleMedium ink, joined by the widget's arrow (widget_stops_sep's glyph);
   under them the crest, the list and the time, as .cal-row--place. */
.cal-row .cal-places { color: var(--color-ink); } /* unused since 2026-11-01, calendar-month */
.cal-row .cal-stop { white-space: nowrap; } /* a stop breaks between stops, never inside one, its arrow leading the line it wraps to */ /* unused since 2026-11-01, calendar-month */
.cal-row .cal-places > bdi { white-space: nowrap; } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-row .cal-stop, .font-scale-200 .cal-row .cal-places > bdi { white-space: normal; } /* unused since 2026-11-01, calendar-month */
.cal-stop-sep { font-weight: 400; color: var(--color-ink-muted); } /* unused since 2026-11-01, calendar-month */
/* Choose a day at the top bar's end, today's 24dp leaf before it: the way to plan a day further out without guessing at the asking row. */
.cal-top-choose { margin-inline: auto calc(-1 * var(--space-s)); } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-top { flex-wrap: wrap; } /* unused since 2026-11-01, calendar-month */
/* The single-outing hero: the crest over the list name, then the time, one start edge, so "Thursday crew" holds one line. */
.cal-hero-id > .row { flex-direction: column; align-items: flex-start; } /* unused since 2026-11-01, calendar-month */
.cal-hero-id .type-titleLarge { text-wrap: balance; } /* unused since 2026-11-01, calendar-month */
/* Today's ended leaf in Past days takes the well's tone like its neighbours: no live band. */
.cal-past .day-leaf--ending .day-leaf-band { display: none; } /* unused since 2026-11-01, calendar-month */
.cal-past .day-leaf--ending .day-leaf-sheet { margin-block-start: 0; background: var(--color-surface-sunken); } /* unused since 2026-11-01, calendar-month */
/* Past days breathe: 20 between days, so a two-list day never runs into the next date. */
.cal-past { gap: var(--space-xl); } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .day-leaf-num { font-size: 56px; line-height: 64px; }
.font-scale-200 .day-leaf--sm .day-leaf-num { font-size: 40px; line-height: 48px; }
.font-scale-200 .day-leaf--hero { --leaf-w: 176px; }
.font-scale-200 .day-leaf--hero .day-leaf-num, .font-scale-200 .day-leaf--hero .day-leaf-num:lang(ar) { font-size: 112px; line-height: 112px; }
.font-scale-200 .cal-row .day-leaf, .font-scale-200 .cal-past-day .day-leaf { --leaf-w: 136px; }
.font-scale-200 .cal-row .day-leaf-num, .font-scale-200 .cal-past-day .day-leaf-num { font-size: 80px; line-height: 88px; }
.font-scale-200 .cal-hero .outing-line-compact { flex-direction: column; gap: var(--space-l); } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-hero .outing-line-compact > li { flex-direction: row; align-items: center; gap: var(--space-m); } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-hero .outing-line-compact > li:not(:last-child)::before { inset-block-start: 20px; inset-inline-start: calc(20px - var(--rail-compact) / 2); width: var(--rail-compact); height: calc(100% + var(--space-l)); } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-hero .outing-compact-name { overflow-wrap: normal; } /* unused since 2026-11-01, calendar-month */
/* Fix 5: Past days end after the last torn leaf; the pad's quiet form (a small blank leaf on its nail, the empty state's pad) closes the column. */
.cal-pad-end { display: block; width: 56px; height: auto; flex: none; margin-block-start: auto; margin-inline-start: var(--space-s); } /* the pad's end at the foot of Past days, inside the well: no bare Limestone strip under it */ /* unused since 2026-11-01, calendar-month */
/* Fix 7: the empty state on one start axis; the art's pad lines up with the title's first letter, and mirrors in Arabic. */
.cal-empty { align-items: flex-start; } /* unused since 2026-11-01, calendar-month */
.cal-empty-art { align-self: flex-start; margin-inline-start: -30px; } /* unused since 2026-11-01, calendar-month */
[dir="rtl"] .cal-empty-art { transform: scaleX(-1); } /* unused since 2026-11-01, calendar-month */
/* Motion: the empty art is the calendar-empty-pad Lottie's poster; the Arabic poster is drawn mirrored, so it is not flipped again. */
[dir="rtl"] img.cal-empty-art { transform: none; } /* unused since 2026-11-01, calendar-month */
/* Fix 2: confirm_sheet#another_day: no day yet, so the headline leaf is a hollow well (outlineStrong band, the well's tone, no lines). */
.day-leaf--blank .day-leaf-band { background: var(--color-outline-strong); }
.day-leaf--blank .day-leaf-sheet { background: var(--well); box-shadow: var(--well-lip); color: transparent; }
/* Fix 3: the vote's days get their own zone: a surfaceBrandRaised band at the frame's foot, the leaves spread between the 24dp
   margins, a count seat under each (a short onBrand line until the viewer has voted on the day, then the digit). */
.vote-days-band { margin-inline: calc(-1 * var(--space-2xl)); margin-block-end: calc(-1 * var(--space-2xl)); padding: var(--space-l) var(--space-2xl) var(--space-2xl); background: var(--color-surface-brand-raised); gap: var(--space-m); }
.vote-days-band .vote-days { justify-content: space-between; gap: 0; }
.vote-days-band .vote-days-2 { justify-content: space-around; }
.vote-days-band .vote-day { min-width: 88px; }
.vote-days-band .vote-day .day-leaf { --leaf-w: 72px; }
.vote-days-band .day-leaf--on-brand .day-leaf-band { background: var(--color-surface-brand); }
.vote-days-band .or-disc { box-shadow: 0 0 0 4px var(--color-surface-brand-raised); }
.vote-day-count--seat { position: relative; display: block; width: 100%; height: 32px; }
.vote-day-count--seat::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline: 0; margin-inline: auto; width: var(--space-l); height: 3px; border-radius: var(--shape-full); background: var(--color-on-brand-line); }
/* Fix 4: outing's top band in two rows: Back and End, then the leaf at the start with the title, the list name, and the time and
   Change the day on one baseline beside it. */
.outing-top:has(.outing-day) { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "back . end" "day title title"; column-gap: var(--space-l); row-gap: var(--space-xs); }
.outing-top:has(.outing-day) > .icon-btn:first-child { grid-area: back; }
.outing-top:has(.outing-day) > .outing-day { grid-area: day; justify-self: start; margin: 0; margin-inline-start: var(--space-m); }
.outing-top:has(.outing-day) > .outing-top-title { grid-area: title; padding-block-start: 0; }
.outing-top:has(.outing-day) > .btn-text:last-child { grid-area: end; }
.outing-when { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-m); margin-block-start: var(--space-xs); }
.outing-when .outing-day-time { font-variant-numeric: tabular-nums; }
.outing-when .outing-change-day { min-height: 40px; margin-inline: 0; padding-inline: 0; }
.font-scale-200 .outing-top:has(.outing-day) { grid-template-areas: "back . end" "day day day" "title title title"; }
.font-scale-200 .outing-top:has(.outing-day) > .outing-top-title { order: 0; padding-inline: var(--space-m); }
.outing-top:has(.outing-day) > .icon-btn:first-child, .outing-top:has(.outing-day) > .btn-text:last-child { align-self: center; }

/* ---- calendar-main (P0-14 amended, concept B "Thursday, where?", direction b "the question at the leaf's height"), feature-scoped ----
   .topbar-cal: home's way in, today's 24dp .day-leaf--glyph in a 48dp .icon-btn at the end of the pill's line; the switcher grows so
   the leaf sits on the Group info button's axis. Never a badge, dot, ring or count on it.
   .cal-today: the Today block (a .cal-hero) holding today's choices (.cal-choice, each its own 48dp button) beside the hung leaf, and
   today's outing (.cal-today-outing) on the block's raised foot, so "chosen today" and "planned today" differ by surface alone.
   .cal-row--ask: the asking row, the nearest free day's row leaf and the logo's pin question mark (.cal-ask-mark) at the row's
   trailing end, 40dp, after the day's words ("Nothing planned yet" over "Choose a place for it"), on bare Limestone. .cal-row--place: a single planned place, its name the headline, no rail.
   .choose-day-*: the day chooser sheet. .cal-takeoff-*: the take-off sheet (no tear line: a taken-off plan never was). */
/* .topbar-cal moved to "Shared, adopted 17 Oct 2026" below (p-calmain-1). */
.cal-today { gap: var(--space-m); } /* unused since 2026-11-01, calendar-month */
.cal-today + .cal-vh + .cal-rows { margin-block-start: var(--space-2xl); } /* 24dp to the asking row, so the column's single place clears the 800dp fold */ /* unused since 2026-11-01, calendar-month */
.cal-today-choices { display: flex; flex: 1; flex-direction: column; gap: var(--space-s); min-width: 0; }
.cal-choice { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2xs); min-height: 48px; text-align: start; color: var(--color-on-brand); }
.cal-choice { padding: var(--space-xs) var(--space-s); border-radius: var(--shape-m); background: var(--color-on-brand-fill); } /* each choice its own card, the place first; the foot keeps the raised surface, so chosen and planned still differ by surface */
.cal-choice-list { display: flex; align-items: center; gap: var(--space-s); color: var(--color-on-brand); }
.cal-choice-list .crest { width: 20px; height: 20px; flex: none; color: var(--color-on-brand); }
.cal-choice-list .avatar { width: 20px; height: 20px; flex: none; font-size: 11px; background: var(--color-on-brand); color: var(--color-surface-brand); }
.cal-choice-place { font-family: var(--font-text); font-weight: 600; font-size: 16px; line-height: 24px; }
.font-scale-200 .cal-choice-place { font-size: 32px; line-height: 40px; overflow-wrap: anywhere; } /* calendar#large_text: the place scales with its list line, so the place stays the headline */
.font-scale-200 .cal-choice-place:lang(ar) { line-height: 52px; }
.font-scale-200 .cal-choice-list { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); } /* the crest over its text at 200% (F168) */
.font-scale-200 .cal-choice-list .crest, .font-scale-200 .cal-choice-list .avatar { width: 28px; height: 28px; }
.font-scale-200 .cal-choice-list .avatar { font-size: 14px; }
.cal-today-outing { display: flex; flex-direction: column; gap: var(--space-s); margin-inline: calc(-1 * var(--space-xl)); margin-block-end: calc(-1 * var(--space-xl)); padding: var(--space-s) var(--space-xl) var(--space-m); border-end-start-radius: var(--shape-xl); border-end-end-radius: var(--shape-xl); background: var(--color-surface-brand-raised); color: var(--color-on-brand); text-align: start; } /* unused since 2026-11-01, calendar-month */
.cal-today-outing-head { display: flex; align-items: center; gap: var(--space-s); } /* unused since 2026-11-01, calendar-month */
.cal-today-outing-head .crest { width: 20px; height: 20px; color: var(--color-on-brand); } /* unused since 2026-11-01, calendar-month */
.cal-today-outing:focus-visible, .cal-choice:focus-visible { outline: 2px solid var(--color-on-brand); outline-offset: 2px; }
.cal-row--ask { align-items: center; --leaf-w: 72px; } /* unused since 2026-11-01, calendar-month */
.cal-ask-slot { display: flex; align-items: center; } /* unused since 2026-11-01, calendar-month */
.cal-ask-words { display: flex; flex: 1; flex-direction: column; gap: var(--space-2xs); min-width: 0; text-align: start; color: var(--color-ink); } /* revised 17 Oct 2026: the free day says what tapping does (calendar_ask_title over calendar_ask_action); the mark is its small trailing accent, never the row's only content */ /* unused since 2026-11-01, calendar-month */
.cal-ask-action { color: var(--color-primary); } /* unused since 2026-11-01, calendar-month */
.cal-ask-mark { display: block; width: auto; height: 40px; } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-ask-mark { height: 72px; } /* unused since 2026-11-01, calendar-month */
.font-scale-200 .cal-row--ask { flex-direction: row; align-items: center; --leaf-w: 136px; } /* unused since 2026-11-01, calendar-month */
.cal-row--place .cal-place-name { color: var(--color-ink); } /* unused since 2026-11-01, calendar-month */
.cal-place-list { color: var(--color-ink-muted); flex-wrap: wrap; } /* unused since 2026-11-01, calendar-month */
.cal-place-list .crest { width: 20px; height: 20px; } /* unused since 2026-11-01, calendar-month */
.cal-place-list .avatar { width: 20px; height: 20px; font-size: 11px; } /* unused since 2026-11-01, calendar-month */
.choose-day-lists { display: flex; flex-direction: column; gap: var(--space-2xs); margin-inline: calc(-1 * (var(--space-l) + 2px)); }
.choose-day-list { min-height: 48px; text-align: start; }
.choose-day-list .crest { width: 28px; height: 28px; flex: none; }
.choose-day-list .avatar { width: 28px; height: 28px; }
.scrim:has(> .choose-day-sheet), .scrim:has(> .cal-takeoff-sheet) { z-index: 2; } /* over the backdrop's compact stations (z-index 1) */
.choose-day-small { display: flex; flex-direction: column; align-items: flex-start; }
.choose-day-list .avatar { flex: none; }
.choose-day-list .choose-day-check { margin-inline-start: auto; color: var(--color-primary); }
.choose-day-lists-title { color: var(--color-ink); margin-block-start: var(--space-xs); }
.choose-day-sheet .btn-secondary:disabled { background: var(--color-surface-sunken); color: var(--color-ink-subtle); cursor: default; } /* the chooser's action while the list is too small or the day full: on the well, ink-subtle, like .btn-text:disabled */
.cal-takeoff-plan { display: flex; align-items: flex-start; gap: var(--space-l); padding: var(--space-l); border-radius: var(--shape-card); background: var(--color-surface-sunken); }
.cal-takeoff-plan .day-leaf { flex: none; }
.cal-takeoff-what { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; padding-block-start: var(--space-2xs); }
.cal-takeoff-list { display: flex; align-items: center; gap: var(--space-s); color: var(--color-ink-muted); }
.cal-takeoff-list .crest { width: 20px; height: 20px; }
.cal-takeoff-list .avatar { width: 20px; height: 20px; font-size: 11px; }
.cal-takeoff-stops { display: flex; flex-direction: column; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.cal-takeoff-stops .outing-station-compact { width: 20px; height: 20px; font-size: 11px; }
.cal-takeoff-stops li { display: flex; align-items: center; gap: var(--space-s); }
.font-scale-200 .topbar-cal .day-leaf--glyph, .font-scale-200 .cal-top-choose .day-leaf--glyph { --leaf-w: 24px; } /* the way in stays a 24dp glyph at 200%, like the icons beside it */
.font-scale-200 .topbar-cal .day-leaf-num, .font-scale-200 .cal-top-choose .day-leaf-num { font-size: 12px; line-height: 14px; }
.outing-band--place .outing-band-body { justify-content: center; gap: var(--space-xs); } /* home#place_later: a single place as the list's next plan, its name in place of the compact line */
.outing-band-place { color: var(--color-ink); overflow-wrap: anywhere; }
.outing-place-list { display: inline-flex; align-items: center; gap: var(--space-s); } /* outing#place: the list's crest and name under the place's title */
.outing-place-list .crest { width: 20px; height: 20px; color: var(--color-on-brand); }
.outing-place-list .avatar { width: 20px; height: 20px; font-size: 11px; background: var(--color-on-brand); color: var(--color-surface-brand); }
/* .outing-platform--place removed in critique round 1: outing#place no longer draws a line (see .outing-place-* below) */
/* calendar-main, critique round 1 (2026-10-11).
   Fix 1, outing#place (and its take-off backdrops): a single place's own page, no station, rail or capacity rings. The place's name
   is the hero at displayLarge; under the header the confirm sheet's facts line in onBrand (a middle-tier score inverts to the
   surface, as the snackbar does on a brand surface) and Open in Maps (outlined on brand); the raised foot holds one "Then where?"
   well (--well-brand, level -1, the hollow station at its start) over Share. The rail draws in only once stop 2 lands.
   Fix 2: picker#for_day's header gives the 86dp leaf 24dp of air above it. Fix 3: calendar#empty's actions sit in the bottom
   third, the art and words centred in the space above. Fix 4: the chooser's list rows sit on the 24dp margins. */
.outing-place-name { overflow-wrap: anywhere; }
.outing-place-facts { display: flex; flex-direction: column; gap: var(--space-3xl); padding: var(--space-4xl) var(--space-2xl) 0; } /* unused since 2026-11-05, one-place-plan */
.outing-place-stats { display: flex; align-items: center; gap: var(--space-l); margin: 0; color: var(--color-on-brand); }
.outing-place-stat-text { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.outing-place-stats .meta-line { gap: var(--space-m); color: var(--color-on-brand); }
.outing-place-stats .distance { color: var(--color-on-brand); }
.outing-place-score { min-width: 72px; height: 72px; padding: 0 var(--space-m); border-radius: var(--shape-l); font-weight: 700; font-size: 28px; line-height: 36px; } /* the score as a tile, headlineMedium's size */
.outing-place-stats .rating-pill.tier-middle { background: var(--color-surface); color: var(--color-outline-strong); } /* a middle-tier score inverts on the brand surface */
.outing-place-foot { display: flex; flex-direction: column; gap: var(--space-2xl); margin-block-start: auto; padding: var(--space-2xl); border-start-start-radius: var(--shape-2xl); border-start-end-radius: var(--shape-2xl); background: var(--color-surface-brand-raised); color: var(--color-on-brand); }
.outing-place-next { --ring: transparent; display: flex; align-items: center; gap: var(--space-l); min-height: 136px; padding: var(--space-2xl) var(--space-l); border-radius: var(--shape-card); background: var(--well-brand); box-shadow: var(--well-lip); color: var(--color-on-brand); text-align: start; } /* unused since 2026-11-05, one-place-plan */
.outing-place-next:focus-visible { outline: 2px solid var(--color-on-brand); outline-offset: 2px; } /* unused since 2026-11-05, one-place-plan */
.topbar-for-day { padding-block-start: var(--space-2xl); } /* unused since 2026-10-26, the-match */
.cal-empty-actions { margin-block-start: auto; } /* unused since 2026-11-01, calendar-month */
.cal-empty:has(.cal-empty-actions) { justify-content: flex-start; padding-block-end: var(--space-2xl); } /* unused since 2026-11-01, calendar-month */
.cal-empty:has(.cal-empty-actions) > .cal-empty-art { margin-block-start: auto; } /* unused since 2026-11-01, calendar-month */
.cal-empty-actions .day-leaf--glyph { margin-inline-end: var(--space-s); } /* unused since 2026-11-01, calendar-month */
.choose-day-lists { margin-inline: 0; }

/* ===== Calendar widget (P0-13 reworked, 2026-10-12, brain/features/calendar-widget/): concept A "the pad", direction A "the hanging pad".
   The widget is a tear-off pad: the Nile 800 board (.widget-pad on .widget), its top strip the binding with the day word,
   the white top sheet hanging from it (the numeral at the start, the entries beside it), each later day the 36dp edge of a
   sheet under it, 8dp narrower a side and one tonal step deeper, then two blank lips. Flat: depth is tone and overlap only (§5).
   No Saffron except the logo's pin on Signed out. System sans (--widget-font), no motion. Supersedes the pair widget's
   .widget-band/-slab/-field/-new/-progress (marked unused 2026-10-12 at sync); .widget-quiet, .widget-glyph and .widget-quiet-line carry over to Signed out. */
/* §6 the natiga (p-calwidget-1, adopted 17 Oct 2026): on the widget the leaf is the container, the pad, its top sheet and edges. */
.widget-pad { --widget-edge-1: color-mix(in srgb, var(--color-surface-brand) 8%, var(--color-surface));
  --widget-edge-2: color-mix(in srgb, var(--color-surface-brand) 16%, var(--color-surface));
  --widget-lip-1: color-mix(in srgb, var(--color-surface-brand) 26%, var(--color-surface));
  --widget-lip-2: color-mix(in srgb, var(--color-surface-brand) 36%, var(--color-surface));
  --widget-edge-h: 36px; --widget-edge-step: var(--space-s); --widget-sheet-r: calc(var(--widget-radius) - var(--widget-inset));
  gap: 0; border: 0; }
.widget-pad button { font-family: inherit; }
.widget-binding { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--space-s); height: 20px; padding-inline: var(--space-m); color: var(--color-on-brand); } /* fix critique r1: 24 -> 20, the 4 go to the lips */
.widget-binding-day { font-weight: 700; font-size: 16px; line-height: 20px; } /* fix critique r1: titleSmall 16/700, the binding's one voice */
.widget-more { font-weight: 400; font-size: 12px; line-height: 16px; color: var(--color-on-brand); white-space: nowrap; } /* its footnote */
.widget-stack { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.widget-sheet { position: relative; z-index: 3; display: flex; flex: none; align-items: center; gap: var(--space-m); height: 64px; padding-inline: var(--space-s) var(--space-m); border-radius: var(--shape-xs) var(--shape-xs) var(--widget-sheet-r) var(--widget-sheet-r); background: var(--color-surface); color: var(--color-ink); }
.widget-sheet--fill { flex: 1; height: auto; } /* the last page on the pad: no edge, no lips, the sheet runs to the foot */
.widget-sheet--two { flex: 1; height: auto; min-height: 128px; align-items: stretch; } /* two of today's entries */
.widget-sheet--two .widget-sheet-entries { justify-content: center; gap: var(--space-m); } /* fix critique r1: 12 of air between the two, no rule */
.widget-sheet--two .widget-sheet-entry { flex: none; }
.widget-sheet--two .widget-sheet-entry + .widget-sheet-entry .widget-sheet-places { font-weight: 400; } /* the second entry steps back: 15/20 against the first's 15/20 600 */
.widget-sheet-num { display: flex; flex: none; align-items: center; justify-content: center; width: 64px; align-self: stretch; }
.widget-sheet-numeral { font-weight: 700; font-size: 56px; line-height: 56px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.widget-sheet-entries { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.widget-sheet-entry { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: var(--space-2xs); min-width: 0; min-height: 48px; align-self: stretch; color: inherit; text-align: start; }
.widget-sheet-places { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--color-outline-strong); }
.widget-sheet-places:lang(ar) { line-height: 22px; }
.widget-sheet-places--1 { -webkit-line-clamp: 1; }
.widget-sheet-places, .widget-sheet-places bdi { text-wrap: balance; } /* Compose: LineBreak.Heading; no one-word widow */
.widget-sheet-places bdi { white-space: nowrap; } /* a place name breaks between names, never inside one ("Al-|Azhar") */
.widget-sheet-places--1 bdi, .widget-200 .widget-sheet-places bdi { white-space: normal; } /* one line: fill it, then the ellipsis */
.widget-sheet--fill .widget-sheet-places { font-size: 18px; line-height: 24px; }
.widget-sheet--fill .widget-sheet-places:lang(ar) { line-height: 28px; }
.widget-sep { font-weight: 400; color: var(--color-ink-muted); }
.widget-sheet-meta { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--color-ink-muted); white-space: nowrap; }
.widget-sheet-meta:lang(ar) { line-height: 18px; }
.widget-dot { margin-inline: var(--space-2xs); }
.widget-sheet-list { overflow: hidden; text-overflow: ellipsis; }
.widget-pad .widget-mark { width: 16px; height: 16px; flex: none; color: var(--color-outline-strong); --color-accent: var(--nile-400); } /* a crest on paper: Nile, its accent Nile 400, so no Saffron */
.widget-pad .widget-edge .widget-mark.avatar { width: 16px; height: 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-surface-brand); color: var(--color-outline-strong); font-size: 10px; line-height: 16px; } /* fix critique r1: on an edge the initial is an outline at the crest's 16, so it never outweighs the crest */
.widget-pad .widget-mark.avatar { width: 18px; height: 18px; background: var(--color-surface-brand); color: var(--color-on-brand); font-family: inherit; font-size: 11px; line-height: 14px; } /* My places: the person's initial, as the calendar's rows */
.widget-edge { position: relative; display: flex; flex: none; align-items: center; gap: var(--space-s); height: calc(var(--widget-edge-h) + var(--widget-edge-step)); margin-block-start: calc(-1 * var(--widget-edge-step)); padding: var(--widget-edge-step) var(--space-m) 0 var(--space-s); color: var(--color-ink); text-align: start; }
[dir="rtl"] .widget-edge { padding: var(--widget-edge-step) var(--space-s) 0 var(--space-m); }
.widget-edge::after { content: ""; position: absolute; inset: 0 0 calc(-1 * var(--space-xs)); } /* fix r1: 48dp, nothing visible moves. Edge 1's hit is the 8 tucked under the sheet + its 36 strip + 4 into edge 2 (8 + 36 + 4 = 48) */
.widget-pad:has(.widget-edge) .widget-sheet { pointer-events: none; } /* the sheet itself is not a target; its entry is */
.widget-pad:has(.widget-edge) .widget-sheet-entry { pointer-events: auto; align-self: flex-start; height: calc(100% - var(--widget-edge-step)); padding-block-start: var(--widget-edge-step); } /* the entry's box is the sheet's top 56 (its text still centred on the sheet, 8 + 48 / 2 = 32); its last 8 go to edge 1 */
.widget-pad:has(.widget-edge) .widget-sheet-entry > * { flex: none; pointer-events: none; } /* text running past the box does not take the hit back */
.widget-edge--2::after { inset: var(--space-xs) 0 calc(-1 * (var(--space-m) + var(--widget-inset))); } /* edge 2: its 32 below edge 1's hit, then over the lips to the board's foot (32 + 12 + 8 = 52); the lips under an edge are edge 2's, not the pad's */
.widget-edge--2:last-child::after { inset-block-end: calc(-1 * var(--widget-inset)); }
.widget-edge-marks { display: flex; flex: none; gap: var(--space-2xs); } /* a later day holding two entries: both lists' marks side by side */
.widget-edge--1 { z-index: 2; margin-inline: var(--widget-edge-step); border-radius: 0 0 calc(var(--widget-sheet-r) - 2px) calc(var(--widget-sheet-r) - 2px); background: var(--widget-edge-1); }
.widget-edge--2 { z-index: 1; margin-inline: calc(2 * var(--widget-edge-step)); border-radius: 0 0 calc(var(--widget-sheet-r) - 4px) calc(var(--widget-sheet-r) - 4px); background: var(--widget-edge-2); }
.widget-edge-numeral { flex: none; width: 28px; font-weight: 700; font-size: 20px; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.widget-edge-day { flex: none; font-weight: 600; font-size: 13px; line-height: 16px; }
.widget-edge-places { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 16px; }
.widget-edge-places:lang(ar) { line-height: 20px; }
.widget-edge-time { flex: none; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--color-ink-muted); }
.widget-pad-lips { position: relative; z-index: 0; display: flex; flex: none; flex-direction: column; --widget-lip-from: 3; } /* its own stacking layer, so the deeper lip tucks under the first and not under the board */
.widget-pad-lips--near { --widget-lip-from: 1; } /* lips straight under the top sheet (no edge between) */
.widget-lip { display: block; height: 10px; margin-block-start: calc(-1 * var(--space-xs)); margin-inline: calc(var(--widget-lip-from) * var(--widget-edge-step)); border-radius: 0 0 calc(var(--widget-sheet-r) - 6px) calc(var(--widget-sheet-r) - 6px); } /* fix critique r1: 6 visible each (10 tall, 4 tucked under the sheet above), radii nested down the stair: sheet 10, edges 8 / 6, lips 4 / 2 */
.widget-lip--1 { z-index: 0; background: var(--widget-lip-1); }
.widget-lip--2 { z-index: -1; margin-inline: calc((var(--widget-lip-from) + 1) * var(--widget-edge-step)); border-radius: 0 0 calc(var(--widget-sheet-r) - 8px) calc(var(--widget-sheet-r) - 8px); background: var(--widget-lip-2); }
.widget-pad-foot { display: flex; flex: none; flex-direction: column; gap: var(--space-xs); } /* 2x2 and 200%: the lips, then the more line under them on the board */
.widget-pad-foot .widget-more { padding-inline: var(--space-m); }
/* Nothing planned: today's numeral kept, the page's body a well holding the one quiet line. */
.widget-sheet--well { align-items: center; padding-inline: var(--space-l); gap: var(--space-l); } /* fix critique r1: the numeral and the strip share one centre line; the paper above and below is their margin */
.widget-well { display: flex; flex: 1; align-items: center; height: 48px; min-width: 0; padding-inline: var(--space-m); border-radius: var(--widget-sheet-r); background: var(--well); box-shadow: var(--well-lip); font-weight: 500; font-size: 15px; line-height: 20px; color: var(--color-ink); } /* fix critique r1: one 48dp strip on the numeral's centre line, 15/20 ink */
.widget-well:lang(ar) { line-height: 24px; }
/* Signed out: a blank page, no day word and no numeral, the logo glyph at its start (hook Nile, pin Saffron: brand, §1). */
.widget-sheet--blank { gap: var(--space-l); padding-inline: var(--space-xl) var(--space-l); }
.widget-sheet--blank .widget-glyph { width: 57px; height: 96px; color: var(--color-outline-strong); }
.widget-sheet--blank .widget-quiet-line { color: var(--color-outline-strong); }
/* 2x2: the date moves into the page's head row (numeral, then the time); the list on its own line under it; the places under that; the more line under the lips. */
.widget-pad.widget-2x2 .widget-sheet { flex-direction: column; align-items: stretch; gap: var(--space-xs); height: auto; flex: 1; padding: var(--space-xs) var(--space-s); } /* fix r1: 128 wide, so "Sufi Bookstore Café" (125) holds its line whole */
.widget-2x2 .widget-sheet-head { display: flex; align-items: center; gap: var(--space-s); }
.widget-2x2 .widget-sheet-numeral { font-size: 32px; line-height: 32px; } /* fix r1: 32, so the list gets its own line and the places keep three */
.widget-2x2 .widget-sheet-num { width: auto; min-width: 48px; }
.widget-2x2 .widget-sheet-entry { justify-content: flex-start; }
.widget-2x2 .widget-sheet-list { flex: 1 1 0; min-width: 0; } /* fix r1: the list on its own line under the head row, the whole width */
.widget-2x2 .widget-sheet-places { -webkit-line-clamp: 3; font-size: 13px; line-height: 16px; } /* fix r1: names never break (bdi nowrap), so three stops take three lines at 13/16 */
.widget-2x2 .widget-sheet-places:lang(ar) { line-height: 18px; }
.widget-pad.widget-2x2 .widget-sheet { padding-inline: var(--space-s) var(--space-xs); } /* fix critique r1: 132 wide, so "→ Sufi Bookstore Café" (131) holds its line */
.widget-2x2 .widget-sheet-places { display: block; -webkit-line-clamp: none; } /* three lines are three stops (Zooba, then each → stop); the line clamp does not count blocks */
.widget-2x2 .widget-stop { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* fix critique r1: each later stop on its own line, led by its arrow (in Arabic the arrow sits right of the name) */
/* 4x1: the binding (day word, the more line at its end), the top sheet in one row: numeral, the entry on one line. */
/* 16 Oct 2026 refinement. 4x2: the more line leaves the binding for the foot, at the end of the lips it speaks for (the extra pages).
   Edges 36 -> 34 pay for the 16dp foot row (lips 12): 20 + 64 + 34 + 34 + 16 = 168, the board's 184 less its 8 + 8 inset.
   Hits stay 48: edge 1 is 8 under the sheet + 34 + 6 into edge 2; edge 2 is its other 28 + the foot row + the 8 inset (52) on the lips'
   side, and the more line's end of the foot is the pad's, so it opens the calendar. */
.widget-pad:has(.widget-pad-foot--row) { --widget-edge-h: 34px; }
.widget-pad:has(.widget-pad-foot--row) .widget-edge--1::after { inset-block-end: -6px; }
.widget-pad:has(.widget-pad-foot--row) .widget-edge--2::after { inset-block-end: calc(-1 * (16px + var(--widget-inset))); inset-inline-end: 144px; }
.widget-pad-foot--row { flex-direction: row; align-items: flex-start; gap: var(--space-s); height: 16px; }
.widget-pad-foot--row .widget-pad-lips { flex: 1; min-width: 0; }
.widget-pad-foot--row .widget-more { flex: none; padding-inline: 0 var(--space-m); }
/* §8 Empty states on the widget (p-calwidget-2, adopted 17 Oct 2026): Nothing planned below; Signed out is .widget-sheet--blank above. */
/* empty: the numeral column carries its month, and Nothing planned is calm type on the sheet past a hairline, not a field. */
.widget-sheet--well .widget-sheet-num { flex-direction: column; gap: var(--space-2xs); }
.widget-sheet-month { font-weight: 500; font-size: 13px; line-height: 16px; color: var(--color-ink-muted); }
.widget-sheet-month:lang(ar) { line-height: 20px; }
.widget-sheet--well .widget-well { height: auto; min-height: 48px; padding-inline: var(--space-l) 0; border-radius: 0; background: none; box-shadow: none; border-inline-start: 1px solid var(--color-outline); }
/* 2x2: 12 both sides; each stop on its own line at the start edge, no leading arrow (the stack is the route, as the hero's line),
   so "Sufi Bookstore Café" (115) holds its line in 120 and no line runs into the end edge. */
.widget-pad.widget-2x2 .widget-sheet { padding-inline: var(--space-m); }
.widget-2x2 .widget-sheet-places > bdi, .widget-2x2 .widget-stop { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-pad.widget-4x1 { flex-direction: column; }
.widget-pad.widget-4x1 .widget-binding { height: 20px; padding-block-end: 0; }
.widget-4x1 .widget-sheet { flex: 1; height: auto; }
.widget-4x1 .widget-sheet-num { width: 56px; }
.widget-4x1 .widget-sheet-numeral { font-size: 40px; line-height: 40px; }
/* 200%: every text node doubled (the numeral stays at 56, a drawn mark like the leaf's); the top entry only, lips and the more line under. */
.widget-pad.widget-200 { padding-block-end: var(--space-xs); } /* fix critique r1: 4 of the foot inset go to the air above the more line */
.widget-pad.widget-200 .widget-binding { height: 28px; } /* fix critique r1: 32 -> 28, the 4 go to the air above the more line */
.widget-200 .widget-binding-day { font-size: 28px; line-height: 28px; }
.widget-200 .widget-sheet { height: auto; } /* fix r1: a taller sheet, the meta wrapping (time, then crest + list) */
.widget-200 .widget-sheet-meta { flex-wrap: wrap; row-gap: 0; }
.widget-200 .widget-sheet-meta .widget-dot { display: none; }
.widget-200 [data-node="widget_sheet_time"] { flex-basis: 100%; }
.widget-200 .widget-sheet-list { flex: 1 1 0; min-width: 0; }
.widget-200 .widget-sheet-places { -webkit-line-clamp: 1; font-size: 30px; line-height: 36px; }
.widget-200 .widget-sheet-places:lang(ar) { line-height: 40px; }
.widget-200 .widget-sheet-meta { column-gap: var(--space-s); /* fix critique r1: column only, so the wrapped meta keeps row-gap 0 */ font-size: 24px; line-height: 28px; }
.widget-200 .widget-sheet-meta:lang(ar) { line-height: 30px; }
.widget-200 .widget-sheet-entry { gap: 0; }
.widget-200 .widget-pad-foot { gap: var(--space-xs); } /* fix critique r1: 8 + 28 + 100 + 12 lips + 4 + 28 + 4 = 184 in Arabic; the more line's own leading makes the 4 read as 8 */
.widget-200 .widget-mark { width: 28px; height: 28px; }
.widget-200 .widget-more { font-size: 24px; line-height: 28px; }

/* .sheet--brand and its grabber moved to "Shared, adopted 17 Oct 2026" below (p-invite-1). */
/* Feedback invitation (2026-10-14, feedback-prompt): concept A "the missing pin", direction a "crown"
   (brain/features/feedback-prompt/concept.md, direction.md). .sheet--brand is a bottom sheet on surfaceBrand
   (System proposal, §8 brand sheet): same shape and padding as .sheet, grabber onBrand 30%, text onBrand, its text
   button restated onBrand at (0,3,0) so `.on-brand .sheet .btn-text` (primary, gone on Nile 800) never wins.
   .feedback-invite lays the invitation out on it: the feedback page's mark in its waiting pose (.feedback-mark, no pin)
   at two-thirds size crowning the ask's trailing corner, the ask, the line, Tell us over Not now. */
.nav-gesture--on-brand { z-index: 1; }
.nav-gesture--on-brand::before { background: var(--color-on-brand); }
.feedback-invite-head { display: flex; flex-direction: column; padding-block: var(--space-s) var(--space-3xl); }
.feedback-invite-mark { width: 64px; height: 107px; margin-block: 0 var(--space-l); } /* 64/95 of the page's glyph, same viewBox: the hand-off is one scale */
[dir="rtl"] .feedback-invite-mark { margin-inline-end: 3.5px; } /* critique fix: mirrored about the stem (translate(460 0), as the page), the bowl runs 24.9 viewBox units (3.5dp at 64/460) past the box, and .sheet-scroll's overflow crops it; the margin lands the bowl's outer edge on the 24dp line */
.feedback-invite-title { margin-block-end: var(--space-m); font-weight: 700; color: var(--color-on-brand); text-wrap: balance; }
.feedback-invite-line { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.feedback-invite-answers { display: flex; flex: none; flex-direction: column; gap: var(--space-xs); }
.feedback-invite-answers .btn { width: 100%; }
/* 200%: the mark is not drawn (as the page, fontScale ≥ 1.5); the ask and the line scroll under the grabber, the answers stay pinned at the foot. */
.font-scale-200 .feedback-invite-mark { display: none; }
.font-scale-200 .feedback-invite .sheet-scroll { flex: 1; gap: 0; mask-image: linear-gradient(to top, transparent, black var(--space-2xl)); }
.font-scale-200 .feedback-invite-head { padding-block: 0 var(--space-2xl); }
.font-scale-200 .feedback-invite-answers { padding-block-start: var(--space-s); }
.font-scale-200 .feedback-invite .type-bodyLarge { font-size: 32px; line-height: 48px; }
.font-scale-200 .feedback-invite .type-bodyLarge:lang(ar) { line-height: 52px; }
/* 200%: the ask steps down to headlineSmall at 200% (48/64, AR 76), as .sheet .type-headlineSmall does, so ask and line both sit above the pinned answers and the 32dp fade falls on the head's bottom padding, never on a glyph. */
.font-scale-200 .feedback-invite-title { font-size: 48px; line-height: 64px; }
.font-scale-200 .feedback-invite-title:lang(ar) { line-height: 76px; }

/* ---- A person's take (rich-review, 15 Oct 2026, P0-4, concept B "the group's word", direction c "Number and word") ---- */
/* Place detail: one Nile 50 zone under the brand header holds the place's number (the score tiles, their 1dp edge
   dropped on the tint; your own keeps its 2dp primary edge) and its word (the Good for run). The What was off well
   straddles the zone's foot: the tint stops 44dp above the zone's end, so the well sits half on Nile 50, half on
   Limestone. The screen steps Nile 800 → Nile 50 → Limestone: the place, its word, what people wrote.
   .take-zone--flush: no well (only Good for, or a take with no off labels), the tint runs to the foot. */
/* .take-zone moved to "Shared, adopted 17 Oct 2026" below (p-take-4). */
/* The Good for run: each label and its count one unbreakable unit, two steps only: --top (headlineMedium, the highest
   count and ties) and the default (titleMedium). The count is an Alexandria 700 numeral in primary on the word's
   baseline; in Arabic it sits at the word's left in Western digits (a <bdi dir="ltr">). Size ranks labels, never people. */
.take-tally { display: flex; flex-direction: column; gap: var(--space-s); color: var(--color-ink); }
.take-tally-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
.take-run { margin: 0; }
.take-tally-word { display: inline-block; white-space: nowrap; margin-inline-end: var(--space-l); font-family: var(--font-text); font-weight: 600; font-size: 16px; line-height: 32px; }
.take-tally-word:lang(ar) { line-height: 36px; }
.take-tally-n { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
.take-tally-word--top { font-family: var(--font-display); font-size: 28px; line-height: 40px; letter-spacing: -0.01em; }
.take-tally-word--top:lang(ar) { line-height: 48px; letter-spacing: 0; }
/* What was off: the same run one step quieter (top titleLarge, the rest bodyLarge), numerals in ink, in a well at
   shape.card with its 1.5dp lip. */
.take-tally-off { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-l) var(--space-xl); border-radius: var(--shape-card); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink); }
.take-tally-off .take-tally-word { font-weight: 400; line-height: 28px; }
.take-tally-off .take-tally-word:lang(ar) { line-height: 32px; }
.take-tally-off .take-tally-word--top { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.take-tally-off .take-tally-n { color: var(--color-ink); }
/* Your take / a friend's take: one person's labels carry no count, so they are words at one size (titleLarge), joined
   by a primary middle dot, Good for on the zone and What was off in the well. */
.take-own-word { display: inline-block; white-space: nowrap; margin-inline-end: var(--space-l); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 32px; letter-spacing: -0.01em; }
.take-own-word:lang(ar) { line-height: 36px; letter-spacing: 0; }
.take-tally-off .take-own-word { font-weight: 500; font-size: 18px; line-height: 28px; }
/* What members wrote: one block, no card per member; 24dp between members, 4dp inside one. The 30dp avatar and the
   name as on the score tiles, the What to order line in titleMedium, the note in bodyMedium in full (never "Read
   more"), both set on the name's start edge (avatar 30 + gap 8). A member with no score reads the same. */
.take-lines { display: flex; flex-direction: column; gap: var(--space-2xl); }
.take-line { display: flex; flex-direction: column; gap: var(--space-xs); }
.take-line-who { display: flex; align-items: center; gap: var(--space-s); margin-block-end: var(--space-2xs); }
.take-line > .type-titleMedium, .take-line > .type-bodyMedium { padding-inline-start: 38px; color: var(--color-ink); }
.take-line--own > .type-titleMedium, .take-line--own > .type-bodyMedium { padding-inline-start: 0; }
.take-own-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
/* The rating sheet: a label chip is a well until picked (not yet yours); picked Good for fills surfaceBrand with
   onBrand text, picked What was off fills Limestone 200 (the low band's own fill) with ink text, both with the 20dp
   check, so Saffron stays on Save rating. Suggest a label stays .chip-add, its plus glyph telling it apart. */
.take-set { display: flex; flex-direction: column; gap: var(--space-m); }
.take-chips { display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-s); }
/* .chip-take and the take sheet's .chip-add moved to "Shared, adopted 17 Oct 2026" below (p-take-1). */
/* suggest_category#label_open: the label suggestion's field is the well the "Suggest a label" chip was, pill-shaped with its plus;
   focused, a 2dp primary ring inside the lip. Built for the §8 Dialogs System proposal (design-notes, "A person's take"). */
.take-suggest-field { border: 0; border-radius: var(--shape-full); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-muted); }
.take-suggest-field.field-focused { border: 0; box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-primary); color: var(--color-ink); }
.take-suggest-field > .icon { color: var(--color-ink-muted); }
/* unused since 2026-10-17, sync (p-take-5 declined): the three .take-suggest-field rules above. label_open's field is now today's
   add-chip form as a field: surface, 1dp outlineControl edge, pill, the plus at its start; focused, .field-focused's 2dp primary edge. */
.field-pill { border-radius: var(--shape-full); }
.field-pill > .icon { color: var(--color-ink-muted); }
.take-field-note { display: flex; justify-content: flex-end; }
/* 200% (place_detail#take_large_text): each set becomes one label per line, its count at the end, still two steps. */
.font-scale-200 .take-tally-word, .font-scale-200 .take-own-word { display: block; white-space: normal; margin-inline-end: 0; font-size: 32px; line-height: 48px; }
.font-scale-200 .take-tally-word:lang(ar), .font-scale-200 .take-own-word:lang(ar) { line-height: 52px; }
.font-scale-200 .take-tally-word--top { font-size: 48px; line-height: 64px; } /* headlineMedium at 200% steps to 48, as .connection-notice does, so the top label and its count hold one line at 360dp */
.font-scale-200 .take-tally-word--top:lang(ar) { line-height: 76px; }
.font-scale-200 .take-tally-off .take-tally-word--top { font-size: 40px; line-height: 52px; }
.font-scale-200 .take-tally-off .take-tally-word--top:lang(ar) { line-height: 64px; }
.font-scale-200 .take-tally-head { flex-direction: column; gap: 0; }
.font-scale-200 :is(.take-tally, .take-tally-off, .take-own-head) .type-labelLarge { font-size: 30px; line-height: 40px; }
.font-scale-200 :is(.take-tally, .take-tally-off, .take-own-head) .type-labelLarge:lang(ar) { line-height: 44px; }
.font-scale-200 .take-line .type-titleSmall { font-size: 28px; line-height: 40px; }
.font-scale-200 .take-line .type-titleSmall:lang(ar) { line-height: 44px; }
.font-scale-200 .take-line > .type-titleMedium, .font-scale-200 .take-line > .type-bodyMedium { padding-inline-start: 0; }
/* rich-review, review round 1: at 200% the outing's station glyph keeps the 8dp gap the icons get (it is not an .icon), and the place's name breaks inside the margin instead of running past it. */
.font-scale-200 .btn > .station-glyph { display: inline-flex; vertical-align: middle; margin-inline: var(--space-s); }
.font-scale-200[data-screen="place_detail"][data-state="take_large_text"] .brand-title { font-size: 52px; line-height: 64px; overflow-wrap: break-word; } /* Android 14 scales large text non-linearly: 34sp at 200% lands near 52sp, so "Mariouteya" fits whole; break-word only past that */
.font-scale-200[data-screen="place_detail"][data-state="take_large_text"] .brand-title:lang(ar) { line-height: 80px; }

/* ---- Shared, adopted 17 Oct 2026 (/sync-design): the calendar, the feedback invitation, a person's take, the time picker ------- */
/* Moved here unchanged (same selectors and values), each block later in the file than before, with no rule in between on the same
   elements and properties: the cascade is as it was. The hour rail stays in its own block below, now shared too (p-timepicker-1..3); .day-leaf--glyph (p-calmain-2)
   and .day-leaf--on-brand (p-calmain-4) stay where they are, commented, for the cascade. */
/* §8 Top app bar (home): "at the end of the pill's line … today's leaf (24dp, the real numeral) in a 48dp target, the calendar's way in;
   it never carries a badge, dot, ring or count" (p-calmain-1). The switcher grows so the leaf sits on the Group info button's axis. */
.topbar-row > .switcher-hit { flex: 1 1 auto; }
.topbar-cal { flex: none; margin-inline: calc(-1 * var(--space-m)); }
/* §8 Bottom sheets, the brand sheet: "surfaceBrand at the same shape and padding, its grabber onBrand 30%, … its text button onBrand"
   (p-invite-1; §5 level 3, p-invite-2). The text button is restated at (0,3,0) so `.on-brand .sheet .btn-text` never wins. */
.sheet--brand { gap: 0; padding-block-end: calc(24px + var(--space-l)); background: var(--color-surface-brand); color: var(--color-on-brand); } /* 24 = the gesture bar, drawn over the sheet */
.sheet--brand-grab { display: flex; align-self: center; align-items: center; justify-content: center; width: 64px; height: 48px; flex: none; } /* 48dp hit round the 40×4 grabber; tapping it is Not now */
.sheet--brand .sheet-grabber { margin: 0; background: color-mix(in srgb, var(--color-on-brand) 30%, transparent); }
.sheet.sheet--brand .btn-text { color: var(--color-on-brand); }
/* §5 Elevation, level 0: the Nile 50 band "also place detail's Good for tally, with the What was off well directly under it" (p-take-4).
   .take-zone--flush: no well (only Good for, or a take with no off labels), the tint runs to the foot. */
.take-zone { display: flex; flex-direction: column; gap: var(--space-2xl); margin-inline: calc(-1 * var(--space-2xl)); margin-block-start: calc(-1 * var(--space-2xl)); padding: var(--space-2xl) var(--space-2xl) 0; background: linear-gradient(to bottom, var(--color-surface-brand-tint) calc(100% - 44px), transparent calc(100% - 44px)); }
.take-zone--flush { padding-block-end: var(--space-2xl); background: var(--color-surface-brand-tint); }
.take-zone .score-tile:not(.score-own):not(.score-tile-avg), .take-zone .score-row:not(.score-own) { border-color: transparent; }
/* §8 Chips: "a take's label chip is a well until picked; picked Good for fills surfaceBrand with onBrand text, picked What was off
   fills Limestone 200 with ink text, both with the check, so Saffron stays on Save" (p-take-1, the §5 level −1 exception). */
.chip-take, .take-chips .chip-add { position: relative; height: 36px; padding-inline: var(--space-m); border-width: 0; }
.chip-take::after, .take-chips .chip-add::after { content: ""; position: absolute; inset: -6px 0; } /* 48dp tall hit area, the visual stays 36dp (§8) */
.chip-take { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink); }
.take-chips .chip-add .icon { margin-inline-start: calc(-1 * var(--space-2xs)); }
.chip-take--good { padding-inline-start: var(--space-s); background: var(--color-surface-brand); box-shadow: none; color: var(--color-on-brand); }
.chip-take--off { padding-inline-start: var(--space-s); background: var(--color-surface-sunken); box-shadow: none; color: var(--color-ink); }
.chip-take--off .icon { color: var(--color-ink); } /* critique round 2 withdrew round 1's ink edge: Limestone 200 + the full-ink check, as concept.md says */
/* §4 Typography, Numbers, units and bidirectional text: "Facts inside a sentence (a member, a group, a day, a time) take the heavier
   weight, same colour, in a Unicode isolate: Plex 600 in body, Alexandria 700 in a headline" (p-notif-3); "In an Arabic headline that
   carries facts, the connecting words drop to Alexandria 400 and the facts stay at 700" (p-notif-4). §8 Group crests and §8 Bottom
   sheets: the notifications ask's brand sheet, the crest untilted at 48dp at the headline's start, its answers on one tonal step
   (surfaceBrandRaised) bled to the foot (p-notif-1, p-notif-2). Moved unchanged from the Notifications block (17 Oct 2026). */
.fact { font-weight: 700; unicode-bidi: isolate; }
:is(.type-bodyMedium, .type-bodyLarge, .type-bodySmall) .fact { font-weight: 600; }
/* notif_ask: the brand sheet led by the group's crest (48dp, onBrand body, untilted) over a headline in Alexandria 500 with its
   facts at 700; the answers sit on one tonal step (surfaceBrandRaised, Nile 700) bled to the sheet's sides and foot. */
.sheet-ask { padding-block-end: 0; }
.sheet-ask-head { display: flex; flex-direction: column; align-items: flex-start; padding-block: var(--space-s) var(--space-2xl); }
.sheet-ask-crest { width: 64px; height: 64px; margin-block-end: var(--space-s); margin-inline-start: -13px; color: var(--color-on-brand); } /* fix r1: the crest's drawing spans 28×33 of its 48 viewBox, so a 64dp box draws it ~44dp tall; -13 (10/48 of 64) puts the drawing on the headline's start edge, and its 7dp of empty foot plus 8 makes the 16dp gap */
.sheet-ask-headline { font-weight: 500; color: var(--color-on-brand); text-wrap: pretty; }
.sheet-ask-headline:lang(ar):has(.fact) { font-weight: 400; } /* p-notif-4: the connecting words at Alexandria 400, .fact keeps 700 */
.sheet-ask-body { margin-block-start: var(--space-m); color: color-mix(in srgb, var(--color-on-brand) 90%, transparent); text-wrap: pretty; }
.sheet-ask-foot { display: flex; flex-direction: column; flex: none; gap: var(--space-xs); margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-2xl) var(--space-2xl) calc(24px + var(--space-l)); background: var(--color-surface-brand-raised); }
.sheet-ask-foot .btn { width: 100%; }
.sheet-ask .sheet-scroll { gap: 0; }
/* 200%: the head scrolls under the grabber with a 32dp fade, the foot and both answers pinned; the headline steps to 48/64 as the feedback invitation's does. */
.font-scale-200 .sheet-ask { max-height: calc(100% - var(--space-4xl)); }
.font-scale-200 .sheet-ask .sheet-scroll { flex: 1; mask-image: linear-gradient(to top, transparent, black var(--space-2xl)); }
.font-scale-200 .sheet-ask-headline { font-size: 40px; line-height: 52px; } /* fix r1: Android 14's non-linear scaling grows 28sp to about 40sp at 200%, so the whole body sits above the foot */
.font-scale-200 .sheet-ask-headline:lang(ar) { line-height: 64px; }
.font-scale-200 .sheet-ask-foot { padding-block-start: var(--space-l); }

/* ---- calendar-time-picker (added 17 Oct 2026; shared, adopted 17 Oct 2026: §5 Shape, §5 level −1, §8 Hour rail) ---------------------------------------------------------------
   The hour rail (brain/features/calendar-time-picker/, concept A "the evening, to scale", direction b "the tape").
   [Geometry superseded 9 Nov 2026 by p-oneplace-5's nine equal columns, below.] The six offered hours 2 · 5 · 7 · 8 · 9 · 10 pm as bare Alexandria numerals in 48dp columns; the skipped hours
   3, 4 and 6 as 16dp sunk notches (--rail-notch = space.l), so the gap after 2 is two hours wide and 7 to 10 sit
   shoulder to shoulder. The well bleeds to the sheet's edges, a second recess under the day strip's; the run of
   columns is inset --rail-pad (space.m) each side, so 12 + 6 x 48 + 3 x 16 + 12 = 360, equal air at both ends
   (critique r1; superseded 9 Nov 2026 by p-oneplace-5's nine equal columns, below). The chosen hour rises 8dp out of the band
   (--rail-rise = space.s) as a Saffron tab, shape.m top corners, ink numeral. The block sits rail-rise below the
   strip's 12dp gap, so the tab keeps 12 clear of the strip. The slim form (No time, or a time already set) is the
   same full-bleed tape at 56dp under its words: ticks at the open rail's exact column centres, 12dp in --rail-tick
   (outline-strong), the skipped hours as the same sunk notches, so opening reads as the tape growing taller. Other time swaps the rail for
   a quarter-hour ruler in the same well (12dp a quarter, 48 an hour: the rail's column). Today's past: numerals in
   ink-subtle at 400, inert; the now line 2dp surfaceBrand, crossing the rail's top edge so it never reads as a tick. */
/* §8 Hour rail (p-timepicker-3): six offered hours to scale in a full-bleed well under the day strip. */
/* p-oneplace-5 (§8 Hour rail, adopted 9 Nov 2026, drawn by /sync-design 2026-11-09): every hour 2 to 10, labelled or notch, one
   equal column: 12 + 9 x 37.3 + 12 = 360, so the rail stays the whole evening to scale at a glance (no scroll, no hour dropped).
   The column is under 48dp, so each offered hour's hit extends to 48dp centred on its column (::after below), as Compose's
   minimumInteractiveComponentSize does: the notches are inert, so only the run 7 to 10 overlaps, by about 5dp a side, the
   centres 37dp apart; a tap goes to the nearer centre. The numeral, the chosen tab and the well keep the column's width.
   --rail-col and --rail-notch are unused since 2026-11-09, p-oneplace-5 (kept, not deleted); on a wider phone every column grows alike. */
.hour-rail-block, .hour-rail-slim { --rail-col: 48px; --rail-notch: var(--space-l); --rail-pad: var(--space-m); --rail-rise: var(--space-s); --rail-h: 64px; --rail-tick: var(--color-outline-strong);
  --rail-cols: repeat(9, minmax(0, 1fr)); }
.hour-rail-hour::after { content: ""; position: absolute; inset-block: 0; inset-inline: min(0px, calc((100% - 48px) / 2)); } /* the 48dp hit (p-oneplace-5) */
.hour-rail-block { display: flex; flex-direction: column; margin-inline: calc(-1 * var(--space-2xl)); padding-block-start: var(--rail-rise); }
.hour-rail { position: relative; display: grid; padding-inline: var(--rail-pad); grid-template-columns: var(--rail-cols); grid-template-rows: var(--rail-h); background: var(--well); box-shadow: var(--well-lip); }
/* §5 Shape, the exception (p-timepicker-1): bare numerals in the well, the chosen one a Saffron tab with shape.m top corners. */
.hour-rail-hour { position: relative; display: flex; align-self: end; align-items: center; justify-content: center; height: var(--rail-h); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; color: var(--color-ink); } /* headlineSmall since p-oneplace-5: a tabular "10" at 28 filled the 37dp column */
.hour-rail-hour--chosen { height: calc(var(--rail-h) + var(--rail-rise)); padding-block-end: var(--rail-rise); border-radius: var(--shape-m) var(--shape-m) 0 0; background: var(--color-accent); color: var(--color-on-accent); }
.hour-rail-hour--past, .hour-rail-hour:disabled { font-weight: 400; color: var(--color-ink-subtle); opacity: 1; }
/* §5 Elevation, level −1 (p-timepicker-2): the rail, its slim form and the ruler are wells; offered hours stay tappable. */
.hour-rail-notch { position: relative; background: var(--color-surface-sunken); box-shadow: var(--well-lip); }
.hour-rail-now { position: absolute; inset-block: calc(-1 * var(--rail-rise)) 0; width: 2px; border-radius: 1px 1px 0 0; background: var(--color-surface-brand); }
.hour-rail-notch .hour-rail-now { inset-inline-start: calc(50% - 1px); }
.hour-rail > .hour-rail-now { inset-inline-end: calc((var(--rail-pad) - 2px) / 2); } /* none left: centred in the 12dp after the 10 (critique r1) */
.hour-rail-labels { display: grid; grid-template-columns: var(--rail-cols); padding-block-start: var(--space-s); padding-inline: var(--rail-pad); }
.hour-rail-label { position: relative; padding-block-start: var(--space-s); color: var(--color-ink-muted); text-align: center; }
.hour-rail-label::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: var(--space-l); height: 2px; border-radius: 1px; background: var(--color-outline); }
.hour-rail-label--afternoon { grid-column: 1 / 5; }
.hour-rail-label--night { grid-column: 6 / 10; }
.hour-rail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-inline: var(--space-m); }
.hour-rail-actions .btn-text:only-child { margin-inline-end: auto; }
.hour-rail-block .hour-rail-actions .hour-rail-other { color: var(--color-ink); }
.hour-rail-block .hour-rail-actions .hour-rail-other .icon { color: var(--color-ink-muted); }
.hour-rail-block > .day-line { padding: var(--space-m) var(--space-2xl) 0; }
/* The slim form: the words (or the set time) on the sheet, the tape under them bleeding edge to edge; the whole block
   one target that opens the rail. Clear sits on the readout's line at the end edge, outside the open button. */
.hour-rail-slim { position: relative; margin-inline: calc(-1 * var(--space-2xl)); }
.hour-rail-slim-open { display: flex; flex-direction: column; gap: var(--space-s); width: 100%; min-height: 48px; padding: 0; text-align: start; }
.hour-rail-slim-open > :not(.hour-rail-ticks) { min-height: 36px; margin-inline: var(--space-2xl); }
.hour-rail-slim-words { display: flex; align-items: center; gap: var(--space-m); color: var(--color-ink-muted); }
.hour-rail-slim > .btn-text { position: absolute; inset-block-start: calc(-1 * var(--space-2xs)); inset-inline-end: var(--space-m); }
.hour-rail-optional { color: var(--color-ink-subtle); }
.hour-rail-ticks { display: grid; grid-template-columns: var(--rail-cols); align-items: center; height: 56px; padding-inline: var(--rail-pad); background: var(--well); box-shadow: var(--well-lip); }
.hour-rail-ticks > .hour-rail-notch { align-self: stretch; }
/* unused since 2026-11-04, /sync-design c-rail-hours (the slim rail prints .month-rail-hour) */
.hour-rail-tick { justify-self: center; width: 2px; height: var(--space-m); border-radius: 1px; background: var(--rail-tick); }
/* unused since 2026-11-04, /sync-design c-rail-hours (a set hour is .month-rail-hour--set) */
.hour-rail-tick--set { width: 4px; height: var(--space-l); border-radius: 2px; background: var(--color-accent); }
/* The set time: the numeral at headlineMedium, am/pm (ص / م) at bodyMedium on its baseline, after it in reading order. */
/* §8 Hour rail: a set time as the numeral at headlineMedium, am/pm small. */
.time-readout { display: inline-flex; align-items: baseline; gap: var(--space-xs); color: var(--color-ink); }
.time-readout-meridiem { color: var(--color-ink-muted); }
/* The quarter-hour ruler, in the rail's well: minus 15 and plus 15 at its ends (the whole control for TalkBack and 200%),
   ticks hanging from the top, taller and labelled on the hour, one fixed surfaceBrand index; the value above it. */
.time-ruler-value { display: flex; justify-content: center; padding-block-end: var(--space-s); }
.time-ruler { display: flex; height: var(--rail-h); background: var(--well); box-shadow: var(--well-lip); }
.time-ruler-step { display: flex; flex: none; align-items: center; justify-content: center; width: 48px; color: var(--color-ink); }
.time-ruler-scale { position: relative; display: flex; flex: 1; min-width: 0; overflow: hidden; }
.time-ruler-tick { position: relative; flex: none; width: var(--space-m); }
.time-ruler-tick::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: -1px; width: 2px; height: var(--space-m); border-radius: 0 0 1px 1px; background: var(--color-outline-control); }
.time-ruler-tick--hour::before { height: var(--space-xl); background: var(--color-outline-strong); }
.time-ruler-label { position: absolute; inset-block-start: var(--space-2xl); inset-inline-start: calc(-1 * var(--space-m)); width: var(--space-2xl); font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; color: var(--color-ink-muted); text-align: center; }
.time-ruler-index { position: absolute; inset-block: 0; inset-inline-start: calc(50% - 1.5px); width: 3px; background: var(--color-surface-brand); }
/* 200%: the rail breaks at its seam, afternoon (2, 5 and the 6 notch) above night (7 to 10), each row its own well
   and label; 80dp columns hold the 48sp numerals; the actions take a line each. */
.font-scale-200 .hour-rail-block { --rail-col: 80px; --rail-h: 80px; gap: var(--space-s); }
.font-scale-200 .hour-rail-hour { font-size: 48px; line-height: 56px; }
.font-scale-200 .hour-rail-label { font-size: 26px; line-height: 32px; }
.font-scale-200 .hour-rail-label:lang(ar) { line-height: 36px; }
/* p-oneplace-5 at 200%: both rows share five equal columns (2 to 6 above, 7 to 10 below, the night's fifth left as bare well), so
   an hour is the same width in either row: (360 - 24) / 5 = 67dp, over 48 with no extended hit. */
.hour-rail--afternoon, .hour-rail--night { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hour-rail-labels.hour-rail--night .hour-rail-label--night { grid-column: 1 / 5; }
.font-scale-200 .hour-rail-labels { padding-block-start: 0; }
.font-scale-200 .hour-rail-actions { flex-direction: column; align-items: flex-start; }
.sheet-scroll--end { justify-content: flex-end; margin-inline: calc(-1 * var(--space-2xl)); padding-inline: var(--space-2xl); } /* ponytail: a static render of a sheet scrolled to its foot; the scroll area spans the sheet so the wells still bleed */
/* The vote's turnout (revised 17 Oct 2026, a human-craft pass): the bar and its 3/5 sit 24dp under the top bar, the
   vote's head, not floated over a 160dp void; the blocks keep the thumb zone, and the leftover falls between the two. */
[data-screen="vote"] .vote-turnout-wrap { display: flex; flex-direction: column; padding-block: var(--space-2xl) var(--space-l); }
[data-screen="vote"] .vote-turnout-wrap + * { margin-block-start: auto; }
/* With the mark at 72dp the writing well takes the room the watermark held (revised 17 Oct 2026): the block fills the body
   above (or below) the other question, so the page has no dead band over Send and the answer gets the space. */
[data-screen="feedback"]:not(.font-scale-200) .feedback-spot:not(.feedback-spot--sent) { flex: 1 1 auto; }
[data-screen="feedback"]:not(.font-scale-200) .feedback-spot:not(.feedback-spot--sent) .feedback-well { flex: 1 1 auto; }
/* The first-run tray's istikana (onboarding_add_places, drawn in-house 17 Oct 2026, replacing the LottieFiles cup): at 3 of
   3 its steam rises, three wisps drifting up and fading on a 2.4s loop; still at rest under reduced motion. */
.tray-steam { animation: tray-steam 2.4s var(--easing-standard) infinite; }
@keyframes tray-steam { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: 0; transform: translateY(-6px); } 51% { opacity: 0; transform: translateY(6px); } } /* frame 0 is the rest pose, so a still shows the steam */
@media (prefers-reduced-motion: reduce) { .tray-steam { animation: none; } }
/* The sign's brackets (city_view#no_city, revised 17 Oct 2026): two Nile 800 scroll arms and a collar where the post meets
   the plate, as a Cairo يافطة hangs, so the blank plate reads as a sign on its post, not a box on a pole. */
.city-sign-post { position: relative; }
.city-sign-bracket { position: absolute; inset-block-start: calc(var(--space-2xl) - var(--space-2xs)); inset-inline-start: 50%; width: 120px; height: 44px; transform: translateX(-50%); overflow: visible; fill: none; stroke: var(--color-surface-brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .city-sign-bracket { transform: translateX(50%); }

/* Notifications (2026-10-17, brain/features/notifications/, concept A "the message is the type", direction B "the tonal foot").
   .fact and the ask's brand sheet (.sheet-ask*) moved to the shared section above (p-notif-1..4); what stays here is notification-only. */
/* notifications: the two kinds in one level-1 block, 12dp apart with no divider; the groups as crest rows on the background;
   the system-off band on Nile 50 holding the page's one Saffron action. */
.notif-page { display: flex; flex: 1; flex-direction: column; padding-block: var(--space-s) var(--space-2xl); }
.notif-kinds { display: flex; flex-direction: column; gap: var(--space-m); margin-block-start: var(--space-l); padding: var(--space-m) 0; border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); }
.notif-kinds .switch-row { padding: var(--space-s) var(--space-l); text-align: start; }
.notif-kinds .switch-row + .switch-row, .notif-groups .switch-row + .switch-row { border-block-start: 0; }
.notif-row-text { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; flex: 1; }
.notif-row-sample { color: var(--color-ink-muted); text-wrap: pretty; }
.switch-row:disabled .notif-row-sample { color: var(--color-ink-subtle); }
.notif-kind-action { align-self: flex-start; margin-block-start: calc(-1 * var(--space-m)); margin-inline-start: calc(var(--space-l) - var(--space-m)); }
.notif-groups-heading { margin-block-start: var(--space-3xl); color: var(--color-ink-muted); }
.notif-groups { display: flex; flex-direction: column; margin-block-start: var(--space-s); margin-inline: calc(-1 * var(--space-l)); }
.notif-groups .switch-row { min-height: 56px; padding: var(--space-xs) var(--space-l); border-radius: var(--shape-card); text-align: start; }
.notif-group-name { display: flex; align-items: center; gap: var(--space-m); min-width: 0; flex: 1; }
.switch-row:disabled .crest { --color-accent: var(--color-on-brand); }
.notif-no-groups { display: flex; align-items: center; min-height: 72px; margin-block-start: var(--space-m); padding: var(--space-l); border-radius: var(--shape-card); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-muted); text-wrap: pretty; } /* the empty slot where the groups will sit: a well, as empty things are */
.notif-since { text-wrap: pretty; } /* the "changed since" line (F197): in the content, on the screen's own surface, at rest */
.cal-screen > .notif-since { margin-block: var(--space-m) var(--space-s); } /* unused since 2026-11-01, calendar-month */
.outing-top:has(.outing-since) { grid-template-areas: "back . end" "since since since" "day title title"; row-gap: var(--space-s); }
.outing-since { grid-area: since; padding-inline: var(--space-m); margin-block-end: var(--space-s); } /* fix r1: at the top of the content under the bar, as vote#closed_since and calendar#taken_off_since */
.notif-band { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-l); margin-block-start: var(--space-l); padding: var(--space-l); border-radius: var(--shape-card); background: var(--color-surface-brand-tint); }
.notif-group-name .type-titleMedium { min-width: 0; overflow-wrap: anywhere; }
.notif-group-text { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.notif-group-status { color: var(--color-ink-muted); }
.switch-row:disabled .notif-group-status { color: var(--color-ink-subtle); }
.notif-groups-line { margin-block-start: var(--space-xs); color: var(--color-ink-muted); }
.notif-sample-lead { font-weight: 400; opacity: 0.86; } /* the example's quiet lead-in, /amend notif-examples */
.notif-crest-face { width: 32px; height: 32px; box-shadow: none; }
.notif-crest-face .crest { width: 32px; height: 32px; }
.switch-row:disabled .notif-crest-face { background: var(--color-ink-subtle); }
.font-scale-200 .notif-crest-face, .font-scale-200 .notif-crest-face .crest { width: 48px; height: 48px; }
/* fix r1: an inert switch is the well, on or off: no outline, the same muted thumb */
.notif-page .switch-row:disabled .switch, .notif-page .switch-row:disabled .switch:not(.switch-on) { background: var(--well); box-shadow: var(--well-lip); }
.notif-page .switch-row:disabled .switch .switch-knob { background: var(--color-outline-control); }
.font-scale-200 .notif-page .icon-btn { width: 64px; height: 64px; }
.font-scale-200 .notif-page .icon-btn .icon { font-size: 40px; }
.font-scale-200 .notif-page .type-headlineSmall { font-size: 40px; line-height: 52px; } /* the shared 200% rules stop at titleMedium; 24sp grows to about 40sp under non-linear scaling */
.font-scale-200 .notif-page .type-headlineSmall:lang(ar) { line-height: 64px; }
.font-scale-200 .notif-page > .row:first-child { flex-wrap: wrap; } /* fix r1: the title takes its own line under Back and wraps there, never truncates */
.font-scale-200 .notif-page > .row:first-child > h1 { flex-basis: 100%; margin-inline-start: var(--space-m); }
.font-scale-200 .notif-page .type-titleSmall { font-size: 28px; line-height: 40px; }
.font-scale-200 .notif-page .type-titleSmall:lang(ar) { line-height: 44px; }
/* notif_shade: Android's own template on the lock screen, outside the app (system sans, never Alexandria or Plex). Feen's part:
   the small icon (the monochrome glyph in a Nile disc, the accent colour), the title (the group), the text, the crest as the large icon. */
.shade-clock { padding-block: var(--space-2xl) var(--space-xs); padding-inline: var(--space-s); font: 400 64px/72px var(--widget-font); color: var(--limestone-850); }
.shade-stack { display: flex; flex-direction: column; gap: var(--space-xs); }
.shade-msg { display: flex; align-items: flex-start; gap: var(--space-m); padding: var(--space-l); border-radius: var(--shape-xl); background: color-mix(in srgb, var(--limestone-0) 90%, transparent); color: var(--limestone-850); font-family: var(--widget-font); }
.shade-msg:first-child { border-start-start-radius: var(--shape-2xl); border-start-end-radius: var(--shape-2xl); }
.shade-msg-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: var(--shape-full); background: var(--color-primary); color: var(--color-on-primary); }
.shade-msg-icon svg { width: 20px; height: 20px; }
.shade-msg-body { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; flex: 1; }
.shade-msg-app { font: 400 12px/16px var(--widget-font); color: var(--limestone-600); }
.shade-msg-title { font: 500 15px/20px var(--widget-font); color: var(--limestone-900); }
.shade-msg-text { font: 400 14px/20px var(--widget-font); text-wrap: pretty; }
.shade-msg .crest-face { box-shadow: none; }

/* City map (added 2026-10-19, brain/features/city-map/, concept A "the sign is planted where you tap"). The map is north-up and
   never mirrored: anything pinned to a coordinate (.map-at) is placed by --x/--y, the coordinate's projection, with physical
   left/top; only the chrome around it mirrors. Map colours are the concept's names as aliases of tokens: water is Nile 100
   (Nile 50 on Limestone 50 measured 1.05:1, the river vanished), and cities holding places are Nile 100 at 45%, drawn
   only below street zoom (13), where the river would share their tint. The tapped city is Nile 800 at 12% (critique r1:
   30% read as a disabled slab); its 1.5dp Nile 800 edge is the selection cue, the streets stay white over it. */
.map-screen { --map-land: var(--limestone-50); --map-water: var(--nile-100); --map-road: var(--color-surface); --map-city-has: color-mix(in srgb, var(--nile-100) 45%, transparent); --map-sign-halo: var(--color-background); height: 800px; }
.map-canvas { position: absolute; inset: 0; }
.map-basemap { display: block; width: 360px; height: 800px; direction: ltr; }
.map-at { position: absolute; left: var(--x); top: var(--y); }
/* .map-sign: the planted Yafta. The foot is the logo pin's tip on the coordinate, the post rises from it, the collar is the
   no-city sign's bracket, and the plate (a medium .city-plate) sits centred over the post, sliding along its bar to 16dp from
   either screen edge while the post stays put. A 2dp background halo holds it on busy streets. Long names wrap; it grows up. */
.map-sign { --post: 40px; --collar-w: 84px; --collar-h: 31px; z-index: 2; width: 0; height: 0; }
.map-sign--here { --post: 72px; }
.map-sign--here .map-sign-foot { display: none; } /* at the person, the dot is the foot: no pin tip under it (critique r1 #4) */
.map-sign-foot { position: absolute; left: -10px; top: -21.7px; width: 20px; height: 22.6px; overflow: visible; fill: var(--color-surface-brand); stroke: var(--map-sign-halo); stroke-width: 46; paint-order: stroke; }
.map-sign-post { position: absolute; left: -3px; bottom: 12px; width: 6px; height: calc(var(--post) + var(--space-l)); border-radius: var(--shape-full) var(--shape-full) 0 0; background: var(--color-surface-brand); box-shadow: 0 0 0 2px var(--map-sign-halo); }
.map-sign-collar { position: absolute; left: calc(var(--collar-w) / -2); bottom: calc(var(--post) + 22px - var(--collar-h) + 2px); width: var(--collar-w); height: var(--collar-h); overflow: visible; fill: none; stroke: var(--color-surface-brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map-sign-collar-halo { stroke: var(--map-sign-halo); stroke-width: 9; }
.map-sign-halo { display: none; }
.map-sign-plate { position: absolute; left: 0; bottom: calc(var(--post) + 22px); width: max-content; min-width: 128px; max-width: 200px; gap: var(--space-xs); padding: var(--space-l) var(--space-xl) var(--space-m); box-shadow: 0 0 0 2px var(--map-sign-halo);
  translate: clamp(calc(var(--space-l) - var(--x)), -50%, calc(360px - var(--space-l) - var(--x) - 100%)) 0; }
.map-sign-plate .city-plate-name { overflow-wrap: normal; }
.map-sign-edge { color: color-mix(in srgb, var(--color-on-brand) 80%, var(--color-surface-brand)); font-family: var(--font-text); font-weight: 400; }
.map-sign--empty .map-sign-plate { min-width: 136px; box-shadow: var(--well-lip), 0 0 0 1px var(--limestone-300), 0 0 0 3px var(--map-sign-halo); } /* the live plate's twin: its edge drawn, the same halo */
/* the here line: a Nile 600 tag (the small plate's on-brand form) beside the post at the collar's height, never across it */
.map-sign-here { position: absolute; left: calc(var(--collar-w) / 2 + var(--space-xs)); bottom: calc(var(--post) - var(--space-xs)); padding: 0 var(--space-s); border-radius: var(--shape-full); background: var(--nile-600); color: var(--color-on-brand); white-space: nowrap; box-shadow: 0 0 0 2px var(--map-sign-halo); }
/* .map-pin: a place as a rating pill in its band fill with a pin-tip foot; unrated, a hollow dot; a 48dp hit round each */
.map-pin { z-index: 1; min-width: 36px; height: 24px; padding: 0 var(--space-s); border: 0; translate: -50% calc(-100% - 6px); border-radius: var(--shape-full); background: var(--color-surface-brand); color: var(--color-on-brand); box-shadow: 0 0 0 2px var(--map-sign-halo); font: 600 13px/24px var(--font-display); text-align: center; font-variant-numeric: tabular-nums; }
.map-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 6px; translate: -50% -1px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.map-pin::before, .map-cluster::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 48px; height: 48px; translate: -50% -50%; }
.map-pin--high { background: var(--color-accent); color: var(--color-on-accent); }
.map-pin--unrated { min-width: 0; width: 14px; height: 14px; padding: 0; translate: -50% -50%; background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--color-primary), 0 0 0 2px var(--map-sign-halo); }
.map-pin--unrated::after { content: none; }
.map-pin--selected { z-index: 2; min-width: 48px; height: 32px; padding: 0 var(--space-m); font-size: 16px; line-height: 32px; box-shadow: 0 0 0 2px var(--map-sign-halo), 0 0 0 4px var(--color-surface-brand); }
.map-pin--selected::after { width: 14px; height: 8px; }
.map-cluster { z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; translate: -50% -50%; border-radius: var(--shape-full); background: var(--color-surface-brand); color: var(--color-on-brand); box-shadow: 0 0 0 2px var(--map-sign-halo), 0 0 0 6px var(--nile-200); font: 700 16px/36px var(--font-display); }
/* the person: a Nile 600 dot ringed in surface, inside a quiet accuracy disc */
.map-dot { z-index: 3; width: 16px; height: 16px; translate: -50% -50%; border-radius: var(--shape-full); background: var(--color-primary); box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 20px color-mix(in srgb, var(--color-primary) 22%, transparent); }
/* ---- Shared, adopted 11 Nov 2026 (/sync-design): the city map's labels at country scale. The Design System's §8 City map
   labels (p-egypt-3): a city holding the viewer's places is named in Alexandria 700 on one of three steps by its count
   (1-4 titleMedium, 5-19 titleLarge, 20+ displayLarge 40), the count on the same baseline at the same size in inkMuted,
   haloed in the background; never dropped. Every other city is its outline and a 4dp Nile 300 dot, named on zoom in
   bodySmall (.map-label--quiet). Moved here from "Cities for all of Egypt" below, selectors and values unchanged. ---- */
.map-label { position: absolute; z-index: 1; margin: 0; white-space: nowrap; pointer-events: none; paint-order: stroke fill; -webkit-text-stroke: 4px var(--color-background); }
.map-label--yours { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); }
.map-label--yours:lang(ar) { letter-spacing: 0; }
.map-label--s1 { font-size: 16px; line-height: 24px; }
.map-label--s2 { font-size: 20px; line-height: 26px; }
.map-label--s3 { font-size: 40px; line-height: 44px; } /* displayLarge since critique r1 (p-egypt-3) */
.map-label--s3:lang(ar) { line-height: 52px; }
.map-label-name { color: inherit; } /* the name: TalkBack reads the label whole (role img); a layer for Figma */
.map-label-count { color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }
.map-label--quiet { color: var(--color-ink-muted); -webkit-text-stroke-width: 3px; }
.map-dot--quiet { fill: var(--nile-300); }
/* chrome: Back and locate as 48dp surface discs with a 1dp outline; the status line beside Back; the credits one line */
.map-top { position: absolute; z-index: 3; inset-block-start: var(--space-l); inset-inline: var(--space-l); display: flex; align-items: center; gap: var(--space-m); }
.map-fab { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--color-outline); border-radius: var(--shape-full); background: var(--color-surface); color: var(--color-ink); }
.map-status { align-self: center; color: var(--color-ink); }
.map-live { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.map-dock { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: 0; display: flex; flex-direction: column; }
.map-tools { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-m); padding: 0 var(--space-l) var(--space-s); }
[dir="rtl"] .map-tools { flex-direction: row; justify-content: space-between; } /* locate stays at the right, in the thumb; the credits go to the end */
.map-credits { position: relative; padding: var(--space-2xs) var(--space-s); border-radius: var(--shape-xs); background: var(--color-background); color: var(--color-ink-muted); text-decoration: none; direction: ltr; }
.map-credits::before { content: ""; position: absolute; inset: calc(-1 * var(--space-m)) 0; }
/* .map-panel: the fixed answer, surface at shape.2xl top corners, no grabber: it never drags */
.map-panel { display: flex; flex-direction: column; gap: var(--space-2xl); padding: var(--space-2xl) var(--space-2xl) calc(24px + var(--space-xl)); border-radius: var(--shape-2xl) var(--shape-2xl) 0 0; background: var(--color-surface); }
.map-panel-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-l); }
.map-panel-city { display: flex; align-items: center; gap: var(--space-l); min-width: 0; }
.map-panel-plate { flex: none; }
.map-panel-text { display: flex; flex-direction: column; gap: var(--space-s); }
.map-count { margin: 0; }
.map-tally { justify-content: flex-start; gap: var(--space-m); } /* the faces 12dp after the label, as the tally's faces */
.map-count-wait { width: 96px; height: 28px; border-radius: var(--shape-s); background: var(--well); box-shadow: var(--well-lip); }
.map-faces { display: flex; flex: none; }
.map-faces .crest-face { box-shadow: 0 0 0 3px var(--color-surface); }
.map-faces .crest-face + .crest-face { margin-inline-start: calc(-1 * var(--space-s)); }
.map-open { white-space: normal; text-align: center; }
.map-hint { display: flex; align-items: center; gap: var(--space-s); margin: calc(-1 * var(--space-s)) 0 0; }
.map-hint--lead { margin: 0; color: var(--color-ink); }
.map-hint--lead .icon { color: var(--color-outline-strong); }
.map-none { margin: 0; color: var(--color-ink); }
.map-outside-in { display: flex; align-items: center; gap: var(--space-xs); margin: 0 0 calc(-1 * var(--space-l)); color: var(--color-outline-strong); }
.map-place { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-l); align-items: start; }
.map-place-text { display: flex; flex-direction: column; gap: var(--space-xs); }
.map-place-score { display: flex; flex-direction: column; align-items: flex-end; }
.map-place-num { font-size: 34px; line-height: 40px; }
.map-rows { display: flex; flex-direction: column; margin-block: calc(-1 * var(--space-l)) calc(-1 * var(--space-s)); }
.map-row { display: flex; align-items: center; gap: var(--space-m); min-height: 64px; padding: var(--space-s) 0; border: 0; background: none; color: var(--color-ink); font: inherit; text-align: start; }
.map-row + .map-row { border-block-start: 1px solid var(--color-outline); }
.map-row-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.map-row .city-score { font-size: 20px; line-height: 28px; }
.font-scale-200 .map-sign-plate { max-width: 280px; }
.map-screen.font-scale-200 .type-displayLarge { font-size: 64px; line-height: 80px; } /* nonlinear: 40sp grows ~1.6x at 200%; scoped to the map (sync 2026-10-19: unscoped, it grew confirm_sheet and home's 200% boards) */
.font-scale-200 .map-credits { font-size: calc(11px * 1.3); line-height: 20px; background: none; text-shadow: 0 0 2px var(--color-background), 0 0 2px var(--color-background); } /* labelSmall capped at 1.3x, no backing block */
.font-scale-200[dir="rtl"] .map-tools { flex-direction: column; align-items: flex-start; } /* at 200% the credits wrap: locate stacks above them, at the right, as in English */
.font-scale-200 .map-panel { max-height: 330px; overflow: hidden; }
.map-sign-plate:not(:has(.city-plate-rule)) { padding-block: var(--space-l); } /* one line: the district is the city's own name */
/* #load_failed: the shared error snackbar sits in the dock above locate and the credits, inset as the panel's content */
.map-snack { padding: 0 var(--space-l) var(--space-m); }
.map-snack-retry { min-height: 48px; margin-block: calc(-1 * var(--space-m)); margin-inline-end: calc(-1 * var(--space-s)); padding: 0 var(--space-s); border: 0; background: none; color: inherit; }
/* map_credits (utility): a top bar, the title at headlineMedium over one line, then the four sources in one surface block,
   each a 48dp+ row that opens the source's page. */
.credits-page { display: flex; flex: 1; flex-direction: column; padding-block: var(--space-s) var(--space-4xl); }
.credits-bar { display: flex; align-items: center; min-height: 48px; margin-inline-start: calc(-1 * var(--space-m)); }
.credits-head { display: flex; flex-direction: column; gap: var(--space-m); margin-block: var(--space-2xl) var(--space-3xl); }
.credits-list { display: flex; flex-direction: column; padding-inline: var(--space-xl); border-radius: var(--shape-card); background: var(--color-surface); }
.credits-entry { display: flex; align-items: center; gap: var(--space-l); min-height: 88px; padding-block: var(--space-l); color: var(--color-ink); text-decoration: none; }
.credits-entry + .credits-entry { border-block-start: 1px solid var(--color-outline); }
.credits-entry-text { display: flex; flex: 1; flex-direction: column; gap: var(--space-2xs); min-width: 0; }

/* Design System §7 Loader, §8 Avatars, §8 Offline pill, §8 Group cover (p-media-1 to 5, approved 29 Oct 2026) */
/* ---- Media pipeline (media-pipeline, 22 Oct 2026; concept A "the ring tells you", direction B "Portrait") ------------
   System proposals in design-notes.md (media pipeline): §8 Avatars (a photo inside a ring in the member colour), §7 Loader
   (an upload's wait sits on the slot's own edge), §8 Offline pill (its dot in the edge's gap), §8 Group cover (the edge
   carries the state until the cover reaches the group). A picture slot is the photo inset 2dp inside its edge (a ring when
   round, a square edge for a cover); while it uploads the edge opens a gap at its foot's centre holding the .loader
   (.is-sending) or the offline pill's dot (.is-queued). The gap is the loader's 24dp plus 4dp each side; each size derives
   its half-angle from it: round asin(16 / the ring's centreline radius), square atan(16 / half the side). The edge never
   turns; only the loader's dots move, as they do in every button. Failed, too big, wrong kind and refused add nothing. */
.media-slot, .avatar-photo { --media-ring-w: 2px; --media-ring-w-lg: 3px; --media-gap: calc(24px + 2 * var(--space-xs)); --avatar-ring-on-brand: color-mix(in srgb, var(--color-on-brand) 50%, transparent); }
.media-slot { --ring-w: var(--media-ring-w-lg); --ring-c: var(--color-surface-brand); --half: 27.6deg; --gap-lift: 2px; position: relative; display: block; width: 72px; height: 72px; flex: none; padding: 0; border: 0; border-radius: var(--shape-full); background: none; }
.media-slot-xl { --half: 15.9deg; --gap-lift: 1px; width: 120px; height: 120px; }                                  /* asin(16 / 58.5) */
.media-slot-square { --ring-w: var(--media-ring-w); --half: 18.4deg; --gap-lift: 0px; width: 96px; height: 96px; border-radius: var(--shape-m); }   /* atan(16 / 48) */
.media-slot-square.media-slot-sm { --half: 24deg; width: 72px; height: 72px; }                    /* the ticket's cover: atan(16 / 36) */
.media-slot-photo, .media-slot-initials { position: absolute; inset: calc(var(--ring-w) + var(--space-2xs)); display: block; width: calc(100% - 2 * (var(--ring-w) + var(--space-2xs))); height: calc(100% - 2 * (var(--ring-w) + var(--space-2xs))); border-radius: var(--shape-full); object-fit: cover; }
.media-slot-square :is(.media-slot-photo, .media-slot-initials) { border-radius: calc(var(--shape-m) - var(--ring-w) - var(--space-2xs)); }
.media-slot-initials { display: flex; align-items: center; justify-content: center; background: var(--ring-c); color: var(--color-on-brand); font-family: var(--font-text); font-weight: 600; font-size: 28px; line-height: 36px; }
.media-slot-xl .media-slot-initials { font-size: 44px; line-height: 52px; }                        /* 72dp's 28 scaled to the 120dp slot, never a type role */
.media-slot-ring { position: absolute; inset: 0; border: var(--ring-w) solid var(--ring-c); border-radius: inherit; pointer-events: none; }
.media-slot-square .media-slot-ring { border-color: var(--color-outline-control); }                 /* a cover is nobody's colour: the control edge */
.media-slot:is(.is-sending, .is-queued) .media-slot-ring {
  -webkit-mask: conic-gradient(from 180deg, transparent var(--half), black 0 calc(360deg - var(--half)), transparent 0);
          mask: conic-gradient(from 180deg, transparent var(--half), black 0 calc(360deg - var(--half)), transparent 0); }
/* The dots sit on the ring's line across the gap: lifted from the foot's centreline by half the arc's rise over the gap,
   R(1 - cos half) / 2 (72dp: 2dp, 120dp: 1dp, a square's straight edge: 0), so they fill the cut, half in and half out,
   with 4dp clear at each end, and read as part of the broken ring, not as dots under it. */
.media-slot-gap { position: absolute; inset-block-start: calc(100% - var(--ring-w) / 2 - 4px - var(--gap-lift)); inset-inline-start: calc(50% - 12px); display: block; width: 24px; height: 8px; line-height: 0; }
.media-slot-gap .loader { display: block; }
.media-slot-gap .offline-dot { display: block; margin-inline: auto; }
/* Member colours: the ring is the colour the initials would sit on (§8, "own colour everywhere"). */
:is(.media-slot, .avatar-photo).avatar-2 { --ring-c: var(--color-accent); background: none; }
:is(.media-slot, .avatar-photo).avatar-3 { --ring-c: var(--color-primary); background: none; }
:is(.media-slot, .avatar-photo).avatar-4 { --ring-c: var(--color-outline-control); background: none; }
/* On Nile 800 (the ticket's body) the edge, the loader's first dot and the queued dot step to onBrand, where Nile vanishes. */
.media-slot-on-brand .media-slot-ring, .media-slot-on-brand.media-slot-square .media-slot-ring { border-color: var(--avatar-ring-on-brand); }
.media-slot-on-brand .offline-dot { background: var(--color-on-brand-line); }
/* An avatar showing a photo, in rows and stacks: the photo inside the member ring (2dp, 3dp at 72dp); a stack's 3dp
   background ring stays outside it, on box-shadow, untouched. */
.avatar-photo { --ring-w: var(--media-ring-w); --ring-c: var(--color-surface-brand); position: relative; background: none; }
.avatar-photo.avatar-2xl { --ring-w: var(--media-ring-w-lg); }
.avatar-photo > img { display: block; width: calc(100% - 2 * (var(--ring-w) + var(--space-2xs))); height: calc(100% - 2 * (var(--ring-w) + var(--space-2xs))); border-radius: var(--shape-full); object-fit: cover; }
.avatar-photo::after { content: ""; position: absolute; inset: 0; border: var(--ring-w) solid var(--ring-c); border-radius: inherit; }
/* The words for the state: one line, set level with the gap (its centre on the slot's foot) beside the slot. */
.media-line { color: var(--color-ink-muted); text-wrap: pretty; }
.media-line-on-brand { color: var(--color-on-brand); }
/* Direction B: on the profile form the face is the hero at 120dp, start-aligned, Change and Remove stacked beside it
   and the line under them at the gap's level. The cover slot takes the same shape at 96dp: the remove control on top,
   the line at the foot. */
.media-edit { display: flex; align-items: flex-end; gap: var(--space-xl); }
.media-edit-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); min-width: 0; }
.media-edit-side > .media-line { margin-block-end: calc(-1 * var(--space-s)); }
.media-edit-side > .media-line:lang(ar) { margin-block-end: -9px; }                                  /* half of Arabic bodySmall's 18 */
.media-edit-actions { display: flex; flex-direction: column; align-items: flex-start; }
.media-cover-edit { display: flex; align-items: stretch; gap: var(--space-s); }
.media-cover-edit .media-edit-side { justify-content: space-between; gap: var(--space-xs); }
.media-cover-edit .media-edit-side > .icon-btn { margin-block-start: calc(-1 * var(--space-xs)); }
/* The header on your profile and a friend's: the 72dp slot, and while it uploads the line on its own row 8dp under the
   dots (critique r1: beside the 72dp slot it floated); the name then 16dp below the line (the header's 12dp gap + 4). */
.media-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.media-head:has(> .media-line) { margin-block-end: var(--space-xs); }
/* The ticket's cover while it uploads: the line under it, end-aligned on the brand body. */
.media-ticket-cover { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: var(--space-s); max-width: 128px; }
.media-ticket-cover > .media-line { text-align: end; }
/* The source sheet: the slot's name, then Take a photo and Choose from gallery as action rows. */
.media-source-sheet { gap: 0; padding-block-end: calc(var(--space-2xl) + var(--space-s)); }
.media-source-sheet > .type-titleLarge { padding-block: var(--space-xs) var(--space-s); }
.media-source-rows { display: flex; flex-direction: column; margin-inline: calc(-1 * (var(--space-l) + 2px)); }
/* Large text (#edit_large_text, #avatar_large_text): the slot holds its size, everything beside it moves under it. */
.font-scale-200 .media-edit { flex-direction: column; align-items: flex-start; gap: var(--space-l); }
.font-scale-200 .media-edit-side > .media-line { margin-block-end: 0; }
.font-scale-200:is([data-screen="profile"], [data-screen="cover_crop"]) .type-headlineSmall { font-size: 48px; line-height: 64px; }
.font-scale-200:is([data-screen="profile"], [data-screen="cover_crop"]) .type-headlineSmall:lang(ar) { line-height: 76px; }
.font-scale-200:is([data-screen="profile"], [data-screen="cover_crop"]) .type-titleLarge { font-size: 44px; line-height: 56px; }
.font-scale-200:is([data-screen="profile"], [data-screen="cover_crop"]) .type-titleLarge:lang(ar) { line-height: 68px; }
.font-scale-200:is([data-screen="profile"], [data-screen="cover_crop"]) .type-labelLarge { font-size: 30px; line-height: 40px; }
.font-scale-200[data-screen="profile"] .field { font-size: 32px; line-height: 48px; }
.font-scale-200[data-screen="profile"] .field:lang(ar) { line-height: 52px; }
.font-scale-200[data-screen="cover_crop"] .crop-window { width: 232px; height: 232px; }
.media-source-sheet .list-option { width: 100%; text-align: start; }
.media-snack-action { min-height: 48px; margin-block: calc(-1 * var(--space-m)); margin-inline-end: calc(-1 * var(--space-s)); padding-inline: var(--space-s); }
.media-snack-foot { position: absolute; inset-inline: var(--space-2xl); inset-block-end: var(--space-2xl); }
/* #edit_large_text: the form scrolls under Save, which stays pinned on the page with a 1dp edge over what runs under it. */
.media-scroll { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
.media-foot-pinned { flex: none; margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-m) var(--space-2xl) 0; background: var(--color-background); box-shadow: 0 -1px 0 var(--color-outline); }
.screen-pad:has(> .media-scroll) { min-height: 0; }
/* The profile form (critique r1): the 120dp slot seated 32dp under the title, the name field on the next 32dp step, and
   the free space collecting above Save, where the thumb is. */
.media-edit-form { margin-block-start: var(--space-3xl); }
.media-scroll > * { flex: none; }                    /* the top bar and the notice keep their height while the form scrolls */
img.crop-photo { object-fit: cover; }                 /* a sourced photo on the crop's stage (media-pipeline fix r1) */
/* Design System §6 Photography, §8 Empty states, §8 Dialog, §8 Group cover, §9 Place detail (p-menus-1 to 5, approved 29 Oct 2026) */
/* ---- Menus on a place (place-menus, 22 Oct 2026; concept A "the menu on the table", direction C "On the table") -----
   System proposals in design-notes.md (place-menus): §6 Photography (menu pages at their own ratio), §8 Empty states (an
   empty slot inside a screen is a blank sheet the size of what it will hold), §8 Dialog (a removal shows the page), §8 Group
   cover (the page viewer shares the crop's stage), §9 Place detail (the Menu section after the take). The section is a
   full-bleed Saffron 50 table top; page 1 of the menu stands over its top edge by 32dp with up to two real pages stepped
   --menu-step toward the inline end and down behind it, beside the count (the Typographic Tally, the paper as its face).
   Flat (§5): no shadow, no rotation; the only depth is the page crossing the band's edge. */
.menu-table { --menu-step: var(--space-xs); --menu-page-w: 120px; --menu-page-ratio: 3 / 4; --menu-sheet-edge: color-mix(in srgb, var(--color-outline-control) 45%, var(--color-outline)); display: flex; flex-direction: column; gap: var(--space-2xl); margin-inline: calc(-1 * var(--space-2xl)); margin-block-start: var(--space-3xl); padding: 0 var(--space-2xl) var(--space-2xl); background: var(--saffron-50); }
.menu-row { --menu-head-lh: 26px; display: grid; grid-template-columns: calc(var(--menu-page-w) + 2 * var(--menu-step)) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: start; }
.menu-row:lang(ar) { --menu-head-lh: 32px; }
/* One target (review r1): the stack, the numeral, its word and the room line are one button that opens the viewer at
   page 1; the heading sits over the button's corner and Add pages under it, both outside it. */
.menu-hit { display: grid; grid-column: 1 / -1; grid-row: 1; grid-template-columns: subgrid; align-items: start; margin-block-start: calc(-1 * var(--space-3xl)); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; }
.menu-heading { grid-column: 2; grid-row: 1; z-index: 1; margin-block-start: var(--space-m); pointer-events: none; }
.menu-more { display: flex; grid-column: 2; grid-row: 2; flex-direction: column; align-items: flex-start; min-width: 0; }
.menu-stack { position: relative; display: block; width: calc(var(--menu-page-w) + 2 * var(--menu-step)); height: calc(var(--menu-page-w) * 4 / 3 + 2 * var(--menu-step)); }
.menu-row-empty { display: flex; align-items: flex-start; gap: var(--space-2xl); }
.menu-row-empty .menu-heading { margin-block-end: var(--space-s); }
.menu-stack-1 { height: calc(var(--menu-page-w) * 4 / 3); }
.menu-page { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 3; display: block; width: var(--menu-page-w); aspect-ratio: var(--menu-page-ratio); border: 1px solid var(--menu-sheet-edge); border-radius: var(--shape-s); background: var(--color-surface); object-fit: cover; }
.menu-page-back-1 { z-index: 2; inset-block-start: var(--menu-step); inset-inline-start: var(--menu-step); }
.menu-page-back-2 { z-index: 1; inset-block-start: calc(2 * var(--menu-step)); inset-inline-start: calc(2 * var(--menu-step)); }
/* The column beside the stack: the heading leads it, then the numeral and its word, the room or full line, Add pages. */
.menu-count { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-block-start: calc(var(--space-3xl) + var(--space-m) + var(--menu-head-lh) + var(--space-s)); }   /* 8dp under the heading (critique r1) */
.menu-row-empty .menu-count { flex: 1; padding-block-start: 0; }
.menu-tally { display: flex; flex-direction: column; }
.menu-numeral { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.menu-room { margin-block-start: var(--space-s); color: var(--color-ink-muted); text-wrap: pretty; }
.menu-add { align-self: flex-start; margin-inline-start: calc(-1 * var(--space-m)); }
/* Empty: a blank sheet the size of the front page, in the stack's place and over the same edge, so the first page
   lands without a reflow. A bare file-plus and its label; the sentence sits in the column beside it. */
.menu-empty { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-s); width: var(--menu-page-w); aspect-ratio: var(--menu-page-ratio); margin-block-start: calc(-1 * var(--space-3xl)); padding: var(--space-m); border: 1px solid var(--menu-sheet-edge); border-radius: var(--shape-s); background: var(--color-surface); color: var(--color-primary); text-align: center; }   /* critique r1: a blank sheet, not a well (the well is for what can't be tapped) */
.menu-empty .icon { font-size: 48px; line-height: 48px; }
.menu-empty-line { color: var(--color-ink); text-wrap: pretty; }
/* A page sending or queued: media-pipeline's slot as a portrait page (72 x 96), in the column under the count, with
   its line under it. The gap's half-angle is the square slot's: atan(16 / 48), half the gap over half the height. */
.media-slot-square.media-slot-page { --half: 18.4deg; width: 72px; height: 96px; border-radius: var(--shape-s); }
.media-slot-page :is(.media-slot-photo) { border-radius: calc(var(--shape-s) - var(--ring-w) - var(--space-2xs)); }
.menu-upload { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); margin-block-start: var(--space-m); }
.menu-send { gap: var(--space-s); }
.font-scale-200 .menu-row, .font-scale-200 .menu-hit { grid-template-columns: minmax(0, 1fr); }
.font-scale-200 .menu-row { --menu-head-lh: 56px; }
.font-scale-200 .menu-row:lang(ar) { --menu-head-lh: 68px; }
.font-scale-200 .menu-count { padding-block-start: calc(var(--space-l) + var(--menu-head-lh) + var(--space-s)); }
.font-scale-200 .menu-heading { grid-column: 1; margin-block-start: calc(var(--menu-page-w) * 4 / 3 + 2 * var(--menu-step) - var(--space-3xl) + var(--space-l)); }
.font-scale-200 .menu-more { grid-column: 1; }
.font-scale-200 .menu-table .type-titleLarge { font-size: 44px; line-height: 56px; }
.font-scale-200 .menu-table .type-titleLarge:lang(ar) { line-height: 68px; }
.font-scale-200[data-screen="place_detail"][data-state="menu_large_text"] .brand-title { font-size: 52px; line-height: 64px; overflow-wrap: break-word; }   /* as #take_large_text, the frame it is drawn on */
.font-scale-200[data-screen="place_detail"][data-state="menu_large_text"] .brand-title:lang(ar) { line-height: 80px; }

/* The page viewer (menu_viewer; outing photos will reuse it, so nothing here is menu-only): the crop's Limestone 950
   stage, Close and the title at the top, the page at its own ratio with 16dp margins, its credit as a caption under it
   (Remove at its end, for those who may), and a solid foot with the counter and the one Saffron action. Nothing floats
   over the page. --viewer-caption is derived from the stage's own pair (about 10:1 on Limestone 950). */
.page-viewer { --viewer-caption: color-mix(in srgb, var(--limestone-50) 78%, var(--limestone-950)); --viewer-foot: var(--limestone-900); background: var(--limestone-950); color: var(--color-on-brand); }
.page-viewer .icon-btn { color: var(--color-on-brand); }
.viewer-top { display: flex; flex: none; align-items: center; gap: var(--space-xs); min-height: 56px; padding: var(--space-s) var(--space-2xl) 0; }
.viewer-stage { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; padding: var(--space-l) var(--space-l) 0; overflow: hidden; }
.viewer-frame { position: relative; overflow: hidden; border-radius: var(--shape-s); }
.viewer-page { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--shape-s); object-fit: cover; }
.viewer-zoomed .viewer-page { border-radius: 0; transform: scale(1.9); transform-origin: 30% 38%; }
.viewer-zoomed .viewer-frame { margin-inline: calc(-1 * var(--space-l)); border-radius: 0; }
.viewer-page-well { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-m); width: 100%; aspect-ratio: 3 / 4; padding: var(--space-3xl); border-radius: var(--shape-s); background: color-mix(in srgb, var(--limestone-50) 7%, var(--limestone-950)); box-shadow: inset 0 1.5px 0 rgb(0 0 0 / 0.3); color: var(--color-on-brand); text-align: center; }
.viewer-page-well .icon { font-size: 48px; line-height: 48px; color: var(--viewer-caption); }
.viewer-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 48px; padding-block: var(--space-xs) var(--space-s); color: var(--viewer-caption); }
.viewer-caption > p { min-width: 0; text-wrap: pretty; }
.viewer-remove { flex: none; min-height: 48px; margin-inline-end: calc(-1 * var(--space-m)); padding-inline: var(--space-m); color: var(--color-on-brand); text-decoration: underline; text-underline-offset: 3px; }
.viewer-foot { position: relative; display: flex; flex: none; align-items: center; gap: var(--space-2xl); padding: var(--space-l) var(--space-2xl) var(--space-2xl); background: var(--viewer-foot); }
.viewer-counter { display: flex; flex: none; align-items: baseline; gap: var(--space-xs); color: var(--color-on-brand); }
.viewer-counter .type-bodyMedium { color: var(--viewer-caption); }
.viewer-foot > .btn { flex: 1; }
.viewer-foot .snackbar-float { inset-inline: var(--space-l); inset-block-end: calc(100% + var(--space-m)); }
.page-viewer .snackbar { background: var(--color-surface); color: var(--color-ink); }   /* on the stage the bar inverts: ink on Limestone 950 would vanish */
.font-scale-200 .viewer-top .type-titleLarge { font-size: 44px; line-height: 56px; }
.font-scale-200 .viewer-top .type-titleLarge:lang(ar) { line-height: 68px; }
.font-scale-200 .viewer-caption { flex-wrap: wrap; row-gap: 0; }
.font-scale-200 .viewer-foot { flex-direction: column; align-items: stretch; gap: var(--space-m); }
.font-scale-200 .viewer-stage { padding-inline: var(--space-4xl); }
/* The removal dialog names the page by showing it: 54 x 72 at the start of its title row. */
.dialog-page-title { display: flex; align-items: center; gap: var(--space-l); }
.dialog-page-thumb { display: block; flex: none; width: 54px; height: 72px; border: 1px solid var(--color-outline); border-radius: var(--shape-s); object-fit: cover; }
/* Two pages at once (add_place#edit_link_menu, critique r1): the second steps --menu-step behind the first, as the stack. */
.dialog-page-pair { position: relative; flex: none; width: calc(54px + var(--space-xs)); height: calc(72px + var(--space-xs)); }
.dialog-page-pair > .dialog-page-thumb { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 1; background: var(--color-surface); }
.dialog-page-pair > .dialog-page-thumb + .dialog-page-thumb { z-index: 0; inset-block-start: var(--space-xs); inset-inline-start: var(--space-xs); }

/* Design System §8 Menu stand, §8 Empty states, §8 Dialog, §9 Place detail, §6 Photography (p-menuqr-1 to 5, approved 29 Oct 2026) */
/* ---- A menu can be a QR link (menu-qr-link, 29 Oct 2026; concept B "the table stand") ---------------------------------
   System proposals in design-notes.md (menu-qr-link): §8 Empty states (a second way in, Scan the QR code, as a text button),
   §8 Dialog (a link's dialog shows the address as type), §9 Place detail (the link as a stand on the table), §6 Photography
   (a link is never a picture), and the stand as a new component. The link's face is the table's stand: a 3:4 sheet with the
   page's edge on a flat plinth 8dp tall and 8dp wider each side, the QR code printed on it (owner 2026-10-29, drawn from the saved link), the host under it. No
   favicon, shadow, gloss or tilt. --menu-plinth is Limestone 500: 4.57:1 on Saffron 50 as a non-text edge (Limestone 200 was
   1.31:1, 400 2.83:1). The address is an LTR island in both languages; the host wraps only at its dots (<wbr>), never inside a word. */
.menu-table, .dialog-stand { --menu-plinth: var(--limestone-400); --menu-plinth-edge: var(--limestone-600); --menu-plinth-h: var(--space-l); --menu-plinth-sink: var(--space-s); --menu-plinth-overhang: var(--space-s); }   /* fix r1: a 16dp block the sheet's foot sinks 8dp into, as the walnut base of refs/web-tent-wood-base.jpg */
.menu-stand { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; }
.menu-stand-sheet { position: relative; z-index: 0; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; row-gap: var(--space-xs); box-sizing: border-box; width: var(--menu-page-w); aspect-ratio: var(--menu-page-ratio); padding: var(--space-s) var(--space-xs) calc(var(--menu-plinth-sink) + var(--space-xs)); border: 1px solid var(--menu-sheet-edge); border-radius: var(--shape-s); background: var(--color-surface); }
.menu-stand-plinth { position: relative; display: flex; align-items: center; justify-content: center; z-index: 1; width: calc(100% + 2 * var(--menu-plinth-overhang)); height: var(--menu-plinth-h); margin-block-start: calc(-1 * var(--menu-plinth-sink)); border-block-start: 1px solid var(--menu-plinth-edge); border-radius: var(--shape-xs) var(--shape-xs) 0 0; background: var(--menu-plinth); }   /* taste r2: a lighter block (Limestone 400, 2.83:1) under a 1dp Limestone 600 top edge (6.77:1 on Saffron 50) */
.menu-stand-plinth .loader { height: var(--menu-plinth-h); }   /* saving: media-pipeline's two dots ride the plinth */
.menu-stand-qr { display: block; width: 88px; aspect-ratio: 1; fill: var(--color-ink); }   /* owner 2026-10-29: the stand's face is the QR code itself, drawn from the saved link; the sheet's 8dp is its quiet zone */
.menu-stand-mini .menu-stand-qr { width: 72px; }
.dialog-stand .menu-stand-qr { width: 40px; }
.menu-stand-sheet > .menu-address { grid-row: 2; align-items: center; max-width: 100%; }
.menu-stand-label { grid-row: 3; align-self: end; justify-self: center; color: var(--color-ink-muted); }
.menu-address { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); min-width: 0; unicode-bidi: isolate; text-align: left; }
.menu-address > bdi { display: block; max-width: 100%; }
.menu-address-host { color: var(--color-ink); line-height: 18px; white-space: nowrap; }   /* taste r2: one line, never a dot-fragment on its own */   /* the host's lines sit tight as one name */
.menu-address-name { color: var(--color-ink); white-space: nowrap; }   /* the host as one printed name: its word strong, never cut */
.menu-address-sub { color: var(--color-ink-muted); white-space: nowrap; }
.menu-address-path { color: var(--color-ink-muted); }
/* Link only: the stand takes page 1's place over the band's edge, the line under it when it has one. */
.menu-stand-wrap { display: flex; flex: none; flex-direction: column; align-items: center; gap: var(--space-m); width: var(--menu-page-w); margin-inline-start: var(--menu-plinth-overhang); }
.menu-table:has(.menu-stand-wrap) { padding-block-start: var(--space-2xl); }   /* fix r1: link only, the band starts above the stand */   /* the plinth, not the sheet, meets the 24dp gutter */
.menu-stand-note { display: flex; align-items: flex-start; gap: var(--space-s); width: calc(100% + 2 * var(--menu-plinth-overhang)); color: var(--color-ink-muted); text-wrap: pretty; }
.menu-stand-note .offline-dot { margin-block-start: var(--space-xs); }
/* Link and pages: the mini stand stands on the band's floor at the stack's inline-foot corner, over page 1 by 24dp. */
.menu-stand-mini .menu-stand-sheet { width: 96px; padding-inline: var(--space-2xs); }
.menu-stand-mini .menu-stand-label { padding-block-start: var(--space-xs); }
/* taste r2: the band starts 24dp above the stack (no crossing); the mini stand stands on the band 16dp under the stack's
   foot, its sheet 48dp below page 1's top, so page 1's upper part shows above it. */
.menu-table:has(.menu-stand-col) { padding-block-start: var(--space-2xl); }
.menu-row:has(> .menu-stand-col) > .menu-hit { margin-block-start: 0; }
.menu-row:has(> .menu-stand-col) .menu-count { padding-block-start: calc(var(--space-m) + var(--menu-head-lh) + var(--space-s)); }
.menu-stand-col { position: relative; z-index: 4; display: flex; grid-column: 1; grid-row: 1 / span 2; align-self: start; justify-self: end; margin-block-start: calc(var(--menu-page-w) * 4 / 3 + 2 * var(--menu-step) + var(--space-l) - 96px * 4 / 3 - var(--menu-plinth-h) + var(--menu-plinth-sink)); margin-inline-end: calc(-1 * var(--space-s)); }
/* The column's link group: the lead (link only), who added it, then Replace and Remove, or the locked line. */
.menu-link-lead { color: var(--color-ink); text-wrap: pretty; }
.menu-link-credit { color: var(--color-ink-muted); }
.menu-link-meta { display: flex; flex-direction: column; gap: var(--space-2xs); margin-block-start: var(--space-s); color: var(--color-ink-muted); }   /* 24dp from Add pages (8 + the button's 14); tight with Replace and Remove */
.menu-link-meta + .menu-link-edit { margin-block-start: calc(-1 * var(--space-xs)); }
.menu-row-empty .menu-link-credit { margin-block-start: var(--space-s); }
.menu-link-edit { display: flex; margin-inline-start: calc(-1 * var(--space-m)); }
.menu-link-locked { margin-block-start: var(--space-xs); color: var(--color-ink-muted); text-wrap: pretty; }
.menu-row-empty .menu-count > .menu-add { margin-block-start: var(--space-xs); }
/* Dialogs over place detail's full scroll: centred in the last phone height, where the menu is. */
.scrim-viewport-end { z-index: 10; justify-content: flex-end; }   /* over the menu's raised layers (heading, stand) */
.scrim-viewport-end > .scrim-viewport { display: flex; flex-direction: column; justify-content: center; min-height: 800px; padding: 0 var(--space-2xl); }
/* The Replace dialog: the two addresses as type on a Saffron 50 plate (the table's tone), current over new, in full. */
.dialog-addresses { display: flex; flex-direction: column; gap: var(--space-l); padding: var(--space-l); border-radius: var(--shape-m); background: var(--saffron-50); }
.dialog-address { display: flex; flex-direction: column; gap: var(--space-2xs); }
.dialog-address-label { color: var(--color-ink-muted); }
.dialog-address > bdi { display: block; overflow-wrap: anywhere; unicode-bidi: isolate; text-align: left; }
.dialog-addresses .menu-address { text-align: left; }
.dialog-address-current .menu-address-name, .dialog-address-current .menu-address-sub, .dialog-address-current .menu-address-path { color: var(--color-ink-muted); }
.dialog-title-balance { text-wrap: balance; }
.dialog-address-first { margin-block-end: calc(-1 * var(--space-s)); }   /* the removed link's address, the body's first line, tight to its sentence */
/* The stand at a dialog's title row (remove, links collide): 54 x 72 as .dialog-page-thumb, on a 4dp plinth. */
.dialog-stand { --menu-sheet-edge: color-mix(in srgb, var(--color-outline-control) 45%, var(--color-outline)); --menu-plinth-h: var(--space-s); --menu-plinth-sink: var(--space-xs); --menu-plinth-overhang: var(--space-xs); display: flex; flex: none; flex-direction: column; align-items: center; }
.dialog-stand > .menu-stand-sheet { flex: none; width: 54px; height: 72px; padding: var(--space-xs) var(--space-xs) calc(var(--menu-plinth-sink) + var(--space-2xs)); text-align: center; }
.dialog-title-col { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.dialog-title-col > bdi { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; unicode-bidi: isolate; }

/* Design System §5 Shape, §6 Photography, §6 Illustration, §8 Group cover, §8 Dialog, §9 Calendar, §8 Multi-stop outing (p-photos-1 to 7, approved 29 Oct 2026) */
/* ---- Outing photos (outing-photos, 22 Oct 2026; concept A "torn from the same pad", direction C "Down the pad") --------
   System proposals in design-notes.md (outing photos): §5 Tear line (the strip's top edge), §6 Photography (three per stop),
   §6 the natiga (a small torn leaf in the viewer's foot), §8 the viewer's foot (no Saffron: photos never leave Feen), §8 Dialog
   (removing a stop shows its strip). A stop's photos are a torn sheet one tonal step on its surface, the leaf's --tear-line
   along its top, holding exactly three 56dp frames 4dp apart: photos from the start edge, then the add frame (level 0 with the
   2dp control edge, never a well), then ghosts (aria-hidden, not targets). --frame is the row leaf's 72 less space.l, so on
   the calendar the frames sit under the torn leaf's numeral column. No border, shadow or rotation on a photo. */
.photo-strip { --frame: calc(72px - var(--space-l)); --frame-gap: var(--space-xs); --frame-ghost: color-mix(in srgb, var(--color-outline-strong) 50%, transparent);
  position: relative; display: flex; flex: none; align-self: flex-start; gap: var(--frame-gap); padding: var(--space-s) var(--frame-gap) var(--frame-gap); border-end-start-radius: var(--shape-s); border-end-end-radius: var(--shape-s); background: var(--color-surface-sunken); -webkit-mask: var(--tear-line); mask: var(--tear-line); }
.photo-strip-tear { position: absolute; inset-block-start: 0; inset-inline: 0; height: var(--space-s); pointer-events: none; }   /* the torn edge's layer, for Figma; the mask draws it */
.photo-strip--on-brand { --frame-ghost: var(--on-brand-ghost); background: var(--color-surface-brand-raised); }   /* Nile 700 on Nile 800 */
.photo-strip--sm { --frame: calc(var(--space-3xl) + var(--space-s)); }   /* 40dp: the stop's strip shown in its remove dialog */
.photo-frame { position: relative; display: block; flex: none; width: var(--frame); height: var(--frame); padding: 0; border: 0; border-radius: calc(var(--shape-s) - var(--frame-gap)); overflow: hidden; background: none; }
.photo-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2xs); background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--color-outline-control); color: var(--color-ink); }
.photo-frame--add .icon { color: var(--color-primary); }
.photo-strip--on-brand .photo-frame--add { background: none; box-shadow: inset 0 0 0 2px var(--color-on-brand); color: var(--color-on-brand); }
.photo-strip--on-brand .photo-frame--add .icon { color: var(--color-on-brand); }
.photo-frame--free { box-shadow: inset 0 0 0 1.5px var(--frame-ghost); }
/* An upload takes its own frame: media-pipeline's square slot at 56dp, its gap derived as .media-slot-square's, atan(16 / 28). */
.media-slot-square.media-slot-frame { --half: 29.7deg; width: var(--frame); height: var(--frame); border-radius: calc(var(--shape-s) - var(--frame-gap)); }
.media-slot-frame .media-slot-photo { border-radius: calc(var(--shape-s) - var(--frame-gap) - var(--ring-w) - var(--space-2xs)); }
.photo-strip--on-brand .media-slot-frame .media-slot-ring { border-color: var(--color-on-brand-line); }
.photo-strip--on-brand .media-slot-frame .offline-dot { background: var(--color-on-brand-line); }
/* The lines under a strip (full, uploading, queued): bodySmall, under it and never beside it, 4dp below the sheet. */
.photo-full { color: var(--color-ink-muted); text-wrap: pretty; }
.photo-place > .photo-strip + p { margin-block-start: calc(var(--space-xs) - var(--space-s)); }
.outing-stop-col .photo-full { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
/* A place with no photos: one quiet labelled text button (labelMedium, Nile 600; on Nile 800 onBrand, underlined as Change the day). 48dp hit from ::before. */
.photo-add-empty { position: relative; flex: none; align-self: flex-start; min-height: 24px; padding: 0; color: var(--color-primary); font-weight: 600; text-align: start; }
.photo-add-empty::before { content: ""; position: absolute; inset: calc(-1 * var(--space-m)) calc(-1 * var(--space-s)); }
.photo-add-empty--quiet { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }   /* the calendar: bodySmall, regular, under the place's link (critique round 1) */
.outing-stop-col .photo-add-empty { color: var(--color-on-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-on-brand-line); }
/* The outing: a stop's column holds its body button (the name), then the category tag with Add a photo beside it, then the
   strip (never inside the button). The tag sits outside the button (aria-hidden; the button's label already says it) and the
   button's hit runs down over it, so Add a photo costs a stop no height and every station stays where #open drew it. */
.outing-stop-col { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.outing-stop-col > .outing-stop-body-hit { position: relative; display: flex; align-self: stretch; min-width: 0; }
.outing-stop-col > .outing-stop-body-hit:has(+ .outing-stop-tags)::after { content: ""; position: absolute; inset: 0 0 calc(-1 * (var(--space-xs) + 26px)); }
.outing-stop-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); padding-block-end: var(--space-xs); }
.outing-stop-tags > .photo-add-empty { z-index: 1; }
.outing-stop-col > .photo-strip { margin-block-start: var(--space-xs); }
.outing-stop-meta .distance { color: var(--color-on-brand); }
.outing-line:has(.outing-stop-col) ~ .outing-platform, .outing-scroll ~ .outing-platform { z-index: 2; }   /* the line slides under the platform, stations too */
.outing-line-photos { padding-block-start: var(--space-2xl); }
.outing-line-photos .outing-leg { min-height: calc(2 * var(--space-m) + 2 * var(--space-s) + var(--space-2xl)); }   /* #full's tight run, so a strip of three still leaves the next station in view */
.outing-line-photos .outing-rail { min-height: var(--space-m); }
.outing-line-photos .outing-next-body { padding-block-start: var(--space-xs); }   /* Then where? as the line's last row, under the pinned Share (as #large_text) */
.outing-scroll-end:has(> .outing-line-photos) { justify-content: unsafe flex-end; }   /* outing#photos_four: the scroll's end, its start out of view */
.outing-line-photos .outing-next:has(.outing-terminus) { align-items: center; }
.outing-line-photos .outing-next:has(.outing-terminus) .outing-full-body { padding-block-start: 0; }
.outing-stop-single > .outing-track::before { display: none; }   /* outing#place_today: one station, no rail */
.outing-stop-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-m); row-gap: var(--space-xs); padding-block: var(--space-s); color: var(--color-on-brand); }
/* The calendar, direction C "Down the pad": the torn leaf heads the day with its first list centred beside it; the places run the
   full width under it, one per line, each with its strip or Add a photo; every strip starts under the leaf's numeral column. */
.cal-past-day--stacked { flex-direction: column; align-items: stretch; gap: var(--space-l); }
.cal-past-day-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m) var(--space-l); }
.cal-past-day--stacked .cal-past-entries { gap: var(--space-l); padding-block-start: 0; }
.cal-past-day--stacked .cal-past-list { gap: var(--space-l); }
.cal-past-day--stacked .cal-past-list + .cal-past-list { padding-block-start: var(--space-l); box-shadow: inset 0 1px 0 var(--color-outline); }
.cal-past:has(.cal-past-day--stacked) { gap: var(--space-3xl); } /* unused since 2026-11-01, calendar-month */
.cal-past:has(.cal-past-day--stacked) > .cal-past-title { margin-block-end: calc(var(--space-l) - var(--space-3xl)); } /* unused since 2026-11-01, calendar-month */
.photo-places { display: flex; flex-direction: column; gap: var(--space-2xl); }   /* 24dp: a place's 48dp targets never overlap the next row's (review round 1) */
.photo-place { display: flex; flex-direction: column; gap: var(--space-s); min-width: 0; }
.photo-place-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-s) var(--space-l); }
.photo-place-row > .cal-past-place { flex: 0 1 auto; min-width: 0; }
/* At 200% the frames stay 56dp (photos don't scale) and so does the add frame's one word; its spoken label carries it (design-notes exception). */
.font-scale-200 .photo-frame--add .type-labelMedium { font-size: 12px; line-height: 16px; }
.cal-past-day--stacked .photo-strip { margin-inline-start: calc((72px - var(--frame)) / 2 - var(--frame-gap)); }
.cal-past-day--stacked .photo-strip { margin-inline-start: 0; }
/* The photo viewer: place-menus' stage with the photo at its own ratio, and a foot that holds the counter and the day's torn leaf. */
.page-viewer--photo .viewer-page { aspect-ratio: auto; height: auto; max-height: 100%; object-fit: contain; }
.page-viewer--photo .viewer-page-well { aspect-ratio: 4 / 3; padding: var(--space-2xl); }
.page-viewer--photo .viewer-foot { justify-content: space-between; padding-block: var(--space-m) var(--space-2xl); }
.font-scale-200.page-viewer--photo .viewer-foot { flex-direction: row; align-items: center; }
/* --on-stage: the torn leaf on Limestone 950, its sheet one step above the foot (Limestone 800), the words at the caption tone. */
.day-leaf--on-stage .day-leaf-sheet, .cal-past .day-leaf--on-stage .day-leaf-sheet { background: var(--limestone-800); color: var(--viewer-caption); }
.day-leaf--on-stage .day-leaf-num, .day-leaf--on-stage .day-leaf-month { color: var(--viewer-caption); }
/* Gate 0 (breath), outing#place, its take-off backdrops and #place_today: the Then where? well sizes to its station (no 136dp
   floor, which left one line in a hollow card), and the place's facts (or #place_today's one station) hang one section gap (space.3xl) under the
   header, the content one block from the top, the leftover air collecting once above the raised foot (critique round 2). Overrides calendar-main's rules; outing.html only. */
.outing-place-next { min-height: 0; padding-block: var(--space-xl); } /* unused since 2026-11-05, one-place-plan */
.outing-place-facts { padding-block: var(--space-3xl) 0; }   /* critique round 2: one section gap under the header, the air collects once above the foot */ /* unused since 2026-11-05, one-place-plan */
.outing-top ~ .outing-line-photos:has(.outing-stop-single) { padding-block: var(--space-3xl) 0; }

/* Design System §2 The pin in a sentence, §8 Crew leaderboard, §5 Elevation, §9 Calendar (p-arrival-1 to 4, approved 29 Oct 2026) */
/* ==== Landed 2026-10-22 (arrival-points, the crew leaderboard kept by the owner): the board's block below is the 7 Oct
   "Keeping score" block as committed in 9fdd098, which the 17 Oct merge dropped from main. Unchanged but for this note. ==== */
/* ---- Crew leaderboard (redesign 7 Oct 2026, brain/features/crew-leaderboard/, concept A "Keeping score", direction b
   "The long run") --------------------------------------------------------------------------------------------------
   Replaces the 30 Sep leaf (wall, pin, rear leaf, entries, printed blanks), deleted. The board keeps score the way
   friends do at the ahwa: a stroke per place, four uprights closed by a fifth crossing them. Each row's body is its
   tally run, on one shared start edge for every row, band included, so the race reads as lengths before any digit.
   Rank and count (Alexandria 700) span the row's two lines and stay its two biggest marks; ties repeat the rank
   numeral and draw identical runs. Rank 1 sits on the Nile 800 band, full bleed; the rest are flat rows on Limestone,
   no card, no line. Members at zero have no row. The viewer's strokes are Saffron; everyone else's are Nile 600
   (onBrand on the band), the same weight however short. Screen: leaderboard; the door (.board-door) sits on group.
   Not .board-row / .board-rows: ui_board.py's page CSS owns those names, so rows are .board-entry / .board-entries.
   Derived values (this :root, not tokens.css): the stroke is space.xs (4dp) wide and space.3xl (32dp) tall, 8dp
   apart, bundles 16dp apart, so a bundle (open four or closed five) is 40dp. The run column was 312 - 36 - 40 - 62 -
   3 x 12 = 138dp: three bundles (152dp) don't fit, so when any count on the board passes 10 every closed five on that
   board draws as one 12dp block (.tally-run--compressed, set on every run of the board), open strokes stay strokes,
   and runs stay ordered and fit their column (a longer run is never shorter). Since critique round 1 (fix 5) a closed
   five there is its own glyph, a square-cornered space.m (12dp) block, space.xs apart, so 40 can't glance as 8 strokes:
   40 places is eight blocks, 8 x 12 + 7 x 4 = 124dp, inside the 128dp run column (fix 2 widened the all-time and count
   columns to their heads: 312 - 36 - 44 - 68 - 3 x 12 = 128). ponytail: past 40 the run overflows its column; scale
   the block width down by count if a crew ever gets there. The rank column is 36dp so a two-digit rank fits (25
   members). The crossing stroke runs corner to corner of its bundle and mirrors with the run in Arabic. */
:root { --tally-stroke: var(--space-xs); --tally-height: var(--space-3xl); --tally-gap: var(--space-s); --tally-bundle-gap: var(--space-l); --tally-block: var(--space-m); }
.artboard.board-screen { height: 800px; display: flex; flex-direction: column; background: var(--color-background); }
.board-bar { display: flex; align-items: center; gap: var(--space-s); min-height: 56px; padding: var(--space-s) var(--space-2xl) 0; }
.board-bar .icon-btn { margin-inline-start: calc(-1 * var(--space-m)); }
.board-crest { width: 24px; height: 24px; flex: none; color: var(--color-outline-strong); }
.board-rule { padding-inline: var(--space-2xl); margin-block-end: var(--space-l); color: var(--color-ink-muted); text-wrap: pretty; }
.board-offline { flex: none; margin: 0 var(--space-2xl) var(--space-l); }
/* The table takes the spare height and scrolls under the top bar when its rows don't fit (200% text), so the foot (the
   viewer's line and the switch) stays pinned in the thumb zone (review round 1, fix 1). */
.board-table { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.board-table > * { flex-shrink: 0; }

/* The tally run: aria-hidden; every row's spoken label carries the count. */
.tally-run { display: inline-flex; align-items: stretch; gap: var(--tally-bundle-gap); height: var(--tally-height); color: var(--color-primary); }
.tally-run--you { color: var(--color-accent); }
.tally-run--on-brand { color: var(--color-on-brand); }
.tally-run--on-brand.tally-run--you { color: var(--color-accent); }
.tally-bundle { position: relative; display: inline-flex; gap: var(--tally-gap); }
.tally-bundle i { width: var(--tally-stroke); border-radius: var(--shape-full); background: currentColor; }
/* The fifth stroke (critique round 1, fix 3): one diagonal from the foot of the first upright to the top of the last,
   overshooting both by space.xs (4dp) at each end, so the bundle reads as a crossed five, never as "ИN". The same
   direction (rising toward the run's growth) in rows, the door and the stage, mirrored in Arabic. Span = the four
   uprights + 2 x space.xs; angle = atan(height / span); length = hypot(span, height): 48 x 32dp in a row (33.7deg,
   57.7dp), 36 x 24dp on the door, 128 x 128dp on the stage. Centred on the bundle, so it is symmetric in both dirs. */
.tally-bundle--closed { --tally-cross-span: calc(4 * var(--tally-stroke) + 3 * var(--tally-gap) + 2 * var(--space-xs)); }
.tally-bundle--closed::after { content: ""; position: absolute; left: 50%; top: 50%; width: hypot(var(--tally-cross-span), var(--tally-height)); height: var(--tally-stroke); border-radius: var(--shape-full); background: currentColor; transform: translate(-50%, -50%) rotate(calc(-1 * atan2(var(--tally-height), var(--tally-cross-span)))); }
[dir="rtl"] .tally-bundle--closed::after { transform: translate(-50%, -50%) rotate(atan2(var(--tally-height), var(--tally-cross-span))); }
/* A stroke still to make (critique round 1, fix 1): a hollow well (level -1, the 1.5dp lip) with an outlineControl rim,
   the stroke's own size, in the viewer's strip after their Saffron strokes, up to the count just above. Critique
   round 2: the stage wells' treatment at stroke size, so the goal reads on the Nile 50 strip: ink 12% over the strip
   for the fill, a 2dp rim of ink 50%, the 1.5dp lip kept. */
.tally-bundle i.tally-well { background: color-mix(in srgb, var(--color-ink) 12%, transparent); box-shadow: var(--well-lip), inset 0 0 0 2px color-mix(in srgb, var(--color-ink) 50%, transparent); }
/* Compressed board: a closed five is one square-cornered 12dp block the bundle's height (rounded strokes stay strokes),
   blocks space.xs apart, open strokes space.l after the last block. */
.tally-run--compressed { gap: var(--space-xs); }
.tally-run--compressed .tally-bundle--closed { width: var(--tally-block); border-radius: 0; background: currentColor; }
.tally-run--compressed .tally-bundle--closed i, .tally-run--compressed .tally-bundle--closed::after { display: none; }
.tally-run--compressed .tally-bundle:not(.tally-bundle--closed) { margin-inline-start: var(--space-m); }
/* The unstruck bundle on the new month: one closed five as brand-surface wells (onBrand 12%, onBrand 50% rim, as the
   vote's brand well), the crossing well included so the bundle's silhouette is there to fill: strokes space.m (12dp)
   wide and 4 x space.3xl (128dp) tall, space.2xl apart (a 120dp bundle; the crossing as in every bundle, above).
   The band is the stage of the wipe Lottie (data-lottie="leaderboard-wipe"); this is its poster. */
/* unused since 2026-10-07, crew-leaderboard (motion): this rule and the next; leaderboard-wipe.png draws the bundle now. Kept as the poster's geometry. */
.tally-run--wells { --tally-stroke: var(--space-m); --tally-height: calc(4 * var(--space-3xl)); --tally-gap: var(--space-2xl); }
.tally-run--wells .tally-bundle i, .tally-run--wells .tally-bundle--closed::after { background: var(--color-on-brand-fill); box-shadow: inset 0 0 0 1.5px var(--color-on-brand-line); }
/* The wipe Lottie's poster in the bundle's place (motion stage): 360 x 160, full bleed, the bundle centred with space.l above and
   below, so the negative margins give back exactly the band's inline padding and the poster's 16dp air; the layout is unchanged. */
.board-band-wipe { width: calc(100% + 2 * var(--space-2xl)); max-width: none; height: calc(4 * var(--space-3xl) + 2 * var(--space-l)); margin: calc(-1 * var(--space-l)) calc(-1 * var(--space-2xl)); }

/* One row: rank | face + name over the run | all time | count. Rank, all time and count span both lines. */
.board-entries { display: flex; flex-direction: column; padding-inline: var(--space-2xl); }
.board-entry { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px 68px; grid-template-rows: auto auto; column-gap: var(--space-m); row-gap: var(--space-s); align-items: center; padding-block: var(--space-l); }
.board-entry-rank { grid-column: 1; grid-row: 1 / 3; color: var(--color-ink); font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; font-variant-numeric: tabular-nums; }
.board-entry-who { grid-column: 2; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-s); min-width: 0; }
.board-entry-who bdi { overflow-wrap: anywhere; }
.board-entry-you { color: var(--color-ink-muted); }
.board-entry .tally-run { grid-column: 2; grid-row: 2; }
.board-entry-alltime { grid-column: 3; grid-row: 1 / 3; text-align: end; color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }
.board-entry-count { grid-column: 4; grid-row: 1 / 3; text-align: end; color: var(--color-ink); font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; font-variant-numeric: tabular-nums; }

/* The leader band: rank 1 only (one leader, or every member tied at 1), Nile 800 full bleed, the table's columns. */
.board-band { display: flex; flex-direction: column; padding: var(--space-s) var(--space-2xl) var(--space-m); background: var(--color-surface-brand); color: var(--color-on-brand); }
.board-band .board-entry-rank, .board-band .board-entry-count { color: var(--color-on-brand); }
.board-band .board-entry-count { font-size: 40px; line-height: 48px; }
.board-band .board-entry-alltime, .board-band .board-entry-you { color: color-mix(in srgb, var(--color-on-brand) 78%, transparent); }
/* Nile-tone faces (the viewer's Nile 800, Nile 600) would sink into the band: raised brand surface and a 2dp onBrandLine ring. */
.board-band .avatar:not(.avatar-2):not(.avatar-4):not(.board-seat-empty) { background: var(--color-surface-brand-raised); box-shadow: 0 0 0 2px var(--color-on-brand-line); }
/* The empty month and the crew of one: no rows, so the band is the stage and takes the spare height. */
.board-band--stage { flex: 1 0 auto; align-items: center; justify-content: center; gap: var(--space-l); padding-block: var(--space-3xl); }
/* No table, so no heads: the month names the stage, inside the band in onBrand (critique round 1, fix 4). */
.board-band-month { color: var(--color-on-brand); text-align: center; }
.font-scale-200 .board-band--stage { padding-block: var(--space-l); } /* 200%: the band gives the column head its line back before the table scrolls */
.board-seats { display: flex; align-items: flex-start; gap: var(--space-2xl); }
.board-seat { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); width: calc(2 * var(--space-4xl)); text-align: center; }
/* The crew of one's faces at 96dp (2 x space.4xl), so the stage holds them as its subject, not as a stray pair. */
.board-seat .avatar { width: calc(2 * var(--space-4xl)); height: calc(2 * var(--space-4xl)); margin-block-end: var(--space-s); font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; }
.board-band .board-seat-empty { background: var(--color-on-brand-fill); box-shadow: inset 0 0 0 1.5px var(--color-on-brand-line); color: var(--color-on-brand); }

/* The column heads: one quiet line under the rule, above the band, so the band's numerals are labelled too (critique
   round 1, fix 2). The table's own columns: each head inside its numeral column's width, end-aligned with its numerals;
   the all-time column (44dp) and the count column (68dp) are as wide as their longest heads ("All time", "September"),
   so the two heads stand space.l (12 + 4dp) apart. aria-hidden; the rows' labels speak the numbers. */
.board-heads { flex: none; display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px 68px; column-gap: var(--space-m); padding: 0 var(--space-2xl) var(--space-s); color: var(--color-ink-muted); }
.board-rule:has(+ .board-heads), .board-rule:has(+ .board-offline) { margin-block-end: var(--space-m); }
.board-heads > span { white-space: nowrap; text-align: end; }
.board-heads-alltime { grid-column: 3; justify-self: end; }
.board-heads-month { grid-column: 4; justify-self: end; }

/* The foot, in the thumb zone: the viewer's line on a Nile 50 strip, then the switch (or Share on WhatsApp). */
.board-foot { margin-block-start: auto; }
.board-you { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); padding: var(--space-l) var(--space-2xl); background: var(--color-surface-brand-tint); color: var(--color-ink); }
.board-you > p { text-wrap: pretty; }
/* The chase (critique round 1, fix 1): the viewer's own count, their run in Saffron, and hollow wells for the strokes
   still needed to reach the count just above, then that count; both counts Alexandria 700 34sp. Never the gap below,
   never a sum. Lead and shared lead: the run alone (the band already shows the count). The count sits in the rank column's width, so the
   run starts on the table's shared start edge. aria-hidden; leaderboard_you_gap under it is the spoken line. */
.board-you--meter { gap: var(--space-xs); }
.board-you-meter { display: flex; align-items: center; gap: var(--space-m); }
.board-you-count, .board-you-target { min-width: 36px; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.board-you-target { min-width: 0; color: var(--color-ink-muted); }
.board-you-meter--lead { padding-inline-start: calc(36px + var(--space-m)); } /* the run alone, still on the shared start edge */
.board-you-line { color: var(--color-ink-muted); }
/* At zero the strip is a well (level -1): a hollow seat at the face's place, the line, Add a place. */
.board-you--well { flex-direction: row; gap: var(--space-m); background: var(--well); box-shadow: var(--well-lip); }
.board-you--well .avatar-empty { width: calc(var(--space-3xl) + var(--space-s)); height: calc(var(--space-3xl) + var(--space-s)); box-shadow: var(--well-lip), inset 0 0 0 1.5px var(--color-outline-control); } /* 40dp (critique round 1, fix 6) */
.board-you-body > p { text-wrap: balance; }
.board-you-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); }
.board-switch { padding: var(--space-m) var(--space-2xl) var(--space-2xl); }

/* 200% font scale: the numerals grow on Android's non-linear curve (not x2), the columns with them. The name line spans
   the all-time column (names wrap, never cut) and the all-time numeral drops to the run's line, still in its column;
   the heads stack, each still ending on its own column's edge. */
.font-scale-200 .board-entry, .font-scale-200 .board-heads { grid-template-columns: 48px minmax(0, 1fr) 56px 72px; }
.font-scale-200 .board-entry-who { grid-column: 2 / 4; }
.font-scale-200 .board-entry-alltime { grid-row: 2; }
.font-scale-200 .board-entry-rank { font-size: 40px; line-height: 48px; }
.font-scale-200 .board-band .board-entry-count { font-size: 52px; line-height: 60px; }
.font-scale-200 .board-entry-count, .font-scale-200 .board-you-count, .font-scale-200 .board-you-target { font-size: 48px; line-height: 56px; }
/* 200% heads (critique round 1, fix 7): the all-time head wraps inside its own column; the month head, wider than any
   column at 200%, takes the line above, ending on the count column's edge. */
.font-scale-200 .board-heads > span { white-space: normal; }
.font-scale-200 .board-heads-month { grid-column: 2 / 5; grid-row: 1; }
.font-scale-200 .board-heads-alltime { grid-row: 2; }
/* The system's 200% set has no bodyLarge or offline-pill rule yet: the strip's line and the pill grow here (x2, as bodyMedium does). */
.font-scale-200 .board-you .type-bodyLarge { font-size: 32px; line-height: 48px; }
.font-scale-200 .board-you .type-bodyLarge:lang(ar) { line-height: 52px; }
.font-scale-200 .board-offline { height: auto; padding-block: var(--space-xs); font-size: 26px; line-height: 32px; }
.font-scale-200 .board-offline:lang(ar) { line-height: 36px; }
/* The door on group: one row between the invite and Members, a surface card (level 1) holding a small drawing of the two
   closed tally bundle in a Nile 50 tile, the label, one line and a caret. No rank, count, name, trophy or pin: the pin hangs only on
   the leaf. */
.board-door { display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 72px; padding: var(--space-m); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); color: var(--color-ink); text-align: start; }
.board-door-tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--shape-m); background: var(--color-surface-brand-tint); }
/* The door's drawing (review round 1, fix 3): one closed tally bundle, the board's own mark, four Nile 600 uprights
   crossed by a fifth, at door size: strokes space.xs wide and space.xs apart, space.2xl tall (28 x 24dp in the 44dp
   tile). The crossing is the board's own (critique round 1, fix 3: 4dp past the first and last uprights, 36 x 24dp,
   33.7deg) and mirrors in Arabic, as on the board. Replaces
   the calendar leaves (rear, front, month), deleted. */
.board-door-glyph { --tally-stroke: var(--space-xs); --tally-gap: var(--space-xs); --tally-height: var(--space-2xl); }
.board-door-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.board-door > .icon { color: var(--color-ink-muted); }
/* State hooks the screens name (landed with the block): the lead and viewer rows carry no rule of their own (the band and
   the Saffron run draw them); the stage table (empty month, crew of one) only lets the band take the height. */
.board-entry--lead, .board-entry--you { min-width: 0; }
.board-table--stage { overflow: visible; }
.lottie { display: block; max-width: 100%; }

/* ---- Arrival points (2026-10-22, brain/features/arrival-points/, concept A "The pin goes in first", direction b "The pin
   stage") ------------------------------------------------------------------------------------------------------------
   A first arrival's upright wears the logo pin's outline silhouette (design/brand/src/logos.mjs pin(), no hole) as its
   head, the pin's needle merging into the stroke. --tally-head is 2.5 x the run's stroke (the pin's head-to-stem ratio at
   stroke scale), so the head scales with every run. Since review round 2 it is the logo pin itself (design/brand/logos/01-pin-question,
   r 105, head centre 1.35r above the tip): 1.175 x as tall as wide, a full circle over a sharp V whose shoulders stand
   past the upright on both sides; the upright begins at the pin's tip. Pinned pairs lead each
   run; the crossing stroke never wears a head. On Showed up the band is the stage: the leader's run spans the row at
   stage scale (6dp strokes, 48dp tall, a 15dp head). The key is the rule drawn in the board's two marks, the bench holds
   the members at zero on every board (level 1, no position, no strokes), and the calendar's points line repeats the
   viewer's own marks once at 20dp. */
.tally-run { --tally-head: calc(2.5 * var(--tally-stroke)); }
.tally-bundle i.tally-first { position: relative; background: none; }
.tally-bundle i.tally-first::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--tally-head); height: calc(1.175 * var(--tally-head)); transform: translateX(-50%); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11.75'%3E%3Cpath d='M5 11.75L1.64 8.7A5 5 0 1 1 8.36 8.7Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11.75'%3E%3Cpath d='M5 11.75L1.64 8.7A5 5 0 1 1 8.36 8.7Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat; }
.tally-bundle i.tally-first::after { content: ""; position: absolute; inset: calc(1.175 * var(--tally-head) - 1px) 0 0; border-radius: var(--shape-full); background: currentColor; }

/* The key: under the band, its caption; two items, each the mark then its label, wrapping per item, never truncated. */
.tally-key { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-2xl); padding: var(--space-m) var(--space-2xl) 0; color: var(--color-ink-muted); }
.tally-key-item { display: inline-flex; align-items: center; gap: var(--space-s); }
.tally-key .tally-run { --tally-stroke: var(--space-xs); --tally-height: var(--space-xl); --tally-gap: var(--space-xs); flex: none; }
.board-rule + .tally-key, .board-bar + .tally-key { padding-block-start: 0; margin-block-end: var(--space-m); }

/* The stage run (Showed up's band): name line on top, the run under it across the name and all-time columns. */
.board-entry--stage { row-gap: var(--space-m); }
.board-entry--stage .board-entry-rank, .board-entry--stage .board-entry-alltime, .board-entry--stage .board-entry-count { grid-row: 1; }
.board-entry--stage .tally-run { --tally-stroke: var(--shape-xs); --tally-height: var(--space-4xl); --tally-gap: var(--space-s); --tally-bundle-gap: var(--space-l); grid-column: 2 / 4; }
.board-band:has(.board-entry--stage) { padding-block: var(--space-l) var(--space-2xl); }

/* The bench: the members at zero on one white level-1 surface after the ranked rows, on every board. */
.board-bench { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "faces head" "faces names"; align-items: center; gap: var(--space-2xs) var(--space-m); margin: var(--space-l) var(--space-2xl); padding: var(--space-m) var(--space-l); border: 1px solid var(--color-outline); border-radius: var(--shape-card); background: var(--color-surface); }
.board-bench-row { display: contents; }
.board-bench-head { grid-area: head; align-self: end; color: var(--color-ink-muted); }
.board-bench-faces { grid-area: faces; display: flex; flex-wrap: wrap; gap: var(--space-s); }
.board-bench-names { grid-area: names; align-self: start; min-width: 0; color: var(--color-ink); text-wrap: pretty; }
/* The air the concept puts before the bench: with room to spare the bench settles at the table's foot, over the strip; when the
   table scrolls it follows the rows at space.l. */
.board-table .board-bench { margin-block-start: auto; }
.board-table .board-entries:has(+ .board-bench) { padding-block-end: var(--space-l); }
/* Three faces or more: head, faces, names stacked, so the names line keeps the bench's width. */
.board-bench:has(.board-bench-faces > :nth-child(3)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "faces" "names"; row-gap: var(--space-s); }
/* With a bench on the board, rows step from space.l to space.m so the bench sits above the fold at 360 x 800. */
.board-table:has(.board-bench) .board-entry { padding-block: var(--space-s); }
.board-table:has(.board-bench) .board-band:not(:has(.board-entry--stage)) { padding-block-end: var(--space-s); }
.board-band--stage + .tally-key + .board-bench, .board-band--stage + .board-bench { margin-block-start: var(--space-l); }
/* The viewer at zero on Showed up: the well and its line, no action (nothing in Feen makes an arrival, D-d). */
.board-you--well .board-you-body > p:only-child { margin-block: auto; }

/* 200%: the key's marks and the runs keep their size; labels and names wrap. */
.font-scale-200 .tally-key { gap: var(--space-s) var(--space-l); }
.font-scale-200 .board-entry--stage .board-entry-who { grid-column: 2 / 4; }
.font-scale-200 .board-bench-faces .avatar { width: 48px; height: 48px; }

/* The calendar's points line: the viewer's own strokes at 20dp (Saffron), then the reason and "+n · list". Once. It is
   text, not a button: it sits above the hero's tap layer and opens nothing. On the Nile 800 block it is onBrand; on the
   Past days well, ink. */
.cal-points { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-m); padding-block-start: var(--space-m); pointer-events: none; }
.cal-points .tally-run { --tally-stroke: var(--space-xs); --tally-height: var(--space-xl); --tally-gap: var(--shape-xs); flex: none; }
.cal-points-text { display: flex; flex-direction: column; min-width: 0; }
.cal-points-value { font-variant-numeric: tabular-nums; }
.cal-hero .cal-points, .cal-today .cal-points { margin-block-start: var(--space-m); border-block-start: 1px solid var(--color-on-brand-line); color: var(--color-on-brand); } /* unused since 2026-11-01, calendar-month */
.cal-past-entries > .cal-points { padding-block: 0 var(--space-s); color: var(--color-ink); }
.cal-past-entries > .cal-points .cal-points-reason { color: var(--color-ink-muted); }
.font-scale-200 .cal-points { align-items: flex-start; }
/* Review round 1 (2026-10-22). */
/* C4: on a run with pinned firsts the crossing stroke spans 30 to 85% of the uprights' height, so it never meets a head. */
.tally-bundle--closed:has(.tally-first)::after { top: 57.5%; width: hypot(var(--tally-cross-span), calc(0.55 * var(--tally-height))); transform: translate(-50%, -50%) rotate(calc(-1 * atan2(calc(0.55 * var(--tally-height)), var(--tally-cross-span)))); }
[dir="rtl"] .tally-bundle--closed:has(.tally-first)::after { transform: translate(-50%, -50%) rotate(atan2(calc(0.55 * var(--tally-height)), var(--tally-cross-span))); }
/* Fix 7: the key comes before the list in reading order and shows under the band by flex order; the list wrapper only
   carries the list role. */
.board-list { display: contents; }
.board-table > .tally-key { order: 1; padding: var(--space-l) var(--space-2xl) 0; margin-block-end: var(--space-s); }
.board-list > .board-band { order: 0; }
.board-list > .board-entries { order: 2; }
.board-list > .board-bench { order: 3; }
/* C5: Showed up's rhythm: rows on space.l, the bench at least space.3xl under the last row. */
.board-table:has(.board-entry--stage) .board-entries .board-entry { padding-block: var(--space-l); }
/* C6: the strokes still to make in the viewer's meter are 1.5dp outline wells (level -1), after her filled ones, never across them. */
.board-you-meter .tally-bundle i.tally-well { background: var(--well); box-shadow: var(--well-lip), inset 0 0 0 1.5px var(--color-outline-control); }
/* C7: at 200% the column heads ride in the band as one caption line, and the segments size to their labels. */
.board-heads--in-band { display: flex; justify-content: flex-end; gap: var(--space-l); padding: 0 0 var(--space-xs); color: color-mix(in srgb, var(--color-on-brand) 78%, transparent); }
.font-scale-200 .board-band .board-heads--in-band { display: flex; grid-template-columns: none; padding: var(--space-s) 0 0; }
.font-scale-200 .board-band .board-heads--in-band > span { white-space: nowrap; }
.font-scale-200 .board-switch .segmented { height: auto; align-items: stretch; }
.font-scale-200 .board-switch .segment { flex: 1 1 0; min-width: max(48px, min-content); height: auto; min-height: 48px; padding: var(--space-xs) var(--space-2xs); white-space: normal; text-align: center; }
/* Screen fix 1: the reason label scales at 200% (labelLarge x 2). */
.font-scale-200 .cal-points-reason { font-size: 30px; line-height: 40px; }
.font-scale-200 .cal-points-reason:lang(ar) { line-height: 44px; }
/* C8, round 2: each points line sits inside its group's inset, at its foot: the choice's card or the outing's raised panel
   wraps the target and the line (.cal-inset), so the line is the inset's last row and never a target itself. */
.cal-inset { display: flex; flex-direction: column; } /* unused since 2026-11-01, calendar-month */
.cal-inset--choice { border-radius: var(--shape-m); background: var(--color-on-brand-fill); } /* unused since 2026-11-01, calendar-month */
.cal-inset--choice > .cal-choice { background: transparent; } /* unused since 2026-11-01, calendar-month */
.cal-inset--outing { margin-inline: calc(-1 * var(--space-xl)); margin-block-end: calc(-1 * var(--space-xl)); border-end-start-radius: var(--shape-xl); border-end-end-radius: var(--shape-xl); background: var(--color-surface-brand-raised); } /* unused since 2026-11-01, calendar-month */
.cal-inset--outing > .cal-today-outing { margin: 0; border-radius: 0; background: transparent; } /* unused since 2026-11-01, calendar-month */
.cal-today .cal-inset > .cal-points { margin: 0; border: 0; } /* unused since 2026-11-01, calendar-month */
.cal-today .cal-inset--choice > .cal-points { padding: 0 var(--space-s) var(--space-s); } /* unused since 2026-11-01, calendar-month */
.cal-today .cal-inset--outing > .cal-points { padding: 0 var(--space-xl) var(--space-m); } /* unused since 2026-11-01, calendar-month */
.cal-today-outing-head .cal-today-time { color: color-mix(in srgb, var(--color-on-brand) 78%, transparent); } /* unused since 2026-11-01, calendar-month */

/* The door on group, as landed (arrival-points): one section gap above it, like Members below it. */
.board-door { margin-block-start: var(--space-3xl); }

/* The match (the-match, 2026-10-26): P0-6's three steps on the brand surface, concept A "Number one". The mood and
   who's coming set as lines of type; the result a Limestone hero whose rank numeral (120dp, set in dp, never scaled)
   stands out of its top-start corner, split in two colours at the edge, over the bare ranking. One Saffron fill. */
.match { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0 var(--space-2xl) var(--space-m); }
.artboard.match-board { height: 800px; } /* one phone screen: the ranking scrolls under the pinned actions */
.match-top { display: flex; align-items: center; gap: var(--space-2xs); min-height: 48px; margin-inline-start: calc(-1 * var(--space-m)); }
.match-top-end { margin-inline-start: auto; }
.steps-dots { display: flex; gap: var(--space-xs); }
.steps-dots i { width: 24px; height: 4px; border-radius: 2px; background: var(--color-on-brand-line); }
.steps-dots i.on { background: var(--color-on-brand); }
.match-title { margin: var(--space-m) 0 0; }
.match-title:lang(ar) { line-height: 60px; }
.match-q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the string's "?", spoken; the pin mark draws it */
.match-sub { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.match-foot { position: relative; z-index: 1; display: flex; flex-direction: column; margin-block-start: auto; padding-block-start: var(--space-2xl); background: var(--color-surface-brand); } /* its own band: the ranking clips 24dp above Let's go */
.match-stack { display: flex; flex-direction: column; gap: var(--space-l); margin-block-start: var(--space-m); }
.match-kicker { margin: var(--space-m) 0 0; }
.match-nowrap { white-space: nowrap; }
.match-statement { margin: var(--space-s) 0 0; text-wrap: pretty; }
.match-statement:lang(ar) { line-height: 60px; }
.match-hero--slot { margin-block-start: var(--space-2xl); padding: var(--space-2xl); }
.match-fill { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: var(--space-l); }

/* step 1, the moods as type; Surprise us on its raised plate */
.mood-lines { display: flex; flex-direction: column; margin-block-start: var(--space-2xl); }
.mood-line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-l); min-height: 80px; border-block-end: 1px solid color-mix(in srgb, var(--color-on-brand) 14%, transparent); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; text-align: start; }
.mood-line:last-child { border-block-end: 0; }
.mood-line:lang(ar) { line-height: 44px; }
.mood-line .icon { font-size: 24px; color: color-mix(in srgb, var(--color-on-brand) 72%, transparent); }
/* unused since 2026-11-04, match-rework (the mood plate holds .match-terms; Surprise is .match-surprise-text on the result) */
.match-surprise { display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 64px; padding: 0 var(--space-l); border-radius: var(--shape-card); background: var(--color-surface-brand-raised); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; text-align: start; }
.match-surprise .icon { font-size: 24px; }

/* step 2, a face and a name per line; a dropped face empties to its ring */
.who-lines { display: flex; flex-direction: column; gap: var(--space-l); margin-block-start: var(--space-2xl); }
.who-line { display: flex; align-items: center; gap: var(--space-l); min-height: 72px; color: var(--color-on-brand); font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; text-align: start; }
.who-line:lang(ar) { line-height: 44px; }
.who-line--off .who-state { color: var(--color-on-brand); font-weight: 600; } /* match-rework: the name stays full strength; the empty ring and the word say not coming */
.who-line--off .avatar { background: transparent; color: var(--color-on-brand); box-shadow: inset 0 0 0 1.5px var(--color-on-brand-line); }

/* step 3, the hero and its split numeral */
.match-hero { position: relative; display: flex; flex-direction: column; gap: var(--space-s); margin-block-start: 52px; padding: var(--space-l); border-radius: var(--shape-xl); background: var(--color-background); color: var(--color-ink); }
.match-hero--plain { margin-block-start: 0; }
.match-rank-hero { --cut: 52px; position: absolute; inset-inline-start: var(--space-m); inset-block-start: calc(-1 * var(--cut)); width: 88px; height: var(--match-rank-hero); font-family: var(--font-display); font-weight: 700; font-size: var(--match-rank-hero); line-height: var(--match-rank-hero); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; pointer-events: none; }
.match-rank-hero > span { position: absolute; inset: 0; }
.match-rank-hero:dir(ltr) { inset-inline-start: 0; } /* the Latin 1's flag carries 12dp of side bearing: this puts its ink on the ranking's rank edge */
.match-rank-hero-top { color: var(--color-on-brand); background: var(--color-surface-brand); clip-path: inset(0 0 calc(100% - var(--cut)) 0); } /* its own Nile backing: the half above the hero edge sits on the page, not the hero (match-rework gate 0, contrast) */
.match-rank-hero-foot { color: var(--color-outline-strong); clip-path: inset(var(--cut) 0 0 0); }
.match-hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-s); min-height: 24px; }
.match-hero:not(.match-hero--plain) .match-hero-line { margin-inline-start: 84px; }
.match-name { margin: var(--space-s) 0 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; color: var(--color-outline-strong); }
.match-hero--plain .match-name { margin-block-start: var(--space-xs); }
.match-hero--drawn .match-name { font-size: 40px; line-height: 48px; } /* Surprise: no rank, so the name is the display line */
.match-hero--drawn .match-name:lang(ar) { line-height: 60px; }
.match-name:lang(ar) { line-height: 44px; }
.match-muted { color: var(--color-ink-muted); }
.match-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-s); }
.match-score b { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 40px; color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.match-new { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--color-primary); }
.match-reasons { display: flex; flex-direction: column; gap: var(--space-2xs); }
.match-reason { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-s); }
.match-reason > :first-child { color: var(--color-ink-muted); }
.match-reason > :last-child { color: var(--color-ink); }

/* the ranking: rows bare on Nile 800, the featured one a Nile 700 step; ranks start-aligned under the hero numeral */
.match-rank-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-s); margin-block: var(--space-l) var(--space-xs); }
.match-rank-list { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.match-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; column-gap: var(--space-m); min-height: 48px; padding: var(--space-2xs) var(--space-m); border-radius: var(--shape-m); color: var(--color-on-brand); text-align: start; }
.match-row--featured { background: var(--color-surface-brand-raised); } /* §5 level 2: the one selected row of a list on a brand surface; the others stand bare */
.match-row-rank { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; font-variant-numeric: tabular-nums; }
.match-row--top .match-row-rank { font-size: 28px; line-height: 32px; }
.match-row-text { display: flex; flex-direction: column; min-width: 0; }
.match-row-text strong { font-weight: 600; font-size: 15px; line-height: 20px; }
.match-row-text strong > bdi { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.match-row-text small { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); font-size: 12px; line-height: 16px; }
.match-row-text strong:lang(ar) { line-height: 22px; }
.match-row-text small:lang(ar) { line-height: 18px; }
.match-row-score { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; }
.match-row-new { font-weight: 600; font-size: 13px; line-height: 18px; white-space: nowrap; } /* match-rework: «جديد علينا» stays one line; the name column gives way */
.match-actions-row { display: flex; align-items: center; justify-content: space-between; }
.match-foot .btn-text[aria-disabled="true"] { color: color-mix(in srgb, var(--color-on-brand) 60%, transparent); }
.match[inert] + .scrim { z-index: 2; } /* the match drawn behind a sheet (confirm_sheet, synced 2026-10-26): the scrim covers its pinned foot band */
.match-empty-mood { display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; color: var(--color-outline-strong); }
.match-empty-mood:lang(ar) { line-height: 60px; }

/* 200%: text doubles, the hero numeral does not (it is set in dp; its spoken label carries it) */
.font-scale-200 .match-name { font-size: 48px; line-height: 58px; }
.font-scale-200 .match-score b { font-size: 64px; line-height: 72px; }
.font-scale-200 .match-hero:not(.match-hero--plain) .match-hero-line { margin-inline-start: 84px; }
.font-scale-200 .match-reason { grid-template-columns: 1fr; gap: 0; }

/* intro slide 3 (sync best-fit, 2026-10-29): the match in miniature as the slide's picture, "the best fit first".
   The real hero, split rank numeral and ranking, on their own Nile 800 plate, sized to the 240 x 200 illustration slot. */
.intro-match { display: flex; flex-direction: column; width: 240px; padding: var(--space-l); border-radius: var(--shape-xl); background: var(--color-surface-brand); text-align: start; }
.intro-match .match-hero { margin-block-start: 34px; gap: var(--space-2xs); padding: var(--space-m); border-radius: var(--shape-l); }
.intro-match .match-rank-hero { --cut: 34px; width: 52px; height: 72px; font-size: 72px; line-height: 72px; inset-inline-start: var(--space-s); }
.intro-match .match-rank-hero:dir(ltr) { inset-inline-start: var(--space-2xs); }
.intro-match .match-hero .match-hero-line { margin-inline-start: 52px; min-height: 20px; }
.intro-match .match-name { margin: 0; font-size: 17px; line-height: 22px; }
.intro-match .match-name:lang(ar) { line-height: 28px; }
.intro-match .match-rank-list { gap: var(--space-2xs); margin-block-start: var(--space-xs); }
.intro-match .match-row { grid-template-columns: 20px 1fr auto; column-gap: var(--space-s); min-height: 28px; padding: 0 var(--space-m); }
.intro-match .match-row-rank { font-size: 16px; line-height: 20px; }
.intro-match .match-row-text strong { font-size: 13px; line-height: 18px; }
.intro-match .match-row-score { font-size: 14px; line-height: 18px; }
.font-scale-200 .match-row { grid-template-columns: 52px 1fr; }
.font-scale-200 .match-row-rank { font-size: 40px; line-height: 48px; }
.font-scale-200 .match-row--top .match-row-rank { font-size: 48px; line-height: 56px; }
.font-scale-200 .match-row-text strong { font-size: 30px; line-height: 40px; }
.font-scale-200 .match-row-text strong:lang(ar) { line-height: 48px; }
.font-scale-200 .match-row-text small:lang(ar) { line-height: 36px; }
.font-scale-200 .match-row-text strong > bdi { white-space: normal; }
.font-scale-200 .match-row-text small { font-size: 24px; line-height: 32px; }
.font-scale-200 .match-row-score, .font-scale-200 .match-row-new { grid-column: 2; font-size: 30px; line-height: 40px; }

/* ---- Shared, adopted 4 Nov 2026 (/sync-design): the match rework ------------------------------------------------------
   The Design System's §8 The match (the mood, who's coming, the result, the ranking, the foot: p-match-1 to 5) and §8 Surprise
   us reveal (p-match-6). Stays inside The match block, where it was, so the cascade is as it was.
   The match rework (match-rework, 2026-11-04): direction A "The terms, in words". The terms are a sentence of
   underlined phrases on the mood step's foot plate (where Surprise us sat); who's coming gets a word under each name;
   the hero's score row sets You on the average's baseline; the rule line names the ranking; Surprise is the rank head's
   text action; Send shares the foot row with Let's go, which stays the widest and only warm thing. */
/* §8 The match, the mood: the foot plate holds the terms sentence (p-match-1) */
.match .mood-lines { flex: 0 1 auto; min-height: 0; overflow: hidden; } /* the moods clip above the plate when it grows */
.mood-lines--rows-3 { max-height: calc(3 * 80px); } /* a grown plate: the moods scroll, clipped on a row's divider, never mid-glyph */
.match { --match-term-underline: 1.5px; } /* the terms' underline, the wells' lip width, on the plate and on the rule line */
.match-terms { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-s) var(--space-l) var(--space-m); border-radius: var(--shape-card); background: var(--color-surface-brand-raised); } /* the underline is the wells' lip width */
.match-terms-line { margin: 0; color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 48px; letter-spacing: -0.01em; } /* one line of prose: each line box is a 48dp row of targets */
.match-terms-join { color: inherit; }
.match-term > .match-terms-join { display: inline-block; color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); font-weight: 600; } /* a phrase's comma, «و» or full stop rides inside its button (it is an atomic box), not underlined */ /* the joins between phrases: plain type, no underline (the copywriter's connecting words go here) */
.match-term { display: inline; padding-block: 11px; color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; text-align: start; text-decoration: underline dotted var(--match-term-underline) var(--color-on-brand-line); text-underline-offset: 6px; }
.match-term:lang(ar) { padding-block: 8px; line-height: 32px; text-underline-offset: 8px; } /* a button is an atomic box: 32 + 2 x 8 = the 48dp row */
.match-term--set.match-term--inline { padding-block: 14px; margin-block: -14px; font: inherit; font-weight: 600; text-underline-offset: 4px; } /* the read-back on the rule line: the plate's set phrase at the line's size */
.match-term--open { text-decoration-style: solid; } /* the phrase whose strip is showing */
.match-term--set { color: var(--color-on-brand); font-weight: 700; text-decoration: underline solid var(--match-term-underline) var(--color-on-brand); }
/* the open phrase's strip: connected 48dp segments in an onBrand-line outline, never the onBrand-fill well, never Saffron */
.segmented-brand--terms { gap: 0; padding: 0; border-radius: var(--shape-m); background: transparent; box-shadow: inset 0 0 0 var(--match-term-underline) var(--color-on-brand-line); }
.segmented-brand--terms .segment { min-height: 48px; border-radius: var(--shape-m); font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; }
.segmented-brand--terms .segment + .segment { border-inline-start: var(--match-term-underline) solid var(--color-on-brand-line); }
.segmented-brand--terms .segment-selected { background: var(--color-on-brand); color: var(--color-surface-brand); }
.segmented-brand--wrap { flex-wrap: wrap; justify-content: flex-start; padding: 0; padding-block-start: var(--match-term-underline); padding-inline-start: var(--match-term-underline); box-shadow: none; } /* a wrapping run of content-sized segments, each drawn whole, edges overlapping to one line */
.segmented-brand--wrap .segment { flex: 0 0 auto; margin: 0; margin-block-start: calc(-1 * var(--match-term-underline)); margin-inline-start: calc(-1 * var(--match-term-underline)); padding: 0 var(--space-m); border-radius: 0; border: var(--match-term-underline) solid var(--color-on-brand-line); font-family: var(--font-text); font-size: 14px; line-height: 20px; }
/* who's coming: §8 The match, a coming / not coming word under every name (p-match-2) */
.match-who-hint { margin: var(--space-s) 0 0; }
.match-who-hint + .who-lines { margin-block-start: var(--space-xl); }
.who-text { display: flex; flex-direction: column; }
.who-state { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
/* the hero's score row: the comers' average at inline-start, You at inline-end on its baseline (§8 The match, the result: p-match-3) */
.match-score-row { display: flex; flex-wrap: wrap; align-items: first baseline; justify-content: space-between; gap: var(--space-s) var(--space-m); }
.match-score-col { display: flex; flex-direction: column; gap: var(--space-2xs); }
.match-score-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 40px; color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.match-you { display: inline-flex; align-items: baseline; gap: var(--space-xs); color: var(--color-ink); }
.match-you .avatar { align-self: center; }
.match-you b { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--color-outline-strong); font-variant-numeric: tabular-nums; }
/* the rank head and its rule, Surprise us at its end (§8 The match, the ranking: p-match-4) */
.match-rank-head:has(> .match-surprise-text) { align-items: center; margin-block-end: 0; }
.match-board .match-rank-head:has(> .match-surprise-text) { padding-block-start: var(--space-2xl); }
.match-board .match-hero:not(.match-hero--plain) { flex-grow: 1; padding-block-end: var(--space-2xl); } /* a short ranking: the hero absorbs the spare height, its key column at its foot */
.match-board .match-hero:not(.match-hero--plain) > .match-reasons { margin-block-start: auto; }
.match-board .match-rank-list + .match-foot { margin-block-start: 0; } /* a short ranking sits as one group straight above the foot: one composed space under the hero */
.match-surprise-text { gap: var(--space-xs); margin-inline-end: calc(-1 * var(--space-m)); }
.match-rank-rule { margin: 0 0 var(--space-m); color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.match-rank-rule strong { color: var(--color-on-brand); font-weight: 600; }
/* the foot: one line above, Send and Let's go on one 72dp row (§8 The match, the foot: p-match-5) */
.match-foot-line { margin: 0 0 var(--space-m); color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.match-foot-row { --match-send-min: calc(2 * 48px + var(--space-s)); display: flex; gap: var(--space-s); }
.match-send { flex: none; flex-direction: column; gap: var(--space-2xs); min-width: var(--match-send-min); min-height: 72px; padding: 0 var(--space-s); background: var(--color-surface-brand-raised); }
.match-go { flex: 1; }
.match-vote-off { display: flex; flex-direction: column; align-items: flex-end; }
.match-vote-off .btn-text { min-height: 40px; }
.match-vote-off > span { margin-block-end: var(--space-xs); }
/* 200% */
.font-scale-200 .match-terms-line { font-size: 40px; line-height: 64px; } /* the lead and joins grow with the phrases */
.font-scale-200 .match-term { font-size: 40px; line-height: 52px; }
.font-scale-200 .match-term:lang(ar) { padding-block: 0; line-height: 64px; }
.font-scale-200 .mood-line { font-size: 48px; line-height: 60px; }
.font-scale-200 .mood-line:lang(ar) { line-height: 72px; }
.font-scale-200 .match-score-row { flex-direction: column; align-items: flex-start; }
.font-scale-200 .match-score-num { font-size: 64px; line-height: 72px; }
.font-scale-200 .match-you b { font-size: 40px; line-height: 52px; }
.font-scale-200 .match-send { max-width: 128px; min-height: 72px; padding-inline: var(--space-s); } /* one row at 200%: Send's label wraps under its glyph */
.font-scale-200 .match-go { padding-inline: var(--space-m); }
/* Surprise's reveal (§8 Surprise us reveal: p-match-6): the headline at the top, the hero sized to its content and the foot as one group in thumb reach */
.match-drawn-line { margin: 0 0 var(--space-2xl); } /* the heading 24dp over the card; heading, card and foot one group, Back alone at the top */
.match-no-fit-mood { margin: var(--space-2xl) 0 0; font-family: var(--font-display); font-weight: 700; font-size: calc(2 * var(--space-2xl)); line-height: 56px; letter-spacing: -0.02em; color: var(--color-on-brand); } /* the mood as structure: 48dp, a step past displayLarge */
.match-no-fit-mood:lang(ar) { line-height: 72px; }
.match-no-fit-line { margin: 0 0 var(--space-m); color: var(--color-on-brand); }
.match-top:has(.day-leaf) { min-height: 80px; } /* for a day: the leaf stands whole inside the top bar, clear of the step bars */
.match-drawn { display: flex; flex-direction: column; margin-block-start: auto; }
.match-drawn .match-foot { margin-block-start: 0; }
.match-clear-terms { margin-block-start: var(--space-m); }

/* Dark theme (27 Oct 2026, brain/features/dark-mode). Roles flip in tokens.css; these are the few components whose
   light values are raw ramp steps or alphas tuned to the light surfaces, each retuned to clear WCAG AA in dark. */
[data-theme="dark"] .dialog-addresses { background: var(--color-surface-raised); } /* Saffron 50 left light ink at 1.03:1 (8 Nov 2026) */
[data-theme="dark"] .menu-table { background: var(--color-surface-raised); box-shadow: inset 0 1px 0 var(--saffron-300); } /* the menu's paper band: Saffron 50 would glare, Saffron 900 made a second colour block (critique r1); a raised sheet under a Saffron rule */
[data-theme="dark"] .segmented-brand .segment:not(.segment-selected) .segment-count { color: var(--color-on-brand); }
[data-theme="dark"] .cal-today-outing-head .cal-today-time { color: color-mix(in srgb, var(--color-on-brand) 90%, transparent); } /* unused since 2026-11-01, calendar-month */
[data-theme="dark"] .feedback-limit-over { color: var(--clay-100); }
[data-theme="dark"] .day-line-warn .icon { color: var(--color-error); }
[data-theme="dark"] .vote-option--well .distance, [data-theme="dark"] .vote-pick .distance { color: var(--nile-100); }
[data-theme="dark"] .vote-option { --vote-fill: var(--nile-800); } /* Nile 100 bars would sit light under teal text */
[data-theme="dark"] .map-screen { --map-land: var(--limestone-850); --map-water: var(--nile-900); --map-road: var(--limestone-700); --map-city-has: color-mix(in srgb, var(--nile-700) 45%, transparent); }
[data-theme="dark"] .map-sign--empty .map-sign-plate { box-shadow: var(--well-lip), 0 0 0 1px var(--limestone-600), 0 0 0 3px var(--map-sign-halo); }
/* Critique r1: paper that stayed light. A day leaf on a brand surface is a raised sheet in dark; the chosen leaf on a brand
   strip keeps its Saffron edge instead of a light fill. */
[data-theme="dark"] .day-leaf--on-brand .day-leaf-sheet { background: var(--color-surface-raised); }
[data-theme="dark"] .day-strip-on-brand .day-leaf--chosen .day-leaf-sheet { background: var(--color-surface-raised); box-shadow: inset 0 0 0 2px var(--color-accent); }
[data-theme="dark"] .day-strip-on-brand .day-leaf-badge { --badge-ring: var(--color-surface-raised); }
/* The phone's own chrome (launcher, lock-screen shade) is dark when the phone is. */
[data-theme="dark"] .launcher { background: color-mix(in srgb, var(--nile-900) 45%, var(--limestone-900)); }
[data-theme="dark"] .launcher-status, [data-theme="dark"] .shade-clock { color: var(--limestone-100); }
[data-theme="dark"] .launcher-app::before, [data-theme="dark"] .launcher-search { background: color-mix(in srgb, var(--limestone-0) 12%, transparent); }
[data-theme="dark"] .launcher-app::after { background: color-mix(in srgb, var(--limestone-0) 10%, transparent); }
[data-theme="dark"] .shade-msg { background: color-mix(in srgb, var(--limestone-850) 94%, transparent); color: var(--limestone-200); }
[data-theme="dark"] .shade-msg-app { color: var(--limestone-400); }
[data-theme="dark"] .shade-msg-title { color: var(--limestone-50); }
[data-theme="dark"] .shade-msg-icon { background: var(--nile-700); color: var(--limestone-50); }
[data-theme="dark"] .launcher-search { color: var(--limestone-300); }
/* Lottie posters in dark: each animation has a -dark twin (brain/features/dark-mode/lottie_dark.py); the app plays that one. */
[data-theme="dark"] img.lottie[src$="/calendar-empty-pad.png"] { content: url("../app/motion/calendar-empty-pad-dark.png"); }
[data-theme="dark"] img.lottie[src$="/calendar-empty-pad-ar.png"] { content: url("../app/motion/calendar-empty-pad-ar-dark.png"); }
[data-theme="dark"] img.lottie[src$="/leaderboard-wipe.png"] { content: url("../app/motion/leaderboard-wipe-dark.png"); }
[data-theme="dark"] img.lottie[src$="/leaderboard-wipe-ar.png"] { content: url("../app/motion/leaderboard-wipe-ar-dark.png"); }
[data-theme="dark"] img.lottie[src$="/outing-nothing-near.png"] { content: url("../app/motion/outing-nothing-near-dark.png"); }
[data-theme="dark"] img.lottie[src$="/outing-nothing-near-rtl.png"] { content: url("../app/motion/outing-nothing-near-rtl-dark.png"); }
[data-theme="dark"] .board-band .avatar:not(.avatar-2):not(.avatar-4):not(.board-seat-empty) { color: var(--color-on-brand); } /* onPrimary is Nile 900 in dark, 2.1:1 on the raised disc */
/* Basalt ground, teal hero cards (owner, 27 Oct 2026, amending D-67; decisions row 68). On the brand-canvas screens
   (picker, next_stop, outing, vote, vote_setup, confirm_sheet) dark keeps the ground low and lifts the cards: the brand
   surface is Basalt and its raised step Limestone 900, and the hero cards are Nile 700 with a hairline, so elevation reads
   the right way round (a Nile ground under Basalt cards read as holes). */
[data-theme="dark"] .brand-screen { --color-surface-brand: #0D1110; --color-surface-brand-raised: #161B19; }
[data-theme="dark"] .brand-screen .or-disc:not(.or-disc-on-background) { box-shadow: 0 0 0 4px var(--color-surface-brand-raised); }
[data-theme="dark"] :where(.picker-card, .match-hero, .reveal-card, .brand-screen .vote-option:not(.vote-option--well), .brand-screen .vote-pick--on) {
  --color-ink: #E6E9E5; --color-ink-muted: #CFE6E2; --color-ink-subtle: #A3CFC8; --color-primary: #A3CFC8;
  --color-outline-strong: #CFE6E2; --color-accent-text: #E2AC55; --color-surface-brand-tint: #083935;
  background-color: #0B4A45;
}
[data-theme="dark"] :is(.match-hero, .reveal-card, .brand-screen .vote-pick--on) { border: 1px solid rgb(163 207 200 / 0.22); }
[data-theme="dark"] .brand-screen .vote-option:not(.vote-option--well) { --vote-fill: var(--nile-600); --color-primary: #CFE6E2; } /* on the teal card the bar steps up, not down */
[data-theme="dark"] .brand-screen .vote-option:not(.vote-option--well):not(.vote-option--yours) { border-color: rgb(163 207 200 / 0.22); }
[data-theme="dark"] :is(.picker-name, .match-name, .reveal-name) { color: #E6E9E5; }
[data-theme="dark"] .match-rank-hero-top { color: #E6E9E5; }
[data-theme="dark"] .match-rank-hero-foot { color: #6FB2A8; }
/* Fix to row 68 (27 Oct 2026): the Basalt override is for grounds and raised surfaces only. Elements that use surfaceBrand
   as a fill (secondary buttons, day-leaf tops and badges, the middle rating tier, station glyphs, the ruler, compact and
   light stations, avatars, the good-take chip) take the dark teal back, set on the element itself so its own rings and
   explicit values are untouched. Paper discs (the stations) become teal like the hero cards, ringed by what they sit on. */
[data-theme="dark"] .brand-screen :is(.btn-secondary, .day-leaf-band, .day-leaf-badge, .tier-middle, .station-glyph-dot, .station-glyph-rail,
  .time-ruler-index, .hour-rail-now, .outing-station-light, .outing-station-compact, .avatar, .chip-take--good, .step-number, .crest-tile-brand,
  .price-option-selected, .month-rail-hour--set) { --color-surface-brand: #0B4A45; --color-surface-brand-raised: #0F5E57; }
[data-theme="dark"] .brand-screen :is(.outing-station:not(.outing-station-next):not(.outing-station-ghost):not(.outing-station-light), .or-disc-station) { background: #0B4A45; color: #E6E9E5; }

/* ---- From home (2026-10-29, brain/features/from-home/, P0-2/P0-5/P0-7, concept B "the tailor's tape", direction b) ------
   The filter sheet's distance block when it measures from home, the Home row on Settings and the profile, the home step's
   map window, the home chooser. The district tint is --color-district-fill, the city map's tapped fill, so the map and the
   tape say one thing. The band's width is data: --band-end = (span - 1) / 19 of the 1 to 20 km track, set per district. */
.sheet-scroll:has(> .filter-block-tint) { margin-inline: calc(-1 * var(--space-2xl)); padding-inline: var(--space-2xl); } /* the scroll clips; let the block bleed */
.filter-block-tint { margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-2xl); background: var(--color-surface-brand-tint); }
.filter-value-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-s); margin-block-end: var(--space-xs); }
.filter-value-line > .type-bodyMedium { color: var(--color-ink); }
.filter-value-words { overflow-wrap: anywhere; } /* inside the band: "Around Dokki" in the numeral's place, at its size */
.filter-value-words:lang(ar) { line-height: 56px; }
.filter-approx { margin: var(--space-xs) 0 0; color: var(--color-ink); }
.filter-here-off { margin: 0; color: var(--color-ink-muted); }
/* Here or home: the segmented control with a gutter for the or-disc, the disc in Nile 800 (Saffron is spent on the fill and Show) */
.segmented-or { position: relative; gap: var(--space-4xl); }
.or-disc--brand { background: var(--color-surface-brand); color: var(--color-on-brand); box-shadow: 0 0 0 4px var(--color-surface-sunken); }
.segment-off { color: var(--color-ink-subtle); } /* Here with location refused: inert in place, its line under the track says why */
.segment .ellipsis { min-width: 0; }
.backdrop-covered { visibility: hidden; } /* the list under a tall filter sheet: never seen, so never measured or read */
/* The tape: the slider's well with 1 km ticks on both edges, the district band from the 1 km end, its 2dp notch */
.tape { --band-end: 0%; position: relative; background: var(--well); box-shadow: var(--well-lip); }
.tape::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to right, color-mix(in srgb, var(--color-outline-strong) 22%, transparent) 0 1px, transparent 1px calc(100% / 19)) top / 100% 6px no-repeat,
    repeating-linear-gradient(to right, color-mix(in srgb, var(--color-outline-strong) 22%, transparent) 0 1px, transparent 1px calc(100% / 19)) bottom / 100% 6px no-repeat; }
.tape:dir(rtl)::after { transform: scaleX(-1); }
.tape-band { position: absolute; z-index: 1; inset-block: 0; inset-inline-start: 0; width: var(--band-end); background: var(--color-district-fill); }
.tape-band::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: -1px; width: 2px; background: var(--color-surface-brand); } /* the notch: the track's full height */
.tape > .slider-fill { margin-inline-start: var(--band-end); } /* Saffron starts where the district ends: the first stretch stays the district tint */
.tape-scale { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-m); padding-block-start: var(--space-s); }
.tape-bracket { position: absolute; inset-block-start: var(--space-xs); inset-inline-start: 0; width: var(--band-end); height: 6px; border: 1.5px solid var(--color-outline-strong); border-block-start: 0; } /* Nile 800: Nile 300 on the Nile 50 block is under 3:1 */
.tape-name { padding-block-start: var(--space-xs); color: var(--color-outline-strong); font-family: var(--font-text); font-weight: 600; font-size: 13px; line-height: 16px; }
.tape-name:lang(ar), .tape-max:lang(ar) { line-height: 20px; }
.tape-max { padding-block-start: var(--space-xs); color: var(--color-ink-muted); font-family: var(--font-text); font-weight: 500; font-size: 12px; line-height: 16px; }
.home-row-value { display: flex; flex-direction: column; min-width: 0; }
/* The home step: a Nile 50 head that asks, then answers; the framed map window; the actions in the thumb zone */
.home-step { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.home-step-body:has(> .home-step-rows) { min-height: 0; }
.home-step-head { display: flex; flex-direction: column; gap: var(--space-m); margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-4xl) var(--space-2xl) var(--space-2xl); background: var(--color-surface-brand-tint); }
.home-step-rows { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; margin-inline: calc(-1 * var(--space-l)); } /* the City list, scrolling in place */
.home-step-rows > .chooser-row { flex: none; }
.home-step-head p { margin: 0; color: var(--color-ink); }
.home-step-answer { display: flex; flex-direction: column; }
.home-step-answer .type-displayLarge { color: var(--color-outline-strong); overflow-wrap: anywhere; }
.home-step-body { display: flex; flex: 1; flex-direction: column; gap: var(--space-l); padding-block-start: var(--space-2xl); }
.home-step-foot { display: flex; flex-direction: column; gap: var(--space-xs); margin-block-start: auto; padding-block: var(--space-l) var(--space-2xl); }
.home-step-pair { display: flex; gap: var(--space-s); }
.home-step-pair > .btn { flex: 1; }
/* The map window: the Cairo-area districts, the chosen one filled and signed; one 48dp+ target into the city map */
.map-window { position: relative; display: block; width: 100%; height: 360px; flex: none; overflow: hidden; border-radius: var(--shape-card); background: var(--limestone-50); box-shadow: inset 0 0 0 1px var(--color-outline); text-align: start; }
[data-theme="dark"] .map-window { background: var(--limestone-850); }
.map-window svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-window-edge { fill: none; stroke: var(--nile-300); stroke-width: 1; stroke-linejoin: round; }
.map-window-fill { fill: var(--color-district-fill); stroke: var(--color-surface-brand); stroke-width: 2; stroke-linejoin: round; }
.map-window-label { paint-order: stroke; stroke: var(--limestone-50); stroke-width: 3px; stroke-linejoin: round; fill: var(--color-surface-brand); font-family: var(--font-text); font-weight: 600; font-size: 12px; }
.map-window-hint { position: absolute; inset-inline-start: var(--space-m); inset-block-end: var(--space-m); display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-m); border-radius: var(--shape-full); background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-outline); }
.map-window-sign { position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: flex-start; transform: translate(-3px, -100%); }
.map-window-sign { direction: ltr; } /* the map never mirrors (city_map): the post stays on the spot, the plate reads in its own language */
.map-window-sign .city-plate:lang(ar) { direction: rtl; }
.map-window-sign .city-plate { gap: var(--space-2xs); padding: var(--space-s) var(--space-m); border-radius: var(--shape-m); box-shadow: 0 0 0 2px var(--color-background); font-size: 15px; line-height: 20px; }
.map-window-sign .city-plate .type-bodySmall { font-family: var(--font-text); font-weight: 400; }
.map-window-post { width: 6px; height: var(--space-l); margin-inline-start: 0; border-radius: 0 0 var(--shape-full) var(--shape-full); background: var(--color-surface-brand); box-shadow: 0 0 0 2px var(--color-background); }
/* The home chooser: the Nile 50 head with the question at display size, then 56dp rows */
.chooser-head { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-s) var(--space-2xl) var(--space-2xl); background: var(--color-surface-brand-tint); }
.chooser-head .type-displayLarge { color: var(--color-outline-strong); }
.chooser-rows { display: flex; flex-direction: column; padding: var(--space-s) var(--space-l) 0; }
.chooser-row { display: flex; align-items: center; gap: var(--space-m); min-height: 56px; padding-inline: var(--space-l); border-radius: var(--shape-card); text-align: start; }
.chooser-row--current { background: var(--color-surface-brand-tint); }
.chooser-row .grow { min-width: 0; }
/* city_map's choosing mode: the confirm wraps rather than clips a long district ("Make Shubra El Kheima 1 home") */
.btn-wrap { height: auto; min-height: 56px; padding-block: var(--space-s); white-space: normal; text-align: center; }
.map-home-current { display: flex; flex-direction: column; }
.map-home-current .type-headlineMedium { color: var(--color-outline-strong); }
/* From home, the exact point (D-81, 2026-10-29): "use where I am now", one two-line row wherever home is picked, never
   Saffron, never preselected; the "or" on the seam between the district way and the row; Found's sign on the person's dot. */
.home-here-row { display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 64px; padding: var(--space-m) var(--space-l); border-radius: var(--shape-card); background: var(--color-background); box-shadow: inset 0 0 0 1px var(--color-outline); color: var(--color-ink); text-align: start; }
.home-here-row > .icon { color: var(--color-outline-strong); }
.home-here-row > .loader { margin-inline: 0 var(--space-2xs); }
.home-here-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.home-here-cancel { margin-inline-end: calc(-1 * var(--space-m)); }
.home-here-status { display: flex; flex-direction: column; margin: calc(-1 * var(--space-s)) 0 0; color: var(--color-ink); }
.map-window-or { position: relative; z-index: 1; height: 0; margin-block: calc(-1 * var(--space-l)) var(--space-s); }
.map-window-or .or-disc { box-shadow: 0 0 0 4px var(--color-background); }
.map-window-or--rule { margin-block: var(--space-s); }
.map-window-or--rule::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 1px; background: var(--color-outline); }
.map-window--short { height: 320px; } /* #ask, #found, #rough: the "or" and the row (or Found's lines) fit without scrolling */
.map-window--short .map-window-hint { inset-block: var(--space-m) auto; } /* the bottom edge belongs to the "or" */
.chooser-head--map { gap: var(--space-l); } /* Found and Rough from the list: the answer hung at the top, the window under it */
.map-window-sign--here { transform: translate(-3px, calc(-100% - var(--space-s))); } /* the post stands on the dot: the dot is the foot */
.slider-value-after { color: var(--color-ink); } /* an exact home: "from home" after the numeral, never "about" before it */
.home-found-line { color: var(--color-ink); }
.home-step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; }
.home-step-actions > .btn-text { flex: none; padding-inline: var(--space-s); }
.map-window--rough { height: 256px; } /* the same camera cut at its foot: the dot and sign keep their place */
.chooser-here { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-l) var(--space-2xl) 0; }
.chooser-body { display: flex; flex: 1; flex-direction: column; gap: var(--space-l); padding: var(--space-2xl) var(--space-2xl) 0; }
.map-panel--home { gap: var(--space-l); }


/* ---- Shared, adopted 1 Nov 2026 (/sync-design): the calendar as a month and the type scale at 130% --------------------------
   The Design System's §9 Calendar ("The calendar is a month"), with §5 Shape (the window's step), §5 Elevation levels −1 and 2, §6 the
   natiga and §8 Group crests (p-calmonth-1 to 7 and 9); .font-scale-130 is §11's 130% font scale. Both stay at the end of the file, where
   they were, so the cascade is as it was (as the 17 Oct section did); .day-leaf--word, between them, stays calendar-month's own.
   .month-window: the Nile silhouette of the days that can still be planned, one path from today's cell and the limit's cell, with
   the raised panel as a second path, so the window and the panel read as one shape (the shaft that joined the chosen leaf to the panel was removed on 5 Nov 2026, owner). Seven columns at a 12dp margin, six rows
   at a 52dp pitch, so the block under the month never moves between pages. The step is --shape-m; no new colour. */
[data-screen="calendar"] { --month-pitch: calc((360px - 2 * var(--space-m)) / 7); --month-row: 52px; isolation: isolate; overflow: hidden; }
.month-window { position: absolute; top: 0; left: 0; z-index: -1; width: 360px; height: 1400px; }
.month-window-nile { fill: var(--color-surface-brand); }
.month-window-raised { fill: var(--color-surface-brand-raised); }
.month-head { display: flex; flex-direction: column; height: 80px; flex: none; }
.month-head--line { height: 108px; }
.month-head--line2 { height: 132px; }
.month-head--pill { height: 122px; }
.month-bar { display: flex; align-items: center; min-height: 56px; padding-inline: var(--space-xs); }
.month-bar h1, .month-bar-gap { flex: 1; min-width: 0; }
.month-page-gap { width: 48px; height: 48px; flex: none; } /* a chevron with nowhere to go: its space stays, so the header does not shift */
.month-line { padding-inline: var(--space-2xl); color: var(--color-ink-muted); text-wrap: pretty; }
.month-line strong { color: var(--color-ink); font-weight: 600; }
.month-pill { align-self: flex-start; margin-inline-start: var(--space-2xl); }
.month-weekdays { display: grid; grid-template-columns: repeat(7, var(--month-pitch)); margin-block-start: auto; height: 24px; flex: none; margin-inline: var(--space-m); align-items: center; text-align: center; font-family: var(--font-text); font-weight: 500; font-size: 12px; line-height: 16px; color: var(--color-ink-muted); }
.month-weekdays:lang(ar) { line-height: 18px; }
.month-grid { display: grid; grid-template-columns: repeat(7, var(--month-pitch)); grid-auto-rows: var(--month-row); flex: none; margin-inline: var(--space-m); }
.month-cell { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; }
.month-cell[aria-disabled="true"] { cursor: default; }
.month-day { font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 20px; color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }
.month-hollow { display: flex; align-items: center; justify-content: center; width: 44px; height: 46px; border-radius: var(--shape-s); background: var(--nile-900); box-shadow: var(--well-lip), inset 0 0 0 1px var(--color-on-brand-line); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 20px; font-variant-numeric: tabular-nums; }
/* p-calmonth-9: a tappable well on the window sits a token step darker than its surface: Nile 900 under light's Nile 800 window, Nile 800 under dark's Nile 700, where Nile 900 met the near-black planned leaf at the same value. */
[data-theme="dark"] .month-hollow { background: var(--nile-800); }
/* unused since 2026-11-01, calendar-month */ .month-hollow--raised { --month-hollow-under: var(--color-surface-brand-raised); }
.month-hollow--today { box-shadow: var(--well-lip), inset 0 0 0 2px var(--color-on-brand); font-weight: 700; }
/* The cell leaf: the natiga at 44 by 48dp, band, numeral, one-colour crest; a free day has no leaf. */
.month-leaf { position: relative; display: flex; flex-direction: column; width: 44px; height: 46px; flex: none; color: var(--color-ink); text-align: center; --month-leaf-fill: var(--color-surface); }
.month-leaf-band { height: var(--space-xs); flex: none; border-start-start-radius: var(--shape-s); border-start-end-radius: var(--shape-s); background: var(--color-surface-brand); }
.month-leaf-sheet { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-end-start-radius: var(--shape-s); border-end-end-radius: var(--shape-s); background: var(--month-leaf-fill); }
.month-leaf-num { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 20px; font-variant-numeric: tabular-nums; }
.month-leaf .crest-cell { width: 18px; height: 18px; color: var(--color-surface-brand); --color-accent: currentColor; }
.crest-mono { color: var(--color-on-brand); --color-accent: currentColor; } /* one colour on the month, so the chosen day stays the one Saffron thing, as .widget .crest */
.month-avatar { width: 18px; height: 18px; font-size: 10px; line-height: 18px; background: var(--color-surface-brand); color: var(--color-on-brand); }
.month-leaf--on-brand { --month-leaf-fill: var(--limestone-50); }
.month-leaf--on-brand .month-leaf-band { background: var(--nile-600); }
.month-leaf--chosen { --month-leaf-fill: var(--color-accent); color: var(--color-on-accent); }
.month-leaf--stacked::after { content: ""; position: absolute; z-index: -1; inset-block-end: calc(-1 * var(--space-xs)); inset-inline: var(--space-2xs); height: var(--space-l); border-end-start-radius: var(--shape-s); border-end-end-radius: var(--shape-s); background: var(--limestone-300); }
.month-leaf--torn { height: 42px; margin-block-end: var(--space-xs); --month-leaf-fill: var(--well); color: var(--color-ink-muted); } /* air between the feet and the step */
.month-leaf--torn .month-leaf-sheet { border-start-start-radius: 0; border-start-end-radius: 0; -webkit-mask: var(--tear-line); mask: var(--tear-line); padding-block-start: var(--space-2xs); }
.month-leaf--torn .crest-cell { color: var(--color-ink-muted); }
.month-leaf--chosen.month-leaf--torn { --month-leaf-fill: var(--color-accent); color: var(--color-on-accent); }
.month-leaf--chosen .crest-cell { color: var(--color-on-accent); }
.month-leaf--chosen .month-avatar { background: var(--color-on-accent); color: var(--color-accent); }
.month-leaf--ending .month-leaf-sheet { margin-block-start: var(--space-2xs); -webkit-mask: var(--tear-line); mask: var(--tear-line); }
[data-theme="dark"] .month-leaf--on-brand:not(.month-leaf--chosen) { --month-leaf-fill: var(--color-surface-raised); }
[data-theme="dark"] .month-leaf--on-brand:not(.month-leaf--chosen) .crest-cell { color: var(--color-ink); }
[data-theme="dark"] .month-avatar { background: var(--color-ink); color: var(--color-background); }
[data-theme="dark"] .month-leaf--stacked::after { background: var(--color-outline-control); }
/* The panel: where the window ends up. Its fill is the second path; its leaf stands at the start. */
.month-panel { --ring: var(--color-surface-brand-raised); position: relative; flex: 1; display: flex; flex-direction: column; gap: var(--space-l); padding: var(--space-l) var(--space-2xl) var(--space-2xl); border-start-start-radius: var(--shape-2xl); border-start-end-radius: var(--shape-2xl); background: var(--color-surface-brand-raised); color: var(--color-on-brand); }
.month-plan-open { position: absolute; inset: 0; }
.month-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-m); }
.month-panel-id { display: flex; flex: 1; flex-direction: column; gap: var(--space-xs); min-width: 0; padding-block-start: var(--space-m); }
.month-plan-list { display: flex; align-items: center; gap: var(--space-s); min-width: 0; }
.month-plan-list .crest { flex: none; }
.month-panel .avatar { flex: none; background: var(--color-on-brand); color: var(--color-surface-brand); }
.month-panel .cal-today-choices { flex: 1; gap: 0; min-width: 0; }
.month-panel .cal-choice { padding: var(--space-xs) 0; border-radius: 0; background: none; }
.month-panel .cal-choice + .cal-choice { border-block-start: 1px solid var(--color-on-brand-line); }
.month-panel .outing-line-compact > li:not(:last-child)::before { background: var(--color-on-brand); }
.month-panel .outing-compact-name { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none; font-size: 14px; line-height: 20px; }
.month-panel .outing-compact-name:lang(ar) { line-height: 22px; }
.month-panel > .outing-line-compact, .month-entry--stack { margin-block-start: auto; } /* head, then rail and foot as one group, 32dp apart */
.month-panel > .outing-line-compact + .month-panel-foot, .month-entry--stack + .month-panel-foot, .month-points + .month-panel-foot { margin-block-start: var(--space-l); }
.month-panel-foot { position: relative; margin-block-start: auto; }
.month-add { position: relative; border-color: var(--color-on-brand); color: var(--color-on-brand); }
.month-place { overflow-wrap: anywhere; text-wrap: balance; }
.month-dim { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.month-entry { position: relative; }
.month-entry--stack { display: flex; flex-direction: column; gap: var(--space-s); }
.month-entry--head { display: flex; flex-direction: column; gap: var(--space-l); }
.month-entry--ruled { display: flex; align-items: center; gap: var(--space-s); padding-block-start: var(--space-m); border-block-start: 1px solid var(--color-on-brand-line); }
.month-entry-words { display: flex; flex-direction: column; min-width: 0; }
.month-next { min-height: 48px; color: var(--color-on-brand); text-align: start; overflow-wrap: anywhere; }
.month-points { padding-block-start: 0; color: var(--color-on-brand); }
.month-places .cal-past-place { color: var(--color-on-brand); text-decoration-color: var(--color-on-brand-line); }
.month-places .photo-add-empty { position: relative; color: var(--color-on-brand); }
/* The column of a chosen past day on Limestone, the foot blocks of the pages with nothing chosen, and the sheet's head leaf. */
.month-column { display: flex; flex: 1; flex-direction: column; gap: var(--space-xl); padding: var(--space-2xl); }
.month-foot { display: flex; flex: 1; flex-direction: column; gap: var(--space-2xl); padding: var(--space-2xl); }
.month-foot--end { justify-content: flex-end; }
.month-foot--brand { justify-content: flex-end; background: var(--color-surface-brand); color: var(--color-on-brand); }
.month-limit { color: var(--color-ink); text-wrap: balance; }
.month-column .crest { --color-accent: currentColor; }
.month-rail-hour { justify-self: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.month-rail-hour--inert { font-weight: 400; color: var(--color-ink-muted); }
/* /sync-design 2026-11-04 (c-rail-hours): a set hour on the slim rail, Nile, as the full rail's chosen tab is on a step whose strip leaf is Saffron (§8 Hour rail) */
.month-rail-hour--set { display: flex; justify-content: center; align-self: end; justify-self: stretch; height: 46px; padding-block-start: var(--space-s); border-radius: var(--shape-s) var(--shape-s) 0 0; background: var(--color-surface-brand); color: var(--color-on-brand); } /* a rising tab, not a pill (§5): the numeral keeps the row's baseline */
.hour-rail-slim-open > .hour-rail-labels { min-height: 0; margin-inline: 0; padding-block-start: 0; }
.month-panel--free .month-panel-head { flex: 1; align-items: stretch; }
.month-panel--free .day-leaf { align-self: flex-start; }
.month-panel-id--foot { justify-content: flex-end; }
.month-panel--free .month-panel-foot { margin-block-start: var(--space-l); }
.month-next { display: block; }
.month-next .icon { vertical-align: middle; }
.choose-day-head { display: flex; align-items: center; gap: var(--space-l); }
.month-sheet-foot { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); margin-block-start: var(--space-s); }
.day-leaf--word { --leaf-w: 64px; } /* calendar-month sync: a small leaf whose top line is Tomorrow, the one day word wider than the 56dp leaf (picker#for_day, confirm_sheet#for_day) */

/* .font-scale-130: the type scale at 130%, the drawn large-text size since decisions row 70 put 200% off until after launch.
   First used by calendar#large_text, #today_points_large_text and #past_photos_large_text (calendar-month, 2026-11-01). The month keeps
   its seven 48dp columns; the row pitch grows to 60dp, and leaves and numerals grow inside it. */
.font-scale-130 .type-displayLarge { font-size: 52px; line-height: 62px; }
.font-scale-130 .type-headlineMedium { font-size: 36px; line-height: 46px; }
.font-scale-130 .type-headlineMedium:lang(ar) { line-height: 54px; }
.font-scale-130 .type-titleLarge { font-size: 26px; line-height: 34px; }
.font-scale-130 .type-titleLarge:lang(ar) { line-height: 42px; }
.font-scale-130 .type-titleMedium, .font-scale-130 .type-bodyLarge, .font-scale-130 .cal-choice-place { font-size: 21px; line-height: 30px; }
.font-scale-130 .type-titleMedium:lang(ar), .font-scale-130 .type-bodyLarge:lang(ar), .font-scale-130 .cal-choice-place:lang(ar) { line-height: 34px; }
.font-scale-130 .type-titleSmall, .font-scale-130 .type-bodyMedium { font-size: 18px; line-height: 26px; }
.font-scale-130 .type-titleSmall:lang(ar), .font-scale-130 .type-bodyMedium:lang(ar) { line-height: 28px; }
.font-scale-130 .type-labelLarge { font-size: 20px; line-height: 26px; }
.font-scale-130 .type-labelLarge:lang(ar) { line-height: 28px; }
.font-scale-130 .type-labelMedium { font-size: 17px; line-height: 20px; }
.font-scale-130 .type-labelMedium:lang(ar) { line-height: 24px; }
.font-scale-130 .type-bodySmall { font-size: 16px; line-height: 20px; }
.font-scale-130 .type-bodySmall:lang(ar) { line-height: 24px; }
.font-scale-130 .day-leaf-top, .font-scale-130 .day-leaf-month { font-size: 16px; line-height: 20px; }
.font-scale-130 .day-leaf-top:lang(ar), .font-scale-130 .day-leaf-month:lang(ar) { line-height: 24px; }
.font-scale-130 .day-leaf--hero { --leaf-w: 124px; }
.font-scale-130 .day-leaf--hero .day-leaf-top { font-size: 18px; line-height: 26px; }
.font-scale-130 .day-leaf--hero .day-leaf-num { font-size: 72px; line-height: 72px; }
.font-scale-130 .day-leaf--hero .day-leaf-num:lang(ar) { line-height: 80px; }
.font-scale-130 .month-panel-head[class] { padding-inline: 0; } /* at 130% the leaf takes the margin, so the words beside it keep their width */
.font-scale-130 .month-panel .outing-compact-name { font-size: 18px; line-height: 24px; }
.font-scale-130 .month-leaf--torn { height: 52px; }
.font-scale-130 .month-head { height: 96px; }
.font-scale-130 .month-head--pill { height: 138px; }
.font-scale-130 .month-weekdays { height: 28px; font-size: 16px; line-height: 20px; }
.font-scale-130 .month-weekdays:lang(ar) { font-size: 15px; line-height: 24px; }
.font-scale-130[data-screen="calendar"] { --month-row: 60px; }
.font-scale-130 .month-leaf, .font-scale-130 .month-hollow { height: 56px; }
.font-scale-130 .month-day, .font-scale-130 .month-hollow, .font-scale-130 .month-leaf-num { font-size: 20px; line-height: 26px; }

/* ---- Shared, adopted 4 Nov 2026 (/sync-design): bill split (P0-15, brain/features/bill-split/, concept B "the stub strip") --
   The Design System's §5 Shape (Receipt tear, p-bill-1), §6 Photography (the receipt, p-bill-2), §8 Group crests (a crest as a
   person's stamp, p-bill-4) and taste.md's receipt ticket (p-bill-5); §7's stamp tick and springs (p-bill-3) are motion, not CSS.
   Stays at the end of the file, where it was, so the cascade is as it was; .bill-art's scoped values are the bill's own.
   Paper stays paper in dark: strip, tab and ticket take fixed Limestone and Nile steps, never a theme role. The photo's
   viewport and the marks are two regions that never overlap (AC 16): a mark has no way into .bill-viewport. The tear is
   a receipt cutter's zigzag, 8dp pitch and 4dp depth, cut with a mask so Nile shows through it. The tints multiply behind
   the print, so the ink stays darkest. */
.bill-art { --paper: var(--limestone-0); --paper-raised: var(--nile-50); --bill-tray: var(--color-surface-brand); --bill-tile: var(--paper); --paper-ink: var(--limestone-900); --paper-muted: var(--limestone-600);
  --tear-pitch: var(--space-s); --tear-depth: var(--space-xs); --bill-rail: calc(var(--space-4xl) + var(--space-s));
  --bill-tint-yours: var(--saffron-200); --bill-tint-others: color-mix(in srgb, var(--nile-200) 50%, var(--nile-300)); --bill-tint-unclaimed: var(--nile-50); --bill-tint-hidden: var(--limestone-300);
  --tear-right: linear-gradient(#000 0 0) 0 0 / calc(100% - var(--tear-depth)) 100% no-repeat, conic-gradient(from 225deg at 100% 50%, #000 90deg, #0000 0) 100% calc(100% - var(--tear-depth)) / var(--tear-depth) var(--tear-pitch) repeat-y;
  --tear-left: linear-gradient(#000 0 0) 100% 0 / calc(100% - var(--tear-depth)) 100% no-repeat, conic-gradient(from 45deg at 0 50%, #000 90deg, #0000 0) 0 calc(100% - var(--tear-depth)) / var(--tear-depth) var(--tear-pitch) repeat-y;
  --tear-foot: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--tear-depth)) no-repeat, conic-gradient(from 315deg at 50% 100%, #000 90deg, #0000 0) var(--foot-x, 0px) 100% / var(--tear-pitch) var(--tear-depth) repeat-x;
  position: relative; height: 800px; overflow: hidden; }
/* §5 Shape, Receipt tear: a zigzag at an 8dp pitch and 4dp depth (p-bill-1) */
.bill-tear-right { mask: var(--tear-right); -webkit-mask: var(--tear-right); }
.bill-tear-left { mask: var(--tear-left); -webkit-mask: var(--tear-left); }
.bill-tear-foot { mask: var(--tear-foot); -webkit-mask: var(--tear-foot); }
.bill-end { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; margin-inline: var(--space-2xs) var(--space-s); padding: 0 var(--space-m); background: none; color: var(--color-on-brand); font: 500 13px/16px var(--font-text); }
.bill-end::before { content: ""; position: absolute; inset: 6px 0; border: 1.5px solid var(--color-on-brand-line); border-radius: var(--shape-full); }
.bill-end:disabled, .bill-art .icon-btn:disabled { opacity: .5; }
.bill-money { display: inline-flex; align-items: flex-start; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.bill-money b { font-weight: 700; font-size: var(--big, 40px); line-height: 1; }
.bill-money i { margin-block-start: calc(var(--big, 40px) * .12); margin-inline-start: 2px; font-style: normal; font-weight: 500; font-size: var(--small, 20px); line-height: 1; }
.bill-money--24 { --big: 24px; --small: 13px; }
.bill-sub { color: color-mix(in srgb, var(--color-on-brand) 76%, transparent); }
.bill-head { position: absolute; top: 56px; inset-inline: 0; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); padding: var(--space-xs) var(--space-l) 0; text-align: end; }
.bill-head p { margin: 0; }
.bill-head-row { display: flex; align-items: center; gap: var(--space-m); }
.bill-head-link { display: inline-flex; align-items: center; min-height: 48px; margin-block: -14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.bill-warn { width: 100%; margin-block-start: var(--space-2xs); text-wrap: pretty; }
.bill-head .offline-pill { align-self: flex-end; height: 28px; margin-block-end: var(--space-2xs); background: var(--color-on-brand-fill); color: var(--color-on-brand); }
.bill-head .offline-pill .offline-dot { background: var(--color-on-brand-line); }
.bill-wait-num { display: block; width: 136px; height: 40px; border-radius: var(--shape-s); background: var(--well-brand); box-shadow: var(--well-lip); }
.bill-wait-line { display: block; width: 184px; height: 12px; margin-block: var(--space-xs); border-radius: var(--shape-full); background: var(--well-brand); }
.bill-viewport { position: absolute; overflow: hidden; background: var(--limestone-0); }
.bill-viewport--wait { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--space-s); padding-block-start: 176px; background: var(--well-brand); box-shadow: var(--well-lip); color: var(--color-on-brand); }
.bill-viewport--inert { opacity: .72; }
/* §6 Photography, the receipt: a photograph of paper, never filtered (p-bill-2) */
.bill-photo { position: absolute; display: block; max-width: none; }
.bill-price { position: absolute; display: block; height: 15px; border-radius: 3px; mix-blend-mode: multiply; }
.bill-price--unclaimed { background: var(--bill-tint-unclaimed); }
.bill-price--yours { background: var(--bill-tint-yours); }
.bill-price--others { background: var(--bill-tint-others); }
.bill-price--hidden { background: var(--bill-tint-hidden); }
.bill-strip-wrap { position: absolute; z-index: 2; width: var(--bill-rail); }
.bill-strip-wrap--under { z-index: 0; }
.bill-strip { position: absolute; width: var(--bill-rail); background: var(--paper); }
.bill-tick { position: absolute; z-index: 3; width: var(--space-m); height: var(--space-2xs); border-radius: var(--shape-full); background: var(--limestone-400); }
.bill-receipt .bill-mark, .bill-receipt .bill-mark-count { z-index: 3; }
/* §8 Group crests, a crest as a person's stamp: Nile 800 body, no disc, tilted -8deg, Saffron detail only on your own (p-bill-4) */
.bill-mark { position: absolute; width: 24px; height: 24px; transform: rotate(-8deg); color: var(--nile-800); --color-accent: color-mix(in srgb, var(--nile-800) 50%, var(--paper)); }
.bill-mark--yours { --color-accent: var(--saffron-500); }
.bill-mark--former { display: flex; align-items: center; justify-content: center; border-radius: var(--shape-full); background: var(--limestone-300); color: var(--limestone-700); }
.bill-mark-count { position: absolute; display: flex; background: var(--paper); align-items: center; justify-content: center; width: 24px; height: 16px; color: var(--nile-800); font: 700 13px/16px var(--font-display); font-variant-numeric: tabular-nums; }
.bill-strip-tab { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--shape-m); background: color-mix(in srgb, var(--limestone-300) 55%, var(--paper)); box-shadow: inset 0 1.5px 0 rgb(0 0 0 / .07); color: var(--paper-ink); font: 500 12px/14px var(--font-text); text-align: center; }
.bill-strip-tab:lang(ar) { font-size: 11px; }
.bill-strip-tab .bill-mark { position: static; width: 32px; height: 32px; --color-accent: color-mix(in srgb, var(--nile-800) 50%, var(--limestone-200)); }
.bill-strip-tab:disabled { color: var(--limestone-600); }
.bill-tray { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; border-radius: var(--shape-2xl) var(--shape-2xl) 0 0; background: var(--bill-tray); color: var(--color-on-brand); }
.bill-tray .list-option-action { color: var(--color-on-brand); }
.bill-art .nav-gesture::before { background: var(--color-on-brand); }
.bill-tray-row { display: flex; gap: var(--space-s); padding-block-start: var(--space-l); padding-inline: var(--space-l); overflow: hidden; }
.bill-person { display: flex; flex: none; flex-direction: column; justify-content: center; gap: var(--space-2xs); min-width: 84px; max-width: 172px; min-height: 72px; padding: var(--space-s); border: 0; border-radius: var(--shape-card); background: var(--bill-tile); color: var(--paper-ink); font: inherit; text-align: start; }
.bill-person--peek { min-width: 84px; align-items: flex-start; }
.bill-person--peek-end { align-items: flex-end; }
.bill-art .vote-topbar-group:last-child { margin-inline-end: var(--space-l); }
.bill-person--in-hand { background: var(--saffron-200); color: var(--limestone-900); }
.bill-person-id { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.bill-person-amt { font: 700 16px/24px var(--font-display); font-variant-numeric: tabular-nums; text-align: start; unicode-bidi: plaintext; }
.bill-flat { flex: none; width: 24px; height: 24px; color: var(--nile-800); --color-accent: color-mix(in srgb, var(--nile-800) 50%, var(--bill-tile)); }
.bill-flat.bill-mark--former { color: var(--limestone-700); transform: rotate(-8deg); }
.bill-tray-acts { display: flex; gap: var(--space-m); min-height: 48px; padding-inline: var(--space-l); }
.bill-tray-acts .bill-guest { flex-direction: row; align-items: center; gap: var(--space-xs); max-width: none; min-height: 48px; }
.bill-person--in-hand .bill-flat { color: var(--nile-800); --color-accent: var(--saffron-600); }
.bill-guest { display: flex; flex: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-2xs); max-width: 96px; min-height: 72px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-on-brand); font: inherit; text-align: start; }
.bill-guest:disabled { color: color-mix(in srgb, var(--color-on-brand) 68%, transparent); }
.bill-tail { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); padding: var(--space-s) var(--space-l) var(--space-m); background: var(--limestone-0); color: var(--limestone-900); }
.bill-tail-row { position: relative; display: inline-block; padding-inline: var(--space-xs); font: 500 15px/20px var(--font-text); font-variant-numeric: tabular-nums; isolation: isolate; }
.bill-tail-row .bill-price { inset: 2px 0 auto; height: 16px; z-index: -1; }
.bill-tail-act { display: inline-flex; min-height: 48px; align-items: center; gap: var(--space-xs); padding: 0; border: 0; background: none; color: var(--nile-600); font: 500 14px/20px var(--font-text); }
.bill-tail-act:disabled { color: var(--limestone-500); }
.bill-snack { position: absolute; z-index: 5; inset-inline: var(--space-l); bottom: 188px; }
/* taste.md, the receipt ticket: zigzag foot, no notches (p-bill-5) */
.bill-ticket-wrap { position: absolute; z-index: 1; }
.bill-ticket-wrap.bill-tear-foot { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tear-depth)), calc(100% - var(--tear-depth)) calc(100% - var(--tear-depth)), calc(100% - var(--tear-depth)) 100%, 0 100%); }
.bill-ticket-wrap--right.bill-tear-foot { --foot-x: var(--tear-depth); clip-path: polygon(0 0, 100% 0, 100% 100%, var(--tear-depth) 100%, var(--tear-depth) calc(100% - var(--tear-depth)), 0 calc(100% - var(--tear-depth))); }
.bill-ticket { display: flex; flex-direction: column; min-height: 620px; background: var(--paper); color: var(--paper-ink); }
.bill-ticket-head { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-xl) var(--space-2xl) var(--space-s); }
.bill-ticket-head p, .bill-ticket-row p, .bill-ticket-stub p { margin: 0; }
.bill-muted { color: var(--paper-muted); }
.bill-ticket-note { padding: 0 var(--space-2xl) var(--space-s); }
.bill-ticket-rows { flex: 1; display: flex; flex-direction: column; justify-content: space-around; min-height: 0; padding-block-end: var(--space-s); overflow: hidden; }
.bill-ticket-rows--stamp { padding-block-end: 44px; }
.bill-ticket-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--space-m); align-items: center; min-height: 58px; padding-inline: var(--space-xl) calc(var(--space-xl) + var(--tear-depth)); }
.bill-ticket-crest { width: 40px; height: 40px; transform: rotate(-8deg); color: var(--nile-800); --color-accent: color-mix(in srgb, var(--nile-800) 50%, var(--paper)); }
.bill-ticket-amt { display: block; min-width: var(--amt-ch); font: 700 24px/32px var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.bill-ticket--short .bill-ticket-amt { font-size: 28px; line-height: 36px; }
.bill-ticket-stub { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-m); align-items: center; padding: var(--space-m) var(--space-2xl) calc(var(--space-m) + var(--tear-depth)); background: var(--paper-raised); }
.bill-stub-crest { grid-row: 1; align-self: start; width: 72px; height: 72px; margin-block: -48px 0; transform: rotate(-8deg); color: var(--nile-800); --color-accent: color-mix(in srgb, var(--nile-800) 50%, var(--paper-raised)); }
.bill-ticket-total { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
.bill-result-share { position: absolute; inset-inline: var(--space-l); bottom: var(--space-3xl); z-index: 1; }
.bill-setup-head { position: absolute; top: 56px; inset-inline: 0; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-xs) var(--space-l) 0; }
.bill-setup-head h1, .bill-setup-head p, .bill-panel p { margin: 0; }
.bill-well { position: absolute; display: flex; align-items: flex-end; padding: var(--space-2xl) var(--space-2xl) 60px; background: var(--well-brand); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--nile-900) 60%, transparent); }
.bill-panel { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m) var(--space-l) var(--space-3xl); }
.bill-panel-row { display: flex; justify-content: center; gap: var(--space-2xl); }
.bill-reading { position: absolute; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; }
.bill-sheet-note { margin: 0; padding-inline: var(--space-2xs); color: var(--color-ink-muted); }
.bill-snack--setup { bottom: 172px; }
[data-theme="dark"] .brand-screen.bill-art { --color-surface-brand: var(--nile-700); --color-surface-brand-raised: var(--nile-600); }
.bill-art > .scrim { z-index: 4; }
.bill-art .sheet .list-option-selected { border-color: var(--color-primary); }
.bill-art .sheet .bill-flat { color: var(--color-primary); width: 32px; height: 32px; --color-accent: color-mix(in srgb, var(--color-primary) 50%, var(--color-surface)); }
.bill-sheet-snack { margin-block-end: var(--space-m); }
[data-screen="home"] .home-bill-label { flex: 1; min-width: 0; }

/* ---- Shared, adopted 4 Nov 2026 (/sync-design): calendar day pick (calendar-day-pick; concept B "Yesterday's leaf, in hand") --
   The Design System's §8 Bottom sheets (the log sheet's head, p-daypick-1), §5 Shape, Tear line at plate size and §4's plate
   numeral (p-daypick-2 and 6), §9 Calendar (open and inert past days, p-daypick-3), §9 Confirm sheet (the head leaf opens the
   strip, p-daypick-4) and §8 Hour rail (p-daypick-5). Stays at the end of the file, where it was, so the cascade is as it was;
   .log-top--*, .log-lift--* and the .artboard:has() cuts place the drawn states only.
   A past day inside the 30 days back answers a tap: Alexandria 500, still a bare numeral. A day that can't take a place
   (before joining, past 30 back, past the forward limit) is 400 in inkSubtle, one inert treatment on every page.
   The log sheet's head is the torn leaf at plate size (§5 tear, §8 head as leaf: System proposals); rows rank by type alone. */
/* §9 Calendar: open and inert past days (p-daypick-3) */
.month-day--open { font-weight: 500; color: var(--color-ink); }
.month-day--chosen { display: flex; align-items: center; justify-content: center; width: 44px; height: 46px; border-radius: var(--shape-s); background: var(--color-accent); color: var(--color-on-accent); font-weight: 600; }
.month-day--inert { font-weight: 400; color: var(--color-ink-subtle); }
.month-backdrop { --month-pitch: calc((360px - 2 * var(--space-m)) / 7); --month-row: 52px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; flex: none; height: 420px; }
.scrim:has(> .sheet--log) { z-index: 2; }
/* §8 Bottom sheets: a past day's log sheet, headed by the torn leaf at plate size (p-daypick-1) */
.sheet--log { flex: 1; min-height: 0; gap: 0; margin-block-start: var(--log-top); padding-block-end: var(--space-l); }
.log-top--r2 { --log-top: 192px; } /* the sheet stops under the chosen day's week row (row 2 ends at 184) */
.log-top--r3 { --log-top: 244px; }
.log-top--pill { --log-top: 286px; }
.log-top--lg { --log-top: 284px; }
.log-lift { position: absolute; top: var(--lift-y); inset-inline-start: var(--lift-x); display: flex; align-items: center; justify-content: center; width: 48px; height: var(--lift-h, 52px); }
.log-lift--sun-r3 { --lift-x: 60px; --lift-y: 184px; }
.log-lift--thu-r2 { --lift-x: 252px; --lift-y: 132px; }
.log-lift--fri-r2 { --lift-x: 300px; --lift-y: 132px; }
.log-lift--sun-pill { --lift-x: 60px; --lift-y: 226px; }
.log-lift--sun-lg { --lift-x: 60px; --lift-y: 216px; --lift-h: 60px; }
.log-scroll { flex: 1; min-height: 0; overflow: hidden; -webkit-mask: linear-gradient(#000 calc(100% - var(--space-2xl)), transparent); mask: linear-gradient(#000 calc(100% - var(--space-2xl)), transparent); }
.log-row--place { align-items: baseline; min-height: 48px; padding-block: var(--space-m); }
/* §5 Shape, Tear line at plate size, a jagged 4dp edge; §4 the plate numeral at 56sp, 72 at 130% (p-daypick-2 and 6) */
.day-leaf--plate { --plate-tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 8'%3E%3Cpath d='M0 8V5L3 2.5 6 4.5 9.5 1 13 3.5 16 1.5 19.5 4 23 .5 26 3 29.5 1.5 32 4.5 35.5 2 39 3.5 42 .5 45 3 48 5V8Z'/%3E%3C/svg%3E"); flex: none; display: flex; flex-direction: column; align-items: center; margin-block: var(--space-l); padding: var(--space-l) var(--space-l) 0; -webkit-mask: var(--plate-tear) 0 0 / 48px 8px repeat-x, linear-gradient(#000, #000) 0 7px / 100% calc(100% - 7px) no-repeat; mask: var(--plate-tear) 0 0 / 48px 8px repeat-x, linear-gradient(#000, #000) 0 7px / 100% calc(100% - 7px) no-repeat; border-radius: 0 0 var(--shape-l) var(--shape-l); background: var(--color-background); color: var(--color-ink); text-align: center; }
.plate-day { font-weight: 600; }
.plate-num { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 60px; font-variant-numeric: tabular-nums; }
.plate-month { color: var(--color-ink-muted); }
.day-leaf-entry { display: flex; align-items: center; justify-content: center; gap: var(--space-s); align-self: stretch; margin-block-start: var(--space-s); padding-block: 0 var(--space-m); color: var(--color-ink); text-wrap: balance; }
.day-leaf-entry .crest, .day-leaf-entry .avatar { width: 28px; height: 28px; flex: none; }
.day-leaf-entry .avatar { font-size: 13px; line-height: 28px; }
.font-scale-130 .plate-num { font-size: 72px; line-height: 76px; }
/* the log sheet's rows, by type alone (§8 Bottom sheets, p-daypick-1) */
.log-title { margin-block-end: var(--space-xs); color: var(--color-ink); }
.log-hidden { position: absolute; inset-inline-start: var(--space-2xl); width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.log-field { margin-block-end: var(--space-s); }
.log-field-text { color: var(--color-ink); }
.log-rows { display: flex; flex-direction: column; }
.log-row { min-height: 52px; gap: var(--space-m); padding-inline: 0; border-radius: 0; text-align: start; }
.log-row .crest, .log-row .avatar { width: 28px; height: 28px; flex: none; }
.log-row .avatar { font-size: 13px; line-height: 28px; }
.log-row-tab { flex: none; color: var(--color-ink-muted); white-space: nowrap; }
.log-row[aria-disabled="true"] { cursor: default; }
.log-row[aria-disabled="true"] .log-row-name, .log-row[aria-disabled="true"] .log-row-tab { color: var(--color-ink-subtle); }
.log-row-note { margin-block: calc(-1 * var(--space-xs)) var(--space-s); color: var(--color-ink-muted); text-wrap: pretty; }
.log-none { margin-block: var(--space-xs) var(--space-m); color: var(--color-ink-muted); }
.log-add { min-height: 56px; margin-block-start: var(--space-s); padding-inline: var(--space-s); border: 1px solid var(--color-outline-control); border-radius: var(--shape-control); }
.log-add .list-option-mark { width: 32px; height: 32px; }
.log-foot { display: flex; justify-content: center; margin-block-start: auto; padding-block-start: var(--space-s); }
.day-leaf--logged .day-leaf-num { color: var(--color-ink); }
.month-line-take { position: relative; color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.month-line-take::before { content: ""; position: absolute; inset: calc(-1 * var(--space-m)) calc(-1 * var(--space-s)); }
.cal-past-add { align-self: stretch; }
.slider-head .day-leaf { align-self: flex-start; }
.add-past-leaf { margin-inline-start: auto; margin-block: var(--space-l) var(--space-xs); }
/* §8 Hour rail: on the confirmation's Another day the chosen hour is Nile, the chosen strip leaf the step's one Saffron (p-daypick-5) */
.hour-rail-hour--chosen.hour-rail-hour--nile { background: var(--color-surface-brand); color: var(--color-on-brand); }
/* §9 Confirm sheet: the head leaf opens the strip too (p-daypick-4) */
.cs-day-leaf-btn { flex: none; padding: 0; border-radius: var(--shape-m); }
.day-leaf-entry:empty { min-height: 0; margin-block-start: 0; padding-block: 0 var(--space-l); }
.month-line-date { white-space: nowrap; }
.artboard:has(.log-top--r2) .month-grid { clip-path: inset(0 0 calc(100% - 2 * var(--month-row)) 0); } /* only scrim behind the log sheet's top and corners */
.artboard:has(.log-top--r3) .month-grid, .artboard:has(.log-top--pill) .month-grid, .artboard:has(.log-top--lg) .month-grid { clip-path: inset(0 0 calc(100% - 3 * var(--month-row)) 0); }
.log-lift--leaf { background: none; }
.log-lift-leaf { --plate-tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 8'%3E%3Cpath d='M0 8V5L3 2.5 6 4.5 9.5 1 13 3.5 16 1.5 19.5 4 23 .5 26 3 29.5 1.5 32 4.5 35.5 2 39 3.5 42 .5 45 3 48 5V8Z'/%3E%3C/svg%3E"); display: flex; align-items: center; justify-content: center; width: 44px; height: 46px; border-radius: 0 0 var(--shape-s) var(--shape-s); background: var(--color-background); color: var(--color-ink); -webkit-mask: var(--plate-tear) 0 0 / 24px 4px repeat-x, linear-gradient(#000, #000) 0 3px / 100% calc(100% - 3px) no-repeat; mask: var(--plate-tear) 0 0 / 24px 4px repeat-x, linear-gradient(#000, #000) 0 3px / 100% calc(100% - 3px) no-repeat; }
[data-theme="dark"] .log-lift-leaf { background: color-mix(in srgb, var(--color-background) 80%, var(--color-ink)); }
.log-lift-num { padding-block-start: var(--space-2xs); font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 20px; font-variant-numeric: tabular-nums; }
.font-scale-130 .log-lift-num { font-size: 20px; line-height: 26px; }
.artboard:has(.log-top--r2) .month-window { clip-path: inset(0 0 calc(100% - 182px) 0); } /* the window band and the panel end on the month's cut line */
.artboard:has(.log-top--r3) .month-window { clip-path: inset(0 0 calc(100% - 236px) 0); }
.artboard:has(.log-top--pill) .month-window { clip-path: inset(0 0 calc(100% - 278px) 0); }
.artboard:has(.log-top--lg) .month-window { clip-path: inset(0 0 calc(100% - 276px) 0); }
.sheet--log-hug { flex: none; margin-block-start: auto; }
.sheet--log-hug .log-foot { margin-block-start: var(--space-s); }

/* ---- Shared, adopted 9 Nov 2026 (/sync-design): the one-place plan. The Design System's §5 Elevation, The platform (p-oneplace-1),
   §6 the leaf (p-oneplace-2), §8 Buttons, Plan it (p-oneplace-3) and §8 Multi-stop outing (p-oneplace-4); p-oneplace-5's equal
   hour columns are not drawn yet (see §8 Hour rail above). Stays where it was, so the cascade is as it was.
   One-place plan (2026-11-05, brain/features/one-place-plan/, P0-14/P0-11/P0-6, concept B "Day to place, end of the line",
   direction b). The outing's line with one journey on it: the rail drops from the band's hero leaf (the day is the departure)
   and ends in the terminus cap at the place's row; nothing open after it. --plan-leaf is .day-leaf--hero's --leaf-w, so the
   rail's axis is the leaf's centre: 24dp + 48dp from the start edge (.outing-top's 12dp + .outing-day's 12dp). ---- */
.outing-top:has(.outing-day-rail) > .outing-day { gap: 0; }
.outing-top:has(.outing-day-rail) { --plan-leg: calc(2 * var(--space-4xl)); }
.outing-day-rail { flex: none; width: var(--rail); height: var(--plan-leg); margin-block-start: var(--space-s); background: var(--color-on-brand); }
.outing-line--closed { --plan-leaf: 96px; --plan-leg: calc(2 * var(--space-4xl)); display: flex; flex: 1; flex-direction: column; padding-block-end: var(--space-4xl); }
.outing-line--closed > .outing-rail:has(+ .outing-terminus--place) { --plan-leg: var(--space-4xl); } /* + the cap track's upper half (~48dp) = one leg above the cap */
.outing-line--closed > .outing-rail { flex: none; height: var(--plan-leg); min-height: 0; margin-inline-start: calc(var(--space-2xl) + (var(--plan-leaf) - var(--rail)) / 2); }
.outing-terminus--place { display: flex; align-items: center; gap: var(--space-s); padding-inline: var(--space-2xl) var(--space-m); }
.outing-cap-track { --cap-w: var(--space-2xl); position: relative; display: flex; flex: none; align-items: center; align-self: stretch; width: calc((var(--plan-leaf) + var(--cap-w)) / 2); }
.outing-cap-track::before { content: ""; position: absolute; inset-block: 0 calc(50% - var(--rail) / 2); inset-inline-start: calc((var(--plan-leaf) - var(--rail)) / 2); width: var(--rail); background: var(--color-on-brand); }
.outing-cap-track .outing-terminus { margin-inline-start: calc((var(--plan-leaf) - var(--cap-w)) / 2); } /* #full's terminus (24dp), centred on the rail's axis; the track ends at the cap's end */
.outing-cap-body { display: flex; flex: 1; align-items: center; gap: var(--space-m); min-width: 0; min-height: 72px; color: var(--color-on-brand); text-align: start; }
.outing-cap-body .outing-place-score { flex: none; }
.outing-cap-body .rating-pill.tier-middle { background: var(--color-surface); color: var(--color-outline-strong); }
.outing-cap-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.outing-cap-text .distance { color: var(--color-on-brand); white-space: nowrap; }
.outing-plan-faces { display: flex; gap: var(--space-xs); padding-block-start: var(--space-2xs); }
.outing-terminus--place > .icon-btn { flex: none; }
.outing-line--closed > .photo-strip { margin-block: var(--space-l) 0; margin-inline: calc(var(--space-2xl) + (var(--plan-leaf) + var(--space-2xl)) / 2 + var(--space-s)) var(--space-2xl); align-self: flex-start; }
.outing-line--closed { position: relative; }
.outing-plan-offline { position: absolute; inset-block-start: var(--space-m); inset-inline-start: calc(var(--space-2xl) + (var(--plan-leaf) + var(--space-2xl)) / 2 + var(--space-s)); } /* the pill beside the rail, never across it */
.outing-platform--plan { position: relative; gap: var(--space-l); }
.outing-plan-quiet { display: flex; gap: var(--space-s); margin-block: calc(-1 * var(--space-s)); }
.outing-plan-quiet .btn-text { flex: 1; padding-inline: var(--space-s); }
.outing-plan-quiet--stack { flex-direction: column; align-items: stretch; margin-block: calc(-1 * var(--space-xs)); }
.brand-screen .outing-plan-quiet .btn-text:disabled { color: color-mix(in srgb, var(--color-on-brand) 50%, transparent); }
.outing-plan-note { margin: 0; color: var(--color-on-brand); text-align: center; }
.outing-top:has(.outing-day-rail) .outing-top-title { padding-inline-end: var(--space-m); }
.outing-scroll > .outing-line--closed { flex: none; padding-block-end: var(--space-2xl); }
/* round 1: the time hangs on the line a third of the way down (day, time, place); upcoming plans set the score as a numeral with its faces */
/* round 2: the rail breaks like a leg on #full: the time (or the distance) sits in the gap, centred on the rail's axis; each segment about one leg (96dp); the air left over is under the cap, framing the platform */
.outing-plan-break { flex: none; width: var(--plan-leaf); margin-inline-start: var(--space-2xl); padding-block: var(--space-s); text-align: center; }
.outing-plan-break .outing-leg-value { display: block; }
.outing-cap-tally { display: flex; flex: none; flex-direction: column; align-items: center; gap: var(--space-xs); min-width: 72px; }
.outing-cap-score { flex: none; min-width: 72px; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; font-variant-numeric: tabular-nums; color: var(--color-on-brand); }
.font-scale-130 .outing-line--closed { --plan-leaf: 124px; --plan-leg: var(--space-4xl); }
.font-scale-130 .outing-day-rail { --plan-leg: var(--space-3xl); }
.font-scale-130 .outing-line--closed > .outing-rail:has(+ .outing-terminus--place) { --plan-leg: var(--space-l); }
.font-scale-200 .outing-cap-text .distance { font-size: 32px; line-height: 40px; }
.font-scale-200 .outing-cap-body .outing-place-score { height: 72px; }
.font-scale-200 .outing-day-rail { display: none; } /* at 200% the title takes its own row under the leaf, so the line starts under the band */
.font-scale-200 .outing-plan-quiet .btn-text { min-height: 64px; }
/* place_detail: Plan it, one control with its day as a trailing second hit (a small leaf standing out of the frame's top edge,
   the day it plans; tap the label for today, the leaf for the day strip). Replaces Start an outing and its hollow circle. */
.place-detail-plan { display: flex; align-items: center; gap: var(--space-s); min-height: 72px; padding-block: var(--space-s); padding-inline: var(--space-l) var(--space-s); border-radius: var(--shape-control); background: var(--color-surface-brand-tint); color: var(--color-primary); } /* round 1: its own row, blocked by surface, no border to cut */
.place-detail-plan-go { display: flex; flex: 1; align-self: stretch; align-items: center; font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 20px; text-align: start; }
.place-detail-plan-go:lang(ar) { line-height: 22px; }
.place-detail-plan-day { display: flex; flex: none; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0; border-radius: var(--shape-m); } /* the leaf seated inside the row, its own 48dp hit */
.place-detail-plan-day .day-leaf { --leaf-w: 48px; }
.place-detail-plan-day .day-leaf-num { font-size: 18px; line-height: 22px; }
.place-detail-vote { align-self: center; }
.place-detail-vote-note { margin: 0; color: var(--color-ink-muted); text-align: center; }
.plan-day-outcome { margin: 0; color: var(--color-ink); text-wrap: balance; }
/* vote_setup#from_plan: the planned place stands apart above the picks, its day leaf set, not tickable; the "or" disc on its
   foot edge is the bridge from the plan's terminus cap (the cap becomes the disc as the screen opens). */
.vote-option--planned { position: relative; display: flex; align-items: center; gap: var(--space-l); min-height: 88px; padding: var(--space-m) var(--space-l) calc(var(--space-m) + var(--space-2xl)); border-radius: var(--shape-card); background: var(--color-background); color: var(--color-outline-strong); }
.vote-option--planned .day-leaf { --leaf-w: 48px; }
.vote-option--planned .day-leaf-num { font-size: 18px; line-height: 22px; }
.vote-option--planned .vote-pick-name { font-size: 22px; line-height: 28px; }
.vote-option--planned .vote-pick-name:lang(ar) { line-height: 34px; }
.vote-option--planned .or-disc { inset-block-start: 100%; box-shadow: 0 0 0 4px var(--color-surface-brand); }
.vote-planned-note { margin: var(--space-xl) 0 0; color: var(--color-on-brand); text-align: center; }
.vote-setup-for-day { display: flex; align-items: center; gap: var(--space-l); }
.vote-setup-tray-top { flex: none; } /* round 1: the tray 24dp under the title; the air goes between the plan and the picks */
.vote-planned-group { margin-block-end: auto; }
/* calendar#choose_day: the sheet's foot holds the doors: Where to? the one decision, Pick a place and Start a vote as text
   actions under it (never an outlined twin), Cancel last. */
.choose-day-doors { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2xs); margin-block-start: var(--space-s); }
.choose-day-doors-alt { display: flex; gap: var(--space-s); }
.choose-day-doors-alt .btn-text { flex: 1; padding-inline: var(--space-s); }
.choose-day-doors > .btn-text { align-self: center; }
.choose-day-doors-note { margin: 0; color: var(--color-ink-muted); text-align: center; }
/* calendar#plan_place: the log sheet's plate as a whole leaf for a day ahead (its band, no tear), the time at its foot */
.day-leaf--plate.day-leaf--whole { -webkit-mask: none; mask: none; border-radius: var(--shape-l); border-block-start: var(--space-l) solid var(--color-surface-brand); padding-block-start: var(--space-s); }

/* ---- Shared, adopted 9 Nov 2026 (/sync-design): notifications. The Design System's §4 facts inside a sentence (.fact--score,
   p-notif2-1), §8 Switch (p-notif2-2, now the shared .switch-on) and §9 Notifications, the brand surface on a settings sub-page
   (p-notif2-3). Stays where it was, so the cascade is as it was.
   Notifications, ratings and menus (2026-11-05, notif-rating-menu, direction C "the decide zone on Nile", with concept A's score).
   The deciding kinds (Votes, Plans) sit on Nile 800 under the top bar; the list block (New places, Ratings, Menus) overlaps the
   zone's foot by 24dp; the groups stay on the background. Only notifications.html uses these. */
.notif-zone { display: flex; flex-direction: column; padding: 0 var(--space-2xl) var(--space-4xl); background: var(--color-surface-brand); color: var(--color-on-brand); }
.notif-zone-top { gap: var(--space-xs); min-height: 48px; margin-inline-start: calc(-1 * var(--space-m)); padding-block-start: var(--space-s); }
.notif-zone .icon-btn { color: var(--color-on-brand); }
.notif-zone-head { margin-block-start: var(--space-2xl); text-wrap: balance; }
.notif-zone-rows { display: flex; flex-direction: column; gap: var(--space-xs); margin-block-start: var(--space-m); }
.notif-zone-rows .switch-row, .notif-zone-rows .switch-row:disabled { padding-block: var(--space-s); color: var(--color-on-brand); text-align: start; }
.notif-zone-rows .switch-row + .switch-row { border-block-start: 0; }
.notif-zone-rows .notif-row-sample, .notif-zone-rows .switch-row:disabled .notif-row-sample { color: var(--color-on-brand); } /* no grey on colour */
/* off on Nile: the ring and knob in onBrand (well over 3:1 on Nile 800), the track the onBrand fill; on is the shared .switch-on on a brand surface (§8 Switch) */
.notif-zone .switch:not(.switch-on) { background: var(--color-on-brand-fill); box-shadow: inset 0 0 0 2px var(--color-on-brand); }
.notif-zone .switch:not(.switch-on) .switch-knob { background: var(--color-on-brand); }
/* inert on Nile (#system_off, #channel_off): the switch keeps its position, track and knob drop to the onBrand line, no well on colour */
.notif-zone .switch-row:disabled .switch, .notif-zone .switch-row:disabled .switch:not(.switch-on) { background: var(--color-on-brand-fill); box-shadow: inset 0 0 0 2px var(--color-on-brand-line); }
.notif-zone .switch-row:disabled .switch .switch-knob { background: var(--color-on-brand-line); }
.notif-zone .notif-kind-action { margin-block-start: calc(-1 * var(--space-s)); margin-inline-start: calc(-1 * var(--space-m)); color: var(--color-on-brand); text-decoration: underline; text-underline-offset: 4px; }
/* the system's band inside the zone, its first line: a tonal step (surfaceBrandRaised), never a Nile 50 tint stacked on Nile 800 */
.notif-zone .notif-band { margin-block-start: var(--space-m); background: var(--color-surface-brand-raised); color: var(--color-on-brand); }
.notif-zone .notif-band .meta { color: var(--color-on-brand); }
.notif-page--zoned { padding-block-start: 0; }
.notif-list { margin-block-start: calc(-1 * var(--space-2xl)); }
.notif-list-head { margin-block-end: calc(-1 * var(--space-s)); padding-inline: var(--space-l); color: var(--color-ink); } /* fix r1: titleMedium, onSurface, 12dp to New places' name (the block's 12 gap less the row's 8 padding, plus it) */
.notif-page .switch-row:has(.notif-row-text), .notif-zone-rows .switch-row { align-items: flex-start; } /* the switch top-aligned to the row's name */
/* the score holds to the place's last word by a no-break space in the markup ("Café 8"), so line 1 runs as far as it can */
.notif-list .fact--score { color: var(--color-ink); } /* fix r1: onSurface ink, the eye's stop, not the sample's muted */
/* The page's on switch (fix r1) moved to the shared .switch-on, §8 Switch (p-notif2-2, adopted 9 Nov 2026). */
/* the score: the one fact that also steps up (concept A, System proposal §4): Alexandria 700 at titleLarge's size, tabular, same colour, baseline */
.fact.fact--score { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: baseline; }
.font-scale-200 .fact.fact--score { font-size: 40px; }
.font-scale-200 .notif-zone .icon-btn { width: 64px; height: 64px; }
.font-scale-200 .notif-zone .icon-btn .icon { font-size: 40px; }
.font-scale-200 .notif-zone-top { flex-wrap: wrap; }
.font-scale-200 .notif-zone-top > h1 { flex-basis: 100%; margin-inline-start: var(--space-m); font-size: 40px; line-height: 52px; }
.font-scale-200 .notif-zone-top > h1:lang(ar) { line-height: 64px; }

/* ---- Shared, adopted 9 Nov 2026 (/sync-design): the map pin. The Design System's §8 City plate (the pin mode's planted sign,
   p-pin-1), §8 Empty states (p-pin-2) and §7 the pin mode's stake (p-pin-3). Stays where it was, so the cascade is as it was.
   Map pin (2026-11-09, brain/features/map-pin/, concept B "the stake"): the city map's pin mode and add place's row.
   .map-sign--fixed: the planted sign anchored to the map's focal point (the visible map's centre above the panel), not a
   coordinate; the map moves under it. Its foot sits in .map-sign-socket, a hole in the street: a 24x14dp well (surfaceSunken,
   the far wall a darker band at its top, never a soft shadow) with a crisp 1.5dp Limestone 400 lip and the 3dp halo; its front
   half-lip is drawn over the pin tip, so the tip sinks behind it. .map-sign-tag is the typed place's name on the post's start
   side. .map-sign--lifted raises everything but the socket 24dp (space.l; geometry, no shadow): the map is moving, or the
   stake can't come down (too far out, no streets). */
.map-sign--fixed { --post: 56px; --map-sign-lift: var(--space-l); --map-socket-in: var(--color-surface-sunken); --map-socket-wall: color-mix(in srgb, var(--limestone-400) 55%, var(--color-surface-sunken)); --map-socket-lip: var(--limestone-400); }
[data-theme="dark"] .map-sign--fixed { --map-socket-wall: color-mix(in srgb, var(--limestone-950) 60%, var(--color-surface-sunken)); --map-socket-lip: var(--limestone-500); }
.map-sign-socket { position: absolute; left: -12px; top: -7px; width: 24px; height: 14px; border-radius: 50%; background: var(--map-socket-in); box-shadow: inset 0 3px 0 var(--map-socket-wall), 0 0 0 1.5px var(--map-socket-lip), 0 0 0 3px var(--map-sign-halo); }
.map-sign-socket::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--map-socket-in); box-shadow: 0 0 0 1.5px var(--map-socket-lip); clip-path: inset(50% -2px -2px -2px); }
.map-sign--fixed .map-sign-foot { z-index: 1; top: -16px; stroke-width: 0; } /* the tip 6.6dp under the centre: behind the front lip */
.map-sign--lifted { translate: 0 calc(-1 * var(--map-sign-lift)); }
.map-sign--lifted .map-sign-socket { translate: 0 var(--map-sign-lift); } /* the hole stays on the coordinate */
.map-sign--lifted .map-sign-socket::after { display: none; } /* nothing in it: the hole shows whole */
.map-sign--fixed.map-sign--here .map-sign-socket { display: none; } /* found: the person's dot is what sits in the hole */
.map-sign-tag { position: absolute; inset-inline-end: 6px; bottom: 23px; max-width: min(160px, calc(var(--x) - 6px - var(--space-l))); padding: var(--space-2xs) var(--space-s); border-radius: var(--shape-full); background: var(--nile-600); color: var(--color-on-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 2px var(--map-sign-halo); }
[dir="rtl"] .map-sign-tag { max-width: min(160px, calc(360px - var(--x) - 6px - var(--space-l))); } /* clamped to the 16dp gutter, as the plate is */
.map-sign-plate--blank { min-width: 136px; } /* the Nile plate with nothing on it yet: the stake held up, not a no-city answer */
/* .map-panel--pin: two zones. The question on surface, the place's name its scale jump (displayLarge; headlineSmall for a
   name past 20 characters), the rest lighter; the actions on a Nile 50 block bled to the panel's edges and foot: the row
   unboxed on the tint, Put it here (Nile 800, .btn-secondary: a rating pin of the list is the screen's Saffron) */
.map-panel--pin { gap: var(--space-l); padding: var(--space-xl) var(--space-2xl) 0; }
.map-pin-q { display: flex; flex-direction: column; margin: 0; overflow-wrap: anywhere; }
.map-pin-q-rest { color: var(--color-ink-muted); }
.map-panel--pin .map-panel-text { gap: var(--space-xs); }
.map-pin-q-name { color: var(--color-outline-strong); }
.map-pin-say { display: flex; align-items: flex-start; gap: var(--space-s); margin: calc(-1 * var(--space-s)) 0 0; color: var(--color-ink); }
.map-pin-say .icon { flex: none; color: var(--color-outline-strong); }
.map-pin-where { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin: 0; color: var(--color-outline-strong); }
.map-pin-where > span:last-child::before { content: "\00B7"; margin-inline-end: var(--space-xs); } /* one line: In Suez · Not a Feen city yet */
.map-pin-actions { display: flex; flex-direction: column; gap: var(--space-m); margin-inline: calc(-1 * var(--space-2xl)); padding: var(--space-m) var(--space-2xl) calc(24px + var(--space-xl)); background: var(--color-surface-brand-tint); }
.map-pin-actions .home-here-row { padding-inline: 0; background: none; box-shadow: none; }
.map-pin-actions .home-here-status { margin-block-start: calc(-1 * var(--space-xs)); }
/* 200%: the panel grows until the plate, post and socket still show above it, then its question scrolls; Put it here stays */
.font-scale-200 .map-panel--pin { max-height: 436px; overflow: hidden; } /* r2: the wrapped credits sit under the socket row, 8dp clear */
.font-scale-200 .map-panel--pin > .map-pin-q { flex-shrink: 1; min-height: 0; overflow: hidden; }
.font-scale-200 .map-pin-actions { flex: none; }
/* .place-pin-row: add place's optional "Set it on the map", under the city control: a Nile 50 block, never a chevron row and
   never a well. Kept (critique r2), the pin folds into the City control's line: the city plate carries the place (the pin's
   district after its rule), Move at the end; outside every city one status line under them. */
.place-pin-row { display: flex; align-items: center; gap: var(--space-m); width: 100%; min-height: 64px; padding: var(--space-m) var(--space-l); border: 0; border-radius: var(--shape-card); background: var(--color-surface-brand-tint); color: var(--color-ink); font: inherit; text-align: start; }
.place-pin-row > .icon { flex: none; color: var(--color-outline-strong); }
.place-pin-row--kept { flex-wrap: wrap; justify-content: space-between; row-gap: 0; padding-block: var(--space-xs); padding-inline-end: var(--space-xs); }
.place-pin-plate .city-plate-other { font-family: var(--font-text); font-weight: 400; }
.place-pin-plate-rule { width: 1.5px; align-self: stretch; border-radius: var(--shape-full); background: var(--color-on-brand-line); }
.place-pin-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.place-pin-move { flex: none; gap: var(--space-xs); padding-inline: var(--space-m); }
.place-pin-status { flex-basis: 100%; margin: 0 0 var(--space-s); color: var(--color-ink); }
.font-scale-200 .map-panel--pin { gap: var(--space-s); padding-block-start: var(--space-l); } /* r2: tighter at 200%, so the question fits above the actions before it has to scroll */
.font-scale-200 .map-pin-actions { gap: var(--space-s); padding-block-start: var(--space-s); }

/* ---- Send to the crew and who's coming (2026-11-10, brain/features/send-to-crew/, P0-11 Who's coming, concept A
   "The roll call") ------------------------------------------------------------------------------------------------
   The roll call: who's coming set in the outing's head band as type, the Typographic Tally with names for faces: the
   count of coming as a 40sp Alexandria numeral (.outing-cap-score's construction) and the coming named beside it, You
   first, wrapping as words; one bodyMedium line under both counts can't and not answered, naming nobody. Nobody
   coming: no numeral, the none line. On the platform the answer is two words either side of the station "or" disc,
   each half a 56dp target with a 2dp onBrand 50% edge, no fill until chosen; the chosen half takes the station's
   construction (onBrand paper, Nile 800 ink), --invite makes Coming the Saffron next thing to do. Send to the crew
   holds one 56dp slot; once sent, the sent line takes the slot at its height so nothing below moves. */
.outing-roll { display: flex; flex-direction: column; gap: var(--space-xs); margin-block-start: 0; color: var(--color-on-brand); }
.outing-roll-top { display: flex; align-items: baseline; gap: var(--space-m); min-width: 0; }
.outing-roll-count { flex: none; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 44px; font-variant-numeric: tabular-nums; }
.outing-roll-names { min-width: 0; overflow-wrap: anywhere; }
.outing-roll-none { margin: 0; }
.outing-roll--head { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-l); align-items: baseline; padding: 0 var(--space-2xl); } /* critique r1: the count stands under the leaf's date (day-leaf--sm is 56dp), the names on the title's start */
.outing-roll--head > .outing-roll-count { justify-self: center; }
.outing-roll-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.outing-roll-body > .outing-change-day { min-height: 48px; margin-block: calc(-1 * var(--space-xs)) calc(-1 * var(--space-s)); } /* the 48dp target holds; its air sits inside the target */
.outing-roll-rest { margin: 0; }
.outing-roll--place .outing-roll-count { font-size: 28px; line-height: 36px; } /* outing#place: the 7.5 at the cap stays the one 40sp numeral */
.outing-roll--scroll { margin-block: 0 var(--space-s); padding-inline: var(--space-2xl); } /* #large_text: the row scrolls with the line */
.font-scale-200 .outing-roll-count { font-size: 56px; line-height: 64px; }
.font-scale-200 .outing-roll-names.type-titleMedium:lang(ar) { line-height: 52px; }

.outing-answer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.45fr); align-items: center; }
.outing-answer:lang(ar) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } /* both Arabic words are short: equal halves, the disc on the axis */
.outing-answer-half { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 56px; padding-inline: var(--space-m); border-radius: var(--shape-control); box-shadow: inset 0 0 0 2px var(--color-on-brand-line); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; white-space: nowrap; }
.outing-answer-half:lang(ar) { line-height: 32px; }
.outing-answer-half:first-child { padding-inline-end: calc(2 * var(--space-m)); } /* each label centres in the part the disc leaves visible */
.outing-answer-half:last-child { padding-inline-start: calc(2 * var(--space-m)); }
.outing-answer-half[aria-checked="true"] { background: var(--color-on-brand); color: var(--nile-800); box-shadow: none; }
.outing-answer--invite .outing-answer-half:first-child { background: var(--color-accent); color: var(--color-on-accent); box-shadow: none; }
.outing-answer--quiet .outing-answer-half { min-height: 48px; font-size: 16px; line-height: 24px; } /* #place_today: Rate it keeps the platform */
.outing-answer > .or-disc { position: relative; inset: auto; transform: none; z-index: 1; margin-inline: calc(-1 * var(--space-m)); box-shadow: none; }
/* critique r1: the disc carves both halves (fill and edge) with a 4dp gap, so no edge stub shows past it */
.outing-answer-half:first-child { -webkit-mask: radial-gradient(circle at calc(100% + 8px) 50%, transparent 24px, #000 24.5px); mask: radial-gradient(circle at calc(100% + 8px) 50%, transparent 24px, #000 24.5px); }
.outing-answer-half:last-child { -webkit-mask: radial-gradient(circle at -8px 50%, transparent 24px, #000 24.5px); mask: radial-gradient(circle at -8px 50%, transparent 24px, #000 24.5px); }
.outing-answer-half:first-child:dir(rtl) { -webkit-mask: radial-gradient(circle at -8px 50%, transparent 24px, #000 24.5px); mask: radial-gradient(circle at -8px 50%, transparent 24px, #000 24.5px); }
.outing-answer-half:last-child:dir(rtl) { -webkit-mask: radial-gradient(circle at calc(100% + 8px) 50%, transparent 24px, #000 24.5px); mask: radial-gradient(circle at calc(100% + 8px) 50%, transparent 24px, #000 24.5px); }
.outing-answer > .or-disc:lang(ar) { font-size: 16px; line-height: 24px; } /* «ولا» at 20sp touches the disc's edge */
.font-scale-200 .outing-answer { grid-template-columns: minmax(0, 1fr); } /* 200%: the halves stack, the disc on the seam */
.font-scale-200 .outing-answer-half { min-height: 72px; padding-inline: var(--space-l); font-size: 36px; line-height: 48px; white-space: normal; }
.font-scale-200 .outing-answer-half:lang(ar) { line-height: 56px; }
.font-scale-200 .outing-answer-half:first-child { padding-inline-end: var(--space-l); }
.font-scale-200 .outing-answer-half:last-child { padding-inline-start: var(--space-l); }
.font-scale-200 .outing-answer > .or-disc { justify-self: center; margin-block: calc(-1 * var(--space-s)); }
.font-scale-200 .outing-answer-half:first-child, .font-scale-200 .outing-answer-half:first-child:dir(rtl) { -webkit-mask: radial-gradient(circle at 50% calc(100% + 12px), transparent 24px, #000 24.5px); mask: radial-gradient(circle at 50% calc(100% + 12px), transparent 24px, #000 24.5px); }
.font-scale-200 .outing-answer-half:last-child, .font-scale-200 .outing-answer-half:last-child:dir(rtl) { -webkit-mask: radial-gradient(circle at 50% -12px, transparent 24px, #000 24.5px); mask: radial-gradient(circle at 50% -12px, transparent 24px, #000 24.5px); } /* on the seam, inside the halves' padding, clear of both labels */

.outing-send { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.outing-send > .btn-text { align-self: flex-start; margin-inline-start: calc(-1 * var(--space-m)); }
.outing-platform--crew > .outing-send { margin-block-start: var(--space-m); } /* critique r1: 12dp from the station to the answer, 24dp above Send */
.outing-platform--crew .outing-next .outing-stub { height: var(--space-l); }
.outing-scroll:has(~ .outing-platform--crew) > .outing-line { padding-block-start: 0; }
.outing-leg--set { flex: none; height: var(--leg); min-height: 0; } /* the platform's edge crosses the next station's upper half: two legs of equal height, set per frame */
.outing-platform.outing-platform--crew { gap: var(--space-m); padding-block: 0 var(--space-m); } /* the stub and "Then where?" carry the top air; the share line's own 48dp target the foot's */

/* The other screens' Send: Send to the crew takes the slot their share held, the share sheet drops to a text action
   under it (.platform-send), in that screen's own foot. The sent line keeps the slot's height. */
.platform-send { display: flex; flex-direction: column; align-items: stretch; }
.platform-send > .btn-text { align-self: flex-start; margin-inline-start: calc(-1 * var(--space-m)); }
/* The sent line, one construction everywhere (critique r1, System proposal): a status, not an action: bodyMedium regular in the
   surface's ink, an inline check on the same start axis as the share row's glyph under it, holding Send's 56dp slot. */
.platform-send-sent { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-s); min-height: 56px; margin: 0; color: inherit; text-align: start; }
.platform-send-sent > .icon { flex: none; }
.font-scale-200 .platform-send-sent { align-items: flex-start; }
.font-scale-200 .platform-send-sent > .icon { font-size: 24px; margin-block-start: var(--space-s); }
.match-send--sent { display: flex; align-items: center; justify-content: flex-start; padding-inline: 0; background: transparent; color: var(--color-on-brand); } /* picker: the slot keeps its size, the sent line inside it */
.match-share-row { display: flex; margin-block: calc(-1 * var(--space-xs)) calc(-1 * var(--space-s)); } /* picker: the share sheet as text, under Send */
.outing-snackbar-slot--over { z-index: 3; }
.outing-snackbar-slot--over .snackbar-float { inset-block: var(--space-xs) auto; } /* #stop_removed: over the platform's own top row, never over the renumbered stops */
.outing-scroll--at-roll > .outing-top { display: none; } /* #large_text drawn scrolled to the roll call: the head band has scrolled out of view above it */
.outing-scroll--at-roll > .outing-roll--scroll { padding-block-start: var(--space-2xl); }
/* One-place plan with the crew's answer: the closed line gives up one leg's length and its foot air so the platform's
   answer, sent line and quiet actions fit 800dp (#place, #place_today). */
.outing-line--closed:has(~ .outing-place-foot .outing-answer) { --plan-leg: var(--space-3xl); padding-block-end: 0; }
.outing-place-foot:has(.outing-answer) { gap: var(--space-s); padding-block: var(--space-m); }
.outing-line--closed:has(~ .outing-place-foot .outing-answer) .outing-plan-break { padding-block: var(--space-xs); } /* r2: the time and distance breaks close up so a moved-since line still leaves the foot whole */
.outing-place-foot:has(.outing-answer--quiet) { gap: var(--space-s); padding-block-start: var(--space-m); }
.bill-tray-send { padding: var(--space-s) var(--space-l) var(--space-2xl); } /* bill: the starter's Send to the crew at the tray's foot, Share the link under it */
.bill-tray-send > .btn-text { color: var(--color-on-brand); }
.bill-ticket--crew { min-height: 580px; } /* the result with Send: the ticket gives the foot one action's height */
.bill-result-share.platform-send { bottom: var(--space-2xl); }
.bill-result-share.platform-send > .btn-text { color: var(--color-on-brand); }
.viewer-foot > .platform-send { flex: 1; min-width: 0; } /* menu_viewer: Send to the crew beside the counter, Share on WhatsApp under it */
.viewer-foot .platform-send > .btn-text, .viewer-foot .platform-send-sent { color: var(--color-on-brand); }
.platform-send > .menu-send + .btn-text { margin-block-start: var(--space-xs); } /* place_detail's Menu section */
.font-scale-200 .outing-platform.outing-platform--crew:lang(en) { gap: var(--space-s); } /* 200%: the English sent line and share wrap to two lines; the platform's edge stays on a leg */
.outing-scroll--at-roll > .outing-roll--scroll:lang(en) { margin-block-end: 0; }
.outing-scroll--snug > .outing-line { padding-block-start: var(--space-l); } /* #offline: the pill takes the line's top air, so its edge still lands on a leg */
.outing-platform--crew .outing-next-body { padding-block-start: calc(var(--space-l) + var(--space-xs)); } /* "Then where?" stays centred on the hollow under the shorter stub */
.outing-platform--crew .outing-next-body:lang(ar) { padding-block-start: calc(var(--space-l) + 1px); }
.outing-roll-group { display: contents; }
.outing-stop--at-edge > :not(.outing-track) { visibility: hidden; } /* the crossed stop: its name, tags and directions are not drawn */
.outing-platform-rise.outing-platform--crew .outing-capacity-rest { grid-auto-rows: minmax(var(--space-2xl), 1fr); row-gap: var(--space-xs); padding-block: 0; }
.outing-platform-rise.outing-platform--crew .outing-next { min-height: calc(var(--space-s) + var(--space-4xl)); }
.outing-platform-rise.outing-platform--crew > .outing-send { margin-block-start: 0; } /* one_stop: the free stations close up so the answer and Send keep the foot */
.outing-line-rise:has(~ .outing-platform--crew) .outing-leg { min-height: calc(2 * var(--space-2xl) + 2 * var(--space-s)); } /* one_stop with the answer: one 64dp leg under Zooba */
.match-foot:has(.match-share-row) { padding-block-start: var(--space-m); }
.artboard:not(.font-scale-200) .match-rank-list:has(~ .match-foot .match-share-row) { max-height: calc(3 * 48px); } /* critique r1: with the share row the ranked list shows three whole rows and ends on a row boundary; the ranking scrolls for the rest */
.outing-line--closed:has(~ .outing-place-foot .outing-answer) .outing-plan-offline { inset-block-start: calc(var(--space-4xl) - var(--space-xs)); } /* beside the shortened rail, under the time */
.outing-line--closed:has(~ .outing-place-foot .outing-answer) > .outing-rail:has(+ .outing-terminus--place) { --plan-leg: var(--space-l); } /* the cap's own half-leg carries the rest */
/* Fix round 2 (critique r2): the crossed station is a plain disc going under the platform, cut through its middle; its numeral,
   name and tags are not drawn, and the platform's own rail starts where the disc's lower half would end. */
.outing-stop--at-edge .outing-station { color: transparent; }
.outing-platform--crossed .outing-next .outing-stub { height: 0; margin-block-start: 20px; }
.outing-platform--crossed .outing-next-body { padding-block-start: calc(20px + var(--space-xs)); }
.outing-platform--crossed .outing-next-body:lang(ar) { padding-block-start: calc(20px + 1px); }
.outing-line--offset { margin-block-start: calc(-1 * var(--scroll-y)); } /* the frame drawn scrolled: the line's start is above the view */
.outing-scroll--offset > :first-child { margin-block-start: calc(-1 * var(--scroll-y)); } /* photo frames drawn scrolled past the head band */
.outing-leg--set .outing-rail { min-height: 0; } /* a set leg keeps its height; the label stays 8dp clear of both discs */
[data-theme="dark"] .brand-screen .outing-stop--at-edge .outing-station.outing-station.outing-station.outing-station { color: transparent; } /* the crossed disc carries no numeral in dark either */
.outing-leg--set > .outing-track { gap: var(--space-2xs); } /* short set legs: rails of 8dp or more either side of the label, never a stray tick */
/* Fix round 3 (critique r3, review r3) */
.outing-scroll-end:has(~ .outing-platform--crew) > .outing-line { flex: none; } /* scroll-end frames: the line's end (terminus, Then where?) sits whole above the platform */
.outing-platform.outing-platform--crew:not(:has(.outing-next)) { padding-block-start: var(--space-l); } /* no station row on the platform: 16dp of platform above Coming, clear of any disc at the edge */
.outing-scroll:has(> .outing-line--offset) { margin-block-start: calc(-1 * var(--space-m)); } /* the scrolled line's rail starts flush under the head band's last line, not in the button's air */
.outing-place-foot:has(.outing-answer) .outing-plan-quiet { justify-content: center; gap: var(--space-2xl); }
.outing-place-foot:has(.outing-answer) .outing-plan-quiet .btn-text { flex: none; }

/* ---- Cities for all of Egypt (2026-11-11, brain/features/cities-all-egypt/, concept A "Egypt, set as an index") ------- */
/* .city-index, .city-region, .city-run, .city-run-name, .city-pick-sheet and .search-foot moved to "Shared, adopted 11 Nov
   2026" at the end of the Cities block above (p-egypt-1 and p-egypt-2); what stays here is the feature's own. */
/* The long city lists (add_place#city_sheet*, home_chooser#cities* and #districts*, home_step#ask_no_map): an atlas index,
   not rows. Region heads at headlineMedium in Nile 800 (outlineStrong, so dark holds) over wrapped runs of names, each a
   48dp text button with no fill, edge or pill; the head sits 12dp over its run's first words (the 48dp box's own air) and
   32dp of air closes each region. The chosen city is its small plate set in place; the one match left steps up a type size. */
.city-run-name--sole { font: 600 20px/26px var(--font-display); letter-spacing: -0.01em; color: var(--color-outline-strong); }
.city-run-name--sole:lang(ar) { line-height: 32px; letter-spacing: 0; }
/* a city found through a district: the matched districts under its name, joined by a middle dot, the matched word heavier */
.city-run-name:has(> .city-run-district) { padding-block: var(--space-xs); }
.city-run-district { color: var(--color-ink-muted); font: 400 14px/20px var(--font-text); letter-spacing: 0; }
.city-run-district:lang(ar) { line-height: 22px; }
.city-run-district b { font-weight: 600; color: var(--color-ink); }
/* the home district in its run: its name heavier, Your home beside it (the tag, never a second plate) */
.city-run-name--home { flex-direction: row; align-items: center; gap: var(--space-s); font-weight: 600; color: var(--color-outline-strong); }
.city-run-plate { align-self: flex-start; margin-block-end: var(--space-m); }
.city-none { margin-block: 0 var(--space-xs); }
.city-search-none { margin: 0; padding-block: var(--space-m); color: var(--color-ink); }
.city-index--page > .city-search-none:only-child { margin-block-start: calc(var(--space-2xl) - var(--space-3xl)); padding-block: 0; } /* home_chooser#cities_none: 24dp under the or rule */
.city-search-typed { display: flex; align-items: center; min-width: 0; color: var(--color-ink); }
/* the sheet: the index scrolls under the title, the field docked at its foot above the keyboard (the thumb zone) */
/* the full-page chooser: the index fills the page, the field docked at its foot over the background */
.city-index--page { flex: 1; min-height: 0; overflow: hidden; padding: var(--space-2xl) var(--space-2xl) 0; }
.city-index--districts, .chooser-here + .city-index--page { padding-block-start: var(--space-3xl); }
/* home_step#ask_no_map: the field inline at the top of the list, scrolling away with it */
.home-step-rows--index { gap: var(--space-2xl); margin-inline: 0; } /* the list scrolling in place; the drawn frame ends between lines, never through a head (critique r2, r3) */
.home-step-rows--index:lang(en) { gap: var(--space-s); } /* English: Alexandria and the coast wraps to two lines, so the clip lands under its whole head */
/* The city map at country scale (city_map#egypt, #no_places, #tapped_none): .map-label and .map-dot--quiet moved to "Shared,
   adopted 11 Nov 2026", in the City map block above (p-egypt-3, displayLarge 40 for 20+). The map never mirrors. */
.map-pin-where > .icon + span:last-child::before { content: none; } /* city_map#pin_outside: no governorate before No city out here, so no dot */
[dir="rtl"] .city-search-typed[dir="ltr"] { justify-content: flex-end; } /* a Latin query in an Arabic field sits at the start edge, its caret after it */
.chooser-here:has(+ .city-index--page) > .map-window-or--rule { margin-block-start: calc(var(--space-s) + 20px); } /* home_chooser#cities*: the or disc (40dp, centred on the rule) 8dp clear of the card (review r3) */

/* ---- drop-the-pair (2026-11-12): the next stop's result, concept C "the landing" (brain/features/drop-the-pair/concept.md).
   Three colour zones on one axis: the previous station's head on Nile 800, the rail dropping on the station's axis with the
   leg's distance beside it (the outing's own leg label) and landing on the rank numeral, the match's hero as a full-bleed
   Limestone band that the numeral crosses, then the ranking back on Nile. The station's centre, the rail, the numeral's box
   and the ranking's rank column share one vertical, 44dp from the inline-start, in both languages. */
.artboard.next-stop-board { height: 800px; } /* one phone screen: the ranking scrolls under the pinned add action */
.next-stop-result { --land: 0px; } /* the rail runs into the numeral's ink: rail and digit one mark (critique r1, 2026-11-12) */
.next-stop-head { flex: none; display: flex; align-items: center; gap: var(--space-m); margin: var(--space-l) 0 0; font: inherit; }
.next-stop-head-name { min-width: 0; color: var(--color-on-brand); overflow-wrap: anywhere; }
.next-stop-head .cat-tag { flex: none; }
/* The rail: the flex element between the head and the band. It takes any spare height (a short state), never less than its
   label's row plus 8dp each side (40dp); above the numeral's Nile backing (z-index), so it runs unbroken to the ink. */
.next-stop-leg { position: relative; z-index: 2; flex: 1 0 auto; display: flex; align-items: center; min-height: calc(var(--space-3xl) + var(--space-s)); padding-inline-start: calc(40px + var(--space-m)); }
.next-stop-leg::before { content: ""; position: absolute; inset-block: calc(-1 * var(--space-xs)) 0; inset-inline-start: calc((40px - var(--rail)) / 2); width: var(--rail); background: var(--color-on-brand); }
.next-stop-leg--88 { min-height: calc(2 * var(--space-4xl) - var(--space-s)); } /* the leg rule: a rail of 64dp or more carries its km centred on it */
.next-stop-leg--48 { min-height: var(--space-4xl); } /* row_three AR: the featured row 3 whole above the foot */
.next-stop-leg--64 { min-height: calc(var(--space-4xl) + var(--space-l)); }
.next-stop-leg--open { z-index: auto; } /* nothing near: a future leg, the ghost rail running under the hollow station's ring */
.next-stop-leg--open::before { inset-block-end: calc(-1 * var(--space-xs)); background: var(--on-brand-ghost); }
/* The band: the match's hero edge to edge with square ends, the screen's 24dp margin as its padding. Its top sits so the
   numeral's ink lands --land under the rail's end: the numeral's box rises --cut above the edge, its ink --ink inside the box. */
.match-hero--bleed { --cut: 52px; --ink: 18px; flex: none; margin: calc(var(--cut) - var(--ink) + var(--land)) calc(-1 * var(--space-2xl)) 0; padding: var(--space-l) var(--space-2xl); border-radius: 0; }
.match-hero--bleed.match-hero--plain { margin-block-start: 0; } /* Surprise: no numeral, the rail lands on the band's top edge */
.match-hero--bleed .match-rank-hero, .match-hero--bleed .match-rank-hero:dir(ltr) { inset-inline-start: 0; text-align: center; } /* the box centred on the axis, so ranks 1 to 7 land alike */
.match-hero--bleed:not(.match-hero--plain) .match-hero-line { margin-inline-start: calc(88px + var(--space-s) - var(--space-2xl)); }
/* The ranking: the match's rows, their rank column moved onto the axis. It shrinks (and clips under the foot) before the
   head, the rail or the band give way. */
.next-stop-ranking { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; overflow: hidden; padding-block-start: var(--space-2xl); }
.next-stop-ranking .match-rank-head { margin-block-start: 0; }
/* The rows clip under the foot (the scroll cue, concept At rest); the list's own box holds the featured row's edge-to-edge tint. */
.next-stop-ranking .match-rank-list { margin-inline: calc(-1 * var(--space-l)); }
.next-stop-ranking .match-row { width: 100%; grid-template-columns: 32px minmax(0, 1fr) auto; padding-inline: var(--space-xl) var(--space-l); }
.next-stop-ranking .match-row-rank { text-align: center; }
.next-stop-ranking .match-rank-rule { text-wrap: balance; } /* two even lines, never "at 2" alone */
.next-stop-under { margin: var(--space-l) 0 0; color: var(--color-on-brand); text-wrap: pretty; } /* the only-one and drawn lines, under the band on Nile */
.next-stop-result > .match-foot .btn-block { width: 100%; }
.next-stop-result:has(.next-stop-skip) { padding-block-end: 0; } /* Not now (2026-11-12): its 48dp box is the foot's bottom air */
.next-stop-result > .match-foot:has(.next-stop-skip) { padding-block-start: var(--space-l); } /* the clip gap above the add, 16dp since Not now joined the foot */
.next-stop-skip { align-self: center; } /* Not now (owner, 2026-11-12): the quiet way out under the add, onBrand text, never Saffron */
/* Nothing near: no band. The ghost rail ends in the hollow station, the sentence beside it at 28, then the existing poster. */
.next-stop-none { flex: none; display: flex; align-items: flex-start; gap: var(--space-m); }
.next-stop-none-line { margin: 0; color: var(--color-on-brand); text-wrap: pretty; }
.next-stop-none-line:lang(ar) { line-height: 60px; }
/* Nothing near's poster (critique r1): the Outdoors glyph and the pin straight on Nile beside the ghost rail, which runs on
   from the hollow station past them. */
.next-stop-none-art { display: block; flex: none; align-self: flex-start; margin-block-start: var(--space-l); margin-inline-start: calc(40px + var(--space-m)); } /* under the words, on their column */
.next-stop-none-art:dir(rtl) { transform: scaleX(-1); } /* the poster's pin stays on screen beside the track in Arabic */
