/* Curbaroo console. Direction B "Dispatch" (CONSOLE-SPEC.md, docs/console-mockup.html).
   Color is state: amber needs you, blue waiting, green done, purple booked. */

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12101a; --chrome: #0d0b14; --card: #1c1927; --raised: #221f2f; --raised-line: #3f3955;
  --ink: #f1eefa; --muted: #a39db3; --line: #332e44;
  --field-line: #757090;   /* a field's border, 3.2:1 or more on every dark surface (Build 21 item 7) */
  --brand: #7c4ddb; --brand-ink: #fff; --brand-soft: #b9a1ff; --brand-bg: #2a1f4d;   /* white on it: 5.33:1 (was #8b5cf6, 4.23) */
  --action: #eeb02a; --on-action: #3a2503; --action-edge: #eeb02a;
  --quote-stripe: #5a4f7a;
  --mark: #7c4ddb;   /* the mark in the dark theme (design notes 2026-10-05-mark, item 2) */
  --amber: #ffb224; --amber-bg: #3a2b08; --amber-ink: #ffb224;
  --green: #43d17a; --green-bg: #0f3321;
  --blue: #6ea8ff; --blue-bg: #122a4d;
  --red: #ff6b61; --red-bg: #3d1613; --red-fill: #c9363b;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px -14px rgba(0,0,0,.8);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3ee; --chrome: #fffdf9; --card: #fffdf9; --raised: #fffdf9; --raised-line: #d6cfc3;
  --ink: #1d1a17; --muted: #6f6861; --line: #d6cfc3;
  --field-line: #8a8275;   /* a field's border, 3:1 or more on the cream and the purple tint (Build 21 item 7; was --line, 1.4:1) */
  --brand: #4a148c; --brand-ink: #fff; --brand-soft: #4a148c; --brand-bg: #ece3f7;
  --action: #f5b82e; --on-action: #3a2503; --action-edge: #826006;
  --quote-stripe: #c9bda6;
  --mark: #4a148c;   /* the mark, purple, in light */
  --amber: #c77a00; --amber-bg: #fff4dc; --amber-ink: #945a00;   /* text in the yellow: 5.2:1 */
  --green: #1f7a3f; --green-bg: #e3f4e8;
  --blue: #1d5fb3; --blue-bg: #e4eefb;
  --red: #b3261e; --red-bg: #fbe7e5; --red-fill: #c9363b;
  --shadow: 0 1px 2px rgba(20,10,40,.06), 0 8px 24px -12px rgba(20,10,40,.25);
}
:root {
  /* Rounder and softer (design notes 2026-10-02): the phone's rounded system face first, Nunito where
     there is none, same sizes as before. */
  --ui: ui-rounded, "SF Pro Rounded", "Nunito", "Helvetica Neue", Arial, sans-serif;
  /* One typeface everywhere an owner reads (design notes 2026-10-04 second round, item 5): this rounded sans, for every word.
     Numbers that line up in a column keep their width with tabular figures. */
  --tabs-h: 62px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.shell { min-height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }

/* Header: one thin line, the truck on the left (design notes 2026-10-02, item 1). The demo's
   new-request button folds into the same line; the strip (practice mode, or the demo's) is the only
   second line. */
.top { position: sticky; top: 0; z-index: 5; background: var(--chrome); border-bottom: 1px solid var(--line);
  padding: calc(var(--s-8) + env(safe-area-inset-top)) var(--s-16) var(--s-8); display: grid; gap: var(--s-8); }
.top { grid-template-columns: minmax(0, 1fr); }
.head-line { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); min-height: 30px; min-width: 0; }
.icon { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--raised); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
/* The top bar (Build 38 item 2, variant C of docs/mockups/2026-10-08-topbar.html), the same for the demo and a real truck: the
   truck's logo at 36 px in a 44 px button (its initials in white on the brand purple when it has no logo; a cream gap and a ring
   in the field line, so it reads as a control), the truck's name across the top in the page-head weight with the amber Practice
   pill after it, the quiet poll line under the name, and the light and dark toggle at the far right. The name gives way first,
   with its ellipsis; the badge, the pill and the toggle never shrink. */
.tenant-btn { position: relative; flex: none; width: 44px; height: 44px; margin: calc(-1 * var(--s-4)) 0; padding: 0; border: 0;
  background: none; cursor: pointer; display: grid; place-items: center; }
.tenant-badge { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--field-line); display: grid; place-items: center; }
.tenant-badge b { font: 800 .95rem/1 var(--ui); letter-spacing: .02em; }
.tenant-badge img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--card); }
.tenant-btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-radius: 50%; }
.head-titles { flex: 1 1 auto; min-width: 0; display: grid; gap: 0; }
.nameline { display: flex; align-items: center; gap: var(--s-8); min-width: 0; }
.top .tenant { font: 700 1.125rem/1.2 var(--ui); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-pill { flex: none; font: 600 .66rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink);
  background: var(--amber-bg); padding: var(--s-4) var(--s-8); border-radius: 999px; }
.head-poll:empty { display: none; }
.head-poll .poll-line { padding: 0; font: 500 .8rem/1.2 var(--ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.themebtn { flex: none; width: 44px; height: 44px; margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0; padding: 0; border: 0;
  background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; position: relative; }
.themebtn::before { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--raised); }
.themebtn svg { position: relative; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.themebtn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: -2px; border-radius: 50%; }
/* The toggle is the demo's alone (design audit 10/08, top bar, P1): a real truck's light and dark live in Settings > Appearance,
   so its bar is the badge, the name and the Practice pill. body.demo comes with /api/config (app.js frontDoor). */
body:not(.demo) .top .themebtn { display: none; }
/* The right end of the top bar: the toggle (the demo's; Restart demo sat before it from pass-2 item 13 until p7-demoui moved it
   into the Menu, so the visitor's truck name has the room). */
.head-end { flex: none; display: flex; align-items: center; gap: var(--s-4); }
.titles { min-width: 0; }
.count { font: 600 .8rem/1 var(--ui); color: var(--amber-ink); background: var(--amber-bg); padding: var(--s-8) var(--s-12); border-radius: 999px; white-space: nowrap; }
.count.clear { color: var(--green); background: var(--green-bg); }
.count.info { color: var(--ink); background: var(--raised); border: 1px solid var(--line); }
/* A page names itself in one line at its top: its name, its count, the magnifier on a list. */
.page-head { display: flex; align-items: center; gap: var(--s-12); padding: 0 var(--s-4); min-height: 40px; }   /* no extra air over the title (Chris 11-18) */
.page-head h1 { font: 700 1.3rem/1.15 var(--ui); margin: 0 auto 0 0; }
.mag { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.mag[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-soft); }
.mag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.narrow { display: flex; padding: 0 var(--s-4); }
.narrow input { flex: 1; min-width: 0; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--brand); background: var(--raised); font-size: 16px; outline: none; }
.narrow input::placeholder { color: var(--muted); }

.view { flex: 1; padding: var(--s-12) var(--s-12) calc(var(--tabs-h) + var(--s-40) + var(--s-24) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-12); align-content: start; }

/* The card: three distinct surfaces (facts, what they wrote, the draft) and one row of buttons. */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--amber); }
.card.waiting::before { background: var(--blue); }
.card.done::before, .card.yes::before { background: var(--green); }
.card.booked::before { background: var(--brand); }

.head { padding: var(--s-16) var(--s-16) var(--s-12) var(--s-20); display: grid; gap: var(--s-4); }
/* The name-and-bubble rule, one component (design notes 2026-10-04-e, item 6): the name wraps, the Contact bubble stays
   on its line, pinned right. With a lead (an invoice's number) the name sits right, beside the bubble. */
.name-line { display: flex; align-items: center; gap: var(--s-12); }
.name-line > .nl-name { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.name-line > .contact-btn { flex: none; margin: 0 0 0 auto; }
/* A person's page and a team member's: Contact and Share, one row of two under the name line, pinned right, 8 apart (pass 3 item
   43; rules 1, 7, 21; P4). The name keeps its line with Edit. */
.contact-pair { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-8); margin-top: var(--s-8); }
.contact-pair > .contact-btn { margin: 0; }
/* d12 (audit 10/20) took Share out of the pair: Contact alone keeps the pair's place, its own row under the name, pinned right. */
.person-head > .name-line + .contact-btn { display: flex; width: fit-content; margin: var(--s-8) 0 0 auto; }
.name-line.has-lead > .nl-lead { flex: none; }
.name-line.has-lead > .nl-name { text-align: right; }
.who { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-12); }
.who b { font: 700 18px/1.25 var(--ui); }
.state { font: 600 .72rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); white-space: nowrap; }
.card.waiting .state { color: var(--blue); }
.card.done .state, .card.yes .state { color: var(--green); }
.card.booked .state { color: var(--brand-soft); }
.sub { color: var(--muted); font-size: .9rem; }

.facts { margin: 0; padding: 0 var(--s-16) var(--s-12) var(--s-20); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-16); font: 500 13px/1.4 var(--ui); }
.fact { display: grid; gap: var(--s-4); min-width: 0; }
.fact.full { grid-column: 1 / -1; }
.fact dt { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fact .drive { display: block; color: var(--muted); font-size: 12px; }
.fact a { color: inherit; text-decoration: underline; text-decoration-color: var(--quote-stripe); text-underline-offset: 3px; }
.avail { display: inline-flex; align-items: center; gap: var(--s-8); padding: var(--s-4) var(--s-8); border-radius: 6px; font-weight: 500; width: fit-content; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.avail.free { color: var(--green); background: var(--green-bg); }
.avail.busy { color: var(--red); background: var(--red-bg); }
.avail.unknown { color: var(--muted); background: var(--raised); }
.avail.mine { color: var(--brand-soft); background: var(--brand-bg); }
button.avail { border: 0; font: inherit; font-weight: 500; cursor: pointer; text-align: left; }

.quote { display: block; width: calc(100% - 34px); margin: 0 var(--s-16) var(--s-12) var(--s-20); padding: var(--s-8) var(--s-12); text-align: left; cursor: pointer;
  background: var(--bg); border: 0; border-left: 3px solid var(--quote-stripe); border-radius: 6px;
  font-size: 14px; line-height: 1.45; color: var(--ink); }   /* full-strength text, like every message in a conversation (Chris, 10/18) */
/* Five lines, then a soft fade into Read more (design notes, item 1). */
.quote .text.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.read-more { display: inline-flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); font: 600 .82rem/1.3 var(--ui); color: var(--brand-soft); }
/* More / Less and Whole conversation › under what they wrote (Build 35 item 9): a row of their own under the text, so the text
   grows in the page (never a scroll box) and everything under it moves down with it. */
.quote-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-12); margin: 0 var(--s-16) var(--s-8) var(--s-20); }
.card.open .cblk.wrote .quote-links { margin: 0; }
.quote-links .linkish { min-height: 44px; margin: 0; display: inline-flex; align-items: center; }
.quote-links .quote-whole { color: var(--muted); font: 600 .82rem/1.3 var(--ui); margin-left: auto; }
.quote-wrap.open .quote .text { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.quote .label { display: flex; justify-content: space-between; gap: var(--s-8); font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s-8); }
.quote .label span { letter-spacing: .02em; text-transform: none; font-weight: 500; }
.quote .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.quote dl { margin: 0; display: grid; gap: var(--s-4); }
.quote dt { font-weight: 600; color: var(--ink); opacity: .8; }
.quote dd { margin: 0 0 var(--s-4); overflow-wrap: anywhere; }

.draft { margin: 0 var(--s-12) var(--s-12) var(--s-16); padding: var(--s-16) var(--s-16) var(--s-16); background: var(--raised); border: 1.5px solid var(--raised-line); border-radius: 10px; }
.draft .label { display: block; font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-8); }
.draft .text { font-size: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }   /* the hero: what he will send */
.draft .signoff, .send-sheet .reply-signature { margin-top: var(--s-12); font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.draft .reply-signature, .send-sheet .reply-signature { white-space: pre-wrap; }

.draft.editing { border-color: var(--brand); }
.draft textarea.edit { display: block; width: 100%; min-height: 9em; resize: none; border: 0; padding: 0; background: transparent;
  font-size: 17px; line-height: 1.5; outline: none; overflow: hidden; }
.draft { position: relative; }
.draft.busy .text, .draft.busy .signoff { opacity: .35; }
.draft .spin { position: absolute; right: 12px; top: 12px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.draft .spin .linkish { font-size: inherit; margin-left: var(--s-8); }
mark.blank { background: var(--amber-bg); color: var(--amber-ink); border-radius: 3px; padding: 0 var(--s-4); }

.levers { display: flex; flex-wrap: wrap; gap: var(--s-8); padding: 0 var(--s-16) var(--s-12) var(--s-20); }
.lever { font: 600 .8rem/1 var(--ui); padding: var(--s-8) var(--s-12); border-radius: 999px; border: 1.5px solid var(--raised-line); background: var(--raised); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-8); min-height: 34px; }
.lever small { font-weight: 500; color: var(--muted); font-size: .9em; }
.lever.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }   /* purple = primary + booked only */
.lever-check { display: inline-block; width: 1em; flex: none; }

.ask { margin: 0 var(--s-12) var(--s-12) var(--s-16); display: grid; gap: var(--s-8); }
.ask form { display: flex; gap: var(--s-8); }
.ask input { flex: 1; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); }
.ask input::placeholder { color: var(--muted); }
.ask button { font-weight: 700; padding: 0 var(--s-16); border-radius: 10px; border: 1.5px solid var(--raised-line); background: var(--raised); cursor: pointer; }
.answer { font-size: .9rem; line-height: 1.45; padding: var(--s-8) var(--s-12); border-radius: 8px; background: var(--raised); border-left: 3px solid var(--brand); display: grid; gap: var(--s-4); }
.answer.muted { color: var(--muted); border-left-color: var(--line); }
.answer.error { border-left-color: var(--red); }
.answer .src { justify-self: start; padding: 0; border: 0; background: none; font: 600 .78rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; text-align: left; }
span.src { cursor: default; }

.actions { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-8); padding: var(--s-4) var(--s-16) var(--s-16) var(--s-20); }
.btn[aria-pressed="true"] { border-color: var(--brand); }
.actions.book { grid-template-columns: 1.8fr 1fr 1fr; }
.card.yes .state { color: var(--green); }
.btn { font: 700 .92rem/1 var(--ui); padding: var(--s-16) var(--s-8); border-radius: 10px; border: 1.5px solid var(--raised-line); background: var(--raised); cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--action); border-color: var(--action-edge); color: var(--on-action); }
.btn.tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); font-weight: 600; color: var(--ink); }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.btn:disabled { opacity: .55; cursor: default; }
.card.held::before { background: var(--muted); }
.card.held .state { color: var(--muted); }
.card.line.opens { cursor: pointer; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.setting > span { font-weight: 600; font-size: .9rem; }
/* Over the bar and clear of the raised Ask circle, which stands about 32 px over it with its ring (pass 3, the this-week hunt). */
.toast { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + var(--s-40) + env(safe-area-inset-bottom));
  width: min(92vw, 420px); padding: var(--s-12) var(--s-16); border-radius: 10px; background: var(--ink); color: var(--bg);
  font: 600 .9rem/1.35 var(--ui); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }

.toast button { color: inherit; font: inherit; text-decoration: underline; background: none; border: 0; min-height: 44px; padding: 0 var(--s-8); cursor: pointer; }

/* Done cards collapse to one line. */
.divider { font: 600 .7rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: var(--s-12) var(--s-8) 0; }
.line { padding: var(--s-12) var(--s-16) var(--s-12) var(--s-20); display: flex; justify-content: space-between; align-items: center; gap: var(--s-12); }
.line .l { display: grid; gap: var(--s-4); min-width: 0; }
.line b { font: 600 .95rem/1.25 var(--ui); }
.line .l span { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .state { font-size: .7rem; text-align: right; display: grid; gap: var(--s-4); }
.line .state small { font: 500 .75rem/1 var(--ui); letter-spacing: 0; text-transform: none; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 48px var(--s-16); display: grid; gap: var(--s-8); }
.empty b { color: var(--ink); font-size: 1.05rem; }
.empty .reload { justify-self: center; margin-top: var(--s-8); }
.pill-btn:disabled, .nav button:disabled { opacity: .45; cursor: default; }

/* The bar, in the thumb zone: five slots, Ask the raised dark circle in the middle, the one thing on
   the bar that sticks up. Only Inbox ever badges. */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--chrome); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav button { position: relative; height: var(--tabs-h); border: 0; background: none; cursor: pointer; color: var(--muted);
  display: grid; justify-items: center; align-content: center; gap: var(--s-4); font: 600 .7rem/1 var(--ui); padding: 0; }
.nav button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Where you are (P3; the owner's tab-pill mockup, 2026-10-09): the current tab wears a soft purple capsule behind its icon, 56 by
   30, 8 px down the 62 px tab, centered on the 23 px icon; a narrow slot shrinks it to 4 px in from each side. The icon and word
   keep the brand tint; the Ask circle never gets one. Its own stacking context, so the pill sits under the icon and the Mailbox
   badge and over the bar. Under 320 the words hide and the pill drops with the icon (the max-width: 319px block below). */
.nav button[aria-current="page"] { color: var(--brand-soft); }
.nav button[aria-current="page"]:not(.ask-slot) { isolation: isolate; }
.nav button[aria-current="page"]:not(.ask-slot)::after { content: ""; position: absolute; z-index: -1; top: var(--s-8); height: 30px;
  left: max(var(--s-4), calc(50% - 28px)); right: max(var(--s-4), calc(50% - 28px)); border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft) 22%, transparent); }
:root[data-theme="light"] .nav button[aria-current="page"]:not(.ask-slot)::after { background: color-mix(in srgb, var(--brand) 13%, transparent); }
.badge-n { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 var(--s-4); border-radius: 999px;
  background: var(--brand); color: #fff; font: 700 .68rem/19px var(--ui); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--chrome); }
.ask-slot { overflow: visible; }
/* The mark (design notes 2026-10-05-mark, item 2): app/public/brand/curbaroo-mark.svg as a mask, so it is the file's own shape in
   one color (--mark), never redrawn. The height of the text it sits before; its width the file's 718 by 628. */
.mark-inline { display: inline-block; flex: none; height: 1em; aspect-ratio: 718 / 628; background: var(--mark); vertical-align: -.12em;
  -webkit-mask: url(/brand/curbaroo-mark.svg) center / contain no-repeat; mask: url(/brand/curbaroo-mark.svg) center / contain no-repeat; }
.nav .ask-name { white-space: nowrap; }   /* "Ask Curbaroo", one line (2026-10-05-mark, item 12) */
/* "Ask Smokey" (Build 21 item 1): a long name clips with an ellipsis inside its slot. */
#nav .ask-name { max-width: 100%; min-width: 6.3em; overflow: hidden; text-overflow: ellipsis; }   /* the app's bar only; the deck's copy keeps its words. The
   min-width is "Ask Curbaroo" whole, so at 320 its slot still widens for it as before */
/* The mark is the middle button (design notes 2026-10-05-build15, item 3): the raised circle is the home-screen icon's colors,
   cream roo on purple, the roo the height of the other bar icons; "Ask Curbaroo" under it. */
/* Up a touch (design notes 2026-10-05-build18, item 1): the circle takes the other icons' 23 px of the slot (58 - 35), so its
   bottom edge sits where theirs do and "Ask Curbaroo" sits under it with their 4 px gap, on their line. */
/* Air under it (build20, item 7): the circle's ring and shadow ate those 4 px, so it stands 4 px higher with 4 px more under it
   (8 px box to box; 6 px seen past the 2 px ring when it is the page shown, as the other icons' strokes sit 6 to 10 px over their
   words); circle, mark and label keep their size, the label stays on the others' line. */
.ask-circle { width: 58px; height: 58px; margin-top: calc(var(--s-24) - 63px); margin-bottom: var(--s-4);   /* 23 - 58 - 4 */
  border-radius: 50%; display: grid; place-items: center;
  background: #4a148c; border: 1.5px solid #4a148c;
  box-shadow: 0 0 0 5px var(--chrome), 0 10px 22px -6px rgba(0,0,0,.6); }
/* The mark fills the circle (item 1): the window's frame about 80% of the circle's width (45 of 58 px), its corners just inside
   the round edge; the file's own vector as a mask, so it is crisp at 2x and 3x. */
.nav .ask-circle .ask-mark { height: 41px; background: #f5f3ee; vertical-align: 0; }
.ask-slot[aria-current="page"] .ask-circle { border-color: #f5f3ee; box-shadow: 0 0 0 2px #4a148c, 0 0 0 5px var(--chrome), 0 10px 22px -6px rgba(0,0,0,.6); }

/* Calendar sheet: a bottom sheet on the phone, a centered panel on desktop. */
.sheet.bottom { inset: auto 0 0 0; top: auto; max-height: 88dvh; border-radius: 16px 16px 0 0; border-top: 1px solid var(--line);
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.7); overflow-y: auto; z-index: 11; }
.cal-sheet { padding: var(--s-12) var(--s-16) calc(var(--s-20) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-8); }
.cal-top { display: grid; grid-template-columns: auto 1fr auto auto; gap: var(--s-8); align-items: center; }
.cal-top b { text-align: center; }
.axis, .wk-day { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-8); }
.ticks { position: relative; height: 12px; font: 500 10px/1 var(--ui); color: var(--muted); }
.ticks i { position: absolute; top: 0; font-style: normal; transform: translateX(-2px); }
.wk { display: grid; gap: var(--s-4); }
.wk-day { padding: var(--s-4) var(--s-4); border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; align-items: center; text-align: left; }
.wk-day.selected { border-color: var(--brand); background: var(--raised); }
.wk-day.suggest { box-shadow: inset 0 0 0 1.5px var(--green); }
.wk-label { display: grid; justify-items: center; line-height: 1.1; }
.wk-label small { font: 600 .62rem/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wk-label b { font: 600 1rem/1.2 var(--ui); }
.wk-day.requested .wk-label b { color: var(--amber-ink); }
.lanes { position: relative; display: grid; gap: var(--s-4); }
.lane { position: relative; height: 12px; border-radius: 4px; background: var(--raised); }
.lane.over { background: var(--red-bg); }
.wk-day.selected .lane:not(.over) { background: var(--bg); }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.blk { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--ev); }
.blk.block { background: repeating-linear-gradient(45deg, var(--muted) 0 4px, transparent 4px 8px); }
.blk.hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--ev); opacity: .8; }
.want { position: absolute; top: -2px; bottom: -2px; border: 2px dotted var(--amber); border-radius: 5px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-16); font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-8); }
.lg { width: 16px; height: 9px; border-radius: 3px; display: inline-block; }
.lg-want { border: 2px dotted var(--amber); }
.lg-solid { background: #9fe1e7; }
.lg-hollow { box-shadow: inset 0 0 0 1.5px #dc2127; }
.lg-sug { box-shadow: inset 0 0 0 1.5px var(--green); }
.cal-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-8); margin-top: var(--s-4); }
@media (min-width: 900px) {
  .sheet.bottom { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; max-height: 86dvh; border-radius: 16px; border: 1px solid var(--line); }
}

.stop { margin: 0 var(--s-12) var(--s-12) var(--s-16); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--red-bg); border: 1px solid var(--red); display: grid; gap: var(--s-4); }
.stop b { font: 600 .72rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.stop p { font-size: .9rem; }
.stop-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-8); margin-top: var(--s-8); }
.stop-why { font-size: .82rem; color: var(--muted); margin-top: var(--s-4); }
.stop-reasons { display: grid; gap: var(--s-8); }
.stop-reasons .btn { text-align: left; font-weight: 600; }

/* Connect page (public, one column, three steps as cards). */
.connect { max-width: 520px; margin: 0 auto; padding: calc(var(--s-24) + env(safe-area-inset-top)) var(--s-16) var(--s-40); display: grid; gap: var(--s-16); }
.connect h1 { font: 700 1.5rem/1.2 var(--ui); }
.connect .lead { color: var(--muted); }
.connect .lead b { color: var(--ink); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-12); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-16); display: grid; gap: var(--s-12); }
.steps .step b::before { counter-increment: step; content: counter(step) ". "; color: var(--muted); }
.connect .btn { text-decoration: none; text-align: center; display: block; }
.connect .wide { width: 100%; }
.pw { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); }
.pw input { font: 500 18px/1.2 var(--ui); padding: var(--s-12) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); min-width: 0; }
.connect form { display: grid; gap: var(--s-12); }
.connect .error { color: var(--red); font-weight: 600; }
.connect .working, .connect .foot { color: var(--muted); font-size: .88rem; }

/* The signing page (design notes 2026-10-07-build33, item 1): public, one column, phone-first. The truck and its mark, the event
   in one line, the agreement in a frame, the consent line, the name, the pad, Sign. */
.sign { max-width: 560px; margin: 0 auto; padding: calc(var(--s-20) + env(safe-area-inset-top)) var(--s-16) calc(var(--s-40) + env(safe-area-inset-bottom));
  display: grid; gap: var(--s-12); }
.sign h1 { font: 800 1.5rem/1.2 var(--ui); }
.sign-head { display: flex; align-items: center; gap: var(--s-12); min-width: 0; }
.sign-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
.sign-initials { display: grid; place-items: center; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font: 800 .95rem/1 var(--ui); }
.sign-truck { font: 800 1.1rem/1.2 var(--ui); overflow-wrap: anywhere; }
.sign-event { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sign-doc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.sign-doc iframe { display: block; width: 100%; height: 56vh; min-height: 320px; border: 0; background: #fff; }
.sign-open a, .sign-foot a { color: var(--brand-soft); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
/* The brand line, last on the page (docs/design-notes-2026-10-08-brand-footer.md): small and muted, the name an inline link. */
.sign-sent { text-align: center; font-size: .8rem; color: var(--muted); }
.sign-sent a { color: inherit; }
.sign-form { display: grid; gap: var(--s-12); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-16); }
.sign-consent { color: var(--muted); font-size: .92rem; }
.sign-field { display: grid; gap: var(--s-4); font-weight: 700; }
.sign-field input { font: 500 17px/1.2 var(--ui); min-height: 48px; padding: var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); min-width: 0; }
.sign-pad-wrap { display: grid; gap: var(--s-4); }
.sign-pad-label { font-weight: 700; }
/* touch-action: none, so the page holds still while a finger draws; the ink is the page's ink. */
.sign-pad { display: block; width: 100%; height: 160px; border-radius: 10px; border: 1.5px dashed var(--field-line); background: var(--raised);
  color: var(--ink); touch-action: none; cursor: crosshair; }
.sign-clear { min-height: 44px; display: inline-flex; align-items: center; }
.sign-error { color: var(--red); font-weight: 600; }
.sign-go, .sign-pay { width: 100%; min-height: 52px; font-size: 1.05rem; text-decoration: none; text-align: center; display: flex; align-items: center; justify-content: center; }
.sign-done { display: grid; gap: var(--s-12); }
.sign-ok { font: 700 1.1rem/1.35 var(--ui); color: var(--green); background: var(--green-bg); border-radius: 12px; padding: var(--s-16); }
.sign-gone { font-weight: 600; }

/* The Book us page (docs/design-notes-2026-10-08-book-us.md; docs/mockups/2026-10-08-book-us.html): a truck's public booking
   page, one column, phone-first, the visitor's own light or dark (app/public/book.js). The truck's mark, name and town, its photo
   and what it serves, then required contact and event details, the optional fields, and Send. */
.bk-body { font-size: 17px; }
.bk { max-width: 560px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-16);
  padding: calc(var(--s-24) + env(safe-area-inset-top)) var(--s-16) env(safe-area-inset-bottom); }
.bk-head { display: flex; align-items: center; gap: var(--s-12); min-width: 0; }
.bk-logo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
.bk-initials { display: grid; place-items: center; background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
  font: 800 1.15rem/1 var(--ui); letter-spacing: .02em; }
.bk-id { min-width: 0; display: grid; gap: 0; }
.bk-name { margin: 0; font: 800 1.6rem/1.1 var(--ui); letter-spacing: -.01em; overflow-wrap: anywhere; }
.bk-town { color: var(--muted); font-size: .95rem; line-height: 1.2; }
.bk-photo { flex: none; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.bk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bk-serves { font: 500 .95rem/1.45 var(--ui); color: var(--ink); text-wrap: pretty; }
.bk-form { flex: none; display: grid; gap: var(--s-16); padding: var(--s-16); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bk-title { display: grid; gap: var(--s-4); }
.bk-title h2 { margin: 0; font: 800 1.4rem/1.2 var(--ui); }
.bk-title p { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.bk-required { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.bk-optional { display: grid; gap: var(--s-8); margin-top: var(--s-8); }
.bk-optional h3 { margin: 0; font: 700 .95rem/1.4 var(--ui); }
.bk-optional p { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.bk-f { display: grid; gap: var(--s-8); min-width: 0; margin: 0; padding: 0; border: 0; }
.bk-kinds-set { display: block; }
.bk-kinds-set legend { padding: 0; margin: 0 0 var(--s-8); }
.bk-fl { font: 700 .95rem/1.2 var(--ui); color: var(--ink); }
.bk-fl i { font-style: normal; color: var(--muted); }
.bk-f input, .bk-f textarea { font: 500 17px/1.25 var(--ui); color: var(--ink); padding: var(--s-12); min-height: 48px; width: 100%; min-width: 0;
  border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); }
.bk-f input[type="date"], .bk-f input[type="time"] { -webkit-appearance: none; appearance: none; text-align: left; }
.bk-f input::-webkit-date-and-time-value { text-align: left; }
.bk-f textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.bk-f input::placeholder, .bk-f textarea::placeholder { color: var(--muted); opacity: 1; }
.bk-f input:disabled { opacity: .5; border-style: dashed; background: transparent; }
.bk-f [aria-invalid="true"] { border-color: var(--red); }
.bk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.bk-kinds { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.bk-chip { position: relative; min-height: 48px; padding: 0 var(--s-16); border-radius: 10px; border: 1.5px solid var(--line); background: var(--raised);
  color: var(--ink); font: 500 1rem/1 var(--ui); cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.bk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bk-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-soft); font-weight: 700; }
.bk-chip:has(input:focus-visible) { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.bk-bud { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: stretch; }
.bk-money { position: relative; display: block; min-width: 0; }
.bk-money i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 1rem/1 var(--ui); font-style: normal; color: var(--muted);
  pointer-events: none; }
.bk-money input { padding-left: var(--s-32); }
.bk-sec { display: flex; align-items: center; gap: var(--s-12); margin-top: var(--s-4); font: 700 .68rem/1 var(--ui); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.bk-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-check { min-height: 65px; }
.bk-send { font: 800 1.05rem/1 var(--ui); padding: var(--s-16) var(--s-8); min-height: 52px; width: 100%; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink); }
.bk-send:disabled { opacity: .7; cursor: default; }
.bk-fine { font: 500 .86rem/1.4 var(--ui); color: var(--muted); text-align: center; }
.bk-error { color: var(--red); background: var(--red-bg); border-radius: 10px; padding: var(--s-12); font-weight: 600; line-height: 1.4; }
.bk-foot { margin-top: auto; padding: 0 0 var(--s-12); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: var(--s-8);
  color: var(--muted); font-size: .86rem; min-height: 44px; }
.bk-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); color: var(--muted); text-decoration: none; }
.bk-foot .mark-inline { height: 1.14em; }
/* The brand line (app/brand.py powered_by_html, cls bk-sent): in the foot beside the mark, and under the thank-you's words; muted,
   the name underlined, a link to the website. */
.bk-sent { margin: 0; color: var(--muted); font-size: .86rem; text-align: center; }
.bk-sent a, .bk-foot .bk-sent a { display: inline; min-height: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bk-done { padding: var(--s-24) var(--s-20); border-radius: 12px; background: var(--green-bg); color: var(--green); text-align: center;
  font: 800 1.2rem/1.3 var(--ui); text-wrap: balance; }
.bk-sent-to { color: var(--muted); text-align: center; font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.bk-sent-to b { color: var(--ink); font-weight: 700; }
.bk-recap { display: grid; gap: var(--s-12); padding: var(--s-16); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bk-recap h2 { margin: 0; font: 700 .95rem/1.2 var(--ui); }
.bk-recap dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12) var(--s-16); }
.bk-recap dl div { display: grid; gap: var(--s-4); min-width: 0; align-content: start; }
.bk-recap .full { grid-column: 1 / -1; }
.bk-recap dt { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-recap dd { margin: 0; font: 500 1rem/1.35 var(--ui); overflow-wrap: anywhere; }
.bk-again, .bk-see { align-self: center; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--s-8);
  font: 700 1rem/1.3 var(--ui); color: var(--brand-soft); }
.bk-see { align-self: stretch; justify-content: center; border-radius: 10px; border: 1.5px solid var(--brand); text-decoration: none; min-height: 48px; }
.bk-gone { font-weight: 600; }

/* Sign in. */
body.signed-out .nav, body.signed-out .tenant-btn { display: none; }
.login { max-width: 420px; margin: var(--s-24) auto; display: grid; gap: var(--s-12); }
.login p { color: var(--muted); }
.login input { font-size: 16px; padding: var(--s-12) var(--s-16); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); }
.login .login-msg { color: var(--ink); background: var(--raised); border-radius: 10px; padding: var(--s-12) var(--s-12); }
/* The Sign in page dressed (build25, item 6): no empty header band; the landing page's cream (the light --bg) and type; the mark
   and the app's name over the heading, as the landing page's hero has them; one quiet line to the demo under the button. */
body.signed-out .top { display: none; }
body.signed-out { font-size: 17px; }
/* The mark centred over the name, as the landing's lockup (build26, item 7); the heading and the form under both. */
.login-brand { max-width: 420px; margin: var(--s-32) auto 0; padding: 0 var(--s-4); display: grid; justify-items: center; gap: var(--s-12); }
.login-brand-link { display: grid; justify-items: center; gap: var(--s-12); text-decoration: none; }
.login-mark { display: block; width: 64px; height: auto; }
.login-name { font: 800 2rem/1.1 var(--ui); letter-spacing: -.02em; color: var(--brand-soft); }
body.signed-out .page-head { max-width: 420px; margin: var(--s-16) auto 0; }
body.signed-out .login { margin-top: var(--s-12); }
/* The front door (build28, item 1): one line under the name and one quiet line at the foot of the screen (Terms, Privacy, the
   address). Since 2026-11-06 Sign in is the page's one filled button; "New to Curbaroo? Request an invite › or Try the demo ›" small
   under the form. Before the script runs on a phone
   that is signed in, the server's copy of the page stays hidden (index.html's first script), so an owner never sees it flash. */
.front-door { display: flex; flex-direction: column; min-height: calc(100dvh - var(--s-12) - var(--s-12) - env(safe-area-inset-bottom)); }
body.signed-out .view { padding-bottom: calc(var(--s-12) + env(safe-area-inset-bottom)); }
html.has-session .front-door { visibility: hidden; }
html.to-demo body { visibility: hidden; }   /* the root on its way to the demo (theme.js): nothing paints first */
.login-tagline { margin: 0; text-align: center; color: var(--muted); font-size: 1rem; line-height: 1.35; text-wrap: balance; }
.front-door .login, .front-door .page-head { width: 100%; }   /* full width under their auto margins (no long line fills them now) */
.front-door .login { margin-bottom: 0; }
body.signed-out .page-head.login-head { justify-content: center; margin-top: var(--s-24); }
.login-head h1 { margin: 0; text-align: center; }
.login .login-new { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); text-wrap: balance; }
.login-new a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-soft); font-weight: 600; text-decoration: none; }
.front-door .login [type="submit"] { scroll-margin-bottom: var(--s-16); }   /* room over the keyboard (build30, item 5) */
/* Email and password (p5-password): a password box carries its Show inside its right end, 44 tall (rule 21); under Sign in the two
   quiet links, "Email me a link instead" and "Forgot password", one centered row in the link color, each 44 tall. */
.pass-box { position: relative; display: block; }
.pass-box input[name] { display: block; width: 100%; min-width: 0; padding-right: 76px; }   /* over .wiz input and .login input */
.pw-show { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 64px; padding: 0 var(--s-12);
  border: 0; border-radius: 8px; background: none; color: var(--brand-soft); font: 600 .9rem/1 var(--ui); cursor: pointer; }
.login .login-alt { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--s-16); }
.login-link { min-height: 44px; padding: 0 var(--s-4); border: 0; background: none; color: var(--brand-soft); font: 600 .9rem/1.2 var(--ui);
  cursor: pointer; }
.login-link:disabled { color: var(--muted); cursor: default; }
/* Profile's Password row has no second line: its button sits on the title's one row, centered with it. */
.set.pw-row .act { grid-row: 1; }
/* A password box inside a .pf label (Profile's Set a password): not the label's small capitals. */
.pf > .pass-box { font: 400 1rem/1.2 var(--ui); letter-spacing: normal; text-transform: none; color: var(--ink); }
/* The reset page (p5-password): the front door's brand and heading, one box, Save the one filled button (P2), full width. */
.reset-page .btn.reset-save, .reset-page .btn.reset-signin { display: flex; align-items: center; justify-content: center; min-height: 48px;
  text-decoration: none; }
.login-foot { margin: auto 0 0; padding-top: var(--s-32); display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: var(--s-4); color: var(--muted); font-size: .86rem; }
.login-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); color: var(--muted); text-decoration: none;
  overflow-wrap: anywhere; }

/* Rules page. */
.pill-btn { height: 34px; padding: 0 var(--s-12); border-radius: 999px; border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); font-weight: 600; font-size: .82rem; cursor: pointer; }
.rule-add { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: end; }
.rule-add textarea { font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); resize: vertical; min-height: 3.2em; }
.rule-add textarea::placeholder { color: var(--muted); }
.rule-preview { background: var(--card); border: 1px solid var(--brand); border-radius: 12px; padding: var(--s-12) var(--s-16); display: grid; gap: var(--s-8); }
.rule-preview .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-soft); }
.rule-preview .draft { margin: 0; }
.rule-text { font-size: 1.02rem; font-weight: 600; }
.clash { font-size: .88rem; padding: var(--s-8) var(--s-12); border-radius: 8px; background: var(--amber-bg); color: var(--ink); }
.rule-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-8); }
.rule { display: flex; align-items: center; gap: var(--s-12); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.rule.waiting { border-color: var(--amber-ink); }
.rule-yesno { display: flex; gap: var(--s-8); }
.rule-yesno .btn { padding: var(--s-12) var(--s-16); }
.rule.off .rule-main p { color: var(--muted); }
.rule-main { flex: 1; min-width: 0; display: grid; gap: var(--s-4); }
.rule-main small { font-size: 12px; color: var(--muted); }
.switch { flex: none; width: 51px; height: 44px; padding: 0; border: 0; background: none; position: relative; cursor: pointer; }
/* The system's proportions (item 12.9): the track 51 x 31 drawn in a 44 tall box, the knob 27. */
.switch::before { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 31px; border-radius: 999px; background: var(--line);
  transition: background .15s; }
.switch i { position: absolute; top: 8.5px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: left .15s; }
.switch[aria-checked="true"]::before { background: var(--green); }
.switch[aria-checked="true"] i { left: 22px; }

/* Customer line under the name; the Customers tab. */
.cust { font-size: .82rem; color: var(--muted); }
button.cust.link { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 500; text-align: left; }
button.cust.link:hover, button.cust.link:active { color: var(--brand-soft); }
.chev { font-style: normal; font-weight: 700; color: var(--brand-soft); margin-left: var(--s-4); }
.avail .chev { color: inherit; }
.fact dd.phone { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; }
.fact dd.phone .chip { font-family: var(--ui); }
.person { cursor: pointer; }
.card.person::before { background: var(--line); }
.card.person .state { color: var(--muted); }
.card.person.booked-before::before { background: var(--green); }
.card.person.booked-before .state { color: var(--green); }
.person-page { display: grid; gap: var(--s-12); }
.person-page .back { justify-self: start; }
.person-head h2 { margin: 0; font: 700 1.3rem/1.2 var(--ui); }
.person-head p { color: var(--muted); }
.person-head .cust { margin-top: var(--s-4); }
.hist { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: var(--s-12) var(--s-12); display: grid; gap: var(--s-4); }
.hist-top { display: flex; justify-content: space-between; align-items: center; }
.mono { font: 500 12.5px/1.3 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-meta { font-size: .82rem; color: var(--muted); }
.hist p { margin: var(--s-4) 0 0; font-size: .88rem; }
.hist .src { justify-self: start; padding: 0; border: 0; background: none; font: 600 .78rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; margin-top: var(--s-4); }
.badge { font: 600 .66rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; padding: var(--s-4) var(--s-8); border-radius: 5px; }
.badge.green { color: var(--green); background: var(--green-bg); }
.badge.red { color: var(--red); background: var(--red-bg); }
.badge.amber { color: var(--amber-ink); background: var(--amber-bg); }
.badge.muted { color: var(--muted); background: var(--raised); }

.linkish { justify-self: start; border: 0; background: none; padding: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; }

/* After a call. */
.call-out { margin: 0 var(--s-12) var(--s-12) var(--s-16); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--raised); border: 1px solid var(--raised-line); display: grid; gap: var(--s-8); }
.call-out b { font: 600 .72rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.call-opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.last-call { margin: 0 var(--s-16) var(--s-8) var(--s-20); font-size: .82rem; color: var(--muted); }

/* Day-one taps. */
.voice .lead { color: var(--muted); }
.voice .step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-12) var(--s-16); display: grid; gap: var(--s-12); }
.v-row { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.v-opt { padding: var(--s-12) var(--s-16); border-radius: 999px; border: 1.5px solid var(--raised-line); background: var(--raised); font-weight: 600; cursor: pointer; min-height: 40px; }
.v-opt[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.voice .hint { color: var(--muted); font-size: .9rem; }
.handoff { margin: var(--s-8) 0 0; color: var(--amber-ink); font-weight: 600; font-size: .9rem; }
.voice textarea { font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); resize: vertical; }
.voice .wide { width: 100%; }
.voice [data-v-done] { margin-top: var(--s-24); }   /* air above Done (design notes, item 14) */

/* Invoices. */
/* The open row: Mark paid and Share (or Send and Edit) side by side, the invoice, then the rare links, muted, centered. */
.inv-acc #inv.sheet.inline { display: block; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Remind once (rule 8; p7-invoices, item 6): an open Past due row's own Remind steps aside, the muted row under the invoice has
   it. Its place is kept, so the row's head stays put as it opens (Build 25 item 8). */
.inv-acc.open > .urow-h .urow-act { visibility: hidden; }
.inv-open-body { display: grid; gap: var(--s-12); padding-bottom: var(--s-4); }
.inv-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.inv-mark-primary { display: flex; justify-content: center; }
.inv-mark-primary .btn { min-height: 44px; }
.inv-top.one { grid-template-columns: 1fr; }
.inv-top .btn { min-height: 44px; }
.inv-rare { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.inv-rare .linkish { min-height: 44px; padding: 0 var(--s-12); font-size: .88rem; text-underline-offset: 3px; }
.inv-rare .dot { color: var(--muted); opacity: .7; }
/* Nothing to send a reminder to (pass 3 row 24, rule 14): a muted line where Remind would be, the links' size, not a link. */
.inv-rare .inv-noemail { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-12); font-size: .88rem; color: var(--muted); }
.inv-open-body .confirm-in, .inv-pic .confirm-in { margin: 0; }
/* The row other pages list (a company's, an event series'): the name and amount, the date line, the tag, the chevron right. */
.inv { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: var(--s-12) var(--s-12);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); }
.inv-l { display: grid; gap: var(--s-4); min-width: 0; }
.inv-l b { font: 600 1rem/1.3 var(--ui); overflow-wrap: anywhere; }
.inv-r { flex: none; display: grid; justify-items: end; gap: var(--s-4); }
.inv-amt { font-variant-numeric: tabular-nums; }
/* The open invoice's top row (item 4): the number left, the name right in the link color, the bubble pinned right. */
.inv-who .nl-lead { font: 600 .9rem/1.3 var(--ui); color: var(--muted); }
.inv-who .nl-name.link { padding: 0; border: 0; background: none; font: 700 1.05rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; min-height: 44px; }
.sheet-head .inv-who .nl-name { text-align: left; }
.inv-mark { display: flex; justify-content: flex-end; margin-top: calc(-1 * var(--s-4)); }
.inv-mark .btn { min-height: 44px; padding: 0 var(--s-16); }
.inv-sheet .mono, .inv-row .mono { font-variant-numeric: tabular-nums; }
.btn.quiet { background: none; border-color: var(--line); color: var(--muted); font-weight: 600; }
.inv-meta { font-size: .84rem; color: var(--muted); }

.fact dd.chase { color: var(--amber-ink); }
.crew.open, .t-crew.open { color: var(--amber-ink); }
.crew.set, .t-crew.set { color: var(--green); }
.crew a, .t-crew a { color: inherit; }
.t-crew { margin: 0; font-size: .85rem; }

/* Today strip: the day's gigs on top of the Inbox. */
.today { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: var(--s-12) var(--s-16); display: grid; gap: var(--s-12); }
.today-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-8); }
.today-head b { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.today-head span { font-size: 12px; color: var(--muted); }
/* Dismiss (p5-todayhide; P12, rule 21): the quiet link beside the date, its 44-px tap reaching into the card's padding so the
   head stays one short line; the word's right edge on the date's old edge. */
.today-head .today-r { display: flex; align-items: center; gap: var(--s-4); }
.today-dismiss { padding: 0 var(--s-8); margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-8)) calc(-1 * var(--s-12)) 0;
  text-underline-offset: 3px; }
.today-ev { display: grid; gap: var(--s-4); padding-left: var(--s-12); border-left: 3px solid var(--ev); }
.t-top { display: flex; justify-content: space-between; gap: var(--s-12); align-items: baseline; }
.t-top span { font: 500 12.5px/1.3 var(--ui); color: var(--muted); white-space: nowrap; }
.t-place { color: var(--ink); font-size: .9rem; text-decoration: underline; text-decoration-color: var(--quote-stripe); text-underline-offset: 3px; }
.t-phones { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.t-note { margin: 0; font-size: .85rem; color: var(--muted); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Calendar surfaces use rig colors. Passed-on events are dashed and muted. */
.events { display: grid; gap: var(--s-8); align-content: start; }
.ev-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); flex-wrap: wrap; }
.seg { display: inline-flex; padding: var(--s-4); border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: var(--s-8) var(--s-16); border-radius: 7px; font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; }
/* Item 9, decided B (2026-10-09; rule 9): the picked half is the brand tint, --brand-bg behind --brand-soft (light's --brand-soft
   is --brand itself), no shadow, no ring; the unpicked half as before. The .mini $ / % too. */
.seg button[aria-selected="true"], .seg button[role="radio"][aria-checked="true"] { background: var(--brand-bg); color: var(--brand-soft); box-shadow: none; }
.sync { font-size: 12px; color: var(--muted); }
.ev { display: flex; gap: var(--s-12); align-items: flex-start; padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--ev); cursor: pointer; }
.ev-date { flex: none; width: 34px; display: grid; justify-items: center; line-height: 1.1; }
.ev-date small { font: 600 .66rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-date b { font: 600 1.15rem/1.2 var(--ui); }
.ev-main { flex: 1; min-width: 0; display: grid; gap: var(--s-4); }
.ev-main b { font-weight: 600; overflow-wrap: anywhere; }
.ev-main > span { font: 500 12.5px/1.4 var(--ui); color: var(--muted); overflow-wrap: anywhere; }
.ev-note { margin: var(--s-8) 0 var(--s-4); font-size: .88rem; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ev .chip { justify-self: start; margin-top: var(--s-4); }
.ev.passed { border-left-style: dashed; color: var(--muted); }
.ev.passed .ev-main b { text-decoration: line-through; text-decoration-color: var(--muted); }
.ev-tag { flex: none; font: 600 .66rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--red); padding-top: var(--s-4); }
.more-btn { justify-self: center; margin-top: var(--s-8); padding: var(--s-12) var(--s-20); border-radius: 10px; border: 1.5px solid var(--raised-line); background: var(--raised); font-weight: 600; cursor: pointer; }
.empty.small { padding: var(--s-20) var(--s-16); }
.month { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-12); }
.month-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-4) var(--s-8); }
.month-head b { font-size: 1rem; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-4); }
.dow span { text-align: center; font: 600 .68rem/1.8 var(--ui); color: var(--muted); }
.day { aspect-ratio: 1 / 1.05; border: 1px solid transparent; border-radius: 8px; background: none; display: grid; grid-template-rows: 1fr auto;
  justify-items: center; padding: var(--s-4) 0 var(--s-8); cursor: pointer; font: 500 .9rem/1 var(--ui); }
.day.outside { color: var(--muted); }
.day.today span:first-child { color: var(--brand-soft); font-weight: 700; }
.day.selected { border-color: var(--brand); background: var(--raised); }
.dots { display: flex; gap: var(--s-4); min-height: 7px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ev); }
.dot.hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--ev); }
.dot-more { font: 700 .6rem/1 var(--ui); color: var(--muted); font-style: normal; }
.dot.block { background: var(--muted); opacity: .6; }
/* The month as bars (design notes 2026-10-03 evening, item 9): a week is a grid row of seven days; a day's button fills
   its whole column (a tap anywhere in it opens the day) and the bars lie over it without taking the tap. */
.month { padding: var(--s-12) var(--s-8); }
.mgrid { display: grid; }
.mweek { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 0; row-gap: var(--s-4);
  border-top: 1px solid var(--line); }
.mday { grid-row: 1 / -1; border: 0; border-left: 1px solid transparent; background: none; padding: var(--s-4) 0 0; cursor: pointer;
  display: flex; justify-content: center; align-items: flex-start; font: 500 .82rem/1 var(--ui); color: var(--ink); min-height: 48px; border-radius: 6px; }
.mday span { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 999px; }
.mday.outside { color: var(--muted); }
.mday.today span { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.mday.selected { background: var(--raised); }
/* One line, never broken inside a word (p10-calpolish item 1; it was two lines that split "Centra/lia" and "Neigh/bor-"): 17 tall;
   app.js fitChips cuts the words at a word with an ellipsis when they take more, and a first word longer than the bar ends in the
   line's own ellipsis. */
.mbar { position: relative; z-index: 1; pointer-events: none; margin: 0 var(--s-4); padding: 0 var(--s-4); border-radius: 4px; font: 600 10.5px/13px var(--ui);
  font-style: normal; white-space: nowrap; overflow: hidden; display: flex;
  align-items: center; height: 17px; background: var(--ev); color: #0d1a1c; letter-spacing: -.01em; }
/* The rig's dot sits on the bar's left edge, so the line keeps the bar's whole width for the words (p7-totals item 3). */
.mbar:has(> .rig-dot) { overflow: visible; }
.mbar > .rig-dot.in-bar { position: absolute; left: -3px; top: 5.5px; margin: 0; }
.mbar-t { display: block; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mbar.cont { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mbar.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mbar.passed { background: none; box-shadow: inset 0 0 0 1.5px var(--ev); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ev); }
.mbar.block { background: repeating-linear-gradient(135deg, var(--raised) 0 5px, var(--line) 5px 7px); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); }   /* a blocked bar with its reason (third round, item 6) */
.mmore { position: relative; z-index: 1; pointer-events: none; font: 700 10px/17px var(--ui); font-style: normal; color: var(--muted);
  text-align: center; white-space: nowrap; overflow: hidden; }
.lg-bar { display: inline-block; width: 18px; height: 9px; border-radius: 3px; background: var(--ev); }
.lg-bar.passed { background: none; box-shadow: inset 0 0 0 1.5px var(--ev); }
.lg-bar.block { background: repeating-linear-gradient(135deg, var(--raised) 0 3px, var(--muted) 3px 4px); box-shadow: inset 0 0 0 1px var(--muted); }
/* The month's key (design notes, item 8). */
.month-legend { justify-content: center; padding: var(--s-8) var(--s-4) var(--s-4); border-top: 1px solid var(--line); margin-top: var(--s-8); }
.month-legend .dot-more { font-size: .8rem; }
.empty.small .linkish { justify-self: center; margin-top: var(--s-4); color: var(--brand-soft); }
.sync.stale { color: var(--amber-ink); }

/* Thread view: full screen, theirs left in the quote tone, ours right in brand color. */
@media (max-width: 899px) { body.locked { overflow: hidden; } }
.sheet { position: fixed; inset: 0; z-index: 10; background: var(--bg); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.sheet-top { display: flex; align-items: center; gap: var(--s-12); padding: calc(var(--s-12) + env(safe-area-inset-top)) var(--s-12) var(--s-12); background: var(--chrome); border-bottom: 1px solid var(--line); }
.sheet-top .titles { min-width: 0; }
.sheet-top h2 { margin: 0; font: 700 1.05rem/1.2 var(--ui); }
.sheet-top p { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Back (design notes 2026-10-04 third round, item 12.10): one rule, 44 tall, the chevron and the word. */
.back { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: var(--s-4); padding: 0 var(--s-12) 0 var(--s-8); border-radius: 10px;
  border: 1.5px solid var(--raised-line); background: var(--raised); font-weight: 700; cursor: pointer; }
.msgs { flex: 1; overflow-y: auto; padding: var(--s-16) var(--s-12) calc(var(--s-24) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--s-16); }
.msg { display: grid; gap: var(--s-4); max-width: 88%; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; justify-items: end; }
.msg .meta { font-size: 12px; color: var(--muted); padding: 0 var(--s-4); }
.msg .bubble { padding: var(--s-12) var(--s-12); border-radius: 12px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg.in .bubble { background: var(--raised); border-left: 3px solid var(--quote-stripe); color: var(--ink); }
.msg.out .bubble { background: var(--brand-bg); border: 1px solid var(--brand); }
.msg .text { white-space: pre-wrap; }
/* A long link (an agreement's signing link) or file name wraps inside its bubble, as the history's do, never past the screen's
   edge (p10-threads; rule 21: 390 wide, no sideways scroll). */
.msg .chip { overflow-wrap: anywhere; white-space: normal; }
/* A link on the message's own words ("sign it here", readyfix): underlined in the text's color, a taller tap area with no shift. */
:is(a, button).text-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; padding: var(--s-12) 0; margin: calc(-1 * var(--s-12)) 0; }
button.text-link { display: inline; border: 0; background: transparent; font-family: inherit; font-size: inherit; cursor: pointer; }
.msg dl { margin: 0; display: grid; gap: var(--s-4); }
.msg dt { font-weight: 600; font-size: .82rem; color: var(--muted); }
.msg dd { margin: 0 0 var(--s-4); }
.files { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-8); }
.chip.file::before { content: '\1F4CE  '; }
.chip { display: inline-block; max-width: 100%; margin: var(--s-4) 0; padding: var(--s-4) var(--s-8); border-radius: 999px; border: 1px solid var(--raised-line);
  background: var(--card); color: var(--ink); font-size: .82rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* Desktop: two panes, conversation as a third column. Phone stays the design target. */
@media (min-width: 900px) {
  :root { --top-h: 72px; }
  .shell { max-width: none; height: 100dvh; }
  /* The bar moves into the header line: the truck left, the five slots in the middle, the demo's
     button right; Ask is an ordinary slot there. */
  .top { height: var(--top-h); padding: 0 var(--s-20); grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); grid-template-rows: 72px auto;
    align-items: center; gap: 0 var(--s-20); }
  .head-line { display: contents; }
  .top .head-end { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav { position: static; grid-column: 2; grid-row: 1; display: inline-flex; gap: var(--s-4); max-width: none; margin: 0;
    background: none; border: 0; padding: 0; }
  .nav button { height: 40px; padding: 0 var(--s-16); border-radius: 8px; grid-auto-flow: column; gap: var(--s-8); font-size: .85rem; }
  .nav button svg { width: 19px; height: 19px; }
  .nav button[aria-current="page"] { background: var(--raised); }
  .nav button[aria-current="page"]::after { display: none; }
  .ask-circle, .ask-slot[aria-current="page"] .ask-circle { width: auto; height: auto; margin: 0; border: 0; box-shadow: none; background: none; }
  .nav .ask-circle .ask-mark { height: 19px; background: var(--mark); }
  .badge-n { position: static; box-shadow: none; }
  .view { padding: 0; display: block; height: calc(100dvh - var(--top-h)); }
  .view > .empty { padding-top: 96px; }
  .events { max-width: 760px; margin: 0 auto; padding: var(--s-20) var(--s-16) var(--s-40); height: 100%; overflow-y: auto; }
  /* A row is as tall as what's in it: the page's fixed height squeezed Team's rows into each other (Build 31 item 8, QA-03). */
  .events { grid-auto-rows: max-content; }
  .split { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: 100%; }
  .list { overflow-y: auto; border-right: 1px solid var(--line); padding: var(--s-12); display: grid; gap: var(--s-8); align-content: start;
    grid-auto-rows: max-content; }   /* rows keep their height and the list scrolls (a .card clips, so it could shrink) */
  .row { cursor: pointer; }
  .row.selected { border-color: var(--brand); background: var(--raised); }
  .detail { overflow-y: auto; padding: var(--s-24); }
  .detail .card { max-width: 720px; margin: 0 auto; }   /* centered in the pane (design notes, item 15) */
  .row .l .preview { color: var(--muted); opacity: .8; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet { top: var(--top-h); left: auto; right: 0; width: min(440px, 34vw); max-width: none; margin: 0; z-index: 4; border-left: 1px solid var(--line); }
  .sheet-top { padding-top: var(--s-12); }
  .shell.thread-open .detail { margin-right: min(440px, 34vw); }
  /* Bottom left, over the list column (420 wide), never over the open card's Send in the pane beside it (break-it 10-28 L7). */
  .toast { bottom: 24px; left: 24px; transform: none; width: min(372px, calc(100vw - 48px)); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Inbox Done (Chris's list, item 1): a line opens in place to what it said. */
.inbox-bar { padding: var(--s-4) var(--s-4) var(--s-12); }
/* Four tabs and the magnifier on one line at phone width (Booked is back: build16, item 10). */
.inbox-bar { flex-wrap: nowrap; gap: var(--s-8); }
.inbox-bar .seg { min-width: 0; }
.inbox-bar .seg button { padding: var(--s-8) var(--s-8); white-space: nowrap; }
.inbox-bar .mag { flex: none; }
@media (max-width: 370px) { .inbox-bar .seg button { padding: var(--s-8) var(--s-4); font-size: .8rem; } .inbox-bar .mag { width: 36px; height: 36px; } }
.done-line { cursor: pointer; flex-wrap: wrap; }
.done-line > .l { flex: 1 1 0; min-width: 0; }
.done-line .said { flex-basis: 100%; display: grid; gap: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--line); }
.done-line .said .text { white-space: pre-wrap; font-size: .9rem; line-height: 1.45; }
.done-line .said .src { justify-self: start; padding: 0; border: 0; background: none; font: 600 .82rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; }
.pill-btn.toggle[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-soft); }
.done-line .said .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-left { display: flex; align-items: center; gap: var(--s-8); }
/* Show original (Chris's list, item 2): quiet link; the bot's version greyed. */
.draft .show-orig { display: block; margin-top: var(--s-8); }
.draft.original .text { opacity: .55; }
.orig-actions { display: flex; gap: var(--s-8); margin-top: var(--s-12); }
.orig-actions .btn { padding: var(--s-8) var(--s-16); min-height: 38px; }
/* Event sheet (Chris's list, item 3). */
.ev-link, .ev-notes { display: grid; gap: var(--s-8); }
.ev-link input, .ev-notes textarea { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.ev-notes .btn { justify-self: start; padding: var(--s-8) var(--s-16); min-height: 38px; }
.picks { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.pick { display: grid; text-align: left; gap: 0; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }
.pick span { font-size: .78rem; color: var(--muted); }
/* Invoice preview and sheet (Chris's list, items 4 to 6): one layout, used twice. */
.inv-sheet { display: grid; gap: var(--s-12); }
.inv-doc { display: grid; gap: var(--s-12); padding: var(--s-16); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.inv-title { display: grid; gap: var(--s-4); }
.inv-title b { font-size: 1.05rem; }
.inv-title span, .inv-to, .inv-due { font-size: .85rem; color: var(--muted); }
.inv-to b { color: var(--ink); font-weight: 600; }
.inv-row { display: flex; justify-content: space-between; gap: var(--s-12); font-size: .9rem; }
.inv-row.total { border-top: 1px solid var(--line); padding-top: var(--s-8); font-size: 1rem; }
.inv-lines, .inv-totals { display: grid; gap: var(--s-8); }
.inv-line.edit { display: grid; grid-template-columns: 1fr 1fr 36px; gap: var(--s-8); align-items: end; padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.inv-line.edit .li-name { grid-column: 1 / -1; }
.li-f { display: grid; gap: var(--s-4); }
.li-f span { font: 600 .66rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inv-sheet .cal-top { display: flex; align-items: center; gap: var(--s-8); }
.inv-sheet .cal-top b { margin-right: auto; }
.inv-sheet .cal-top .badge { margin: 0; }
.inv-sheet .cal-top .back { width: auto; flex: none; }
.inv-doc input { width: 100%; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 8px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.inv-title .li-title { font-weight: 600; }
.inv-due input { width: auto; margin-left: var(--s-8); }
.inv-links { display: grid; gap: var(--s-8); justify-items: start; }
.inv-links .src { padding: 0; border: 0; background: none; font: 600 .88rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; }
.inv-links .btn { padding: var(--s-8) var(--s-16); min-height: 38px; text-decoration: none; }
.inv-chip { justify-self: start; border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); border-radius: 999px; padding: var(--s-8) var(--s-16); font: 600 .85rem/1.2 var(--ui); cursor: pointer; text-align: left; }
.inv-chip.unpaid, .inv-chip.chase { border-color: var(--amber-ink); color: var(--amber-ink); }
.inv-chip.paid { border-color: var(--green); color: var(--green); }
.inv[data-inv-open] { cursor: pointer; }
.owner-sends { align-self: center; font-size: .82rem; color: var(--muted); }
.done-line .said .btn { justify-self: start; padding: var(--s-8) var(--s-16); min-height: 38px; }
.inv-stop { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--amber-bg); color: var(--ink); font-size: .9rem; }
.inv-stop .btn { justify-self: start; padding: var(--s-8) var(--s-16); min-height: 38px; }
.inv-chip.checking { border-style: dashed; color: var(--muted); }

/* Everywhere (design notes, item 17): a pressed state you can feel on a phone, a focus ring you
   can see on desktop. */
.btn, .lever, .pill-btn, .seg button, .v-opt, .nav button, .chip, .inv-chip, .pick, .avail, .icon, .back, .quote,
.card.line, .ev, .inv, .day, .wk-day, .switch, .m-row, .mag, .chat-chip, .role-opt, .act {
  transition: transform 60ms ease-out;
}
.btn:active, .lever:active, .pill-btn:active, .seg button:active, .v-opt:active, .nav button:active, .chip:active,
.inv-chip:active, .pick:active, .avail:active, .icon:active, .back:active, .switch:active, .m-row:active, .mag:active,
.card.line:active, .ev:active, .inv:active, .day:active, .wk-day:active, .quote:active {
  transform: scale(.98);
}
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; box-shadow: 0 0 0 4px var(--brand-bg); }

/* One chip (item 18): one pill shape and size; the color carries the meaning (amber needs you or
   owes, green done or paid, blue waiting, purple booked, grey quiet). */
.count, .head .state, .badge, .inv-chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 var(--s-12); border-radius: 999px;
  font: 600 .76rem/1 var(--ui); letter-spacing: .01em; text-transform: none; white-space: nowrap;
}
.who { align-items: center; }
.head .state { color: var(--amber-ink); background: var(--amber-bg); }
.card.waiting .head .state { color: var(--blue); background: var(--blue-bg); }
.card.yes .head .state, .card.done .head .state { color: var(--green); background: var(--green-bg); }
.card.booked .head .state { color: var(--brand-soft); background: var(--brand-bg); }
.card.held .head .state { color: var(--muted); background: var(--raised); }
.inv-chip { border-width: 1.5px; }

/* Rules page: the truck's levers, read-only (DEMO-SPEC "Rules page: the levers above"). */
.levers-note { margin: 0 var(--s-4) var(--s-8); color: var(--muted); font-size: .82rem; }
.lever-info { display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.lever-info small { font-size: 12px; color: var(--muted); }
.lever-info + .lever-info { margin-top: var(--s-8); }
.done-line .inv-chip { margin-top: var(--s-4); font-size: .78rem; padding: var(--s-4) var(--s-12); }

/* The public demo (DEMO-SPEC.md): the welcome card over the inbox and the four hint dots. */
.welcome { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--s-16);
  background: color-mix(in srgb, var(--chrome) 72%, transparent); backdrop-filter: blur(2px); }
.welcome-card { width: 100%; max-width: 420px; display: grid; gap: var(--s-16); padding: var(--s-24) var(--s-20) var(--s-20); border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.welcome-kicker { font: 500 .74rem/1.2 var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--brand-soft); }
.welcome-text { font-size: 1.05rem; line-height: 1.55; }
/* Centered, all of it, and two buttons the same width (design notes 2026-10-03 evening, item 1). */
.welcome-card { text-align: center; justify-items: center; }
.welcome-title { margin: 0; font: 800 1.35rem/1.2 var(--ui); text-wrap: balance; }
.welcome-text { text-wrap: pretty; }
/* The tagline under the app's name (design notes 2026-10-04 third round, item 2), on the welcome and the Tour's top. */
.welcome-tagline, .guide-tagline { margin: calc(-1 * var(--s-8)) 0 0; font: 700 1.05rem/1.3 var(--ui); color: var(--muted); }
.guide-tagline { margin: calc(-1 * var(--s-4)) 0 var(--s-4); }
/* The tagline's second line (walk note 123), quieter, close under it on the welcome card. */
.welcome-tagline-two { margin: calc(-1 * var(--s-4)) 0 0; font: 500 .95rem/1.35 var(--ui); color: var(--muted); text-wrap: balance; }
.welcome-btns { display: grid; gap: var(--s-8); width: min(100%, 280px); margin-top: var(--s-4); }
.welcome-btns .btn { width: 100%; }
/* The deck (design notes 2026-10-04-e, item 1): the cards across, a swipe snapping card to card, the dots under it (with a chevron
   each side since build22, item 3; Next until then);
   each card a live close-up with its line (build16, item 6: deck.css), the last the mark and the truck's name. The track
   scrolls sideways with no scrollbar showing. */
.welcome-card.deck { gap: var(--s-12); padding: var(--s-20) 0 var(--s-16); overflow: hidden; }
.deck-track { width: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.deck-track::-webkit-scrollbar { display: none; }
.deck-card { flex: 0 0 100%; margin: 0; padding: var(--s-4) var(--s-20); scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; justify-items: center; align-content: start; gap: var(--s-12); }
.deck-card figcaption { max-width: 320px; min-height: 2.8em; font: 600 1.05rem/1.4 var(--ui); text-wrap: balance; }
.deck-card.deck-end { align-content: center; }
/* The welcome card (build20, item 1): the deck's first, its own top. The mark over the title, then the tagline, the paragraph and
   the demo line, centered in the card; nothing moves (no animation), so reduce motion shows it as it is. */
.deck-card.deck-welcome { align-content: center; gap: var(--s-12); }
.deck-welcome .welcome-mark { display: block; height: 56px; margin: 0; }
.deck-welcome .welcome-title { max-width: 320px; font: 800 1.5rem/1.2 var(--ui); color: var(--ink); }
.deck-welcome .welcome-tagline { max-width: 320px; margin: 0; font: 700 1.1rem/1.35 var(--ui); color: var(--brand-soft); text-wrap: balance; }
.deck-welcome .welcome-tagline-two { max-width: 320px; margin: calc(-1 * var(--s-8)) 0 0; }
.deck-welcome .welcome-text { max-width: 320px; margin: 0; font: 500 1rem/1.5 var(--ui); color: var(--ink); text-wrap: pretty; }
.deck-welcome .welcome-demo { max-width: 320px; margin: 0; font: 500 .9rem/1.45 var(--ui); color: var(--muted); text-wrap: pretty; }
/* Name your truck (design notes 2026-10-05-build15, item 2; build16 item 1): one box on the last card, prefilled. */
.deck-name { display: grid; gap: var(--s-8); width: 100%; max-width: 320px; margin-top: var(--s-8); text-align: left; }
.deck-name span { font: 600 .9rem/1.3 var(--ui); color: var(--muted); }
.deck-name input { min-height: 48px; padding: 0 var(--s-12); border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--card, #fff);
  color: var(--ink); font: 600 1.05rem/1 var(--ui); }
.deck-name input:focus { outline: none; border-color: var(--brand); }
/* Two boxes (design notes 2026-10-05-build18, item 9; the line under them moved above them in build22, item 5). */
.deck-names { display: grid; gap: var(--s-8); width: 100%; max-width: 320px; justify-items: stretch; }
.deck-names .deck-name { margin-top: 0; max-width: none; }
/* A name the server refused (Build 31 item 7): the line under its box, the box's border red. */
.deck-err { margin: calc(-1 * var(--s-4)) 0 0; font: 600 .86rem/1.35 var(--ui); color: var(--red); text-align: left; }
.deck-name input[aria-invalid="true"] { border-color: var(--red); }
/* The name card, top to bottom (build20, item 6; build22, item 5): the mark bigger, the heading, one line a size up, the boxes,
   Get started right under them in the card's flow (not the deck's foot), clear of the home bar (the welcome pads by the safe area). */
.deck-card.deck-end { gap: var(--s-8); }
.deck-end .deck-heading { margin: var(--s-4) 0 0; font: 800 1.35rem/1.2 var(--ui); color: var(--ink); }
.deck-end .deck-lead { min-height: 0; font: 600 1.15rem/1.4 var(--ui); }
.deck-end .deck-names { margin-top: var(--s-4); }
.deck-end .deck-go { width: 100%; min-height: 48px; margin-top: var(--s-4); scroll-margin: var(--s-16); }
/* Name them both for me (build25, item 7): a plain button under Let's go, the same width, 44 tall, outlined in the field line, ink words. */
.deck-end .deck-name-me { width: 100%; min-height: 44px; padding: 0 var(--s-12); background: transparent; border-color: var(--field-line); color: var(--ink); }
/* The chevrons beside the dots (build22, item 3; Next until then): 44 pt, full ink; a hidden one keeps its room, unseen, so the
   dots never shift as the first or the last card lands. */
.deck-chev { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: none; color: var(--ink);
  cursor: pointer; display: grid; place-items: center; }
.deck-chev[hidden] { display: grid !important; visibility: hidden; }
.deck-chev svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.deck-chev:active { transform: scale(.92); }
.welcome [data-welcome-go]:disabled { opacity: .45; cursor: default; }
.deck-card .deck-mark { display: block; height: 112px; width: 112px; aspect-ratio: 1; border: 0; border-radius: 26px; }   /* bigger (build20, 6) */
.deck-dots { display: flex; justify-content: center; align-items: center; margin: calc(-1 * var(--s-8)) 0; }
.deck-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.deck-dot i { width: 8px; height: 8px; border-radius: 4px; background: var(--muted); opacity: .45; transition: width .2s ease, opacity .2s ease; }
.deck-dot[aria-current] i { width: 18px; background: var(--brand); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .deck-dot i { transition: none; } }
/* The demo's Tour pill, its sun and moon slider and its Restart demo pill left the header in Build 38 item 2 (variant C): the
   Menu's Tour and Restart demo rows do their jobs, and the top bar's toggle is the theme in both modes. */
/* The Guide, full screen (design notes 2026-10-04, item 2): "Guide" and the book in the pill's amber, the sections, and
   Continue to app pinned to the bottom while the guide scrolls behind it. Over the header and the bar. */
.guide-page { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; background: var(--bg); }
.guide-page[hidden] { display: none; }
body.guide-open { overflow: hidden; }
.gp-top { flex: none; padding: calc(var(--s-16) + env(safe-area-inset-top)) var(--s-16) var(--s-12); background: var(--chrome); border-bottom: 1px solid var(--line); }
.gp-title { margin: 0; display: flex; align-items: center; gap: var(--s-8); font: 800 1.2rem/1.2 var(--ui); color: var(--amber-ink); }
.gp-title svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
/* The end of the Tour clears the pinned bar: its height (12 + the chevron's 24 + 50 + 16) and a little more, so the last
   line reads above the button (review of the 2026-10-04 second round; the chevron since 2026-10-04-e, item 1). */
.gp-body.guide-body { width: 100%; max-width: 640px; margin: 0 auto; padding-bottom: calc(102px + var(--s-32) + env(safe-area-inset-bottom)); }
.gp-body .guide-sec:first-child h3 { font-size: 24px; }
.gp-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-12) var(--s-16) calc(var(--s-16) + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 40%); display: flex; justify-content: center; pointer-events: none; }
.gp-foot .btn { width: min(100%, 420px); min-height: 50px; font-size: 1.02rem; pointer-events: auto; box-shadow: var(--shadow); }
/* The Tour scrolls with no visible scrollbar; a small chevron over Continue bounces gently until the first scroll
   (design notes 2026-10-04-e, item 1). */
.gp-body { scrollbar-width: none; }
.gp-body::-webkit-scrollbar { display: none; }
.gp-foot { flex-direction: column; align-items: center; gap: var(--s-4); }
.gp-more { display: grid; place-items: center; width: 28px; height: 20px; color: var(--muted); animation: gp-bounce 1.8s ease-in-out infinite; }
.gp-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.guide-page.scrolled .gp-more { display: none; }
@keyframes gp-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .gp-more { animation: none; } }
/* The inbox's rows before it answers (design notes 2026-10-04, item 0): the page shows at once and fills in. */
.sk-rows { display: grid; gap: var(--s-8); }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); height: 58px; padding: 0 var(--s-16);
  border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.sk-row > div { display: grid; gap: var(--s-8); flex: 1; }
.sk-row i { display: block; height: 10px; border-radius: 5px; background: var(--raised-line); opacity: .55; animation: sk-pulse 1.4s ease-in-out infinite; }
.sk-row > div i:first-child { width: 46%; height: 12px; }
.sk-row > div i:last-child { width: 68%; }
.sk-row > i { width: 64px; }
@keyframes sk-pulse { 50% { opacity: .25; } }
/* The sample message (design notes 2026-10-04, item 4), a slim row since the third round (item 4): right under the header,
   above Open / Done / Set aside, the height of the demo bar, not a card. The headline in the normal small text, the demo line
   in the lightest under it, the button on the right. It never moves. */
.demo-sample { container-type: inline-size; display: flex; align-items: center; justify-content: space-between; gap: var(--s-12);
  margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-12)) 0; padding: var(--s-4) var(--s-16); min-height: 52px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.ds-words { min-width: 0; display: grid; gap: 0; }
.demo-sample b { font: 600 14px/1.25 var(--ui); color: var(--ink); }
.demo-sample .btn { flex: none; min-height: 44px; padding: 0 var(--s-16); font-size: 14px; white-space: nowrap; }
/* The demo line only when it fits on its one line under the headline; else dropped (a phone drops it). */
.demo-sample p { display: none; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
@container (min-width: 470px) { .demo-sample p { display: block; } }
.split .demo-sample { margin: 0 0 var(--s-8); }
.btn.sending, .btn.sending:disabled { opacity: .55; cursor: default; }
/* The banner (design notes 2026-10-04, item 5): slides down under the top bar; fades after a few seconds. In the page's flow
   (sweep 10/22, V26): it pushes the page down while it shows and never covers the page's head; scrolled, it sticks under the bar. */
.banner { position: sticky; z-index: 60; top: calc(var(--head-h, 64px) + var(--s-8)); flex: none; width: min(calc(100% - 20px), 460px);
  margin: var(--s-8) auto; display: flex; align-items: stretch; overflow: hidden; border-radius: 14px; background: var(--raised);
  border: 1px solid var(--raised-line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-12px);
  transition: transform .3s ease-out, opacity .3s ease; }
.banner::before { content: ""; flex: none; width: 4px; background: var(--amber); }
.banner.in { opacity: 1; transform: none; }
.banner.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .banner { transform: none; } }
.bn-body { flex: 1; min-width: 0; display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-4) var(--s-12) var(--s-12); border: 0; background: none; color: var(--ink);
  text-align: left; font: inherit; cursor: pointer; }
.bn-body b { font: 800 .95rem/1.25 var(--ui); }
.bn-body span { color: var(--muted); font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.bn-x { flex: none; width: 44px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.card.incoming.landing { animation: incoming-in .25s ease-out; }   /* once, as it lands; a redraw (open, fold) doesn't slide it again */
.card.incoming::before { background: var(--brand); }
@keyframes incoming-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .card.incoming.landing { animation: none; } }
/* The Guide (demo only): one column over the screen, in the cards' type (name line, draft text). */
.guide-body { flex: 1; overflow-y: auto; padding: var(--s-20) var(--s-16) calc(var(--s-32) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-24); align-content: start; }
.guide-sec { display: grid; gap: var(--s-8); }
.guide-sec h3 { margin: 0; font: 700 18px/1.25 var(--ui); }
.guide-sec p { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
/* The demo's closing lines and its three buttons, the menu's three (design notes 2026-10-03 evening, item 2). */
.guide-close { padding-top: var(--s-16); border-top: 1px solid var(--line); }
.guide-close p { font-size: 15.5px; color: var(--muted); }
.guide-close .guide-end { gap: var(--s-8); padding-top: var(--s-8); }



/* ── The menu (the three lines): a page list sliding in from the side over the screen; tapping
   outside it, or a row, closes it (design notes 2026-10-02, item 1). ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 3, 8, .62); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.menu { position: fixed; z-index: 41; top: 0; bottom: 0; right: 0; width: 86%; max-width: 420px; background: var(--bg);
  border-left: 1px solid var(--line); box-shadow: -18px 0 40px -18px rgba(0,0,0,.9);
  transform: translateX(104%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
  overflow-y: auto; padding: calc(var(--s-16) + env(safe-area-inset-top)) var(--s-12) calc(var(--s-24) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-4); align-content: start; }
.menu.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.m-row { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; column-gap: var(--s-12); width: 100%; border: 0;
  background: none; text-align: left; padding: var(--s-8); border-radius: 10px; cursor: pointer; color: var(--ink); font: 600 1rem/1.25 var(--ui); text-decoration: none; }
.m-row[aria-current="page"] { background: var(--raised); }
.m-row .chev { color: var(--muted); font-size: 1.1rem; }
/* The short line under Add to your home screen, the browser named (design notes 2026-10-04 second round, item 13). */
.m-row .m-sub, .signup-step .m-sub { display: block; margin-top: var(--s-4); font: 500 .8rem/1.3 var(--ui); color: var(--muted); }
.m-tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 17%, transparent); }
.m-tile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.m-label { margin: var(--s-20) var(--s-16) var(--s-8); font: 600 .66rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Inset grouped cards (design notes 2026-10-04 third round, item 8): a group's rows in one rounded card, hairlines between
   them from the text's edge, a gap between cards. Settings and Profile too. */
.m-card { display: grid; min-height: max-content; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.menu { grid-auto-rows: max-content; }
.m-card .m-row { border-radius: 0; padding: var(--s-12) var(--s-12); min-height: 52px; }
.m-card .m-row, .m-card .m-row-pair { position: relative; }
.m-card .m-row::before, .m-card .m-row-pair::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--line); }
.m-card .m-row-pair .m-row::before, .m-card > :first-child::before, .m-card > .m-demo:first-child > .m-row:first-child::before { display: none; }
.m-card .m-demo { display: grid; gap: 0; padding: 0; margin: 0; border: 0; }
.m-card .m-row-pair { padding-right: var(--s-8); }

/* ── Ask (over the screen, the bar stays) and Help (a page): between the header and the bar ── */
/* Under the header (z 5), so the raised Ask circle stays on top of them. */
.chat-screen, .chat-page { position: fixed; z-index: 4; left: 0; right: 0; max-width: 560px; margin: 0 auto; top: var(--head-h, 48px);
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); background: var(--bg); display: flex; flex-direction: column; }
.chat-screen:not([hidden]) { animation: ask-up .26s cubic-bezier(.2,.8,.2,1); }
@keyframes ask-up { from { transform: translateY(40px); opacity: 0; } }
.chat-thread { flex: 1; overflow-y: auto; padding: var(--s-12) var(--s-16) var(--s-16); display: flex; flex-direction: column; gap: var(--s-12); }
/* The keyboard on an iPhone (2026-10-08): the page behind Ask is locked while it's open (scrolllock.js: the body fixed at minus its
   scroll, put back on close), and the thread and the chats list scroll without handing their scroll on to anything else. */
body.scroll-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.chat-screen { overscroll-behavior: contain; }
.chat-screen .chat-thread, .chat-screen .chat-list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-day { align-self: center; font: 600 .66rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--s-8) 0 var(--s-4); }
.chat-thread .me { align-self: flex-end; max-width: 82%; padding: var(--s-8) var(--s-12); border-radius: 16px 16px 4px 16px; background: var(--brand); color: var(--brand-ink);
  font-size: .95rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-thread .bot { align-self: flex-start; max-width: 88%; padding: var(--s-12) var(--s-12); border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line);
  font-size: .95rem; line-height: 1.45; display: grid; gap: var(--s-8); overflow-wrap: anywhere; }
.chat-thread .bot.k-thinking, .chat-thread .bot.k-nothing, .chat-thread .bot.k-off_topic { color: var(--muted); }
.chat-thread .bot.k-error, .chat-thread .bot.k-spent { border-color: var(--amber-ink); }
.chat-thread .src, .chat-chip { justify-self: start; display: inline-flex; align-items: baseline; gap: var(--s-8); padding: var(--s-4) var(--s-12); border-radius: 999px;
  border: 1px solid var(--raised-line); background: var(--raised); color: var(--brand-soft); font: 600 .8rem/1.2 var(--ui); cursor: pointer; text-align: left; }
.chat-thread .src small { font: 500 .66rem/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chat-chip { border-color: var(--brand); }
/* A source under an answer (the this-week fix, rule 21, P4): the kind word is never squeezed or broken ("INCO ME"), its words
   wrap in their own box beside it and drop under it when the line has no room for both, and the corners are half the 44 tap
   height, so a source on two or more lines is a rounded box with its words inside, not an oval they run over at 200%. */
.chat-thread .src { flex-wrap: wrap; border-radius: 22px; }
.chat-thread .src small { flex: none; white-space: nowrap; }
.chat-thread .src-w { flex: 1 1 8em; min-width: 0; }
.compose { display: flex; align-items: flex-end; gap: var(--s-8); padding: var(--s-12) var(--s-12) var(--s-40); background: var(--chrome); border-top: 1px solid var(--line); }
/* The raised Ask circle pokes ~30px above the bar: the compose line keeps clear of it. */
.compose textarea { flex: 1; min-width: 0; resize: none; min-height: 46px; max-height: 140px; padding: var(--s-8) var(--s-12); border-radius: 14px; border: 1.5px solid var(--brand);
  background: var(--raised); font-size: 16px; line-height: 1.35; caret-color: var(--brand-soft); outline: none; }
.compose textarea::placeholder { color: var(--muted); }
.compose textarea:focus-visible, .narrow input:focus-visible { outline: none; }
.send-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--action); color: var(--on-action); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--action-edge); }
.send-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.help-page .compose { padding-bottom: var(--s-12); }
.help-page .compose:last-child { padding-bottom: var(--s-40); }
.tf-actions { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.tf-actions .btn { padding: var(--s-8) var(--s-16); min-height: 40px; }
.guide-line { display: flex; justify-content: center; padding: 0 var(--s-12) var(--s-40); background: var(--chrome); }
.guide-line .linkish { color: var(--brand-soft); font-weight: 600; font-size: .86rem; }

/* ── Settings ── */
.settings-page { display: grid; gap: var(--s-12); align-content: start; }
.group { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.group-title { font: 600 .7rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--s-8) var(--s-4) calc(-1 * var(--s-4)); }
.group-title small { font: inherit; opacity: .7; margin-left: var(--s-4); }
.set { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-4) var(--s-12); padding: var(--s-12) var(--s-16); border: 0; border-top: 1px solid var(--line);
  min-height: 52px; background: none; text-align: left; width: 100%; color: var(--ink); }
.group > .set:first-child { border-top: 0; }
.set b { font: 600 .95rem/1.3 var(--ui); }
.set b small { font-weight: 500; color: var(--muted); }
.set > span { grid-column: 1; color: var(--muted); font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere; }
.set .role, .set .act { grid-column: 2; grid-row: 1 / span 2; }
.set .role { font: 600 .7rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: var(--s-8) var(--s-8); }
.set.member[role="button"] { cursor: pointer; }
/* A person is a row that opens (design notes 2026-10-05-build18, item 4): the head is one button (name; position and rate;
   their hours in the period), the chevron at its right; open, the facts or the owner's form unfold under it in place. */
.set.trow { display: block; padding: 0; }
.trow-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-12); width: 100%; min-height: 52px; padding: var(--s-12) var(--s-16);
  border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.trow-l { display: grid; gap: var(--s-4); min-width: 0; }
.trow-l b { font: 600 .95rem/1.3 var(--ui); }
.trow-l b small { font-weight: 500; color: var(--muted); }
.trow-pos { color: var(--ink); font-size: .86rem; }
.trow-hours { color: var(--muted); font-size: .82rem; }
.trow-chev { width: 22px; height: 22px; color: var(--muted); }
.trow-chev svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trow.open { background: var(--raised); }
/* Team's rows (Build 38 item 10): the contact bubble at the name's line, left of the chevron, outside the row's own button; the
   quiet "Add an email" under the hours; the form's line under Email. */
.trow-top { position: relative; }
.trow-top.has-bubble .trow-l { padding-right: var(--s-40); }   /* the bubble's room, left of the chevron */
.trow-top > .contact-btn.bubble { position: absolute; top: 2px; right: calc(var(--s-16) + 22px + var(--s-4)); flex: none; width: 44px;
  min-height: 44px; margin: 0; padding: 0; border: 0; justify-content: center; color: var(--ink);
  background: radial-gradient(circle, var(--raised) 14px, var(--raised-line) 14.5px, var(--raised-line) 15.5px, transparent 16px); }
.trow-top > .contact-btn.bubble svg { width: 16px; height: 16px; }
.trow-top > .contact-btn.bubble[aria-expanded="true"] { color: var(--brand-soft);
  background: radial-gradient(circle, var(--brand-bg) 14px, var(--brand) 14.5px, var(--brand) 15.5px, transparent 16px); }
.trow-nudge { font: 600 .8rem/1.3 var(--ui); color: var(--brand-soft); }
.tf-hint { display: block; margin-top: var(--s-4); font: 500 .8rem/1.3 var(--ui); color: var(--muted); }
/* Past crew (Build 38 item 11): at the bottom of Team, a shade quieter, each with Bring back at the right and Their page under. */
.past-crew-head { padding-top: var(--s-20); }
.trow.past { background: color-mix(in srgb, var(--card) 55%, var(--bg)); }
.trow.past .past-head { cursor: default; }
.trow.past .trow-l b { color: var(--muted); }
.trow-retired { font: 500 .8rem/1.3 var(--ui); color: var(--muted); }
.trow.past [data-bring-back] { flex: none; min-height: 44px; padding: 0 var(--s-16); }
.trow.past .tm-page { margin: calc(-1 * var(--s-8)) var(--s-16) var(--s-4); }
.trow .team-form { border-top: 1px solid var(--line); }
.team-form textarea { padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--card); font: 400 16px/1.4 var(--ui);
  color: var(--ink); resize: vertical; }
.tf-login { color: var(--muted); font-size: .86rem; margin: 0; overflow-wrap: anywhere; }
.tm-open { display: grid; gap: var(--s-8); padding: var(--s-4) var(--s-16) var(--s-16); border-top: 1px solid var(--line); }
.tm-facts { margin: var(--s-8) 0 0; padding: 0; font-size: .9rem; }
.tm-hours { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font: 600 .92rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; }
.tm-page { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font: 500 .86rem/1.3 var(--ui); color: var(--muted); cursor: pointer; }
.set.confirm { grid-template-columns: 1fr; gap: var(--s-12); background: var(--raised); }
.set.confirm > span { color: var(--ink); }
.act { border: 1.5px solid var(--raised-line); background: var(--raised); border-radius: 999px; padding: var(--s-8) var(--s-16); font: 600 .84rem/1 var(--ui);
  color: var(--ink); cursor: pointer; white-space: nowrap; }
.set > .act:only-child { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
.act.go { background: var(--brand); border-color: var(--brand); color: #fff; }
/* An outlined pill (P2: one filled button per screen; the rest outlined in the brand's soft ink). The settings lane. */
.act.line { background: none; border-color: var(--brand-soft); color: var(--brand-soft); }
.act.quiet { color: var(--red); }

.truckhead { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s-4) var(--s-12); align-items: center; padding: var(--s-16); }
.truckhead .avatar { grid-column: 1; grid-row: 1 / span 2; font-style: normal; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-bg); color: var(--brand-soft);
  display: grid; place-items: center; font: 700 1.05rem/1 var(--ui); }
.truckhead b { font: 700 1.1rem/1.2 var(--ui); }
.truckhead > span { grid-column: 2; color: var(--muted); font-size: .86rem; }
.truckhead b { grid-column: 2; }
.truckhead .act { grid-column: 3; grid-row: 1 / span 2; }
.truckhead .logo-hint { grid-column: 1 / -1; margin: var(--s-8) 0 0; }
.pick-truck[aria-current="true"] b { color: var(--brand-soft); }
.team-form { display: grid; gap: var(--s-12); padding: var(--s-16); border-top: 1px solid var(--line); background: var(--raised); }
.team-form label { display: grid; gap: var(--s-4); font: 600 .78rem/1.2 var(--ui); color: var(--muted); }
.team-form input { padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--card); font-size: 16px; color: var(--ink); }
.team-form .rate { display: flex; align-items: center; gap: var(--s-8); color: var(--ink); font-weight: 500; }
.team-form .rate input { width: 110px; }
.tf-who { font: 700 1rem/1.2 var(--ui); }
.roles { display: grid; gap: var(--s-8); }
.role-opt { display: grid; gap: var(--s-4); text-align: left; padding: var(--s-12) var(--s-12); border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink); }
.role-opt b { font: 600 .92rem/1.2 var(--ui); display: flex; align-items: center; gap: var(--s-8); }
.role-opt span { font-size: .8rem; color: var(--muted); }
.role-opt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-bg); }
.role-opt:disabled { opacity: .55; cursor: default; }
.soon { font: 600 .6rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; padding: var(--s-4) var(--s-8); border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.team-note { font-size: .88rem; color: var(--amber-ink); }
.btn.danger { color: var(--red); }

@media (min-width: 900px) {
  .chat-screen { top: var(--top-h); bottom: 0; left: auto; right: 0; width: min(440px, 34vw); max-width: none; margin: 0; border-left: 1px solid var(--line); z-index: 6; }
  .chat-page { top: var(--top-h); bottom: 0; max-width: 760px; }
  .compose, .help-page .compose:last-child, .guide-line { padding-bottom: var(--s-16); }
  .settings-page, .help-page { height: auto; }
}

/* The demo's top of the menu (item 4): Request early access, Help us make it better, the share line. */
.m-top { display: grid; gap: var(--s-12); padding: var(--s-4) var(--s-4) var(--s-16); margin-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.m-top-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.m-top-btns .btn { min-height: 46px; padding: var(--s-8) var(--s-8); font-size: .84rem; line-height: 1.2; }
.m-share { display: flex; align-items: center; gap: var(--s-8); border: 0; background: none; padding: var(--s-4); color: var(--brand-soft);
  font: 600 .9rem/1.2 var(--ui); cursor: pointer; justify-self: start; }
.m-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.access-page { display: grid; gap: var(--s-16); align-content: start; }
.access-form { display: grid; gap: var(--s-12); padding: var(--s-16); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.access-form label { display: grid; gap: var(--s-4); font: 600 .78rem/1.2 var(--ui); color: var(--muted); }
.access-form input { padding: var(--s-12) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); font-size: 16px; color: var(--ink); }
.access-form .btn { min-height: 46px; }
/* A box on the form (Build 35e item 4's news box, on step 2 since Build 35g item 3, and "We have a storefront too"): the box then
   its words, the whole row a 44 tall target. */
.access-form label.access-chk { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; font: 500 .9rem/1.3 var(--ui);
  color: var(--ink); cursor: pointer; }
.access-form .access-chk input { width: 22px; height: 22px; margin: 0; padding: 0; flex: none; accent-color: var(--brand); }
/* Step 2 (Build 35g item 3, the approved mockup): "You're on the list!" in a slimmer green box, the heading, then the one form: the
   boxes, the chip rows (pill chips 44 tall, outlined; a picked one filled with the brand, white words), the two boxes, Done, and
   the line naming what's still missing under it. */
.access-done.access-listed { padding: var(--s-16); font-weight: 700; }
.setup-head { display: grid; gap: var(--s-4); padding: 0 var(--s-4); }
.setup-head h2 { margin: 0; font: 800 1.3rem/1.2 var(--ui); color: var(--ink); }
.setup-aside { font-weight: 500; color: var(--muted); }
.setup-fine { margin: 0; font: 500 .82rem/1.4 var(--ui); color: var(--muted); }
.access-form .setup-hint { margin-top: calc(var(--s-4) * -1.5); font-size: .9rem; }   /* the mockup's -6, close under its box */
.setup-grp { display: grid; gap: var(--s-8); }
.setup-q { font: 600 .78rem/1.2 var(--ui); color: var(--muted); }
.setup-chips { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.setup-chip { border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); border-radius: 999px; padding: var(--s-8) calc(var(--s-12) + var(--s-4) / 2);
  min-height: 44px; font: 600 .82rem/1.1 var(--ui); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.setup-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.setup-missing { text-align: center; }
.access-step2 .access-legal { margin-top: auto; }
/* The early access page (Build 31 item 1, Build 35 item 3, Build 35e item 2; Build 35g item 1's final look, from the approved
   mockup docs/mockups/2026-10-07-early-access-2step.html): the pricing card: a filled brand pill "Founding price" in small caps,
   the heading centered with "$29" alone in the brand's purple and a step bigger, the terms centered and muted right under it, a
   1px divider in the line color, "Everything included:" centered, then the nine features left-aligned, 14 between them, each
   with a muted check hanging left and its name bold in the brand's purple. No strikethrough, no boxed price. Then the form with a
   muted line above its first field. */
.founding-card { display: grid; gap: var(--s-12); padding: var(--s-20) var(--s-16); border-radius: 16px; background: var(--card);
  border: 1.5px solid var(--brand); }
.founding-hold { justify-self: center; margin: 0; text-align: center; font: 800 1.2rem/1.25 var(--ui); color: var(--ink); text-wrap: balance; }
.founding-hold-line { justify-self: center; margin: 0; text-align: center; color: var(--muted); font-size: .95rem; line-height: 1.4; text-wrap: balance; }
.founding-hold-line + .founding-pill { margin-top: var(--s-8); }
.founding-pill { justify-self: center; font: 800 .75rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink);
  background: var(--brand); padding: calc(var(--s-4) * 1.5) var(--s-12); border-radius: 999px; }
.founding-card h2 { margin: 0; font: 800 1.45rem/1.2 var(--ui); color: var(--ink); text-wrap: balance; text-align: center; }
.founding-price { color: var(--brand-soft); font-size: 1.35em; }
/* Pass 3 row 10: Locked in and the first month right under the price, each its own line in the ink and a touch bolder, 4 apart
   (the card's 12 between groups, one group); the $49 line muted, last. */
.founding-line { margin: 0; font: 600 1rem/1.4 var(--ui); color: var(--ink); text-align: center; }
.founding-first { font-size: 1.15rem; font-weight: 800; }
.founding-terms { margin: 0; font: 500 .95rem/1.45 var(--ui); color: var(--muted); text-align: center; text-wrap: balance; }
.founding-rule { border: 0; border-top: 1px solid var(--line); margin: var(--s-4) 0; width: 100%; }
.founding-intro { margin: 0; font: 500 1rem/1.4 var(--ui); color: var(--ink); text-align: center; }
/* 14 between the lines (the notes' own number), off the 4-step scale on purpose: built from its tokens so the scale holds. */
.founding-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: calc(var(--s-12) + var(--s-4) / 2); }
.founding-card li { position: relative; padding-left: var(--s-24); font: 500 1rem/1.4 var(--ui); color: var(--ink); text-wrap: pretty; }
.founding-card li b { font-weight: 800; color: var(--brand-soft); }
.founding-card li::before { content: ''; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border: solid var(--muted);
  border-width: 0 0 2px 2px; transform: rotate(-45deg); }
/* The founding card as a sheet in the demo (Founding flow v2, the wizard lane; founding.js). Pass 3 row 10, the owner's look the
   same morning ("Hold your spot is so big, and the bar on the top with the X is so big"): the sheet covers the whole screen, the top
   bar and the tabs too (#share.fs-full); no band on top and no grabber, the X alone at the top right in one 44 row that the card's
   pill shares; the card on the sheet itself (no box) scrolls; the foot holds still at the bottom with the founding list's door
   (p7-waitlist): the email box and Hold my spot (the one filled button, P2) side by side, the one line under them (rule 13); after
   the tap, the held line and the way back (P12). Rules 12, 13, 21; P5. */
.sheet.bottom.fs-full::before { display: none; }
@media (max-width: 899px) {
  .sheet.bottom.fs-full { inset: 0; z-index: 30 !important; max-height: none; }   /* over the header (z 20) and its bar */
}
.sheet.bottom .founding-sheet.cal-sheet { gap: var(--s-12); padding-top: calc(var(--s-8) + env(safe-area-inset-top)); padding-bottom: 0; }
.fs-top { position: sticky; top: calc(var(--s-8) + env(safe-area-inset-top)); z-index: 3; height: 44px;
  margin-bottom: calc(-1 * (var(--s-40) + var(--s-4))); display: flex; justify-content: flex-end; pointer-events: none; }   /* its grid row is 0 tall: the card under it */
.founding-sheet .fs-body { margin-top: calc(-1 * var(--s-12)); }   /* and over the row's gap, so the pill shares the X's row */
.fs-x { pointer-events: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--raised); color: var(--muted); cursor: pointer; }
.fs-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* The pill sits in the X's row, its middle on the row's (the pill is 24 tall: 10 over it). */
.founding-sheet .founding-card { border: 0; background: none; padding: calc(var(--s-8) + var(--s-4) / 2) 0 var(--s-16); }
.fs-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: var(--s-8); margin: auto calc(-1 * var(--s-16)) 0;
  padding: var(--s-12) var(--s-16) calc(var(--s-8) + env(safe-area-inset-bottom)); background: var(--chrome); border-top: 1px solid var(--line); }
.fs-hold { display: flex; gap: var(--s-8); }
.fs-hold input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); font: inherit; font-size: 16px; }
.fs-hold input::placeholder { color: var(--muted); opacity: 1; }
.fs-hold .btn { flex: none; min-height: 44px; font-weight: 800; }
/* The door's one line (p7-waitlist), under Hold my spot on the sheet and on the door page: muted, centered, balanced. */
.fs-line, .access-line { margin: 0; font: 500 .86rem/1.4 var(--ui); color: var(--muted); text-align: center; text-wrap: balance; }
.fs-error { margin: 0; color: var(--red); font-size: .88rem; text-align: center; }
.fs-saved { margin: var(--s-8) 0 0; text-align: center; color: var(--ink); font: 600 .95rem/1.45 var(--ui); text-wrap: balance; }
.fs-foot.held { gap: var(--s-4); }
.founding-sheet .linkish.fs-back { width:100%; justify-content:center; justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-8);
  color: var(--brand-soft); font-size: 1rem; font-weight: 700; text-decoration: none; }
.access-links { display: grid; margin-top: calc(var(--s-8) * -1); }   /* the two links one under the other, close to the form */
.access-link { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }   /* Build 35e item 3: under the form */
.access-link .linkish.strong { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-soft); font-size: inherit;
  font-weight: 600; text-decoration: none; }
.access-back .linkish.strong { padding: 0 var(--s-8); font: 700 1rem/1.3 var(--ui); text-decoration: underline; }   /* after the tap */
.access-hold .btn { font-weight: 800; }   /* the door page's Hold my spot (p7-waitlist), the sheet's weight */
/* Terms and Privacy (design notes 2026-10-05, item 4): one small line under the early access form and the demo's Help. */
.legal-links { display: flex; justify-content: center; align-items: center; gap: var(--s-12); margin: var(--s-12) 0 0; font-size: .9rem; color: var(--muted); }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); color: var(--muted); }
.access-done { padding: var(--s-24) var(--s-16); border-radius: 12px; background: var(--green-bg); color: var(--green); text-align: center; font-size: 1rem; }
.access-done span { display: block; margin-top: var(--s-8); color: var(--ink); font-size: 15px; }
.guide-end { display: grid; padding-top: var(--s-4); }
.guide-end .btn { min-height: 46px; }

/* Contact (item 5): one button, a short menu under it. */
.contact-btn { display: inline-flex; align-items: center; gap: var(--s-8); padding: var(--s-4) var(--s-12); border-radius: 999px; border: 1.5px solid var(--raised-line);
  background: var(--raised); color: var(--ink); font: 600 .84rem/1.2 var(--ui); cursor: pointer; margin-left: var(--s-12); vertical-align: middle; }
.contact-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-btn[aria-expanded="true"] { border-color: var(--brand); color: var(--brand-soft); }
.contact-line .contact-btn, .t-phones .contact-btn { margin-left: 0; }
.contact-line { padding-top: var(--s-8); }
.contact-menu { position: absolute; z-index: 25; min-width: 236px; max-width: calc(100vw - 24px); padding: var(--s-8); border-radius: 14px; background: var(--raised);
  border: 1px solid var(--raised-line); box-shadow: 0 18px 40px -12px rgba(0,0,0,.9); display: grid; }
.contact-menu a, .contact-menu button { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 0 var(--s-12); border: 0; background: none; text-align: left;
  padding: var(--s-12); border-radius: 9px; color: var(--ink); font: 600 .95rem/1.2 var(--ui); cursor: pointer; text-decoration: none; }
.contact-menu small { grid-column: 2; color: var(--muted); font: 400 .78rem/1.3 var(--ui); overflow-wrap: anywhere; }
.contact-menu > * + * { border-top: 1px solid var(--line); border-radius: 0; }
.contact-menu svg { grid-row: 1 / span 2; width: 19px; height: 19px; fill: none; stroke: var(--brand-soft); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Where you stand, first in the menu (design notes 2026-10-03 evening, item 10). */
.contact-menu .cm-head { margin: 0; padding: var(--s-8) var(--s-12) var(--s-8); font: 600 .8rem/1.3 var(--ui); color: var(--muted); letter-spacing: .01em; }
.cust-reach { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.person-page .t-phones { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-12); }

/* Rigs (item 2): the page, the tag on an event, the rig on the event sheet. */
.rigs-page { display: grid; gap: var(--s-12); align-content: start; }
.rigs-page .lead { color: var(--muted); font-size: .92rem; line-height: 1.45; padding: 0 var(--s-4); }
.rig-row { grid-template-columns: 1fr auto; }
.rig-row .rig-name { grid-row: 1 / span 2; min-width: 0; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--line); background: var(--raised);
  font: 600 1rem/1.2 var(--ui); color: var(--ink); }
.rig-acts { display: flex; align-items: center; gap: var(--s-8); grid-row: 1 / span 2; }
.rig-acts .icon:disabled, .rig-acts .act:disabled { opacity: .35; cursor: default; }
.rig-add { grid-template-columns: 1fr auto; }
.rig-add input { min-width: 0; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px dashed var(--field-line); background: none; font-size: 16px; color: var(--ink); }
/* The rig's pill after an event's title (the Calendar's rows and the deck's): 8 after the words (rule 21), its middle on the
   words' middle (.15em lifts it by the difference of the title's and its own half-height in any font of --ui; "middle" is the
   x-height's and sat it 1 to 2 low), and none of the title's hanging indent (the dot's text-indent below pulled its words out of
   its border onto the title, p3-rigtag 10/09). */
.rig-tag { font: 600 .7rem/1 var(--ui); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: var(--s-4) var(--s-8); margin-left: var(--s-8); vertical-align: .15em; text-indent: 0; }
/* A rig's color (pass 3, row 23; rules 4, 12, 21, P6; Google Calendar's pattern): with two or more rigs, an 8 across dot before an
   event's or a shift's name, never on a tag. Its two values ride on the dot (ui.js RIG_COLORS, --rd-l and --rd-d) and the theme
   picks one. In a Month bar (a light fill in both themes) it is smaller and keeps the light value, ringed so it reads on any
   bar's color. */
.rig-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rd-d); margin-right: var(--s-8); vertical-align: .06em; }
:root[data-theme="light"] .rig-dot { background: var(--rd-l); }
.rig-dot.in-bar { width: 6px; height: 6px; margin-right: var(--s-4); vertical-align: 1px; background: var(--rd-l); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85); }
.mbar.passed .rig-dot.in-bar { background: var(--rd-d); box-shadow: none; }
:root[data-theme="light"] .mbar.passed .rig-dot.in-bar { background: var(--rd-l); }
/* A title that wears the dot hangs its next lines under its words, not under the dot (the dot and its gap, 16). */
.ev-main b:has(> .rig-dot:first-child), .dl-ev-main b:has(> .rig-dot:first-child), .cp-title:has(> .rig-dot:first-child) {
  padding-left: var(--s-16); text-indent: calc(-1 * var(--s-16)); }
.cp-what:has(> .cp-title > .rig-dot:first-child) > .cp-sub { padding-left: var(--s-16); }
.rig-legend { justify-content: center; padding: 0 var(--s-4) var(--s-4); }
@media (max-width: 600px) {
  /* The fixed plus uses the rightmost 72 pixels above the bar. Both legends stay left of it. */
  .month-legend, .rig-legend { padding-right: calc(var(--s-40) + var(--s-32)); }
}
.rig-legend .rig-dot { margin-right: 0; }
/* The Rigs page with two or more: the dot at the row's left opens the four under it, in place; the rest of the row is the rig's
   page as before. Each swatch 44 tall (rule 21), the current one ringed with a check. */
.rig-line { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-top: 1px solid var(--line); }
.group > .rig-line:first-child { border-top: 0; }
.rig-line > .set { border-top: 0; padding-left: var(--s-4); }
.rig-dot-btn { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0 0 0 var(--s-8); border: 0; background: none; cursor: pointer; }
.rig-dot-btn:disabled { cursor: default; }
.rig-dot.big { width: 16px; height: 16px; margin: 0; }
.rig-line.open .rig-dot.big { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--field-line); }
.rig-colors { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 44px)); justify-content: space-between; gap: var(--s-4);
  padding: 0 var(--s-16) var(--s-12); }
.rig-swatch { display: grid; place-items: center; height: 44px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.rig-swatch::before { content: ''; grid-area: 1 / 1; width: 30px; height: 30px; border-radius: 50%; background: var(--rd-d); }
:root[data-theme="light"] .rig-swatch::before { background: var(--rd-l); }
.rig-swatch svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: var(--card); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.rig-swatch[aria-checked="true"]::before { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.rig-swatch[aria-checked="true"] svg { opacity: 1; }
.ev-rig { display: grid; gap: var(--s-8); }
.ev-rig .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rig-opts { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.rig-opts .pick.on { border-color: var(--brand); color: var(--brand-soft); background: var(--brand-bg); }

/* The inbox as rows that open in place (design notes 2026-10-02 evening, item 5): one row per request,
   more air between them than the cards had; tap one and it drops open where it is, one at a time. */
.rows { display: grid; gap: var(--s-12); align-content: start; }
.rows > .divider { padding-top: var(--s-16); }
.card.fold { padding-top: var(--s-16); padding-bottom: var(--s-16); cursor: pointer; }
.card.fold b { font-size: 1rem; }
.card.fold .state { font-size: .74rem; }
.card.open .head[data-fold] { cursor: pointer; }
/* A hard one (item 3): a safe holding reply, and this flag instead of a blank. */
.careful { margin: var(--s-8) 0 0; padding: var(--s-8) var(--s-12); border-radius: 9px; background: var(--amber-bg); color: var(--ink); font-size: .86rem; line-height: 1.35; }
.careful b { color: var(--amber-ink); }
.careful.holds p { margin: 0; }
.careful.holds p + p { margin-top: var(--s-4); }
.careful.holds p.w9-ask { margin-top: var(--s-8); }
/* It talks to the assistant (design notes 2026-10-08-leftovers, item 3): one quiet line in amber ink, small, no box. */
.talks { margin: var(--s-8) 0 0; color: var(--amber-ink); font-size: .82rem; line-height: 1.35; }
.card.open .cblk.wrote .talks { margin: 0; }
/* The facts as one quiet line (item 2); the calendar line, the invoice and the crew stay tappable rows. */
.facts-line { padding: 0 var(--s-16) var(--s-12) var(--s-20); display: grid; gap: var(--s-8); }
.fl-line { color: var(--muted); font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.fl-line .fl { color: var(--ink); opacity: .85; }
.fl-line .fl small { color: var(--muted); }
.fl-line a { color: inherit; text-decoration: underline; text-decoration-color: var(--quote-stripe); text-underline-offset: 3px; }
.fl-line .sep { font-style: normal; color: var(--muted); }
.fact-row { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; font-size: .86rem; }
.fact-row .crew.open { color: var(--amber-ink); }
.fact-row .crew.set { color: var(--green); }
.fact-row .chase { color: var(--amber-ink); }
.sign-lines { white-space: pre-line; font-weight: 600; }
.voice input#v-name, .setup input#s-home, .setup input#s-assist { width: 100%; font-size: 16px; padding: var(--s-12) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); }

/* The event sheet (evening items 7 and 9): the event's color down its side, its facts, its actions. A
   conversation opened from it reads over it. */
#thread { z-index: 12; }
.ev-full { border-left: 4px solid var(--ev, var(--brand)); }
.ev-top { grid-template-columns: 1fr auto auto; }
.ev-top .ev-title { text-align: left; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.ev-top .contact-btn { margin: 0; }
.ev-facts { padding: 0; }
.ev-full .src { justify-self: start; padding: 0; border: 0; background: none; font: 600 .88rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; }
.ev-full .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-full .hint { font-size: .82rem; color: var(--muted); }
.ev-acts { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.ev-acts:empty { display: none; }
.ev-acts .btn { padding: var(--s-12) var(--s-16); min-height: 40px; }
.ev-full .ev-tag { justify-self: start; }

/* The day view (evening item 7): the day takes the screen, hours down the side, events as blocks. */
.day-page { gap: var(--s-12); }
.dayview { display: grid; gap: var(--s-12); }
.dv-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "back nav" "title title"; gap: var(--s-8) var(--s-8); align-items: center;
  position: sticky; top: var(--head-h, 48px); z-index: 2; background: var(--bg); padding: var(--s-4) 0 var(--s-8); }
.dv-head .back { grid-area: back; justify-self: start; }
.dv-head .dv-nav { grid-area: nav; justify-self: end; }
.dv-head b { grid-area: title; font-size: 1.25rem; line-height: 1.2; padding-left: var(--s-4); }
.dv-nav { display: flex; gap: var(--s-4); }
.dv-allday { display: flex; flex-wrap: wrap; gap: var(--s-8); padding-left: 52px; }
.dv-chip { border: 0; border-left: 4px solid var(--ev); border-radius: 8px; background: var(--card); padding: var(--s-8) var(--s-12); font: 600 .85rem/1.2 var(--ui); cursor: pointer; text-align: left; }
.dv-chip.block { border-left-color: var(--muted); color: var(--muted); }
.dv-chip.passed { color: var(--muted); text-decoration: line-through; }
.dv-grid { position: relative; margin-top: var(--s-8); }
.dv-hour { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.dv-hour span { position: absolute; left: 0; top: -8px; width: 46px; padding-right: var(--s-8); text-align: right; background: var(--bg);
  font: 500 11px/16px var(--ui); color: var(--muted); }
.dv-lanes { position: absolute; top: 0; bottom: 0; left: 52px; right: 0; }
.dv-ev { position: absolute; display: grid; align-content: start; gap: var(--s-4); padding: var(--s-4) var(--s-8); overflow: hidden; text-align: left; cursor: pointer;
  border: 0; border-left: 4px solid var(--ev); border-radius: 8px; background: color-mix(in srgb, var(--ev) 22%, var(--card)); color: var(--ink); }
.dv-ev b { font: 600 .86rem/1.2 var(--ui); overflow-wrap: anywhere; }
.dv-ev small { font: 500 11.5px/1.3 var(--ui); color: var(--muted); overflow-wrap: anywhere; }
.dv-ev.passed { background: var(--card); border-left-style: dashed; }
.dv-ev.passed b { text-decoration: line-through; }
.dv-now { position: absolute; left: -6px; right: 0; height: 2px; background: var(--red); border-radius: 2px; }
.month-hint { text-align: center; color: var(--muted); font-size: .82rem; }
/* The day runs 24 hours in its own scroll under the day's head, opened on the morning (third round, item 7): the head, the
   all-day row and Block this day stay put while the hours scroll. */
.day-page { display: flex; flex-direction: column; height: calc(100dvh - var(--head-h, 60px) - var(--tabs-h) - env(safe-area-inset-bottom) - 24px); }
.day-page .dayview { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--s-12); }
.dv-head { position: static; }
.dv-scroll { flex: 1; min-height: 200px; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-8) 0 var(--s-12); }
.dv-scroll .dv-grid { margin-top: 0; }
/* Block this day (item 6): an optional reason and one tap, under what's on the day; a blocked day says so with Remove. */
.dv-block { display: flex; gap: var(--s-8); align-items: center; }
.dv-block input { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.dv-block .btn { flex: none; min-height: 44px; }
.dv-block.on { justify-content: space-between; padding: var(--s-8) var(--s-8) var(--s-8) var(--s-12); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.dv-block.on span { font: 600 15px/1.3 var(--ui); color: var(--muted); }
/* New event: a short sheet (item 5). */
.ne-form { gap: var(--s-12); }
.ne-form input, .ne-form textarea { min-height: 44px; }
.ne-when { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12) var(--s-12); align-items: end; }
/* The sheet is the phone's width, never wider (sweep 10/22 V34: Chromium's date and time boxes would not go under about 172 px,
   so at 375 the form ran to 388 and every field to 3 px from the edge): one column the sheet's width, the pairs halving it. */
.ne-form { grid-template-columns: minmax(0, 1fr); }
.ne-when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ne-when input { min-width: 0; width: 100%; }
/* Rig and Menu (V35): the Rig switch keeps its row when Menu would be squeezed under its words ("Pick a me"), as a switch
   has its row to itself (rule 9); side by side where both fit (the 560 panel). */
.ne-form .ne-rig-menu { display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-8); }
.ne-form .ne-rig-menu > .pf { flex: 1 1 auto; min-width: 0; }
.ne-form .ne-rig-menu > label.pf { flex-basis: 160px; }
.ne-allday { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); min-height: 44px; }
.ne-allday .sw-label { font: 600 15px/1.2 var(--ui); }
.ne-kinds { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.ne-kinds .pick { min-height: 44px; padding: 0 var(--s-16); display: inline-flex; align-items: center; }
.ne-kinds .pick.on { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-soft); font-weight: 700; }
.ne-picks .pick { min-height: 44px; }
.ne-add b { color: var(--brand-soft); }
.ne-picked { display: flex; align-items: center; gap: var(--s-8); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--raised); }
.ne-picked b { font-weight: 700; }
.ne-picked small { color: var(--muted); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ne-x { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.ne-new { margin: 0; padding: var(--s-12) var(--s-12) var(--s-12); border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; gap: var(--s-12); }
.ne-new legend { padding: 0 var(--s-4); font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ne-form .tf-actions .btn { width: 100%; min-height: 50px; }
/* The event sheet of an event added by hand: in the conversation's place. */
.ev-hand { color: var(--muted); font-size: 15px; }
/* The customer page: every event on it opens the event sheet (evening item 9). */
.hist.opens { cursor: pointer; }
.person-page .ev .inv-chip { justify-self: start; margin-top: var(--s-4); height: 22px; font-size: .72rem; }
.person-page .ev .chev { align-self: center; color: var(--muted); }
/* Ask over the keyboard (evening item 8): while the keyboard is up, Ask fills what the keyboard leaves and
   its box sits right on top of the keys; the bar hides behind them anyway. --ask-top and --ask-h are the visual viewport's
   (keyboard.js keyboardFit, 2026-10-09): kb-open is on only while a box has focus and the keys are up, wherever iOS panned. */
body.kb-open .chat-screen, body.kb-open .chat-page { top: var(--ask-top, var(--head-h, 48px)); bottom: auto;
  height: var(--ask-h, calc(100dvh - var(--head-h, 48px))); }
body.kb-open.asking .nav { visibility: hidden; }
body.kb-open .compose, body.kb-open .help-page .compose:last-child { padding-bottom: var(--s-12); }
.chat-empty { margin: auto var(--s-8); text-align: center; color: var(--muted); font-size: 1rem; line-height: 1.45; text-wrap: balance; }
/* Three questions to tap under it (Build 21 item 11). */
.chat-empty:has(+ .ask-chips) { margin-bottom: 0; }   /* the line and the chips sit together, centered as one */
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-8); margin: var(--s-16) var(--s-8) auto; }
.ask-chip { min-height: 44px; padding: var(--s-8) var(--s-16); border-radius: 999px; border: 1.5px solid var(--brand-soft); background: var(--card);
  color: var(--brand-soft); font: 700 .95rem/1.2 var(--ui); cursor: pointer; }

/* The invoice sheet (evening items 11 to 13): the email around it, the invoice, the three switches. */
.inv-lead { margin-top: calc(-1 * var(--s-4)); }
.inv-mail { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.mail-row { display: flex; align-items: baseline; gap: var(--s-8); flex-wrap: wrap; font-size: .9rem; }
.mail-row > span { width: 58px; flex: none; color: var(--muted); font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.mail-row small { color: var(--muted); }
.mail-note { width: 100%; font: inherit; font-size: 15px; line-height: 1.4; padding: var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px solid var(--line);
  background: var(--raised); color: var(--ink); white-space: pre-wrap; resize: vertical; }
p.mail-note { border-style: dashed; }
.inv-from { font: 700 .78rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inv-switches { display: grid; gap: var(--s-8); padding: var(--s-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inv-switch { display: flex; align-items: center; gap: var(--s-12); flex-wrap: wrap; min-height: 36px; }
.inv-switch .sw-label { font-weight: 600; }
.sw-in { display: inline-flex; align-items: center; gap: var(--s-4); }
.sw-in input { width: 74px; font-size: 16px; padding: var(--s-4) var(--s-8); border-radius: 8px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.sw-note { color: var(--muted); font-size: .8rem; }
.seg.mini button { padding: var(--s-4) var(--s-12); min-height: 30px; }
.inv-real { justify-self: stretch; text-align: center; text-decoration: none; }
.inv-doors, .doors { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.doors { padding: 0 var(--s-16) var(--s-12) var(--s-20); }
.btn.door { padding: var(--s-8) var(--s-16); min-height: 38px; }
.inv-chip.draft { color: var(--brand-soft); border-color: var(--brand); background: var(--brand-bg); }
.pick-q { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); }
.pick-ev { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4) var(--s-12); text-align: left; padding: var(--s-12) var(--s-12); border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.pick-ev .mono { grid-row: span 2; align-self: center; font-size: .8rem; color: var(--muted); }
.pick-ev small { color: var(--muted); }
.pick-ev[data-not-ready] small { color: var(--amber-ink); }
/* Agreements (evening item 15). */
.attach { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; padding: 0 var(--s-16) var(--s-12) var(--s-20); }
.attach .chip.file { display: inline-flex; align-items: center; gap: var(--s-8); }
.attach .chip.file svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.attach small { color: var(--muted); }
.attach.returned b { color: var(--green); }
.ev-agree { font-size: .9rem; color: var(--ink); }
.ev-agree.returned, .ev-agree.signed { color: var(--green); }
.door-note { align-self: center; font-size: .85rem; color: var(--muted); }
.file-act { cursor: pointer; }

/* Ask with hands: the chip that opens what Ask set up (evening item 16). */
.chat-chip.act { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* The menu's demo rows (item 20), and the share sheet. */
.m-demo { display: grid; gap: var(--s-4); padding-bottom: var(--s-12); margin-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.share-body p { font-size: .98rem; line-height: 1.45; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.share-btns .btn:only-child { grid-column: 1 / -1; }
/* The quiet ask at the bottom of the inbox (the in-list one after a Send went, readyfix 2026-10-16). */
.demo-ask { position: relative; display: grid; gap: var(--s-12); padding: var(--s-16) var(--s-16) var(--s-16); border-radius: 12px; }
.demo-ask p { font: 800 1.08rem/1.3 var(--ui); padding-right: var(--s-24); }
.da-btns { display: grid; gap: var(--s-8); }
.da-btns .btn { min-height: 44px; padding: var(--s-8) var(--s-8); font-size: .88rem; line-height: 1.15; }
.da-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.demo-ask.quiet { background: var(--card); border: 1px dashed var(--raised-line); margin-top: var(--s-12); }
.demo-ask.quiet p { font-size: .95rem; font-weight: 700; color: var(--muted); }
/* The truck profile (item 22) and the Subscription row (item 25). */
.profile-form { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-12) var(--s-12); }
.pf { display: grid; gap: var(--s-4); }
.pf > span { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf input, .pf textarea { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.pf input[readonly] { border-style: dashed; }
.pf-hint { font: 500 .8rem/1.35 var(--ui); color: var(--muted); }   /* a field's one hint under its box (build20, items 10, 11) */
.pf .rate { display: inline-flex; align-items: center; gap: var(--s-4); }
.pf .rate input { width: 120px; }
.profile-form .btn { justify-self: start; padding: var(--s-12) var(--s-20); min-height: 42px; }
img.avatar.logo { object-fit: cover; }
.rigs-link { display: flex; align-items: center; gap: var(--s-12); width: 100%; text-align: left; cursor: pointer; border: 0; background: none; }
.rigs-link span:not(.chev) { color: var(--muted); }
.rigs-link .chev { margin-left: auto; color: var(--muted); }
.sub-row b { font-weight: 700; }
/* What's included (p5-subrow): a settings row that opens in place to the founding card's own list (rules 7, 7b, 21; P9), as a
   plain list: no checks, the name in the row's weight, the line in body ink, 12 apart. */
.sub-incl > .acc-h { cursor: pointer; }
.sub-incl > .acc-h > .rchev { grid-column: 2; }
.sub-incl .acc-in { padding: 0 var(--s-16); }
.sub-incl.open .acc-in { padding: 0 var(--s-16) var(--s-16); }
.sub-incl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-12); }
.sub-incl-list li { font: 400 .9rem/1.4 var(--ui); color: var(--ink); text-wrap: pretty; }
.sub-incl-list b { font-weight: 600; }
/* The levers' editor on Rules (item 24). */
button.lever-info { width: 100%; text-align: left; cursor: pointer; color: inherit; position: relative; padding-right: var(--s-32); }
button.lever-info .chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
/* On the card (build25, item 4): the add-on's row with its second switch beside it, "On the card" over the switch. */
.lever-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-8); }
.lever-row + .lever-row, .lever-row + .lever-edit, .lever-edit + .lever-row { margin-top: var(--s-8); }
.le-card { display: grid; justify-items: center; gap: 0; }
.le-card small { font: 600 12px/1.1 var(--ui); color: var(--muted); white-space: nowrap; }
.le-card-line span { font-weight: 600; }
.lever-info.off { opacity: .6; }
.lever-edit { display: grid; gap: var(--s-12); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card); border: 1.5px solid var(--brand); }
.lever-edit + .lever-info, .lever-info + .lever-edit { margin-top: var(--s-8); }
.le-top { display: flex; justify-content: space-between; align-items: center; }
.set .set-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: var(--s-8); flex-wrap: wrap; justify-content: flex-end; }
.set .set-acts:empty { display: none; }

/* ── Design notes 2026-10-03 ── */
/* The header (item 5): the truck's logo or initials, a 28 px circle, left of its name; a tap opens its profile. */
.brand { display: flex; align-items: center; gap: var(--s-8); min-width: 0; flex: 1 1 auto; }
.avatar-btn { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--raised-line); overflow: hidden;
  background: var(--brand-bg); color: var(--brand-soft); display: grid; place-items: center; cursor: pointer; }
.avatar-btn span { font: 800 .7rem/1 var(--ui); letter-spacing: .02em; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { div.brand { grid-column: 1; grid-row: 1; min-width: 0; } }

/* Contact on the name's line (item 3): the name, Contact beside it, the status pill on the right edge. A long
   name wraps to a second line before anything shrinks. */
/* A chevron on every row that opens in place (item 4): down under the closed row's text, up at the foot of the
   open one. The whole row stays the target; the chevron is what people aim for. */
.card.fold, .done-line { padding-bottom: var(--s-24); }
.row-chev { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 22px; height: 18px; color: var(--muted);
  display: grid; place-items: center; pointer-events: none; }
.row-chev svg, .fold-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fold-chev { display: grid; place-items: center; width: 100%; height: 26px; margin: calc(-1 * var(--s-8)) 0 0; padding: 0 0 var(--s-4); border: 0; background: none;
  color: var(--muted); cursor: pointer; }

/* One Back (item 8): a left chevron and the word, top left, on every screen that sits over another. */
.back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-head { display: flex; align-items: center; gap: var(--s-12); min-height: 40px; }
.sheet-head-title { flex: 1; min-width: 0; font: 700 1rem/1.25 var(--ui); overflow-wrap: anywhere; }
.sheet-head .badge { flex: none; }
.sheet-head .contact-btn { margin: 0 0 0 auto; }
.sheet-title { margin: var(--s-4) 0 0; font: 700 1.15rem/1.3 var(--ui); }
.ev-full h2.ev-title { margin: 0; font: 700 1.2rem/1.25 var(--ui); overflow-wrap: anywhere; }
.wk-nav { display: flex; gap: var(--s-4); flex: none; }
.dv-head .back { grid-area: back; }
/* Between the header and the bar (items 8 and 16): nothing underneath shows or takes a tap, and the bar stays. */
@media (max-width: 899px) {
  .sheet, .sheet.bottom { inset: var(--head-h, 48px) 0 calc(var(--tabs-h) + env(safe-area-inset-bottom)) 0; max-width: 560px; margin: 0 auto;
    max-height: none; border-radius: 0; border-top: 0; box-shadow: none; overflow-y: auto; }
  .sheet .sheet-top { padding-top: var(--s-12); }
  .sheet.bottom .cal-sheet { padding-bottom: var(--s-40); }   /* the last control clears the raised Assistant circle */
  /* The invoice sheet's last row (Send invoice on a preview, The event › on a sent one) cleared the circle's ring by under 8 px
     at the end of its scroll (audit numbers 23): 8 more under it. Its content's padding only; the circle and the bar as they are. */
  .sheet.bottom .inv-sheet { padding-bottom: calc(var(--s-40) + var(--s-8)); }
  .sheet.bottom .sheet-head { position: sticky; top: 0; z-index: 2; margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-16)) 0; padding: var(--s-12) var(--s-16) var(--s-8); background: var(--bg);
    border-bottom: 1px solid var(--line); }
}
.sheet.bottom { background: var(--bg); }
.sheet.bottom > .cal-sheet { flex: none; min-height: 100%; align-content: start; }   /* never shrunk under its content: its end scrolls into view */
/* The bar lives in the header's stacking context: the header sits above the screens over the page, so the raised
   Ask circle is never cut by one (they start under the header and end at the bar). */
.top { z-index: 20; }
/* The bar still ducks under the keyboard (item 16). */
body.kb-open .nav { visibility: hidden; }

/* Unfinished (item 16): kept, and said at the top of its page until finished or discarded. */
.unfinished { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); flex-wrap: wrap; padding: var(--s-12) var(--s-12);
  border-radius: 10px; background: var(--amber-bg); border: 1px solid var(--amber); font-size: .9rem; }
.unfinished b { color: var(--amber-ink); }
.unf-acts { color: var(--muted); font-size: .86rem; }
.unf-acts .linkish { font-size: .9rem; }
.linkish.strong { color: var(--ink); font-weight: 700; }

/* Settings as closed rows (item 6): the inbox's chevron; the open one's form drops out under it. */
.srows { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
/* Settings and Profile as one inset grouped card (third round, item 8): the rows inside, hairlines between them. */
.srows > .srow { border: 0; border-radius: 0; box-shadow: none; }
.srows > .srow + .srow { border-top: 1px solid var(--line); }
.srow { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.srow.open { border-color: var(--raised-line); }
.srow-head { position: relative; display: flex; align-items: baseline; gap: var(--s-8); width: 100%; padding: var(--s-16) var(--s-16) var(--s-24); border: 0; background: none;
  text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.srow.open .srow-head { padding-bottom: var(--s-12); }
.srow-head b { flex: none; font: 700 1rem/1.3 var(--ui); }
.srow-fact { min-width: 0; margin-left: auto; color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-fact + .rchev { margin-left: 0; }   /* the fact at the right, the chevron beside it (the settings lane, the audit's mockup) */
.srow-body { display: grid; gap: var(--s-12); padding: 0 var(--s-12) var(--s-16); }   /* 16 under the last line, as over the title (the settings lane, the mockup) */
.srow-body .group { border-radius: 10px; box-shadow: none; }
.srow-body .truckhead { padding: var(--s-4) var(--s-4) 0; }
.srow-body .profile-form { padding: 0 var(--s-4) var(--s-4); }
.srow-body .fold-chev { margin: calc(-1 * var(--s-4)) 0 0; }
.truckhead .avatar { overflow: hidden; }
.truckhead .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rigs-lead { color: var(--muted); font-size: .92rem; line-height: 1.45; padding: 0 var(--s-4); }
/* A row with a question mark beside it on the menu (Rules). */
.m-row-pair { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-8); }
.m-row-pair .m-row .chev { display: none; }

/* Invoices (items 9 to 15): lines that say their kind, every switch, the message under the total, View invoice. */
.inv-line.edit { grid-template-columns: 1fr 1fr; }
.li-kinds { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; }
.li-kind { border: 1.5px solid var(--line); background: var(--raised); color: var(--muted); border-radius: 999px; padding: var(--s-4) var(--s-12);
  font: 600 .8rem/1.1 var(--ui); cursor: pointer; }
.li-kind[aria-checked="true"] { border-color: var(--brand); color: var(--brand-soft); background: var(--brand-bg); }
.li-kinds .li-del { margin-left: auto; width: 30px; height: 30px; }
.li-f.wide { grid-column: 1 / -1; }
.inv-row .li-how { display: block; color: var(--muted); font: 500 .78rem/1.3 var(--ui); }
.inv-switch.missing .sw-label { color: var(--muted); }
.inv-switch.missing .switch { opacity: .45; cursor: default; }
.inv-msg-edit { display: grid; gap: var(--s-8); border-top: 1px solid var(--line); padding-top: var(--s-12); }
.msg-chips { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.msg-chip { border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); border-radius: 999px; padding: var(--s-8) var(--s-12);
  font: 600 .82rem/1.1 var(--ui); cursor: pointer; }
.msg-chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-soft); background: var(--brand-bg); }
.msg-chips .linkish { color: var(--brand-soft); font-weight: 600; }
.msg-save { display: flex; gap: var(--s-8); align-items: center; flex-wrap: wrap; }
.msg-save input { flex: 1; min-width: 160px; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 8px; border: 1.5px solid var(--brand);
  background: var(--raised); color: var(--ink); }
.msg-save .btn { min-height: 38px; padding: var(--s-8) var(--s-16); }
.inv-msg { white-space: pre-wrap; font-size: .92rem; line-height: 1.45; border-top: 1px solid var(--line); padding-top: var(--s-12); }
.inv-send-btns { display: grid; gap: var(--s-8); }
.inv-send-btns .btn { min-height: 46px; }
/* The invoice as a picture (design notes 2026-10-04 second round, items 7 to 11): white paper in the rail's style, the
   Pay button there as the customer sees it, dimmed and inert; the status strip above it. */
/* .inv-paper: the paper the customer gets, white in dark mode on purpose (design notes 2026-10-04 third round, item 12.8). Not a theme bug: leave it light. */
.inv-paper { display: grid; gap: var(--s-16); padding: var(--s-24) var(--s-20) var(--s-20); border-radius: 12px; background: #fff; color: #1d1a17;
  border: 1px solid var(--line); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.inv-paper small { font: 600 .68rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #7a736b; }
.ip-head { display: grid; justify-items: center; gap: var(--s-4); text-align: center; }
.ip-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s-4); }
.ip-truck { font: 800 1.1rem/1.25 var(--ui); overflow-wrap: anywhere; }
.ip-amount { display: grid; justify-items: center; gap: var(--s-4); }
.ip-amount b { font: 800 2rem/1.1 var(--ui); letter-spacing: -.01em; }
.ip-amount span { color: #6f6861; font-size: .9rem; }
.ip-amount .ip-standing.paid, .ip-amount .ip-standing.closed { font-weight: 700; }   /* where it stands, on its face (audit numbers 7) */
.ip-amount .ip-standing.paid { color: #1f7a3f; }   /* the light theme's --green: the paper stays light in dark mode */
.ip-meta { display: flex; justify-content: space-between; gap: var(--s-12); padding-top: var(--s-12); border-top: 1px solid #ece6dc; }
.ip-meta > div { display: grid; gap: var(--s-4); min-width: 0; font-size: .88rem; color: #6f6861; overflow-wrap: anywhere; }
.ip-meta b { color: #1d1a17; font-size: .98rem; }
.ip-meta .r { text-align: right; justify-items: end; }
.ip-meta .ip-dom { display: inline-block; max-width: 100%; }   /* the address wraps at the "@", then at a dot (build26, item 2) */
.ip-lines, .ip-totals { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ip-lines th { text-align: left; padding: var(--s-8) 0; border-bottom: 1.5px solid #e4ded3; }
.ip-lines th small, .ip-lines th { font: 600 .68rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #7a736b; }
.ip-lines td { padding: var(--s-12) 0; border-bottom: 1px solid #f0ebe3; vertical-align: top; }
.ip-lines td small { display: block; margin-top: var(--s-4); font: 500 .8rem/1.3 var(--ui); letter-spacing: 0; text-transform: none; color: #7a736b; }
.ip-lines .r, .ip-totals .r { text-align: right; white-space: nowrap; padding-left: var(--s-12); }
.ip-totals td { padding: var(--s-4) 0; color: #4b4540; vertical-align: top; }
/* The travel fee's line under its label ("15 miles beyond Columbia x $1.50"): the line items' own small, whole and wrapping, its
   amount level with "Travel fee" (walk1017b, the owner's iPhone 10/17: it showed cut in half). A solid ink, no opacity: a
   see-through line in a scrolled sheet is drawn on its own layer on iPhone, and that layer was clipped. */
.ip-totals td small { display: block; margin-top: var(--s-4); font: 400 .75rem/1.35 var(--ui); letter-spacing: 0; text-transform: none;
  color: #7a736b; white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.ip-totals .ip-total td { padding-top: var(--s-8); border-top: 1.5px solid #1d1a17; font-weight: 800; font-size: 1.05rem; color: #1d1a17; }
.ip-memo { display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-16); border-radius: 8px; background: #f6f3ee; }
.ip-memo p { white-space: pre-wrap; font-size: .92rem; line-height: 1.45; }
.ip-from { display: grid; gap: 0; justify-items: center; text-align: center; font-size: .8rem; color: #7a736b; padding-top: var(--s-12);
  border-top: 1px solid #ece6dc; overflow-wrap: anywhere; }
.ip-from b { color: #4b4540; }
/* The brand line, last on the paper (docs/design-notes-2026-10-08-brand-footer.md): small and in the paper's own gray, the name
   underlined, as the invoice's email ends. Its room above is the paper's gap. */
.ip-sent { text-align: center; font: 500 .72rem/1.4 var(--ui); color: #7a736b; }
.ip-sent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* The status strip, the first thing on an invoice page (item 7): what happened and when, Remind beside it. */
.inv-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-12) var(--s-12); border-radius: 10px;
  background: var(--raised); font: 700 .92rem/1.3 var(--ui); }
.inv-strip span { min-width: 0; }
/* The Invoices lane (pass-2 items 2 and 3): the strip in its tag's color, Past due red, Open amber, Paid green, the rest gray;
   Remind (outlined, 44 tall) only on a Past due one. */
.inv-strip .btn { flex: none; min-height: 44px; padding: 0 var(--s-16); }
.inv-strip.red { background: var(--red-bg); color: var(--red); }
.inv-strip.amber { background: var(--amber-bg); color: var(--amber-ink); }
.inv-strip.green { background: var(--green-bg); color: var(--green); }
.inv-strip.gray { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.notice { padding: var(--s-8) var(--s-12); border-radius: 10px; background: var(--amber-bg); color: var(--ink); font-size: .86rem; line-height: 1.4; }
.add-row { color: var(--brand-soft); font-weight: 600; margin: var(--s-4) var(--s-4) 0; text-decoration: none; }

/* The company beside the name (item 19), and Companies (item 20). */
.co { font-weight: 500; color: var(--muted); font-size: .92em; }
.card.fold .l b .co, .row .l b .co { font-size: .9em; }
.ev-bar .seg + .seg { margin-left: auto; }
.co-up { margin-top: var(--s-4); font-size: .9rem; }
.company-page .person-head { display: grid; gap: var(--s-4); }
.company-page .person-head .linkish { justify-self: start; }
.co-person { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.co-person .l { display: grid; gap: 0; min-width: 0; cursor: pointer; }
.co-person .l span, .co-person .l small { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.co-acts { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); }
.co-line { font-weight: 600; color: var(--ink); opacity: .8; font-size: .95rem; margin-top: calc(-1 * var(--s-4)); }
.ev.still { cursor: default; opacity: .85; }
.co-acts .contact-btn { margin: 0; }
.co-confirm { grid-column: 1 / -1; display: grid; gap: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--line); font-size: .88rem; }
.co-adds { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.co-adds .btn { min-height: 40px; padding: var(--s-8) var(--s-16); }
.co-form { display: grid; gap: var(--s-8); padding: var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.co-rename { display: flex; gap: var(--s-8); }
.co-rename input { flex: 1; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px solid var(--brand); background: var(--raised); color: var(--ink); }

/* Help (item 26): three equal buttons pinned under the header, the conversation (or the Guide) under them, the box at
   the bottom on the keyboard. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rule-label { grid-column: 1 / -1; font: 700 .95rem/1.2 var(--ui); padding: 0 var(--s-4); }

/* Add to your home screen (item 31): the menu row's two taps, and the inbox card. */
.m-home-how { margin: 0 var(--s-8) var(--s-8) 54px; font-size: .86rem; line-height: 1.4; color: var(--muted); }
/* The home screen row (p5-todayhide; rules 7, 7b; P9): a Mailbox row directly above Today, one line folded; open, the steps and
   then the quiet link row, Done · Not now. The steps keep the card's words and size. */
.card.home-card .mb-body .home-how { color: var(--muted); font-size: .86rem; }
.card.mbx.home-card > .urow-h { grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "name chev"; padding-block: var(--s-4); }
/* On Sign in, under the form, the form's width (rule 21: 24 between groups). */
.login-home { width: 100%; max-width: 420px; margin: var(--s-24) auto 0; text-align: left; }
.home-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #ffb224; background: color-mix(in srgb, #ffb224 17%, transparent); }
.home-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* A laptop's narrower screen (Build 31 item 8): the side columns take what the truck and the toggle need and the bar centres in
   the rest, so Menu never runs under them (at 1024 it did). */
@media (min-width: 900px) and (max-width: 1279px) {
  .top { grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr) auto; column-gap: var(--s-12); }   /* a long name gives way, never the bar */
  .top .nav { justify-self: center; }
  .nav button { padding: 0 var(--s-12); }
}
@media (min-width: 900px) and (max-width: 979px) { .nav { gap: 0; } .nav button { padding: 0 var(--s-8); } }
/* Desktop: the centered panel stays under the header, which now sits above the screens over the page. */
@media (min-width: 900px) {
  .sheet.bottom { top: calc(50% + var(--top-h) / 2); max-height: calc(100dvh - var(--top-h) - 32px); }
}

/* ── Design notes 2026-10-03 evening, items 10, 11 and 32 ── */
/* Reach out: one row, closed until tapped, on a customer, a company and an event. */
.reach { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.reach-head { width: 100%; display: grid; grid-template-columns: 34px 1fr; column-gap: var(--s-12); align-items: center; padding: var(--s-12) var(--s-12) var(--s-8);
  border: 0; background: none; text-align: left; cursor: pointer; color: inherit; position: relative; }
.reach-head .row-chev { grid-column: 1 / -1; }
.reach.open .reach-head { padding-bottom: var(--s-12); }
.rh-tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #a3e635; background: color-mix(in srgb, #a3e635 15%, transparent); }
.rh-tile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rh-text { display: grid; gap: var(--s-4); min-width: 0; }
.rh-text b { font: 600 .95rem/1.25 var(--ui); }
.rh-text small { color: var(--muted); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.reach-form { display: grid; gap: var(--s-12); padding: 0 var(--s-12) var(--s-12); }
.reach-chips { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.reach-form input, .reach-form textarea, .cust-form input { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.reach-note { margin: 0 var(--s-12) var(--s-12) var(--s-16); padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--raised); border: 1px dashed var(--raised-line); display: grid; gap: var(--s-8); }
.reach-note .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reach-note p { font-size: .92rem; line-height: 1.45; }
.reach-note .chip { justify-self: start; }
.reach-ask { margin: 0 var(--s-16) var(--s-12) var(--s-20); padding: var(--s-8) var(--s-12); border-radius: 10px; background: var(--brand-bg); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); font-weight: 600; font-size: .9rem; }
.ra-btns { display: flex; gap: var(--s-8); }
/* The quiet card and its list. */
.notice-card { display: grid; grid-template-columns: 34px 1fr; gap: var(--s-12); align-items: start; padding: var(--s-12) var(--s-16); border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.notice-card b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.notice-card .home-icon { color: #a3e635; background: color-mix(in srgb, #a3e635 15%, transparent); }
.notice-card .nc-btns { display: flex; gap: var(--s-8); margin-top: var(--s-8); }
.notice-card .nc-btns .btn { min-height: 38px; padding: var(--s-8) var(--s-16); font-size: .86rem; }
.quiet-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-12) var(--s-12); border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); }
.quiet-row .l { display: grid; gap: var(--s-4); min-width: 0; border: 0; background: none; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.quiet-row .l span { color: var(--muted); font-size: .82rem; }
.quiet-row .btn { min-height: 38px; padding: var(--s-8) var(--s-16); font-size: .86rem; }
/* Edit and Add customer. */
.ph-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-12); }
.cust-form { display: grid; gap: var(--s-12); padding: var(--s-12); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.add-cust { justify-self: start; min-height: 40px; padding: var(--s-8) var(--s-16); }
.inline-n span { display: block; line-height: 2.2; }
.inline-n input { width: 3.2em; text-align: center; font-size: 16px; padding: var(--s-4) var(--s-4); border-radius: 8px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
/* The lock on each invoice switch (design notes 2026-10-03 evening, item 12), at the row's right edge, and + Add a fee (13). */
.inv-switch { position: relative; padding-right: var(--s-40); }
.sw-lock { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sw-lock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sw-lock[aria-pressed="true"] { color: var(--brand-soft); background: var(--brand-bg); }
.inv-switches .add-fee { justify-self: start; margin: var(--s-4) 0 0; color: var(--brand-soft); font-weight: 600; text-decoration: none; }
.inv-add-fee { display: grid; grid-template-columns: 1fr auto 86px; gap: var(--s-8); align-items: center; padding: var(--s-8) 0 var(--s-4); }
.inv-add-fee input { min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 8px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.inv-add-fee .tf-actions { grid-column: 1 / -1; }
/* The hands under the switches (design notes 2026-10-08-invoice-extras): + Discount and No fee this time, each its own row. */
.inv-hands { display: grid; gap: var(--s-8); padding: 0 0 var(--s-8); border-bottom: 1px solid var(--line); }
.inv-hands:empty { display: none; }
.hand-btns { display: flex; flex-wrap: wrap; gap: 0 var(--s-24); }
.hand-btns .linkish { color: var(--brand-soft); font-weight: 600; text-decoration: none; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
.inv-hand { display: grid; gap: var(--s-8); padding: var(--s-8) 0 0; }
.inv-hand .hand-top { display: flex; align-items: center; gap: var(--s-12); flex-wrap: wrap; }
.inv-hand input { min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 8px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.inv-hand [data-disc-value] { width: 96px; }
.inv-hand .hand-row { display: flex; align-items: center; gap: var(--s-12); }
.inv-hand .hand-row input { flex: 1; }
.inv-hand .linkish { min-height: 44px; display: inline-flex; align-items: center; }   /* 44 tall, like every control */

/* ── Income (design notes 2026-10-03 evening, items 14 and 15) ── */
.month-line { margin: 0; padding: 0 var(--s-4); font: 700 .95rem/1.3 var(--ui); color: var(--ink); }
.dv-income, .ev-income { font: 600 .78rem/1 var(--ui); color: var(--green); white-space: nowrap; }
.dv-ev .dv-income { color: inherit; opacity: .85; }
.inc-ask { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-16); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.inc-ask b { font: 700 1rem/1.25 var(--ui); }
.inc-ask small { color: var(--muted); font-size: .82rem; }
.inc-ring { color: var(--muted); font-size: .85rem; padding: 0 var(--s-4); }
.inc-bar { flex-wrap: nowrap; }
.inc-nav { display: inline-flex; align-items: center; gap: var(--s-8); min-width: 0; }
.inc-label { font: 700 .92rem/1.2 var(--ui); white-space: nowrap; }
.inc-nav .icon:disabled { opacity: .35; cursor: default; }
.inc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s-8); }
.inc-tile { display: grid; gap: var(--s-4); padding: var(--s-12); border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.inc-tile small { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inc-tile b { font: 700 1.15rem/1.15 var(--ui); overflow-wrap: anywhere; }
.inc-tile.diff b { color: var(--green); }
.inc-costs { color: var(--muted); font-size: .84rem; padding: 0 var(--s-4); }
.inc-reports { justify-self: start; }
.inc-rows { display: grid; gap: var(--s-8); }
.inc-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); width: 100%; padding: var(--s-12) var(--s-12); border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: inherit; text-align: left; cursor: pointer; }
.inc-l { display: grid; gap: var(--s-4); min-width: 0; }
.inc-l b { font: 600 .95rem/1.25 var(--ui); overflow-wrap: anywhere; }
.inc-l small { color: var(--muted); font-size: .8rem; }
.inc-need { justify-self: start; margin-top: var(--s-4); font: 600 .72rem/1 var(--ui); color: var(--amber-ink); background: var(--amber-bg); border-radius: 999px; padding: var(--s-4) var(--s-12); }
.inc-num { display: grid; justify-items: end; gap: var(--s-4); flex: none; }
.inc-num b { font: 700 .98rem/1.1 var(--ui); }
.inc-num small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.inc-out { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.inc-mile { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-16); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.inc-mile p { color: var(--muted); font-size: .86rem; }
/* Enter your sales, the gas price and each rig's miles per gallon. */
.sales-form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-8) var(--s-12); padding: var(--s-12) 0; border-top: 1px solid var(--line); }
.sales-form .label { grid-column: 1 / -1; font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sales-form .rate { grid-column: 1 / 3; display: inline-flex; align-items: center; gap: var(--s-4); font-weight: 600; }
.sales-form input, .gas-row input, .rig-mpg input { width: 100%; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.sales-form .btn { min-height: 40px; padding: var(--s-8) var(--s-16); }
.sales-form .hint { grid-column: 1 / -1; font-size: .8rem; }
.sales-form.inline { margin: var(--s-8) 0 0; padding: var(--s-8) 0 0; width: 100%; }
.gas-row { display: flex; align-items: center; gap: var(--s-12); }
.gas-row .rate { display: inline-flex; align-items: center; gap: var(--s-4); flex: 1; }
.gas-row input { width: 6em; flex: none; }
.gas-row[data-food-cost] input { width: 11em; max-width: 100%; box-sizing: border-box; }
.rig-mpg { display: inline-flex; align-items: center; gap: var(--s-8); grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.rig-mpg input { width: 5em; flex: none; padding: var(--s-4) var(--s-8); }
.setup-mpg { display: grid; grid-template-columns: 1fr 6em; gap: var(--s-12); color: var(--ink); font-size: .95rem; }
.rig-row { grid-template-areas: "name acts" "mpg mpg"; row-gap: var(--s-8); }
.rig-row .rig-name { grid-area: name; grid-row: auto; }
.rig-row .rig-acts { grid-area: acts; grid-row: auto; }
.rig-row .rig-mpg { grid-area: mpg; }

/* ── Team, Who worked it, Documents (design notes 2026-10-03 evening, items 16 to 18) ── */
.srow.jump .srow-head .chev { margin-left: auto; color: var(--muted); font-size: 1.1rem; }
.team-page .lead, .docs-page .lead { color: var(--muted); font-size: .9rem; padding: 0 var(--s-4); }
.labor { display: grid; gap: var(--s-8); padding: var(--s-12) 0; border-top: 1px solid var(--line); }
.labor .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Who worked it, one shape (design notes 2026-10-04-e, item 7): the picker and a small Remove on the first line; the rate,
   the hours and the pay at the right on the second; the total line under two or more rows. */
.labor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who who x" "rate hours pay";
  align-items: center; gap: var(--s-8) var(--s-12); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); font-size: .92rem; }
.labor-row [data-l-who] { grid-area: who; }
.labor-row .l-x { grid-area: x; font-size: .85rem; color: var(--muted); }
.labor-row .l-rate { grid-area: rate; }
.labor-row .l-hours { grid-area: hours; }
.labor-row .l-pay { grid-area: pay; justify-self: end; font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.l-rate, .l-hours { display: inline-flex; align-items: center; gap: var(--s-4); color: var(--muted); }
.l-rate input, .l-hours input { width: 4.5em; }
.labor-row select, .labor-row input, .doc-form select { min-width: 0; min-height: 44px; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 10px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.labor-total { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-12); align-items: center; font-weight: 600; }
.labor-total b { min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.labor .l-add { justify-self: start; font-weight: 600; color: var(--brand-soft); }
.add-doc { justify-self: start; }
.doc-form input[type="date"], .doc-form input[name="name"] { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.doc-file { justify-self: start; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-12) var(--s-12); border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); }
.doc-row.due { border-left-color: var(--amber-ink); }
.doc-row.lapsed { border-left-color: var(--red); }
.doc-row.none { border-left-color: var(--line); }
.doc-row.offered { border-left-color: var(--amber-ink); flex-wrap: wrap; }
.doc-row.signed { border-left-color: var(--green); }   /* Signed agreements (Build 33 item 4) */
/* Signed from the link, where it shows (Build 33 item 5): the event sheet's row, a customer's event, the conversation's line. */
.ev-agree { display: flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 700; text-decoration: none; font-size: .85rem; }
.msg-note { justify-self: center; text-align: center; color: var(--muted); font-size: .82rem; font-weight: 600; padding: var(--s-4) var(--s-12);
  border-radius: 999px; background: var(--raised); border: 1px solid var(--line); margin: var(--s-4) auto; max-width: 90%; }
.doc-row.offered .l b { font-weight: 600; }
.offer-btns { display: flex; gap: var(--s-8); flex: 1 0 100%; }
.offer-btns .btn { flex: 1; min-height: 44px; }
.doc-row .l { display: grid; gap: var(--s-4); min-width: 0; border: 0; background: none; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.doc-row .l span { color: var(--muted); font-size: .8rem; }
.doc-row .l small { font-size: .82rem; font-weight: 600; }
.doc-row.due .l small { color: var(--amber-ink); }
.doc-row.lapsed .l small { color: var(--red); }
/* Profile (design notes 2026-10-03 evening, items 19 to 21): Terms and Privacy as rows, Delete my account set apart. */
.set.link-row { text-decoration: none; color: inherit; grid-template-columns: 1fr auto; }
.set.link-row .chev { color: var(--muted); font-size: 1.1rem; }
.set.link-row > .chev { grid-column: 2; }   /* the chevron at the right, not under the name (.set > span is column 1) */
.danger-zone { border-left: 3px solid var(--red); }
.danger-zone input, form[data-email-form] input { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.access-consent { text-align: center; font-size: .82rem; }
.access-consent a { color: var(--brand-soft); }

/* Help (the help lane, 2026-10-09; docs/design-audit-2026-10-08.md "Help"): the head, the ask box with the answer under it, the
   Common questions opening in place, Report a problem and Suggest an idea, the person line at the foot (P5). Rule 21: 24
   between groups, 8 from a title to its group, 12 inside a card; every tappable 44 tall. A page in the flow, not on the keyboard. */
.help-page { display: grid; gap: var(--s-24); align-content: start; }
.help-ask { display: grid; gap: var(--s-12); }
.help-page .compose.help-box { padding: 0; background: none; border-top: 0; }
.help-page .compose.help-box:last-child { padding-bottom: 0; }
.help-answer:empty { display: none; }
.help-answer .chat-thread { padding: 0; overflow: visible; }
.help-qs { display: grid; gap: var(--s-8); }
.help-qs > .divider { padding: 0 var(--s-4); }
.help-common { display: grid; gap: var(--s-8); }
/* A question (rules 7, 7b; P9): the row is the button, the one chevron at its right edge turning as the answer opens under it. */
.hq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.hq.open { box-shadow: var(--shadow); border-color: var(--field-line); }
.hq-h { display: flex; align-items: center; gap: var(--s-8); min-height: 44px; padding: var(--s-12) var(--s-8) var(--s-12) var(--s-16); cursor: pointer;
  font: 600 .95rem/1.3 var(--ui); color: var(--ink); }
.hq-h:active { background: var(--bg); }
.hq-q { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hq-h > .rchev { width: 28px; height: 28px; margin: 0; }
.hq .acc-in { padding: 0 var(--s-16); }
.hq.open .acc-in { border-top: 1px solid var(--line); padding: var(--s-12) var(--s-16) var(--s-16); }
.hq-a { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.hq-a .help-link { min-height: 0 !important; line-height: inherit; vertical-align: baseline; padding-block: var(--s-12); margin-block: calc(-1 * var(--s-12)); }
.help-q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); width: 100%; min-height: 44px;
  padding: var(--s-12) var(--s-8) var(--s-12) var(--s-16); border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .95rem/1.3 var(--ui); text-align: left; cursor: pointer; }
.help-q > .rchev { width: 28px; height: 28px; margin: 0; }
/* Report a problem and Suggest an idea: two equal halves, quiet (the page's one filled button is the ask box's send, P2). */
.help-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.help-btns .btn { min-height: 44px; padding: var(--s-8); font-size: .9rem; line-height: 1.2; }
/* The person line, at the foot (P5): the address is the link, its tap target 44 tall without moving the line. */
.help-person { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--muted); text-align: center; text-wrap: balance; }
.help-person a { color: var(--brand-soft); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px;
  margin-block: calc(-1 * var(--s-12)); vertical-align: middle; }
.help-page > .legal-links { margin-top: calc(-1 * var(--s-12)); }
/* Leave feedback (pass-2 item 10): the two-way choice, the one box under it, Send under that. */
.feedback-page { display: grid; gap: var(--s-12); align-content: start; }
.lf-form { display: grid; gap: var(--s-12); }
.lf-form textarea { width: 100%; min-height: 148px; padding: var(--s-12) var(--s-16); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); font: 400 16px/1.5 var(--ui); resize: vertical; }
.lf-form textarea:focus { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-color: var(--brand-soft); }
.lf-send { min-height: 44px; width: 100%; }
/* The demo's Leave feedback from the founder (10/11): his note, the questions (taps first, every one optional), Send, his
   signature, and the way to Something's wrong. */
.ff-form { gap: var(--s-20); }
.ff-note { margin: 0; font-size: 1rem; line-height: 1.5; }
.ff-q { display: grid; gap: var(--s-8); margin: 0; padding: 0; border: 0; min-width: 0; }
.ff-label { padding: 0; font: 700 1rem/1.3 var(--ui); color: var(--ink); }
.ff-any { font-weight: 500; color: var(--muted); font-size: .9rem; }
.ff-form textarea { min-height: 88px; }
.ff-form input[type="text"] { width: 100%; min-width: 0; font: 400 16px/1.3 var(--ui); padding: var(--s-12) var(--s-16); border-radius: 10px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.ff-form .ff-other { margin-top: var(--s-4); }
.ff-form input[type="text"]:focus { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-color: var(--brand-soft); }
.ff-sign { display: grid; gap: 0; padding-top: var(--s-8); }
.ff-sign p { margin: 0; line-height: 1.45; }
.ff-sign .ff-name { font-weight: 700; margin-top: var(--s-4); }
.ff-sign .ff-role { color: var(--muted); }
.ff-sign .linkish { margin-top: var(--s-4); }
.ff-problem { margin: 0; color: var(--muted); font-size: .92rem; }
/* Revise (design notes 2026-10-03 evening, item 33): the changed words lit for a second, then plain. */
mark.just-changed { color: inherit; border-radius: 3px; animation: just-changed 1.6s ease-out forwards; }
@keyframes just-changed { 0%, 35% { background: color-mix(in srgb, var(--amber) 45%, transparent); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { mark.just-changed { animation: none; background: color-mix(in srgb, var(--amber) 25%, transparent); } }
.actions { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.actions .btn.tool { padding-left: var(--s-4); padding-right: var(--s-4); font-size: .86rem; gap: var(--s-4); }

/* The question marks (design notes 2026-10-03 night, item 3): a small round "?" beside a word, and its two lines dropped
   under the row, quiet, until the next tap folds them. */
.q-btn { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 0 0 var(--s-4); padding: 0; vertical-align: 1px;
  border-radius: 50%; border: 1.3px solid currentColor; background: none; color: var(--muted); cursor: pointer;
  font: 700 .66rem/1 var(--ui); letter-spacing: 0; text-transform: none; }
.q-btn[aria-expanded="true"] { color: var(--brand-soft); opacity: 1; }
.explain { margin: var(--s-4) var(--s-4) var(--s-8); padding: var(--s-8) var(--s-12); border-radius: 10px; background: var(--brand-bg); color: var(--ink);
  font: 500 .82rem/1.4 var(--ui); letter-spacing: 0; text-transform: none; }
.reach-row { display: flex; align-items: center; }
.reach-row > .reach-head { flex: 1; min-width: 0; }
.reach-row > .q-btn { margin: 0 var(--s-12) 0 var(--s-4); }
.inv-switch > .q-btn { margin-left: var(--s-4); }
/* Export the customer list (night item 4): Income's two buttons, under People and Companies. */
.cust-out { margin: var(--s-8) 0 var(--s-8); }

/* The survey (night item 7): the demo ask's card, quieter; one question at a time, the choices as chips. */
.survey { display: grid; gap: var(--s-12); padding: var(--s-16) var(--s-16) var(--s-12); border-radius: 12px; background: var(--brand-bg); margin: var(--s-4) 0 var(--s-8); }
.survey .sv-ask { font: 800 1.02rem/1.3 var(--ui); }
.survey .sv-step { font: 600 .7rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.survey .sv-q { font: 700 1rem/1.3 var(--ui); }
.survey .sv-btns { display: flex; gap: var(--s-8); justify-content: flex-end; }
.survey .sv-box { display: grid; gap: var(--s-8); }
.survey textarea { width: 100%; border-radius: 10px; border: 1px solid var(--field-line); background: var(--card); color: var(--ink);
  padding: var(--s-8) var(--s-12); font: 500 .95rem/1.4 var(--ui); resize: vertical; }
.survey.done { background: var(--card); border: 1px solid var(--line); }

/* The admin page (night item 8): one row each, Done on the left, the kind as a small badge. */
.adm-counts { margin: 0 var(--s-4) var(--s-12); font: 700 .9rem/1.4 var(--ui); color: var(--muted); }
/* The build at the admin page's foot (pass 3 item 17): the Menu's foot no longer carries it. */
.adm-ver { margin: var(--s-24) 0 0; text-align: center; font: 400 .72rem/1.4 var(--ui); color: var(--muted); }
/* Each truck's drafts last week (drafter lane 2, item 10): one quiet line a truck under the counts. */
.adm-drafts { margin: 0 var(--s-4) var(--s-12); font: 500 .85rem/1.4 var(--ui); color: var(--muted); }
.adm-drafts b { color: var(--ink); font-weight: 700; }
/* The demo by day (Build 35 item 6): a small table under the counts, the totals row on top. */
.adm-days { width: 100%; margin: 0 0 var(--s-12); border-collapse: collapse; font: 500 .82rem/1.3 var(--ui); color: var(--ink);
  font-variant-numeric: tabular-nums; }
.adm-days th, .adm-days td { padding: var(--s-4) var(--s-4); text-align: right; border-bottom: 1px solid var(--line); }
.adm-days th:first-child { text-align: left; font-weight: 600; }
.adm-days thead th { color: var(--muted); font-weight: 700; }
.adm-days .adm-total th, .adm-days .adm-total td { font-weight: 800; }
.adm-note { margin: 0 var(--s-4) var(--s-12); font-size: .85rem; color: var(--amber-ink); }
/* Ask's "I didn't get that" lines (Build 38 item 13): above the list, by truck. */
.adm-ask { margin: 0 0 var(--s-16); }
.adm-h { margin: 0 var(--s-4) var(--s-4); font: 800 1rem/1.3 var(--ui); color: var(--ink); }
.adm-sub { margin: 0 var(--s-4) var(--s-8); font-size: .8rem; color: var(--muted); }
.adm-ask-truck h3 { margin: var(--s-8) var(--s-4) var(--s-4); font: 700 .9rem/1.3 var(--ui); color: var(--ink); }
.adm-ask-truck h3 small { margin-left: var(--s-4); font-weight: 600; color: var(--muted); }
.adm-ask-truck ul { margin: 0 0 var(--s-8); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.adm-ask-truck li { display: grid; gap: var(--s-4); padding: var(--s-8) var(--s-4); border-bottom: 1px solid var(--line); }
.adm-ask-line { overflow-wrap: anywhere; font-size: .9rem; }
.adm-ask-truck li small { color: var(--muted); font-size: .75rem; }
.adm-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-12); padding: var(--s-12); margin-bottom: var(--s-8); border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); }
.adm-row.done { opacity: .55; }
/* The support loop's page (/admin/support, app/public/support.js): one ticket a card, its reply below its Details. */
.adm-support { margin: 0 var(--s-4) var(--s-8); font: 700 .95rem/1.4 var(--ui); }
.adm-support a, .adm-counts a { color: var(--brand-soft); }
.sup-list { display: grid; gap: var(--s-8); margin-bottom: var(--s-16); }
.sup-list .adm-row { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.adm-kind.k-connect { background: var(--red-bg); color: var(--red); }
.adm-kind.k-sync { background: var(--amber-bg); color: var(--amber-ink); }
.sup-row .adm-kind.k-problem { background: var(--blue-bg); color: var(--blue); }
.sup-words { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 .85rem/1.4 var(--ui); color: var(--ink); }
.sup-cause { margin: 0; font: 700 .85rem/1.35 var(--ui); color: var(--ink); }
.sup-cause.unknown { color: var(--amber-ink); }
.sup-subject { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sup-details summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font: 700 .88rem/1.2 var(--ui); color: var(--brand-soft); }
.sup-details h4 { margin: var(--s-8) 0 var(--s-4); font: 700 .68rem/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sup-pre { margin: 0; max-height: 320px; overflow: auto; padding: var(--s-8); border-radius: 8px; border: 1px solid var(--line); background: var(--raised);
  white-space: pre-wrap; overflow-wrap: anywhere; font: 500 .78rem/1.45 var(--ui); color: var(--ink); }
.sup-draft { display: grid; gap: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--line); }
.sup-to { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.sup-draft textarea { font: 400 15px/1.45 var(--ui); resize: vertical; }
.sup-err { margin: 0; color: var(--red); font: 600 .85rem/1.35 var(--ui); }
.sup-actions { display: flex; align-items: center; gap: var(--s-12); }
.sup-send { flex: 1; min-width: 0; }
.sup-close { flex: none; min-height: 44px; padding: 0 var(--s-8); border: 0; background: none; cursor: pointer; font: 600 .92rem/1 var(--ui);
  color: var(--muted); text-decoration: underline; }
.adm-done { display: grid; justify-items: center; gap: var(--s-4); font: 600 .65rem/1 var(--ui); color: var(--muted); }
.adm-done input { width: 20px; height: 20px; accent-color: var(--brand); }
.adm-main { display: grid; gap: var(--s-4); min-width: 0; }
.adm-top { display: flex; gap: var(--s-8); align-items: center; min-width: 0; }
.adm-top b { overflow-wrap: anywhere; }
.adm-kind { flex: none; padding: var(--s-4) var(--s-8); border-radius: 999px; font: 700 .66rem/1.4 var(--ui); letter-spacing: .04em;
  text-transform: uppercase; background: var(--raised); color: var(--muted); }
.adm-kind.k-lead { background: var(--green-bg); color: var(--green); }
.adm-kind.k-problem { background: var(--red-bg); color: var(--red); }
.adm-kind.k-idea { background: var(--amber-bg); color: var(--amber-ink); }
.adm-kind.k-survey { background: var(--blue-bg); color: var(--blue); }
.adm-meta { color: var(--muted); font-size: .78rem; }
.adm-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-err { font: 500 .75rem/1.3 var(--ui); color: var(--muted); overflow-wrap: anywhere; }
.adm-fields { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4) var(--s-12); margin: var(--s-4) 0 0; font-size: .85rem; }
.adm-fields dt { color: var(--muted); }
.adm-fields dd { margin: 0; overflow-wrap: anywhere; }
.adm-fields.qa { grid-template-columns: 1fr; gap: 0; }   /* a survey's question, its answer under it */
.adm-fields.qa dd { margin: 0 0 var(--s-8); font-weight: 600; }

/* Set aside (night item 9): each skipped message with its one line of why, Make it a card, and "Found in spam". */
.card.line.aside-line { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.aside-line .aside-why { color: var(--muted); font-size: .8rem; }
.aside-line .aside-acts { grid-column: 1 / -1; display: flex; gap: var(--s-12); align-items: center; margin-top: var(--s-8); }
.spam-pill { justify-self: start; display: inline-block; width: max-content; padding: 0 var(--s-8); border-radius: 999px;
  background: var(--amber-bg); color: var(--amber-ink); font: 700 .68rem/1.5 var(--ui); letter-spacing: .03em; }
.not-booking { margin: var(--s-8) 0 0; }

/* ── Design notes 2026-10-04 afternoon ── */
/* A Help answer's link (item 3): the words in link color, inline, a tap opens that screen. */
.help-link { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--brand-soft); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* At the answer's own line height (polish 1, the layout audit's 6.1 and 13.1): the 44 point floor made the link's line stand
   apart. The box still reaches past 44 by its padding, and the same negative margin keeps the line where the paragraph has it. */
.help-answer .help-link, .chat-thread .help-link { min-height: 0 !important; line-height: inherit; vertical-align: baseline;
  padding-block: var(--s-12); margin-block: calc(-1 * var(--s-12)); }
/* "‹ Back" on every screen that isn't a bar tab (item 5): top left, in the page's own head line, before its name. */
.page-head .back { margin: 0 var(--s-4) 0 calc(-1 * var(--s-4)); }
/* The Tour's head (Build 35c item 3): one row on three columns, Back on the left, the title centered in the row (the two side
   columns share what's left equally, so the center stays the row's center), About the founder or the truck's picture on the
   right. Under about 360 the right link wraps to two lines inside its column; nothing pushes the title or the page sideways. */
.gp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--s-4); }
.gp-top > .back { grid-column: 1; justify-self: start; margin-left: calc(-1 * var(--s-8)); }
.gp-top .gp-title { grid-column: 2; justify-content: center; min-width: 0; font-size: 1.45rem; }
.gp-top .gp-title svg { width: 26px; height: 26px; }
.gp-top .gp-avatar, .gp-top .gp-about { grid-column: 3; justify-self: end; }
.gp-about { min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; text-align: right; min-width: 0;
  color: var(--brand-soft); font: 700 .88rem/1.2 var(--ui); text-decoration: none; overflow-wrap: anywhere; }
/* The truck in the header and on the guide (item 8): 44 px, its logo or initials; the name still wraps to two lines. */
.avatar-btn { width: 44px; height: 44px; }
.avatar-btn span { font-size: .9rem; }
.head-line { min-height: 44px; }
.gp-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--raised-line);
  background: var(--brand-bg); color: var(--brand-soft); display: grid; place-items: center; font: 800 .9rem/1 var(--ui); }
.gp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Add to home screen (item 9): the two glyphs drawn inline, the size of the words, so the reader matches pictures. */
.glyph { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; vertical-align: -.38em; margin: 0 0; border-radius: 6px;
  background: var(--raised); border: 1px solid var(--raised-line); color: var(--blue); font-style: normal; }
.glyph svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-home-how .install-btn, .home-how .install-btn { margin-top: var(--s-4); }
.home-how { display: block; line-height: 1.6; }
/* Then notifications (push-test addendum): the home screen words go on as one short numbered list. */
.home-steps { margin: 0; padding-left: var(--s-20); display: grid; gap: var(--s-4); line-height: 1.6; color: var(--muted); font-size: .86rem; }
.home-steps li::marker { color: var(--ink); font-weight: 600; }
.home-steps .install-btn { margin-top: 0; }
/* Customers (items 10 to 12): + Add contact as a row under the people, the notes box at the foot of a page, the export rows. */
.add-contact { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 var(--s-16); border-radius: 12px;
  border: 1.5px dashed var(--raised-line); background: none; color: var(--brand-soft); font: 700 .95rem/1.2 var(--ui); cursor: pointer; }
.co-move { justify-self: start; margin: calc(-1 * var(--s-4)) var(--s-4) 0; }
.co-role { font-weight: 600; color: var(--muted); font-size: .8rem; }
.notes-box { display: grid; gap: var(--s-8); margin-top: var(--s-8); }
.notes-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-12); }
.notes-said { color: var(--muted); font-size: .8rem; }
.notes-box textarea { width: 100%; box-sizing: border-box; min-height: 84px; padding: var(--s-12) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--card); font-size: 16px; line-height: 1.45; resize: vertical; }
.notes-box textarea:focus { border-color: var(--brand); outline: none; }
.exports { display: grid; gap: var(--s-8); }
.export-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-12); align-items: center; padding: var(--s-12) var(--s-12); border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; }
/* The whole row is Export's tap (rules 6, P8): pressed like every row (.urow-h), not while Export itself is the one pressed; the
   focus ring goes round the row, not just its name. Export 44 tall (rule 21). */
.export-row:active:not(:has(.btn:active)) { background: var(--bg); }
@media (hover: hover) { .export-row:hover:not(:has(.btn:hover)) { background: var(--bg); } }
.export-row:has(> .er-l:focus-visible) { outline: 2px solid var(--brand-soft); outline-offset: 2px; box-shadow: 0 0 0 4px var(--brand-bg); }
.export-row .er-l { display: grid; gap: var(--s-4); min-width: 0; }
.export-row .er-l:focus-visible { outline: none; box-shadow: none; }
.export-row .er-l small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.export-row .er-btns { display: flex; gap: var(--s-8); }
.export-row .btn { min-height: 44px; padding: 0 var(--s-12); font-size: .86rem; }
/* Receipts (item 14): the add button, the months with their totals, a row each, one open with its photo over the fields. */
.rc-add { display: flex; align-items: center; justify-content: center; gap: var(--s-8); min-height: 48px; cursor: pointer; }
.rc-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-month { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s-12) var(--s-4) var(--s-4); font: 700 .82rem/1.2 var(--ui);
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rc-month b { color: var(--ink); letter-spacing: 0; font-size: .95rem; text-transform: none; }
.rc-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-12); width: 100%; text-align: left; padding: var(--s-12) var(--s-12);
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.rc-row .rc-l { display: grid; gap: var(--s-4); min-width: 0; flex: 1; }   /* the amount and the chevron stay right (Round 5, rule 7b) */
.rc-row .rc-l small { color: var(--muted); font-size: .82rem; }
.rc-draft { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-4) var(--s-12); }
.rc-draft .rc-l { grid-row: 1 / 3; overflow-wrap: anywhere; }
.rc-draft .tag { grid-column: 2; justify-self: end; }
.rc-draft .rc-amt { grid-column: 2; grid-row: 2; justify-self: end; }
.rc-draft > .rchev { grid-column: 3; grid-row: 1 / 3; }
.rc-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-photo { border-radius: 12px; overflow: hidden; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center;
  max-height: 46vh; }
.rc-photo img { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: #fff; }
.rc-reading { text-align: center; color: var(--muted); margin: var(--s-8) 0; }
.rc-note { margin: 0; padding: var(--s-12) var(--s-12); border-radius: 10px; background: var(--amber-bg); color: var(--ink); font-size: .9rem; }
.rc-check { margin: 0; color: var(--muted); font-size: .9rem; }
.rc-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.rc-kept { color: var(--green); font-weight: 600; margin-left: var(--s-8); }
.rc-year select, .rc-form select { width: 100%; }
.inc-rc { color: inherit; font-size: inherit; }
.rc-form select, .rc-year select { font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px solid var(--field-line); background: var(--raised);
  color: var(--ink); }

/* Rules' Reviews row and the thank-you's review ask (design notes 2026-10-04 second round, item 20). */
.reviews-row { display: flex; gap: var(--s-8); }
.reviews-row input { flex: 1; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.review-switch { margin-top: var(--s-4); }
.review-ask { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: 0 var(--s-16) var(--s-12) var(--s-20);
  font-size: .86rem; color: var(--muted); }
.review-ask .linkish { color: var(--brand-soft); font-weight: 700; }

/* The Assistant's chats (design notes 2026-10-04 second round, item 12): the plus, the list under it, swipe to delete; and the
   answer streaming in (item 6c). */
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); padding: var(--s-8) var(--s-16) var(--s-8); border-bottom: 1px solid var(--line); }
.chat-title { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: var(--s-8);
  font: 800 1rem/1.2 var(--ui); color: var(--ink); white-space: nowrap; overflow: hidden; }
.chat-title .chat-name { overflow: hidden; text-overflow: ellipsis; }
/* Round 3, approved Ask header exception to rule 1. */
#ask .chat-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; flex: none;
  padding: var(--s-8) var(--s-12); border: 0; }
#ask .chat-title { justify-content: center; font: 700 1rem/1.2 var(--ui); }
#ask [data-chat-new][hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.ask-head-btn { width: 44px; height: 44px; padding: var(--s-12); border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.ask-head-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#ask [aria-expanded="true"] { color: var(--brand-soft); }
.chat-list { max-height: 42%; overflow-y: auto; border-bottom: 1px solid var(--line); background: var(--chrome); }
.cl-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); touch-action: pan-y; }
.cl-open { position: relative; z-index: 1; display: grid; gap: var(--s-4); width: 100%; padding: var(--s-12) var(--s-16); border: 0; background: var(--chrome);
  color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: transform .18s ease; }
.cl-open b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-open small { color: var(--muted); font-size: .8rem; }
.cl-open[aria-current="true"] b { color: var(--brand-soft); }
.cl-row.swiped .cl-open { transform: translateX(-96px); }
.cl-del { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; border: 0; background: var(--red); color: #fff; font: 700 .9rem/1 var(--ui); cursor: pointer; }
.cl-empty { padding: var(--s-12) var(--s-16); color: var(--muted); font-size: .9rem; }
.chat-thread .bot.streaming span::after { content: ''; display: inline-block; width: .5em; height: 1em; margin-left: var(--s-4); vertical-align: -2px;
  background: currentColor; opacity: .35; animation: sk-pulse 1s ease-in-out infinite; }
/* The admin page's filters (item 6d). */
.adm-filters { margin: var(--s-4) 0 var(--s-12); flex-wrap: wrap; }

/* Receipts' lines and search (design notes 2026-10-04 second round, item 14). */
.rc-search input { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); margin: var(--s-4) 0 var(--s-8); }
.rc-hits { display: grid; gap: 0; margin-top: var(--s-4); font-size: .84rem; color: var(--muted); }
.rc-hits b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-lines { display: grid; gap: var(--s-8); }
.rc-line { display: grid; grid-template-columns: 1fr 58px 96px 30px; gap: var(--s-8); align-items: center; }
.rc-line input { min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 8px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-line .rate { display: flex; align-items: center; gap: var(--s-4); }
.rc-line .rate input { width: 100%; }
.rcl-del { width: 30px; height: 30px; }

/* An export's preview (design notes 2026-10-04 second round, item 15): the report as it comes out, CSV or PDF, Share at the
   bottom. The PDF's preview is white paper with the truck on top, like the file. */
/* One column the sheet's own width (minmax 0): a wide table scrolls inside .out-scroll, never the sheet (at 390 People's twelve
   columns had pushed the sheet to 1470: the line ran off, CSV and PDF and Share's word off screen; the same in the 560 panel). */
.out-sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
.out-fmt { justify-self: start; }
.out-one { color: var(--muted); font-size: .9rem; }
.out-scroll { overflow-x: auto; }
/* A table wider than its box shows it has more to the side (sweep 10/22 V136, V71: Total and Event were cut at the edge with
   no cue; a phone hides the scrollbar): a soft shade at the edge that has more, gone once scrolled to that end. The covers
   ride with the content (local) and take the box's own color; the shades stay at the edges (scroll). */
.out-scroll { --out-bg: var(--bg); --out-shade: color-mix(in srgb, var(--ink) 24%, transparent);
  background: linear-gradient(to right, var(--out-bg) 40%, transparent) left / 28px 100% no-repeat local,
    linear-gradient(to left, var(--out-bg) 40%, transparent) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--out-shade), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--out-shade), transparent) right / 14px 100% no-repeat scroll; }
.out-paper .out-scroll { --out-bg: #fff; --out-shade: rgb(29 26 23 / .24); }
.out-table { border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out-table th { text-align: left; padding: var(--s-8) var(--s-12) var(--s-8) var(--s-8); border-bottom: 1.5px solid var(--line); color: var(--muted); font-weight: 700; }
.out-table td { padding: var(--s-4) var(--s-12) var(--s-4) var(--s-8); border-bottom: 1px solid var(--line); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.out-table tr.out-total td { font-weight: 800; border-top: 1.5px solid var(--ink); }
.out-calendar td:nth-child(3) { white-space: normal; min-width: 160px; max-width: 220px; overflow-wrap: anywhere; }
.out-more { color: var(--muted); font-size: .82rem; margin-top: var(--s-8); }
/* .out-paper: the paper the customer gets, white in dark mode on purpose (design notes 2026-10-04 third round, item 12.8). Not a theme bug: leave it light. */
.out-paper { display: grid; gap: var(--s-8); padding: var(--s-20) var(--s-16); border-radius: 10px; background: #fff; color: #1d1a17; box-shadow: var(--shadow); }
.out-paper .op-top { display: flex; align-items: center; gap: var(--s-12); margin-bottom: var(--s-8); }
.out-paper .op-top img { width: 40px; height: 40px; border-radius: 50%; }
.out-paper .op-top div { display: grid; }
.out-paper .op-top b { font: 800 1.05rem/1.2 var(--ui); }
.out-paper .op-top small, .out-paper .op-line { color: #6f6861; font-size: .8rem; }
.out-paper h3 { margin: var(--s-4) 0 0; font: 800 .98rem/1.25 var(--ui); }
.out-paper .out-table th { color: #4b4540; border-color: #e4ded3; background: #f1eee9; }
.out-paper .out-table td { border-color: #f0ebe3; }
.out-paper .out-table tr.out-total td { border-top-color: #1d1a17; }
.out-paper .out-more { color: #6f6861; }
/* A narrow PDF (an invoice, an event sheet; exports.js FIT_COLUMNS) fits the paper: words wrap, dollars stay whole, nothing is
   cut at the right (shot fix 10/22, money 50 and cal 72). */
.out-paper .out-table.out-fit { width: 100%; white-space: normal; }
.out-paper .out-table.out-fit td { max-width: none; overflow-wrap: anywhere; vertical-align: top; }
.out-paper .out-table.out-fit td.n, .out-paper .out-table.out-pair td:first-child { white-space: nowrap; overflow-wrap: normal; }
.out-foot { position: sticky; bottom: 0; padding: var(--s-12) 0 var(--s-4); background: linear-gradient(to bottom, transparent, var(--bg) 35%); }
.out-foot .btn { width: 100%; min-height: 48px; }
/* On the phone the sheet ends at the bar, and Share, stuck to its bottom, sat under the raised Ask circle. The foot keeps the
   house clearance under it (.sheet.bottom .cal-sheet's 40, "the last control clears the raised Assistant circle"), and at the
   end of the scroll stands in for that 40 instead of adding to it. */
@media (max-width: 899px) {
  .out-foot { padding-bottom: var(--s-40); margin-bottom: calc(-1 * var(--s-40)); }
}

/* Lists (design notes 2026-10-04 second round, item 23): Shopping by store, Reminders by day; swipe a row left to clear it. */
.lists-tabs { justify-self: start; margin-bottom: var(--s-4); }
.li-add { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.li-add input { flex: 1 1 160px; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.li-add.rem input[type="date"], .li-add.rem input[type="time"] { flex: 0 1 140px; }
.li-stores { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; margin: var(--s-4) 0; }
.li-stores .chip small { color: var(--muted); }
.li-run { font-weight: 800; }
.li-group { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.li-group-head { text-align: left; padding: var(--s-8) var(--s-16); border: 0; background: var(--raised); color: var(--ink); font: 800 .9rem/1.2 var(--ui);
  cursor: pointer; }
.li-row { position: relative; overflow: hidden; border-top: 1px solid var(--line); touch-action: pan-y; }
.li-group .li-row:first-of-type { border-top: 0; }
.lists-page > .li-row { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.li-main { position: relative; z-index: 1; display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-16); background: var(--card); transition: transform .18s ease; }
.li-row.swiped .li-main { transform: translateX(-88px); }
.li-check { display: flex; align-items: center; gap: var(--s-12); cursor: pointer; }
.li-check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.li-row.done .li-check span { text-decoration: line-through; color: var(--muted); }
.li-usual, .li-when { margin-left: var(--s-32); font-size: .8rem; color: var(--muted); justify-self: start; }
.li-store { margin-left: var(--s-32); font-size: 16px; padding: var(--s-4) var(--s-8); border-radius: 8px; border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); }
.li-clear { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: 0; background: var(--red-fill); color: #fff; font: 700 .9rem/1 var(--ui); cursor: pointer; }
.li-clear-done { justify-self: start; color: var(--brand-soft); font-weight: 700; }
/* Today's reminders at the top of the inbox. */
.today-rem { display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-16); margin-bottom: var(--s-8); border-radius: 12px; background: var(--amber-bg);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.today-rem > b { font: 800 .8rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--amber-ink); }
.tr-row { display: flex; align-items: center; gap: var(--s-12); cursor: pointer; }
.tr-row input { width: 18px; height: 18px; accent-color: var(--amber-ink); }
.tr-row small { margin-left: auto; color: var(--muted); }
.li-said { display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-12); border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line);
  font-size: .92rem; }
.li-said b { font: 700 .7rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-soft); }

/* The menu in groups (design notes 2026-10-04 second round, item 27), Request early access a button on top; Rules
   explained (item 26). */
.m-access-row { display: flex; flex-wrap: wrap; gap: var(--s-8); margin: var(--s-4) 0 var(--s-8); }
/* Build 35 item 5: equal halves of one row, Leave feedback filled on the left, Request early access outlined on the right, the
   same height (44) and text size, each label on one line. Each starts at half the row but never under its own label's width:
   when the longer label can't fit its half, the two wrap onto two rows and each fills its row (they stack; no label wraps).
   Build 35d item 2 gave the labels 12 each side; Build 35e item 5 puts them back to 8 with the text a touch smaller (.78rem,
   was .84), so the halves sit side by side at 375 and up as the approved mockup has them (at .84 "Request early access" needs
   151 and a half is 145 at 375) and stack at 360 and 320. */
.m-access, .m-feedback { flex: 1 1 calc(50% - var(--s-4)); min-width: max-content; height: 44px; min-height: 44px; margin: 0;
  padding: 0 var(--s-8); display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); white-space: nowrap;
  font: 800 .78rem/1.2 var(--ui); }
.m-access { background: transparent; border: 1.5px solid var(--brand); color: var(--brand-soft); }
/* Item 12: Leave feedback filled first, membership outlined below, both full width and 44 tall (rule 21, P2). */
.m-founding-row { flex-direction: column; }
.m-founding-row .btn { width: 100%; height: 44px; min-height: 44px; margin: 0; flex: none; }
.m-founding { display: inline-flex; align-items: center; justify-content: center; font: 800 .9rem/1.2 var(--ui); }
.m-founding-row .m-feedback { font-size: .9rem; }
.m-founding-row .m-founding { background: transparent; border: 1.5px solid var(--brand); color: var(--brand-soft); text-decoration: none; }
/* The demo Menu's top (walk note 121): Restart the walkthrough filled, Request an invite › outlined under it, the old pair's look. */
.m-demo-top .m-restart { display: inline-flex; align-items: center; justify-content: center; font: 800 .9rem/1.2 var(--ui); }
.menu .explain { margin: calc(-1 * var(--s-4)) var(--s-8) var(--s-8) 54px; }
/* A small phone (third round, item 3): the slider and the full-size Tour pill take more of the line, so a long truck name
   tightens its tracking a little and may take a third line, all three inside the 44 px line, never cut. */

/* ── The Apple pass (design notes 2026-10-04 third round, item 12, from the HIG audit; measured by scripts/hig_1004c.py) ── */

/* 7. Type roles, named on purpose: body (reading text: a draft, a message, the Assistant, invoice and receipt rows) is 17;
   subhead (secondary data) 15; footnote 13. Nothing in between by accident. */
:root { --t-body: 17px; --t-sub: 15px; --t-foot: 13px; }
.draft .text, .draft textarea.edit, .msgs .body, .msg .body, .chat-thread .bubble, .chat-thread .me, .chat-thread .bot, .bot-text,
.inv-lines .line, .il-row, .rc-line, .receipt-lines .rl, .help-answer, .guide-sec p, .explain { font-size: var(--t-body); }

/* 5. One section-header spec: small, gray, uppercase, one tracking, everywhere a header labels a group. */
.m-label, .group-title, .chat-day, .divider, .pf > span, .ne-new legend, .draft .label, .quote .label, .done-line .said .label,
.ev-full .label, .ev-rig .label, .reach-note .label, .sales-form .label, .labor .label, .rule-preview .label {
  font: 600 var(--t-foot)/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.m-label, .group-title, .chat-day, .divider, .pf > span, .ne-new legend, .draft .label, .done-line .said .label, .ev-sheet .label,
.ev-full .label, .ev-rig .label, .reach-note .label, .sales-form .label, .labor .label { color: var(--muted); }

/* 1, 10, 11. A 44-point floor on every control. Where the look should stay small, padding or an invisible ring supplies the box. */
button, [role="button"], [role="switch"], [role="tab"], [role="radio"], select, label.file-act, .act, .btn, .seg button, .pill-btn, .lever,
.msg-chip, .chip, .pick, .avail, .contact-btn, .fold-chev, .li-group-head, .linkish, .li-check, .tr-row, .m-row,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea { min-height: 44px !important; }
.icon, .mag, .send-btn, .da-x, .bn-x, .ne-x { min-width: 44px !important; min-height: 44px !important; }
.icon, .mag { width: 44px; height: 44px; }
.send-btn { width: 44px; height: 44px; }
.msg-chip, .chip, .act, label.file-act, .contact-btn, .linkish, .pill-btn, .lever { display: inline-flex; align-items: center;
  gap: var(--s-4); }   /* a flex row drops the space between a name and its count: the gap puts it back */
.li-usual { margin-block: calc(-1 * var(--s-8)); }   /* 44 to tap, without pushing the rows apart */
.li-check, .tr-row { display: flex; align-items: center; }
.da-x { width: 44px; height: 44px; top: 0; right: 0; display: grid; place-items: center; padding: 0; }
.fold-chev { height: 44px; margin: calc(-1 * var(--s-12)) 0 0; padding: 0; }
/* Text that reads as a link in a line (a customer's name, Read the conversation): 44 tall by its padding, the line unchanged. */
button.cust.link, .src { min-height: 44px !important; display: inline-block; padding-block: var(--s-12) !important; }
/* The "?" stays an 18 px ring inside a 44 px box; the box overhangs the line instead of pushing it apart. */
.q-btn { position: relative; width: 44px; height: 44px; margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-12)) calc(-1 * var(--s-12)) calc(-1 * var(--s-8)); border: 0; vertical-align: middle; }
.q-btn::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 1.3px solid currentColor; }

/* 6. Sheets: a grabber on top, swipe down to dismiss (app.js), Back stays; the top safe area as well as the bottom. */
@media (min-width: 900px) {
  .sheet.bottom { max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top) - 8px)); }
}
.sheet.bottom::before { content: ""; position: sticky; top: 0; z-index: 3; display: block; flex: none; width: 36px; height: 5px;
  margin: var(--s-8) auto calc(-1 * var(--s-12)); border-radius: 3px; background: var(--raised-line); }
.sheet.bottom.dragging { transition: none; }
.sheet.bottom.letting-go { transition: transform .2s ease; }

/* 3. One spacing scale: every padding, margin and gap in this file is one of these (scripts/hig_1004c.py checks). */
:root { --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-20: 20px; --s-24: 24px; --s-32: 32px; --s-40: 40px; }
/* A short word that is a link ("Edit", "New ›"): 44 wide too, the word centered in it. */
.linkish { min-width: 44px; justify-content: center; }
button.cust.link { min-width: 44px; }

/* ── The inbox, fourth round (design notes 2026-10-04-d) ── */
/* 1. The colored bar on the left edge, twice as thick: the state reads from across the room. No tints on rows. */
.card::before { width: 8px; }
.card.line, .card.open .head, .card.open .cblk, .card.open .facts-line { padding-left: var(--s-24); }
/* The closed row: the name and company, then the first line of what they wrote; the right edge stacked: the tag, the
   event's day with a small calendar glyph, how long a ready reply has waited in the lightest text. */
.card.line .l .said { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.line .r { display: grid; justify-items: end; gap: var(--s-4); flex: none; text-align: right; }
.r-date { display: inline-flex; align-items: center; gap: var(--s-4); font: 500 .78rem/1.2 var(--ui); color: var(--ink); white-space: nowrap; }
.r-date .glyph svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; opacity: .7; }
.r-wait { font: 500 .75rem/1 var(--ui); color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s-8); border-radius: 999px; font: 600 .74rem/1 var(--ui);
  white-space: nowrap; color: var(--amber-ink); background: var(--amber-bg); }
.card.waiting .tag { color: var(--blue); background: var(--blue-bg); }
.card.yes .tag, .card.done .tag { color: var(--green); background: var(--green-bg); }
.card.booked .tag { color: var(--brand-soft); background: var(--brand-bg); }
.card.held .tag { color: var(--muted); background: var(--raised); }
/* 2. The open card: its head (the tag and the day), then three blocks. */
.card.open .head { padding-bottom: var(--s-8); }
.tag-line { display: flex; align-items: center; gap: var(--s-12); flex-wrap: wrap; min-height: 26px; }
.card.open .cblk.wrote { display: grid; gap: var(--s-4); padding: 0 var(--s-16) var(--s-12) var(--s-24); }
.card.open .cblk.wrote .co-line { margin: 0; }
.card.open .cblk.wrote .facts-line { padding: 0; }
.card.open .cblk.wrote .quote { width: 100%; margin: 0; }
/* What they wrote, three lines and "more". */
.quote .text.clamp { -webkit-line-clamp: 3; line-clamp: 3; }
/* The reply in its box: one small gray word in the corner, "Draft", until it's sent. */
.draft .label.corner { position: absolute; top: var(--s-8); right: var(--s-12); margin: 0; font: 600 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.draft { padding-top: var(--s-24); }
/* Add-ons as bubbles under the Send row (design notes 2026-10-05-build16, item 11): outlined when off, filled when on. Since
   build25, item 2: the ones On the card in a row that wraps (no cap, no columns), then "+ Add", dashed, always last. What's on is a
   small chip with an x inside the draft. A label longer than the row (an owner's own words) stays inside the card: the chip
   stops at the row's width and its words wrap inside it (build26, item 6); one that fits keeps its one line. */
.levers { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s-8); padding: 0 var(--s-16) var(--s-16) var(--s-20); }
.levers .lever { flex: none; max-width: 100%; justify-content: center; text-align: center; padding: var(--s-8) var(--s-12); min-height: 40px; line-height: 1.15;
  background: transparent; font-size: .78rem; white-space: normal; overflow-wrap: anywhere; }
.levers .lever.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* The chip whose change is running (Speed round, item 4): a soft blink until the answer lands. */
.levers .lever.working, .addon-chip.working { opacity: 1; animation: poll-blink 1.2s ease-in-out infinite; }
.levers .lever:disabled:not(.working), .addon-x:disabled { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .levers .lever.working, .addon-chip.working { animation: none; outline: 2px dashed currentColor; outline-offset: 2px; } }
.levers .lever.add { border-style: dashed; border-color: var(--field-line); color: var(--ink); }
.levers .lever:disabled { opacity: .55; }
.addon-chips { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-12); }
.addon-chip { display: inline-flex; align-items: center; gap: 0; min-height: 34px; padding: 0 0 0 var(--s-12); border-radius: 999px;
  font: 600 .8rem/1 var(--ui); background: var(--ink); color: var(--bg); }
.addon-x { width: 44px; min-height: 44px; margin: calc(-1 * var(--s-4)) 0; padding: 0; border: 0; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.addons-menu { margin: 0 var(--s-16) var(--s-12) var(--s-24); padding: var(--s-8) var(--s-12); border-radius: 12px; background: var(--raised);
  border: 1.5px solid var(--raised-line); display: grid; gap: 0; }
.addon-row { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; border-bottom: 1px solid var(--line); cursor: pointer; }
.addon-row input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); flex: none; }
.addon-name { flex: 1; font-weight: 600; }
.addon-name small { font-weight: 500; color: var(--muted); }
.addon-amt { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.addons-done { margin-top: var(--s-12); }
.card.open .cblk.wrote .facts-line, .card.open .cblk.wrote .quote { margin-top: var(--s-4); }
.draft.busy { padding-top: calc(var(--s-40) + var(--s-12)); }
.draft.busy .spin { top: var(--s-4); }
/* 3. Three tags, one color each, nothing else: Reply ready amber, Waiting gray, Booked green. The bar is the tag's color. */
.card.ready::before, .card.needs::before { background: var(--amber); }
.card.waiting::before, .card.held::before, .card.closed::before { background: var(--muted); }
.card.booked::before, .card.yes::before { background: var(--green); }
.card.ready .tag { color: var(--amber-ink); background: var(--amber-bg); }
.card.waiting .tag, .card.held .tag { color: var(--muted); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.card.booked .tag, .card.yes .tag { color: var(--green); background: var(--green-bg); }
.card.waiting .state, .card.held .state, .card.closed .state { color: var(--muted); }
.card.booked .state { color: var(--green); }
/* Could be a booking? (build16, item 9): one small gray card under the drafts, two taps. */
.card.unsure { background: var(--raised); border-style: dashed; box-shadow: none; display: grid; gap: var(--s-8); padding-top: var(--s-12); padding-bottom: var(--s-12); min-height: 0; }
.card.unsure::before { background: var(--line); }
.card.unsure .l { display: grid; gap: var(--s-4); min-width: 0; }
.card.unsure .unsure-ask { font: 700 .72rem/1.2 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card.unsure .aside-acts { display: flex; gap: var(--s-16); align-items: center; }
.card.unsure .said { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet-place { margin: var(--s-8) 0 0; color: var(--ink); font-size: .95rem; }   /* Booked's place (build16, item 10) */
.quiet-next { margin-top: var(--s-4); color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
/* 5. Three buttons: Send or Book, Edit, Later. A small Book by the event's date for the ones confirmed by phone. */
.actions, .actions.book { grid-template-columns: 1.6fr 1fr 1fr; }
/* Edit: "or tell it what to change", at the bottom of the box. */
.tell { display: grid; gap: var(--s-4); margin-top: var(--s-12); padding-top: var(--s-12); border-top: 1px solid var(--line); }
.tell label { font-size: 13px; color: var(--muted); }
.tell-row { display: flex; gap: var(--s-8); }
.tell-row input { flex: 1; min-width: 0; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--card); }
.tell-row button { min-width: 44px; font-weight: 700; border-radius: 10px; border: 1.5px solid var(--raised-line); background: var(--card); cursor: pointer; }
.draft .answer { margin-top: var(--s-8); }
/* Later's picker. */
.remind-pick { display: flex; align-items: center; gap: var(--s-12); margin-top: var(--s-8); font-size: .9rem; color: var(--muted); }
.remind-pick input { font-size: 16px; padding: var(--s-4) var(--s-8); border-radius: 8px; border: 1.5px solid var(--field-line); background: var(--card); }
/* 6. The learning line under the edit box: one sentence that wraps, Make it a rule after its question mark (p5-editfoot, the
   owner 10/10). The link is 44 tall by its box, which overhangs the line instead of pushing it apart (rule 21), at the
   sentence's size; the last word and the link hold together, so the link never sits on a line of its own. */
.learn { margin: 0 var(--s-16) var(--s-12) var(--s-24); color: var(--muted); font-size: .9rem; line-height: 1.4; }
.learn .learn-end { white-space: nowrap; }
.learn .linkish { display: inline-flex; vertical-align: baseline; margin-block: calc(-1 * var(--s-12)); font-size: inherit; }
/* Clean it up (Build 36 item 1): one link under the Send row while a reply is being written; after the tap, Undo in its place. */
.clean-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s-12); margin: calc(-1 * var(--s-12)) var(--s-16) var(--s-4) var(--s-24); }
.clean-row .linkish { display: inline-flex; align-items: center; min-height: 44px; }
.clean-row .linkish:disabled { opacity: .5; cursor: default; }
.clean-note { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .82rem; }
/* 7. Other mail (Not bookings until 2026-10-05-mark), one line each. 8. A closing message: one gray line, "No reply needed", and a small Reply. */
.aside-line .l b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside-line { flex-wrap: wrap; }
.aside-line .aside-acts { display: flex; gap: var(--s-4); margin-left: auto; }
.no-reply { margin-top: var(--s-4); color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: var(--s-8); }
.aside-meta { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; color: var(--muted); }
.aside-meta small { color: var(--muted); }
/* Who's signed in (Build 38 item 7): the Menu's first card. The person's initials in a round brand tile, "Chris · Owner", and Sign
   out under it as its own row, in the brand's link color, lined up with the name. */
.m-person { margin-bottom: var(--s-4); }
.m-person .m-person-row { cursor: default; }
.m-person .m-person-row:active { transform: none; }
.m-avatar { border-radius: 50%; background: var(--brand); color: #fff; font: 800 .8rem/1 var(--ui); letter-spacing: .02em; }
.m-person .m-signout { grid-template-columns: 34px minmax(0, 1fr); color: var(--brand-soft); }
.m-person .m-signout .m-name { grid-column: 2; }

/* Customers' Events tab (design notes 2026-10-04-e, item 8): the event, its date and who, what it brought in at the right. */
.cust-ev .ce-in { flex: none; font: 600 .95rem/1.2 var(--ui); font-variant-numeric: tabular-nums; }
.cust-ev .ce-up { flex: none; font-size: .82rem; color: var(--muted); }
.cust-ev { align-items: center; }
.cust-ev .ev-main { flex: 1; min-width: 0; }
/* A team member's page (design notes 2026-10-04-e, item 9): the facts, the month with Share at the right, the events worked. */
.member-facts { margin: 0; }
.divider.mw-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); }
.mw-head .btn { min-height: 44px; padding: 0 var(--s-16); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.mw-line { color: var(--muted); font-size: .92rem; margin: 0 var(--s-4); }
.mw-row { align-items: center; }
.mw-row .ev-main { flex: 1; min-width: 0; }
.member-page .person-head .name-line .linkish { flex: none; }

/* Rules, rethought (design notes 2026-10-04-e, item 10): the box, "Make that a rule?", the sentences (switch, swipe to
   delete), the four cards. */
.rule-add.tell { grid-template-columns: 1fr; }
.rule-add.tell input { font-size: 16px; padding: var(--s-12) var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.rule-add.tell input::placeholder { color: var(--muted); }
.make-rule { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-12); border-radius: 12px; background: var(--card); border: 1.5px solid var(--amber-ink); }
.mr-head { font: 700 .95rem/1.2 var(--ui); }
.mr-row { display: grid; gap: var(--s-8); }
.mr-row + .mr-row { border-top: 1px solid var(--line); padding-top: var(--s-8); }
.mr-text { display: grid; gap: var(--s-4); min-width: 0; overflow-wrap: anywhere; }   /* a suggested rule wraps too (F03) */
.mr-text small { font-size: 12px; color: var(--muted); }
.rule-list { display: grid; gap: var(--s-8); }
.rule-row { position: relative; overflow: hidden; border-radius: 10px; touch-action: pan-y; }
.rule-row .rule-slide { position: relative; z-index: 1; transition: transform .18s ease; }
.rule-row.swiped .rule-slide { transform: translateX(-88px); }
.rule-sentence { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; word-break: break-word; }   /* a long unbroken word
   wraps inside its column, never under the switch (Codex's break-it run, F03; rule 21) */
.rule > .switch { flex: none; }   /* the switch keeps its column, whatever the sentence */
.rule-row.off .rule-sentence { color: var(--muted); }
.rule-del { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: 0; background: var(--red-fill); color: #fff; font: 700 .9rem/1 var(--ui); cursor: pointer; }
/* The rules (the design round's Rules; rules 12, 21): the box with its heading and no line over it, 8 to the rules under it. */
.rules-own { display: grid; gap: var(--s-8); }
.rule-add.tell { margin-top: 0; padding-top: 0; border-top: 0; gap: var(--s-8); }
.rule-add.tell .rule-label { padding: 0 var(--s-4); font: 600 .9rem/1.2 var(--ui); color: var(--ink); }
/* A rule's Delete sits inside its card's edge, so no red shows at the corners until it is swiped. */
.rule-row .rule-del { top: 1px; right: 1px; bottom: 1px; border-radius: 0 9px 9px 0; }
/* The four rows (the design round's Rules; rules 7, 7b, 8, 9, 21; P9): one group like Settings', each row its name, its one
   fact and the one chevron, opening in place (ui.js accordion); 24 from the rules above it, 12 inside. */
.rules-page .rcards { display: grid; margin-top: var(--s-16); background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rcard + .rcard { border-top: 1px solid var(--line); }
.rcard-head { display: flex; align-items: center; gap: var(--s-8); min-height: 56px; padding: var(--s-8) var(--s-8) var(--s-8) var(--s-16); color: var(--ink); cursor: pointer; }
.rcard-head:active { background: var(--bg); }
.rcard-words { flex: 1; min-width: 0; display: grid; gap: var(--s-4); }
.rcard-words b { font: 700 1rem/1.3 var(--ui); }
.rcard-fact { min-width: 0; color: var(--muted); font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.rcard-head > .rchev { width: 28px; height: 44px; margin: 0; }
.rcard > .acc-body, .rcard-body { grid-template-columns: minmax(0, 1fr); }   /* a wide field never pushes the row past the screen */
.rcard-body { display: grid; gap: var(--s-12); padding: var(--s-4) var(--s-12) var(--s-16); }
.rcard-body .group { border-radius: 10px; box-shadow: none; }
.rcard-body .divider { padding-top: var(--s-12); }
.rule-rates .rate { display: flex; }
.rule-rates .rate input { flex: 1 1 0; width: 0; min-width: 0; }
.after-sw { gap: var(--s-12); min-height: 44px; }
.after-sw .sw-label { min-width: 0; }
.agree-set > b { overflow-wrap: anywhere; }
.voice-pick { display: grid; gap: var(--s-8); }
.voice-pick > .divider { margin: 0; }
.seg.voice-seg:not(.mini) { width: 100%; max-width: 340px; }
.seg.voice-seg:not(.mini) button { padding-left: var(--s-8); padding-right: var(--s-8); }
.sign-set .sign-lines { grid-column: 1; color: var(--ink); font-size: .95rem; }
.learns-line { margin: 0 var(--s-4); }

/* Settings' Connections (item 11): each one's state, Connect and Test, and what Test found. */
.conn-row .conn-state { color: var(--muted); }
.conn-row .conn-state.on { color: var(--green); }
.conn-row .set-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: var(--s-8); align-items: center; }
.conn-test { grid-column: 1 / -1; font-size: .84rem; }
.conn-test.ok { color: var(--green); }
.conn-test.bad { color: var(--red); }
/* Google Calendar per truck (Build 40): who signed in, under the row; a stopped connection in red; the picker's list. */
.conn-row .conn-state.bad { color: var(--red); }
.conn-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-12); font-size: .84rem;
  color: var(--muted); overflow-wrap: anywhere; }
.conn-sub .linkish { font-size: inherit; min-height: 44px; }
.cal-list { display: grid; gap: var(--s-4); }
.cal-opt { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; cursor: pointer; }
.cal-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.cal-opt span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.cal-opt small { color: var(--muted); font-size: .82rem; }
.cal-pick .hint { margin: 0; color: var(--muted); font-size: .86rem; }
.mail-form .seg { flex-wrap: wrap; }
/* Clover and Toast (the POS round): the paste form, and a failed connect's line with Help. */
.pos-form .hint { margin: 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.pos-error { display: grid; gap: var(--s-4); }
.pos-error .conn-test { margin: 0; }
/* Connections' groups (polish 1, the layout audit's 1.4): 24 between groups, 8 from a group's title to its group. */
.conn-groups { display: grid; gap: var(--s-24); }
.conn-sec { display: grid; gap: var(--s-8); }
.conn-sec > .group-title { margin: 0 var(--s-4); }
/* Point of sale's foot (10/08): "Not on Square or Toast?...", muted, 8 below the last row, in the group's card. */
.conn-pos-note { margin: var(--s-8) 0 0; padding: 0 var(--s-16) var(--s-12); color: var(--muted); font-size: .84rem; line-height: 1.35; }
/* Google Calendar's who and Disconnect, one muted line under the row (rule 7, the settings lane). */
.conn-who { column-gap: var(--s-8); }
/* A row with no fact line (Connect says it, rule 13): its name and its button on one line, centered. */
.conn-row > b + .set-acts { grid-row: 1; }

/* Rigs: a row opens the rig's page (design notes 2026-10-04-e, item 13). */
button.set.rig-row { width: 100%; text-align: left; background: none; color: inherit; font: inherit; cursor: pointer; grid-template-columns: 1fr auto; }
button.set.rig-row .chev { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 1.1rem; }
.rig-page { display: grid; gap: var(--s-12); }
.rig-photo { position: relative; display: grid; place-items: center; min-height: 160px; border-radius: 12px; overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.rig-photo img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.rig-photo .rig-ph svg { width: 64px; height: 64px; stroke: var(--muted); fill: none; stroke-width: 1.4; }
.rig-photo .file-act { position: absolute; right: var(--s-8); bottom: var(--s-8); background: var(--card); }
.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.rig-retire { justify-self: start; }

/* A document, open in the app (design notes 2026-10-04-e, item 14): full screen, Back top left, Share top right. */
.docv-top { justify-content: space-between; }
.docv-title { flex: 1; min-width: 0; font: 700 1rem/1.25 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.docv-body { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; background: var(--raised); }
.docv-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.docv-pdf { width: 100%; height: 100%; border: 0; background: #fff; }

/* Share, top right (item 17): the same button everywhere it is. */
.share-top { display: inline-flex; align-items: center; gap: var(--s-4); flex: none; margin-left: auto; height: 36px; padding: 0 var(--s-12);
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--raised); color: var(--ink); font: 600 .85rem/1 var(--ui); cursor: pointer; }
.share-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Reminders on the day view (design notes 2026-10-04-e, item 15): one line each with a bell, never a block. */
.dv-rems { display: grid; gap: var(--s-4); padding: 0 var(--s-4); }
.dv-rem { display: flex; align-items: center; gap: var(--s-8); width: 100%; min-height: 32px; padding: 0 var(--s-8); }
/* Checked from the day too (design notes 2026-10-05-mark, item 11): the circle, then the line that opens its list. */
.dv-rem .dv-tick { margin: calc(-1 * var(--s-8)) calc(-1 * var(--s-8)) calc(-1 * var(--s-8)) calc(-1 * var(--s-12)); }
.dv-rem-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s-8); min-height: 32px; padding: var(--s-4) 0; border: 0;
  border-radius: 8px; background: none; color: var(--ink); font: 500 .9rem/1.3 var(--ui); text-align: left; cursor: pointer; }
.dv-rem .glyph svg { width: 16px; height: 16px; fill: none; stroke: var(--amber-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.dv-rem small { flex: none; color: var(--muted); font-size: .8rem; }
.dv-rem span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The Date and Time boxes: two equal halves that can shrink (minmax(0, 1fr), min-width 0 down the line). iPhone Safari gives its
   own date and time controls a wide minimum width and its own rounded shape; a plain 1fr column grew to that width and pushed
   Time off the right edge (2026-10-08). appearance: none drops the phone's shape, so both boxes are the Add a reminder field's:
   44 tall, the same radius, padding and border, the value at the left. */
.rem-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); min-width: 0; }
.li-pick { position: relative; display: block; min-width: 0; }
.li-pick input { display: block; width: 100%; min-width: 0; max-width: 100%; height: 44px; min-height: 44px; margin: 0; font-size: 16px; line-height: 41px;
  padding: 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink);
  -webkit-appearance: none; appearance: none; text-align: left; }
.li-pick input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.li-pick input::-webkit-datetime-edit { padding: 0; }
.li-pick > span { position: absolute; left: var(--s-12); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: none; }
.li-pick[data-empty="true"] > span { display: block; }
.li-pick[data-empty="true"] input { color: transparent; }
.li-pick[data-empty="true"] input::-webkit-datetime-edit { color: transparent; }
.li-add.rem .rem-when { flex: 1 1 100%; }
@media (max-width: 299px) { .rem-when { grid-template-columns: minmax(0, 1fr); } }   /* too narrow for two: Time under Date */
/* Full screen, over the header and the bar: the one screen that takes all of it. */
.sheet.docv { position: fixed; inset: 0; width: auto; max-width: none; margin: 0; border: 0; z-index: 40 !important; overflow: hidden; }
.sheet.docv .docv-top { padding-top: calc(var(--s-12) + env(safe-area-inset-top)); }

/* Shopping, rethought (design notes 2026-10-04-e, item 16): a circle and a word, the store a small gray word with its site,
   a gray Checked section at the bottom, "Group by store" a small switch at the top. */
.li-row.shop .li-main { display: flex; align-items: center; gap: var(--s-12); }
/* A 44 px box (the floor on every control) with the 24 px circle drawn inside it, so the circle stays round. */
.li-circle { flex: none; width: 44px; height: 44px; margin: calc(-1 * var(--s-8)); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.li-circle::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.li-circle[aria-checked="true"]::after { background: var(--muted); }
.li-circle[aria-checked="true"]::before { content: ""; position: absolute; z-index: 1; left: 19px; top: 15px; width: 5px; height: 10px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.li-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.li-store-box { flex: none; display: inline-flex; align-items: center; gap: var(--s-4); max-width: 45%; }
.li-store-word { min-height: 32px; padding: 0 var(--s-4); border: 0; background: none; color: var(--muted); font: 500 .8rem/1.2 var(--ui); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.li-site { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .85rem; }
.li-row.shop .li-store { margin-left: 0; max-width: 100%; }
.li-checked .li-row .li-text { color: var(--muted); text-decoration: line-through; }
.li-checked-head { color: var(--muted); }
.li-group-switch { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-8); color: var(--muted); font-size: .85rem; }
.page-top { display: flex; align-items: center; gap: var(--s-12); }
.dv-head { grid-template-columns: auto 1fr auto auto; grid-template-areas: "back . nav share" "title title title title"; }
.dv-head .share-top { grid-area: share; margin-left: 0; }
.sheet-head .share-top { margin-left: auto; }

/* The week's count (design notes 2026-10-04-e, item 18) moved to the first line of the Other mail pile (2026-10-05-mark, item 8):
   one gray line, no x. The x below stays for the mailed document's card. */
/* The Mailbox's quiet line (Speed round, item 3): "Checking the mailbox..." / "Checked just now". */
.poll-line { margin: 0; padding: var(--s-4) var(--s-4) var(--s-8); font: 500 .8rem/1.35 var(--ui); color: var(--muted); }
.poll-line.checking::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: var(--s-8); border-radius: 50%;
  background: var(--muted); vertical-align: middle; animation: poll-blink 1.2s ease-in-out infinite; }
@keyframes poll-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .poll-line.checking::before { animation: none; } }
.other-week { margin: 0; padding: var(--s-4) var(--s-4) var(--s-8); font: 600 .88rem/1.35 var(--ui); color: var(--muted); }
.wl-x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* The event's money (design notes 2026-10-04-f, item 3): folded to three lines, Income, Costs and Profit; open, two cards and
   the number. Gray is filled in for you, with a tiny source word under it; black is typed. */
.money { padding: var(--s-12) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-12); }
.em-sum { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4) var(--s-12); width: 100%; min-height: 44px; padding: 0;
  border: 0; background: none; text-align: left; cursor: pointer; position: relative; padding-right: var(--s-32); }
.em-sum .em-row { display: contents; }
.em-sum .em-row > span { color: var(--muted); font-weight: 600; }
.em-sum .em-row > b { font-variant-numeric: tabular-nums; text-align: right; }
.em-sum .em-profit-row > span, .em-sum .em-profit-row > b { color: var(--ink); font-weight: 800; }
.em-sum .chev { position: absolute; right: 4px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--muted); font-size: 1.2rem; }
.em-sum[aria-expanded="true"] .chev { transform: translateY(-50%) rotate(-90deg); }
.em-card { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-16); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.em-head { font: 700 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.em-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-12); min-height: 44px; }
.em-label { font-weight: 600; }
.em-box { display: grid; justify-items: end; gap: var(--s-4); }
.em-box .rate { display: inline-flex; align-items: center; gap: var(--s-4); font-weight: 600; }
.em-box input, .em-other-label { width: 7.5em; min-height: 44px; font-size: 16px; padding: var(--s-8) var(--s-8); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.em-box.auto input { color: var(--muted); border-style: dashed; }
.em-src { font-size: .7rem; line-height: 1; color: var(--muted); }
.em-split { font-size: .82rem; color: var(--muted); }
.em-tax { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-8); font-size: .85rem; color: var(--muted); }
.em-tax:not(.auto) { color: var(--ink); }
.em-tax .em-box input { width: 6em; padding: var(--s-4) var(--s-8); }
.em-total { border-top: 1px solid var(--line); padding-top: var(--s-8); }
.em-total b, .em-fixed { font-variant-numeric: tabular-nums; }
.em-other .em-other-label { width: 100%; text-align: left; }
.em-add { justify-self: start; min-height: 44px; }
.em-profit { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-4) var(--s-4) 0; }
.em-profit span { font-weight: 700; }
.em-profit b { font: 800 2rem/1.1 var(--ui); font-variant-numeric: tabular-nums; }
.em-served .em-box input { width: 5.5em; }
.em-ticket { min-height: 0; }
.from-square { display: block; font-size: .72rem; line-height: 1.3; color: var(--muted); font-weight: 500; }
.em-ticket .em-label, .em-ticket .em-gray { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Income, rethought (design notes 2026-10-04-f, item 4): the period, Profit big with Income and Costs small under it and the
   sales tax under Income, then three tabs of plain lists. No charts. */
.inc-square { color: var(--muted); font-size: .86rem; padding: 0 var(--s-4); }
.inc-period { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); flex-wrap: wrap; }
.inc-period .icon { width: 44px; height: 44px; }
/* The period chips on Team, Income and the reports: "All" was 42 wide (Build 31 item 11, QA-08). */
.inc-period .seg button { min-width: 44px; }
/* An empty month's line above the card of zeros, on the first screen (sweep V122, P10); the --s scale (rule 21). */
.empty.empty-one.inc-empty-top { padding: var(--s-8) var(--s-16) var(--s-16); gap: var(--s-12); }
.inc-profit { display: grid; gap: var(--s-4); padding: var(--s-16); border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
/* The next numbers on their way (a tap on Period, Where or By on Income, Team or a report; rule 9, P4, P12): the switches stay as
   tapped, the numbers dim. */
.inc-wait :is(.inc-step, .inc-profit, .rp-door, .inc-rows, .team-rows, .team-total, .rp-big, .rp-cols, .rp-scroll) { opacity: .5; transition: opacity .15s ease; }
@media (prefers-reduced-motion: reduce) { .inc-wait :is(.inc-step, .inc-profit, .rp-door, .inc-rows, .team-rows, .team-total, .rp-big, .rp-cols, .rp-scroll) { transition: none; } }
.inc-profit > small { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inc-profit > b { font: 800 2.4rem/1.1 var(--ui); font-variant-numeric: tabular-nums; }
.inc-two { display: flex; gap: var(--s-16); color: var(--muted); font-size: .9rem; }
.inc-two b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.inc-tax { color: var(--muted); font-size: .8rem; }
.inc-tabs { justify-self: stretch; }
.inc-tabs button { flex: 1; }
.inc-row.static { cursor: default; }
.inc-total { border-top: 1px solid var(--line); border-radius: 0; }

/* Attach on a reply (design notes 2026-10-04-f, item 6): four in the row now, Attach beside Edit. */
.actions, .actions.book { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.attach.files .chip.file { min-height: 44px; padding-right: 0; }
.attach .chip.file small { color: var(--muted); }
/* Tap a file to see it (design notes 2026-10-05-build15, item 8): the chip's name is a button, the x stays beside it. */
.chip-open { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
  min-height: 44px; display: inline-flex; align-items: center; gap: var(--s-4); }
.chip-open:hover b, .chip-open:hover { text-decoration: underline; text-underline-offset: 2px; }
button.chip.file.chip-open { min-height: 0; border: 1px solid var(--raised-line); padding: var(--s-4) var(--s-8); }
.attach .chip-x { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.attach .chip.offer { display: inline-flex; align-items: center; gap: var(--s-8); min-height: 44px; cursor: pointer; border: 1.5px dashed var(--brand-soft);
  color: var(--brand-soft); background: none; font-weight: 600; }
.attach .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.attach-pick .file-act { display: inline-flex; align-items: center; justify-content: center; }
.doc-picks { display: grid; gap: var(--s-8); }
.doc-pick { justify-content: flex-start; text-align: left; }

/* The mailbox files documents (item 7): one card at the top of Open. */
  margin: 0 var(--s-16) var(--s-12); padding: var(--s-12); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }

/* Add document, two buttons (item 8): Take a photo and Upload a file, each the phone's own picker. */
.doc-adds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.doc-adds .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); min-height: 48px; }
.doc-adds .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.docs-page.dropping { outline: 2px dashed var(--brand-soft); outline-offset: 4px; border-radius: 12px; }

/* Send them a link (design notes 2026-10-04-f, item 10). */
.team-adds { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-16); }
.team-link .tl-url { width: 100%; font-size: 15px; padding: var(--s-8) var(--s-12); min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--raised); color: var(--ink); }
/* How you price (design notes 2026-10-04-f, item 2): the amount's words in reading case beside the box. */
.pricing-form .pf > .rate { font: 400 1rem/1.2 var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink); }
.pricing-form .divider { margin-top: 0; }

/* ── Design notes 2026-10-05-mark (Build 14) ── */
/* 4. The mark above the name, small: the deck's title and the Tour's heading. */
.welcome-mark { display: block; height: 30px; margin: 0 auto calc(-1 * var(--s-4)); }
.guide-mark { display: block; height: 34px; margin: 0 0 var(--s-8); }
/* 11. To do: Shopping's row; the words are the day's picker (a date box laid over them), a dated one shows its day with a bell. */
.li-todo { position: relative; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-8); cursor: pointer; }
.li-todo .li-text { min-width: 0; }
.li-due { display: inline-flex; align-items: center; gap: var(--s-4); color: var(--muted); font: 500 .8rem/1.2 var(--ui); white-space: nowrap; }
.li-due .glyph svg { width: 13px; height: 13px; fill: none; stroke: var(--amber-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.li-date { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: none; color: transparent; }
.li-date::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
/* A paper the mailbox filed (design notes 2026-10-05-build15, item 4): one gray line in Other mail, the whole sentence shown. */
.aside-line.filed::before { background: var(--line); }
.aside-line.filed .l b { white-space: normal; font-weight: 600; }
.aside-line.filed .aside-acts { margin-top: 0; }
.aside-line.filed .aside-meta, .aside-line.filed .aside-why { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.aside-line.filed .l { min-width: 0; }
/* The Mailbox (design notes 2026-10-05-build15, item 5): Ready's count on its tab, the bar's red; Sent's Nudge? line. */
.seg-n { display: inline-block; min-width: 18px; height: 18px; margin-left: var(--s-4); padding: 0 var(--s-4); border-radius: 999px;
  background: #d13a40; color: #fff; font: 700 .68rem/18px var(--ui); font-style: normal; text-align: center; vertical-align: 1px; }
.nudge-line { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-8);
  margin: 0 0 var(--s-8); padding: 0 0 var(--s-8); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.card.line.nudgeable { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-12); }
.card.open .nudge-line { margin: var(--s-8) var(--s-16) 0 var(--s-24); }
/* Income's Custom dates (design notes 2026-10-05-build16, item 3): the range as the heading (a tap changes it), and its small
   sheet: four quick picks, then From and To, the phone's own date pickers. */
.inc-label.inc-range { border: 0; background: none; padding: var(--s-4) 0; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer;
  text-decoration: underline dotted var(--muted); text-underline-offset: 4px; }
.inc-dates { display: grid; gap: var(--s-12); }
.inc-quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.inc-quick .btn { min-height: 44px; }
.inc-range-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-12); align-items: end; }
.inc-range-form label { display: grid; gap: var(--s-4); }
.inc-range-form label span { font: 600 .72rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.inc-range-form input { width: 100%; min-height: 44px; font-size: 16px; padding: var(--s-8); border-radius: 9px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.inc-range-form .btn { grid-column: 1 / -1; min-height: 46px; }
.inc-period .seg { flex-wrap: nowrap; }
.inc-period .seg button { white-space: nowrap; padding-left: var(--s-12); padding-right: var(--s-12); }
.inc-period .where-seg button { overflow: hidden; text-overflow: ellipsis; }

/* ── Build 17 (docs/design-notes-2026-10-05-build17.md): the card in the Mailbox ── */
/* 2. "Reply ready" a size up, the first thing the eye lands on. Since item 8 the open card's head is the folded row, so the
   tag is one size in both, a size up from before (24 px, .74rem). */
.card.mrow .mh1 .tag { height: 28px; padding: 0 var(--s-12); font-size: .84rem; margin-left: auto; flex: none; }
/* 3. No date in the open card's head: the facts under it say the date, and its calendar glyph opens that day. */
.cal-glyph { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-12)) calc(-1 * var(--s-12)) 0; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; vertical-align: middle; }
.cal-glyph .glyph svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; opacity: .75; }
/* 7. The facts, bigger: one per line, the value a size up in the ink color (at least the size of what they wrote), the label
   small and gray beside it. */
.facts-list { display: grid; gap: var(--s-4); }
.fact-l { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-12); align-items: baseline; }
.fact-l .fk { font: 500 .78rem/1.3 var(--ui); color: var(--muted); }
.fact-l .fv { font: 500 16px/1.35 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.fact-l .fv a { color: inherit; text-decoration: underline; text-decoration-color: var(--quote-stripe); text-underline-offset: 3px; }
.fact-l .fv small { color: var(--muted); font-size: .8em; }
.card.open .cblk.wrote .facts-line { margin-top: var(--s-8); }
/* 9. The card is the conversation: no boxes. What the calendar says about a request's day is a fact in its color. */
.avail.bare { background: none; padding: 0; min-height: 44px; margin: calc(-1 * var(--s-12)) 0; border-radius: 0; font: 500 16px/1.35 var(--ui); gap: var(--s-4); }
.avail.bare i { display: none; }
/* 8. The row is the head: one template for the folded row and the open card's head, in every tab, so nothing moves when a
   card opens. Since build19 item 7, three lines (below); the same padding, type and heights open or folded. */
.card.mrow { display: block; padding: 0; }
/* The bubble by the name: the landing page's live demo (deck.js) only, since Build 38 item 1. */
.card.mrow .contact-btn.bubble { flex: none; width: 44px; min-height: 44px; margin: calc(-1 * var(--s-8)) 0; padding: 0; border: 0; justify-content: center;
  color: var(--ink); background: radial-gradient(circle, var(--raised) 14px, var(--raised-line) 14.5px, var(--raised-line) 15.5px, transparent 16px); }
.card.mrow .contact-btn.bubble svg { width: 16px; height: 16px; }
.card.mrow .contact-btn.bubble[aria-expanded="true"] { color: var(--brand-soft); background: radial-gradient(circle, var(--brand-bg) 14px, var(--brand) 14.5px, var(--brand) 15.5px, transparent 16px); }
/* The body unfolds under the three lines. */
.card.open.mrow > .cblk.wrote { padding-top: 0; }
/* Sent's Nudge? line rides on top of the two lines, open or folded. */
.card.mrow.nudgeable { display: block; }
.card.mrow > .nudge-line { margin: 0; padding: var(--s-12) var(--s-16) var(--s-8) var(--s-24); }
/* Other mail: the same two lines, why it's here on the second (two lines at most), what to do with it under them. */
.card.mrow.aside-line { display: block; }
.card.mrow.aside-line .aside-acts { display: flex; justify-content: flex-end; gap: var(--s-16); margin: calc(-1 * var(--s-8)) 0 0; padding: 0 var(--s-16) var(--s-8) var(--s-24); }
.card.mrow.aside-line .tag, .card.mrow.held .tag { color: var(--muted); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
/* 5. One Book, in the Send row: Send and Book on top (the two that answer), Edit, Attach and Later under them. Book is the
   green outline with the calendar glyph; it opens a two-line sheet. */
.card.open .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card.open .actions > .send-split, .card.open .actions > .owner-sends { grid-column: 1 / -1; }
.card.open .actions.with-book > .send-split { grid-column: 1 / 3; }
.card.open .actions > .btn.book { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); font-weight: 700;
  color: var(--green); border-color: var(--green); }
.card.open .actions > .btn.book .ico { width: 17px; height: 17px; }
.pick-sheet .pick-lines { display: grid; gap: var(--s-12); margin-top: var(--s-8); }
.pick-sheet .pick-lines .btn { min-height: 52px; font-size: 1rem; }
.pick-sheet .pick-lines .btn.quiet { background: none; font-weight: 600; color: var(--ink); }
#pick.sheet.bottom > .google-notice { min-height: 0; }
#pick.google-connect-modal { z-index: 45 !important; }
@media (max-width: 899px) {
  #pick.google-connect-modal { inset: auto 0 0; top: auto; max-height: 88dvh; border-radius: var(--s-16) var(--s-16) 0 0; border-top: 1px solid var(--line); }
}
/* As the booking-link sheet it copies: over the bar, so no 64 band for the Ask mark under Cancel (#pick .cal-sheet's A38
   clearance); on a computer a centered card, so no grabber. */
#pick.google-connect-modal > .google-notice { padding-bottom: calc(var(--s-20) + env(safe-area-inset-bottom)); }
@media (max-width: 899px) { #pick.google-connect-modal > .google-notice { padding-bottom: var(--s-40); } }
@media (min-width: 900px) { #pick.google-connect-modal.sheet.bottom::before { content: none; } }
.google-notice p { margin: 0; text-wrap: pretty; }
.google-notice p a { color: var(--brand-soft); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }   /* the house text link (.wiz-foot a) */
.google-notice .pick-lines { margin-top: var(--s-16); } /* plus the sheet's 8 gap: 24 between groups */
/* Gmail's separate disclosure sheet, the Calendar structure with three approved paragraphs.
   Scope every override to mail so the switches-off screens and Calendar stay unchanged. */
#pick.gmail-connect-modal { z-index: 45 !important; }
#pick.gmail-connect-modal > .gmail-notice { min-height: 0; padding-bottom: calc(var(--s-20) + env(safe-area-inset-bottom)); }
.gmail-notice p { margin: 0; text-wrap: pretty; }
.gmail-notice .gmail-privacy { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--brand-soft); font-weight: 600; }
.gmail-notice .pick-lines { margin-top: var(--s-8); }
/* Screen 1's unaltered color G and 20px geometry, always on white for this disclosure. */
#pick.gmail-connect-modal .google-signin { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
@media (max-width: 899px) {
  #pick.gmail-connect-modal { inset: auto 0 0; top: auto; max-height: calc(100dvh - var(--s-16)); border-radius: var(--s-16) var(--s-16) 0 0; border-top: 1px solid var(--line); }
}
@media (min-width: 900px) { #pick.gmail-connect-modal.sheet.bottom::before { content: none; } }
.pick-sheet .pick-lines.pick-two { grid-template-columns: 1fr 1fr; }   /* Leave and Stay side by side (polish 1) */
/* Settings > Connections > Phone calendar > Add (pass-2 item 8; the settings lane): the line, the two ways to add the link, how
   soon each looks again (muted, smaller), and Make a new link, a muted link centered at the foot. */
.phone-cal-lines > p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.phone-cal-lines > .pc-note { font-size: .84rem; }
.pc-new { display: flex; justify-content: center; }
.pc-new .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-12); }
.ev-acts .ev-start-inv { justify-content: flex-start; padding: 0; }
/* 6. Schedule the send: a small arrow on Send (its own 44 point tap, the same purple), the sheet's lines, and Sent's line with
   Stop. */
.send-split { display: flex; min-width: 0; gap: 0; }
.send-split .send-main { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.send-split .send-more { flex: none; width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-left: 1px solid var(--on-action); border-radius: 0 10px 10px 0; background: var(--action); color: var(--on-action); border-color: var(--action-edge); border-left-color: var(--on-action); box-shadow: inset 0 0 0 1.5px var(--action-edge); }
.send-split .send-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pick-time { display: grid; gap: var(--s-12); margin-top: var(--s-4); }
.pick-day { display: flex; gap: var(--s-8); }
.pick-day label { flex: 1; position: relative; }
.pick-day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-day span { display: grid; place-items: center; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink); }
.pick-day input:checked + span { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-soft); }
.pick-day input:focus-visible + span { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.pick-clock { display: grid; gap: var(--s-4); }
.pick-clock span { font-size: .85rem; color: var(--muted); }
.pick-clock input { min-height: 44px; font-size: 16px; padding: 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--card); color: var(--ink); }
.card.mrow > .sched-line { color: var(--ink); }

/* ── Build 19a (docs/design-notes-2026-10-05-build19.md) ── */
/* 7. The row carries everything: three snug lines, each a size up and clipped before it wraps, the head tight to the top.
   Line 1 the name (the biggest thing on the row; a tap to the customer's page, ink with a tiny gray chevron), the org in the
   smaller gray, the bubble, the tag; line 2 the glyph and the full date, "Received 12:45pm" at its right end; line 3 the place
   and the event, and, open, the fold chevron at its right end (a folded row keeps its room). Whole-pixel sizes, so the lines sit
   on the same pixels open or folded. The name never gives up room to the org. */
.card.mrow > .head.mhead { display: grid; gap: 0; padding: var(--s-8) var(--s-12) var(--s-12) var(--s-20); }
.card.mrow .mh1 { display: flex; align-items: center; gap: var(--s-8); min-height: 34px; min-width: 0; }
.card.mrow .mh-who { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.card.mrow .mh-name { flex: 0 0 auto; max-width: 100%; display: inline-flex; align-items: center; font: 700 18px/24px var(--ui); color: var(--ink);
  white-space: nowrap; overflow: hidden; }
.card.mrow .mh-name .mh-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card.mrow button.mh-name { min-height: 44px; margin: calc(-1 * var(--s-4)) 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.card.mrow .mh-chev { flex: none; display: inline-grid; place-items: center; width: 12px; margin-left: var(--s-4); color: var(--muted); }
.card.mrow .mh-chev svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card.mrow .mh-who .co { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 14px/20px var(--ui); color: var(--muted); }
.card.mrow .mh1 .tag { height: 30px; padding: 0 var(--s-12); font-size: 15px; margin-left: auto; flex: none; }
.card.mrow .mh2, .card.mrow .mh3 { display: flex; align-items: center; min-width: 0; min-height: 24px; font: 500 16px/22px var(--ui); color: var(--ink);
  overflow: hidden; white-space: nowrap; }
.card.mrow .mh2 .mf-t, .card.mrow .mh3 .mf-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.mrow .mh3 { padding-right: var(--s-32); position: relative; }
.card.mrow .mh3 .sep { font-style: normal; color: var(--muted); }
.card.mrow .mh3.mf-else { color: var(--muted); font-weight: 400; }
.card.mrow .mh2 .cal-glyph { flex: none; min-width: 44px; min-height: 44px; justify-content: center; margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-8)) calc(-1 * var(--s-12)) calc(-1 * var(--s-12)); }
.card.mrow .mh2 .cal-glyph .glyph svg { width: 18px; height: 18px; }
.card.mrow .mh-at { flex: none; margin-left: auto; padding-left: var(--s-8); font: 500 13px/20px var(--ui); color: var(--muted); white-space: nowrap; }
.card.mrow .mh-fold { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.card.mrow .mh-fold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card.mrow.aside-line .mh3.mf-else { align-items: flex-start; white-space: normal; }
.card.mrow.aside-line .mh3.mf-else .mf-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
/* 15. The event sheet in two tenses: each row one line, its label small and gray at the left, its action in it. */
.ev-rows { display: grid; gap: 0; margin: var(--s-8) 0 0; border-top: 1px solid var(--line); }
.ev-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s-12); align-items: center; min-height: 52px;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.ev-row-k { font: 500 .84rem/1.3 var(--ui); color: var(--muted); }
.ev-row-v { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-16); min-width: 0; font: 500 1rem/1.35 var(--ui); color: var(--ink); }
.ev-row-v .ev-row-open { color: var(--ink); text-align: left; min-height: 44px; padding: 0; text-decoration: none; font-weight: 500; }
.ev-row-v .ev-row-act { min-height: 44px; padding: 0; }
.ev-row-v .ev-row-note { color: var(--muted); font-size: .9rem; }
.ev-worked { line-height: 1.45; padding-block: var(--s-8) !important; }
.ev-rows .labor { border: 0; margin: 0; padding: var(--s-8) 0 var(--s-12); border-bottom: 1px solid var(--line); }
.ev-made { padding: var(--s-12) 0; border-bottom: 1px solid var(--line); }
.ev-made > .label { display: block; margin-bottom: var(--s-8); }
.ev-checkin { margin: var(--s-12) 0 0; color: var(--ink); font-size: .95rem; }
/* 13. The address keeps its underline, a map pin after it; either opens the choice sheet (Apple Maps / Google Maps). */
.ev-where { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: var(--quote-stripe); text-underline-offset: 3px; }
.ev-pin { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: calc(-1 * var(--s-12)) calc(-1 * var(--s-8)) calc(-1 * var(--s-12)) calc(-1 * var(--s-4)); padding: 0; border: 0; background: none;
  color: var(--brand-soft); cursor: pointer; vertical-align: middle; }
.ev-pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pick-sheet .pick-lines a.btn { display: grid; place-items: center; text-decoration: none; }
/* + Add's sheet (build25, item 3): the add-ons behind the row, one a line with its amount, a check on one already on this booking;
   "Set up add-ons in Rules ›" at the foot. */
.addon-list { display: grid; gap: var(--s-8); margin-top: var(--s-12); }
.addon-pick { display: flex; align-items: center; gap: var(--s-12); width: 100%; min-height: 56px; padding: var(--s-8) var(--s-16); text-align: left;
  border: 1.5px solid var(--raised-line); border-radius: 12px; background: var(--raised); color: var(--ink); cursor: pointer; }
.addon-pick[aria-checked="true"] { border-color: var(--ink); }
.addon-pick .ap-l { display: grid; gap: var(--s-4); flex: 1; min-width: 0; }
.addon-pick b { font: 700 1rem/1.2 var(--ui); }
.addon-pick small { font: 500 .9rem/1.2 var(--ui); color: var(--muted); }
.addon-pick .ap-check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--field-line); display: grid; place-items: center;
  font: 800 .95rem/1 var(--ui); font-style: normal; }
.addon-pick[aria-checked="true"] .ap-check { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.addon-none { margin: var(--s-12) 0 0; color: var(--muted); }
.addon-sheet .addon-rules { margin-top: var(--s-16); min-height: 44px; padding: 0 var(--s-4); font-weight: 600; color: var(--brand-soft); text-decoration: none; }
/* 6. Contact us: one row, Email and the address, Open and Copy small at its right. */
.contact-us .cu-row { display: flex; align-items: center; gap: var(--s-12); padding: var(--s-12) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-us .cu-what { flex: 1 1 auto; min-width: 0; display: grid; gap: 0; }
.contact-us .cu-k { font: 500 .84rem/1.3 var(--ui); color: var(--muted); }
.contact-us .cu-v { font: 600 1rem/1.35 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.contact-us .cu-btns { flex: none; display: flex; gap: var(--s-8); }
.contact-us .cu-btns .btn { min-height: 44px; min-width: 64px; padding: 0 var(--s-12); display: inline-grid; place-items: center; text-decoration: none; color: var(--ink); }
/* 5. Notes: New note on top, then each note its title, its day and its first line; open, the title and the body edit in place. */
.lists-page .note-new { width: 100%; min-height: 48px; margin-bottom: var(--s-12); }
.lists-page .note-q { width: 100%; min-height: 44px; margin-bottom: var(--s-12); padding: 0 var(--s-12); font-size: 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.li-row.note .note-open { display: grid; gap: 0; width: 100%; min-height: 56px; padding: var(--s-8) 0; border: 0; background: none; text-align: left;
  color: var(--ink); cursor: pointer; font: inherit; }
.li-row.note .note-head { display: flex; align-items: baseline; gap: var(--s-8); min-width: 0; }
.li-row.note .note-head .li-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.li-row.note .note-when { flex: none; color: var(--muted); font-size: .8rem; }
.li-row.note .note-peek { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-row.note.open { display: grid; gap: var(--s-8); padding: var(--s-12); }
.li-row.note.open .note-title { min-height: 44px; font: 600 17px/1.3 var(--ui); padding: 0 var(--s-8); border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); }
.li-row.note.open .note-body { width: 100%; min-height: 180px; font: 400 16px/1.45 var(--ui); padding: var(--s-8); border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); resize: vertical; }
.li-row.note.open .note-acts { display: flex; gap: var(--s-8); }
.li-row.note.open .note-acts .btn { flex: 1; min-height: 44px; }
/* 2. Name your Curbaroo: the box the row's full width minus Save, Save on the same line at its right end, the same height. */
.assist-name { display: grid; gap: var(--s-4); margin-top: var(--s-16); }
.assist-name .an-label { font: 500 .85rem/1.3 var(--ui); color: var(--muted); }
.assist-name .an-row { display: flex; align-items: stretch; gap: var(--s-8); }
.assist-name .an-row input { flex: 1 1 auto; width: auto; min-width: 0; height: 46px; box-sizing: border-box; font-size: 16px; padding: 0 var(--s-12);
  border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--card); color: var(--ink); }
.assist-name .an-row .btn { flex: none; height: 46px; min-height: 46px; box-sizing: border-box; padding: 0 var(--s-16); }

/* ── Design notes 2026-10-05-build19, item 14: nothing under Safari's bars ── On iPhone Safari the URL bar and the toolbar stay
   up on a screen that doesn't scroll, and the layout viewport (100vh, inset 0) runs under the toolbar. The welcome, the deck and
   the app's bottom bar size themselves to the dynamic viewport (100dvh, 100vh first for a browser without it) and pad the bottom
   with the safe area, so Get started and the bar's buttons sit above the toolbar. A home-screen launch (standalone) has no bars
   and the same rules hold. The welcome scrolls rather than hide its button when a card is taller than the screen, and its card
   centers with auto margins so its top is never out of reach. */
.shell { min-height: 100vh; min-height: 100dvh; }
.welcome { inset: 0 0 auto 0; height: 100vh; height: 100dvh; display: flex; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: calc(var(--s-16) + env(safe-area-inset-bottom)); }
.welcome > .welcome-card { margin: auto; flex: none; }
/* The bar (.nav) is fixed to the bottom with the safe area under its buttons, and the page (.view) pads by the bar and the safe
   area, as they have since the bar came (above); tests/test_e2e_b19b.py holds them at 390 by 664. */

/* Design notes 2026-10-05-build19, item 3: Terms and Privacy at the foot of the menu, one quiet gray line in the smallest text,
   a footer and not a row: its own breath of space above, and room under it so nothing ever sits on it. */
:is(.menu, .menu-page) .m-foot { margin: var(--s-32) 0 calc(var(--s-16) + env(safe-area-inset-bottom)); padding: 0 var(--s-8); text-align: center;
  font: 400 .72rem/1.4 var(--ui); color: var(--muted); }
:is(.menu, .menu-page) .m-foot a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 var(--s-4); vertical-align: middle; }   /* 44 points to tap */

/* ── Reports, under Income (design notes 2026-10-06-reports): the list, then one report a phone screen: the number big, the
   period row with Columns and Report at its right end, the table. ── */
.rp-door { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); width: 100%; min-height: 48px; padding: var(--s-12);
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: inherit; text-align: left; cursor: pointer; }
.rp-door .chev, .rp-open .chev { color: var(--muted); font-size: 1.15rem; }
.rp-taxtime { color: var(--muted); font-size: .86rem; padding: 0 var(--s-4); }
.rp-list { display: grid; gap: var(--s-8); }
.rp-plain { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 0; background: none;
  font: 600 .95rem/1.2 var(--ui); color: var(--ink); cursor: pointer; }
.rp-plain .chev { color: var(--muted); }
/* This month's drafts under the Drafts line (drafter 2, item 10): one quiet line, the tax-time line's size. */
.rp-drafts-line { margin: calc(-1 * var(--s-8)) 0 0; padding: 0 var(--s-4); color: var(--muted); font-size: .86rem; }
.rp-big { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-16); padding: var(--s-16); border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); }
.rp-big-l { display: grid; gap: var(--s-4); min-width: 0; }
.rp-big small, .rp-beside small { font: 600 .68rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-big-l b { font: 800 2.4rem/1.1 var(--ui); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rp-beside { display: grid; gap: var(--s-4); justify-items: end; text-align: right; }
.rp-beside b { font: 700 1.3rem/1.1 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
/* The big number and its label never break (29.8 / %); a sentence beside it is quiet and wraps (shot fix 10/22, money 82/83). */
.rp-big-l:has(+ .rp-beside) { flex: none; }
.rp-big-l:has(+ .rp-beside) b { white-space: nowrap; }
.rp-beside { min-width: 0; }
.rp-beside-line b { font: 600 .85rem/1.3 var(--ui); }
.rp-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); width: 100%; min-width: 0; }
.rp-end { display: inline-flex; align-items: center; gap: var(--s-8); flex: none; }
.rp-cols { min-height: 36px; padding: 0 var(--s-12); border-radius: 999px; border: 1px solid var(--raised-line); background: var(--raised);
  color: var(--ink); font: 600 .82rem/1 var(--ui); cursor: pointer; }
.rp-go { min-height: 36px; padding: 0 var(--s-12); font-size: .86rem; }
.rp-note { color: var(--muted); font-size: .84rem; padding: 0 var(--s-4); }
.rp-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.rp-table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.rp-table th { text-align: left; padding: var(--s-8) var(--s-8); border-bottom: 1.5px solid var(--line); color: var(--muted); font-weight: 700;
  font-size: .74rem; white-space: nowrap; }
.rp-table td { padding: var(--s-8) var(--s-8); border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.rp-table td.short { white-space: nowrap; }
.rp-table .num { text-align: right; white-space: nowrap; }
.rp-table[data-report-table="mileage"] { min-width: max-content; }
.rp-table tr.rp-total td { font-weight: 800; border-top: 1.5px solid var(--ink); border-bottom: 0; }
/* Drafts' seven columns (drafter lane 2, item 10): its number headers wrap ("Thrown / out") and its cells sit 4 px apart inside (the scale;
   8 at the box's edges), so the table fits a phone without a sideways scroll. */
.rp-table[data-report-table="drafts"] th.num { white-space: normal; }
.rp-table[data-report-table="drafts"] th, .rp-table[data-report-table="drafts"] td { padding-left: var(--s-4); padding-right: var(--s-4); }
.rp-table[data-report-table="drafts"] :is(th, td):first-child { padding-left: var(--s-8); }
.rp-table[data-report-table="drafts"] :is(th, td):last-child { padding-right: var(--s-8); }
.rp-checks { display: grid; gap: var(--s-4); }
.rp-check { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; padding: 0 var(--s-4); font-size: 1rem; cursor: pointer; }
.rp-check input { width: 22px; height: 22px; accent-color: var(--brand); }
.rp-line { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 0; background: none;
  font: 500 .84rem/1.2 var(--ui); color: var(--muted); cursor: pointer; }
.page-head .rp-line { margin-left: auto; flex: none; }

/* Skip to content (Build 21 item 5): the first Tab stop, off screen until it has focus. */
.skip-link { position: fixed; z-index: 100; top: calc(8px + env(safe-area-inset-top)); left: 8px; padding: var(--s-8) var(--s-16);
  min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* 200% zoom (Build 21 item 8): at 320 CSS px nothing scrolls sideways (the page's one column never grows past the screen for a
   wide row); under 320 (a 390 phone at 200%) the header wraps, the bar keeps its icons with the words read but not shown, and
   Menu stays on screen. */
.view, .rows { grid-template-columns: minmax(0, 1fr); }
.demo-sample { flex-wrap: wrap; }
.demo-sample .ds-words { flex: 1 1 8em; }
@media (max-width: 319px) {
  .head-line { flex-wrap: wrap; row-gap: 0; }
  .card.mrow .mh1, .card.mrow .mh2 { flex-wrap: wrap; }
  .demo-ask { min-width: 0; }
  .da-btns { grid-template-columns: minmax(0, 1fr); }
  .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav button > span:last-of-type, #nav .ask-name { position: absolute; width: 1px; min-width: 0; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav button[aria-current="page"]:not(.ask-slot)::after { top: var(--s-16); }   /* the icon alone, centered in the tab: the pill with it */
  .inbox-bar .seg { overflow-x: auto; }
}

/* No sideways scroll on any page at 320 or 195 (design notes 2026-10-06-build22, item 7; Build 21 item 8 fixed the Mailbox): a page's
   one column never grows past the screen for a wide row (a grid track sizes to its widest child otherwise), and the rows that
   wouldn't wrap (the page's head, the period control, the Calendar's bar) wrap or shrink. Nothing is clipped. */
.events { grid-template-columns: minmax(0, 1fr); }
.events > .back, #view > .back { justify-self: start; }   /* the small pill, as the event page and the approved mockup */
.events > * { min-width: 0; }
.page-head { flex-wrap: wrap; row-gap: var(--s-4); }
.seg { max-width: 100%; }
.ev-left { flex-wrap: wrap; min-width: 0; }
.rules-page .rsec, .rules-page .rsec-head { min-width: 0; }
.rules-page .rsec-head { grid-template-columns: minmax(0, 1fr); }
.inc-profit { min-width: 0; }
.inc-profit > * { min-width: 0; overflow-wrap: anywhere; }
/* A money amount never breaks mid-number (design notes 2026-10-06-build23, item 1): the profit figure stays on one line and its
   font shrinks with the card when the column is narrow (2.4rem from about 260 px of card; 195 wide reads it whole). Income and
   Costs keep their amounts whole and wrap between the two. */
.inc-profit { container-type: inline-size; }
.inc-profit > b { overflow-wrap: normal; white-space: nowrap; font-size: min(2.4rem, 15cqi); }
.inc-two { flex-wrap: wrap; row-gap: var(--s-4); }
.inc-two b { white-space: nowrap; }
@media (max-width: 359px) {
  .seg { flex-wrap: wrap; }
  .inc-period .seg { flex-wrap: wrap; }
  .seg button { padding-left: var(--s-12); padding-right: var(--s-12); }
}
.rule-add, .rule-add.tell { min-width: 0; }
.rule-add.tell { grid-template-columns: minmax(0, 1fr); }
.rule-add.tell > * { min-width: 0; }
.m-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
.m-row .m-name { min-width: 0; overflow-wrap: anywhere; }
.m-row > .m-name-solo { grid-column: 1 / -1; }   /* a row of words alone (Menu's Hold my spot ›): the whole width, not the tile's */
@media (max-width: 319px) {
  .card.line:not(.nudgeable):not(.aside-line) { flex-wrap: wrap; }   /* a person's row: the name and mail, then the count and date */
  .card.line .l { flex: 1 1 100%; min-width: 0; }
  .li-todo .li-text { flex: 1 1 100%; }                              /* a to-do's words on their own line, the due date under */
}
/* Below about 240 px the raised Ask circle shrinks to its slot (it overlapped the Calendar and Invoices icons at 195): 34 px, the
   mark scaled with it, centered over the slot, still raised the same way (its bottom edge where the other icons' sit). */
@media (max-width: 239px) {
  .ask-slot { justify-items: center; }
  .ask-circle { width: 34px; height: 34px; margin-top: calc(-1 * var(--s-16)); margin-left: auto; margin-right: auto;
    box-shadow: 0 0 0 3px var(--chrome), 0 6px 14px -6px rgba(0,0,0,.6); }
  .ask-slot[aria-current="page"] .ask-circle { box-shadow: 0 0 0 2px #4a148c, 0 0 0 3px var(--chrome), 0 6px 14px -6px rgba(0,0,0,.6); }
  .nav .ask-circle .ask-mark { height: 24px; }
}
.ask-chip { max-width: 100%; min-width: 0; white-space: normal; text-align: center; height: auto; }   /* Ask's chips wrap, never cut (item 7) */
.ask-chips { min-width: 0; }

/* A row stays put when it opens (design notes 2026-10-06-build25, item 8): an invoice opened from the list unfolds in place under
   its row, the same sheet drawn in the list's flow instead of over the page. */
#inv.sheet.inline { position: static; inset: auto; z-index: auto; width: auto; max-width: none; max-height: none; margin: calc(-1 * var(--s-4)) 0 var(--s-8);
  overflow: visible; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
#inv.sheet.inline .cal-sheet { padding-bottom: var(--s-16); }
#inv.sheet.inline::before { content: none; }   /* no grabber: it isn't a sheet to pull down */
/* On a wide screen the sheet is centred with a transform; in place it has none (Build 31 item 8, QA-04: it drew at -88, -141). */
#inv.sheet.inline { left: auto; top: auto; transform: none; }
/* Scheduling (design notes 2026-10-06-build24, item 1). The assign sheet over a coming event: who's on it with their two times
   and the hours they make, then pick someone and a start and an end; See the schedule at its foot. */
.asg-sheet { gap: var(--s-12); }
.asg-event { margin: 0; display: grid; gap: var(--s-4); }
.asg-event span { font: 500 .9rem/1.3 var(--ui); color: var(--muted); }
.asg-rows { display: grid; gap: var(--s-12); }
.asg-row { display: grid; gap: var(--s-8); padding: var(--s-12); border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.asg-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-8); }
/* Build 35 item 2: Starts and Ends share the row in two equal columns that may shrink (a native time field won't go under its
   own width otherwise, and the row ran past the sheet), and the hours word sits under the row, right-aligned under Ends, a muted
   small line, so nothing fights for width at any phone size. */
.asg-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-8); align-items: end; }
.asg-times .pf, .asg-times input { min-width: 0; }
.asg-times .pf { grid-template-columns: minmax(0, 1fr); }
.asg-times input { min-height: 44px; height: 44px; -webkit-appearance: none; }
.asg-hours { grid-column: 2; justify-self: end; font: 500 .82rem/1.2 var(--ui); color: var(--muted); white-space: nowrap; }
.asg-x { justify-self: start; min-height: 44px; }
/* Create's day picker on the Crew schedule's Assign sheet (pass-3 item 2): 44 tall like the times under it (rule 21), the phone's
   own date wheel, its text at the left like every box. */
.asg-day input { min-height: 44px; height: 44px; -webkit-appearance: none; appearance: none; text-align: left; }
.asg-add { display: grid; gap: var(--s-12); }
.asg-people { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.asg-pick { min-height: 44px; align-content: center; }
.asg-pick.on { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-soft); }
.asg-pick.off { opacity: .55; border-style: dashed; }
.asg-pick.off.on { opacity: 1; }
.asg-week { justify-self: start; min-height: 44px; color: var(--muted); font-weight: 600; }
/* The event's own Crew schedule link (build30, item 1): under the crew's names, the sheet's foot link's style. */
.ev-row-v .ev-crew-week { flex-basis: 100%; padding: 0; justify-content: flex-start; text-align: left; }
/* The small word beside each name (items 1b and 1f): not sent until the week goes out, then sent, seen, confirmed or changed. */
.ev-crew { display: grid; gap: var(--s-4); text-align: left; }
.crew-name { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-8); }
.crew-st { font: 600 .74rem/1.2 var(--ui); color: var(--muted); }
.crew-st.st-confirmed { color: var(--green); }
.crew-st.st-changed { color: var(--amber-ink); }
/* The Team page's row (item 1f): their next event, and a day off coming, under the hours line. */
.trow-next, .trow-off { font: 500 .8rem/1.3 var(--ui); color: var(--muted); }
.trow-off { color: var(--amber-ink); }
/* The Calendar's Crew view (item 1c): Events / Crew at the top; the week by person under one Send button. */
.cal-mode { justify-self: start; }
.crew-week { display: grid; gap: var(--s-12); }
.crew-send { min-height: 48px; }
/* The week's Send at the foot, pinned above the bar for the thumb (layout audit 2026-10-27, item 23; the approved mockup; P2),
   the week fading under it; its foot clears the bar's raised Ask circle, as the toast does. */
.crew-foot { position: sticky; z-index: 3; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-8);
  margin: 0 calc(-1 * var(--s-12)) calc(-1 * var(--s-24)); padding: var(--s-12) var(--s-12) var(--s-40);
  background: linear-gradient(to bottom, transparent, var(--bg) var(--s-24)); }
.crew-line { margin: 0; }
/* Practice mode holds the crew's mail (stress lanes 2026-10-08, S9): said right above the button, in the "changed" word's ink. */
.crew-held { margin: 0; color: var(--amber-ink); }
.crew-people { display: grid; gap: var(--s-12); }
/* Crew's two tabs keep one head height, pills or none, so the Schedule | People switch never moves when tapped (rule 9, P4;
   launch gate r9): a pill's 44 plus the head's top inset. */
.crew-page > .page-head, .team-page > .page-head { min-height: 44px; }
/* The empty week's People link sits in its sentence ("in People, then", no gap before the comma); its 44 tap area is drawn
   around the word, not added as width (rule 21; launch gate r9). */
.crew-people .hint .linkish { display: inline; position: relative; min-width: 0; min-height: 0; margin: 0; padding: 0; }
.crew-people .hint .linkish::after { content: ''; position: absolute; inset: -12px -4px; }
.crew-person { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-16); border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.crew-person.due { border-color: var(--amber-ink); }
.cp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-8); }
.cp-events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); }
.cp-ev { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-8); cursor: pointer; font: 500 .95rem/1.35 var(--ui); }
.cp-day { font-weight: 700; min-width: 5.6em; }
.cp-time { color: var(--muted); }
.cp-title { min-width: 0; overflow-wrap: anywhere; }
.cp-gone { cursor: default; color: var(--muted); }
.cp-ev.marked { margin: 0 calc(-1 * var(--s-8)); padding: var(--s-4) var(--s-8); border-radius: 8px; background: var(--brand-bg); }   /* the event's day (build30, item 1) */
.cp-off { margin: 0; font: 600 .85rem/1.3 var(--ui); color: var(--amber-ink); }
.cp-none { margin: 0; font: 500 .9rem/1.3 var(--ui); color: var(--muted); }
/* The Crew view's month (build30, item 3): Week / Month under Events / Crew schedule; a dot on a day with a shift, a greyed one
   for a day off, no names; the day tapped lists its shifts under the grid. */
.crew-view { justify-self: start; }
.crew-month { display: grid; gap: var(--s-12); }
.cday { min-height: 44px; min-width: 0; width: 100%; }   /* the track's width; the aspect ratio sets the height, 44 at least */
/* The crew month fits at 320 (pass 3, the this-week hunt; rule 21): its columns may shrink below a 44-tall cell's width (the
   aspect ratio no longer sets a floor of about 335), so the day list's "+", its tags and the month's arrows stay inside the edge. */
.crew-month .dow, .crew-month .grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cdot { --ev: var(--brand); }
.cdot.off { --ev: var(--muted); opacity: .55; }
.month-legend .cdot { display: inline-block; margin-right: var(--s-4); vertical-align: middle; }
.crew-day { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-16); border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); min-height: 44px; }
.cd-shifts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); }
.cd-shift { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-8); cursor: pointer; font: 500 .95rem/1.35 var(--ui); min-height: 32px; }
/* A crew member's day off on the day (item 1e): one quiet line, "Jess off", and their note. */
.dv-offs { display: grid; gap: var(--s-4); padding: 0 var(--s-16); }
.dv-off { margin: 0; font: 600 .9rem/1.3 var(--ui); color: var(--muted); }
.dv-off small { font-weight: 500; }

/* Compare to last year (design notes 2026-10-06-build27, item 7): a quiet second line under the top number, the muted gray in
   plain small type (not the uppercase label's), no colour, no arrow. */
.inc-last-year, .rp-last-year { font: 600 .85rem/1.3 var(--ui); color: var(--muted); }
.rp-last-year { min-height: 1.3em; }   /* kept when empty: Report stays in the same spot on every report */

/* Deposits (design notes 2026-10-06-build27, item 9): under the invoice's total, the deposit and the balance, one line each,
   right-aligned with the totals; a paid one in the muted gray. Mark paid's question: two buttons side by side. */
.ip-split, .inv-split { margin: var(--s-4) 0 0; font: 700 .9rem/1.35 var(--ui); text-align: right; color: var(--ink); }
.ip-split.paid, .inv-split.paid { color: var(--muted); font-weight: 600; }
.inv-paper .ip-split { color: #1f1b16; } .inv-paper .ip-split.paid { color: #6b645c; }
/* The tip box's word under the total (design notes 2026-10-08-invoice-extras, item 2): quieter than the amounts owed. */
.inv-split.inv-tip { color: var(--muted); font-weight: 600; }
.inv-paper .ip-split.ip-tip { color: #6b645c; font-weight: 600; }
/* Ways to pay (docs/design-notes-2026-10-08-invoices-no-processor.md, item 2): under the total, where a pay link would be, on the
   paper (white in both themes, like the rest of it) and on the preview. Pay online first when there is a processor. */
.ip-ways, .inv-ways { display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-16); border-radius: 8px; }
.ip-ways { border: 1.5px solid #e4ded3; }
.inv-ways { border: 1.5px solid var(--line); margin-top: var(--s-8); }
.inv-ways small { font: 600 .68rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Rules P4/P11: existing small, muted .sub hint; rule 21: keep the box spacing scale. */
.ip-ways-hint { margin: 0; }
.inv-paper .ip-ways-hint { color: #6f6861; }
.ip-way { margin: 0; font: 600 .98rem/1.35 var(--ui); color: #1d1a17; overflow-wrap: anywhere; }
.ip-way span { color: #6f6861; font-weight: 500; }
.ip-way a { color: #4a148c; font-weight: 700; }
.ip-way.online { padding-bottom: var(--s-8); border-bottom: 1px solid #f0ebe3; }
.inv-ways .ip-way { color: var(--ink); }
.inv-ways .ip-way span { color: var(--muted); }
.inv-ways .ip-way a { color: var(--brand-soft); }
.inv-ways .ip-way.online { border-bottom-color: var(--line); }
/* Rules > Invoices, Accepted payments (docs/design-notes-2026-10-08-invoices-switch.md): a checklist that saves every tap, rows 44 tall with no gap
   between, the whole row taps, a 22 rounded check 12 from its label; a tick opens the row's field 8 under it with 12 below. The @
   and $ sit inside their boxes (as the no-processor branch's 34ee8f6 put them), so every box shares one left edge. The last row is
   Square: ticked, Send goes through Square; not connected, a check that never ticks and Connect on the right. */
.pay-methods .pay-list { display: grid; gap: 0; }
.pay-chk { display: flex; align-items: center; gap: var(--s-12); width: 100%; min-height: 44px; padding: 0 var(--s-4); border: 0;
  border-radius: 8px; background: none; color: var(--ink); font: 500 1rem var(--ui); text-align: left; cursor: pointer; }
.pay-chk:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: -2px; }
.pay-chk:disabled { cursor: default; }
.pay-chk .chk { flex: none; position: relative; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--field-line);
  background: var(--raised); }
.pay-chk[aria-checked="true"] .chk { background: var(--brand); border-color: var(--brand); }
.pay-chk[aria-checked="true"] .chk::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pay-methods .pay-field { padding: var(--s-8) 0 var(--s-12); }
.pay-methods .pay-field[hidden] { display: none; }
.pay-methods .pay-field > input { display: block; width: 100%; }   /* the field's box from .pf, as every Rules field */
.pay-methods .pay-err { margin: 0; font: 600 .82rem/1.35 var(--ui); color: var(--red); }   /* a refused value, under its own field */
.pay-methods .pay-pre { position: relative; display: block; letter-spacing: normal; text-transform: none; }
.pay-methods .pay-pre input { display: block; width: 100%; padding-left: var(--s-32); }
.pay-methods .pay-sym { position: absolute; left: var(--s-12); top: 50%; transform: translateY(-50%); font: 600 1rem/1 var(--ui);
  color: var(--muted); pointer-events: none; }
.pay-square { display: flex; align-items: center; gap: var(--s-8); }
.pay-square .pay-chk { flex: 1; min-width: 0; }
.pay-chk.has-sub { align-items: flex-start; }          /* connected: 44 at least, grows with its sub-line; the box by the name */
.pay-chk.has-sub .chk { margin-top: var(--s-8); }
.pay-chk .pay-words { display: grid; gap: 0; min-width: 0; padding: var(--s-8) 0; }
.pay-chk .pay-words > span { line-height: 24px; }
.pay-chk .pay-words small { font: 400 .85rem/1.35 var(--ui); color: var(--muted); }
.pay-chk.is-off { cursor: default; color: var(--muted); }
.pay-chk.is-off .chk { background: none; }
/* Square's Connect: the filled pill every connection row uses (.act.go, as Settings > Connections; layout audit 10/08, 4.1). */
.pay-connect { flex: none; }
/* Square's Pay now (docs/design-notes-2026-10-08-invoices-switch.md): first under the total when Square sends it, a button of its own
   with "Pay by card with Square" under it; Ways to pay follows. The paper keeps its own ink in both themes; the preview takes the
   theme's. */
.ip-paynow, .inv-paynow { display: grid; gap: var(--s-4); justify-items: center; }
.inv-paynow { margin-top: var(--s-8); }
.ip-paynow .pn-btn, .inv-paynow .pn-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
  border-radius: 10px; font: 800 1rem var(--ui); text-decoration: none; }
.ip-paynow .pn-btn { background: #4a148c; color: #fff; }
.inv-paynow .pn-btn { background: var(--brand); color: var(--brand-ink); }
.ip-paynow .pn-note { font-size: .8rem; color: #6f6861; }
.inv-paynow .pn-note { font-size: .8rem; color: var(--muted); }
.inv-mark.inv-which { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.inv-which > b { grid-column: 1 / -1; font: 700 .9rem/1.3 var(--ui); }
.inv-which .btn { min-height: 44px; white-space: normal; }
.deposit-kind { margin: var(--s-8) 0; }
/* The amount's line is the row's sentence, not a field label (build29, item 5): in the page's own type, like the gas row. */
.deposit-form .pf > .rate { font: 500 1rem/1.3 var(--ui); letter-spacing: normal; text-transform: none; color: var(--ink); }
/* Edit from the Crew view (design notes 2026-10-06-build30, item 4): a coming shift is a tap target; the "+" at a day's head. */
/* 44 points like every other row since Build 31 item 13 (they were 32); the words sit in the middle of the taller row. */
.cp-ev[data-shift], .cd-shift[data-shift] { min-height: 44px; align-content: center; align-items: center; }
.cd-add { width: 44px; height: 44px; font: 600 1.4rem/1 var(--ui); }
.add-events { display: grid; }
.add-events .pick { min-height: 52px; text-align: left; }

/* ── Mailbox pass 1, item 1: the row's name wraps ── */
/* "That should wrap. You should be able to see the event, the company, the person's name." The name and the company beside it
   flow as one text that wraps to a second line; an ellipsis only after the second. The bubble and the tag stay at the right of
   the first line. The place and the event (line three) wrap the same way. Every tab's row (Ready, Sent, Booked, Other mail) and
   an open card's head are this one template, so the rule is one place. */
.card.mrow .mh1 { align-items: flex-start; }
/* The first line's middle (16 px down: the 4 px over the 24 px line) is where the bubble sits (its 44 px 6 px up), and the
   tag's 30 px pill 2 px down, a pixel under it: the spacing scale, each a pixel at most from where Mailbox pass 1 put it. The
   bubble left the Mailbox's rows in Build 38 item 1; the landing page's live demo (deck.js) still draws it. */
.card.mrow .mh1 > .contact-btn.bubble { margin: calc(-1 * (var(--s-4) + var(--s-4) / 2)) 0 calc(-1 * var(--s-8)); }
.card.mrow .mh1 > .tag { margin-top: calc(var(--s-4) / 2); }
.card.mrow .mh-who { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  white-space: normal; overflow-wrap: anywhere; padding-top: var(--s-4); line-height: 24px; }
.card.mrow .mh-who > .mh-name { display: inline; white-space: normal; overflow: visible; }
.card.mrow .mh-who > .mh-name .mh-n { overflow: visible; }
.card.mrow .mh-who .co { font: 400 14px/24px var(--ui); white-space: normal; overflow: visible; }
.card.mrow .mh3 { white-space: normal; align-items: flex-start; }
.card.mrow .mh3 .mf-t { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; }
/* Mailbox pass 1, item 2: on a row at rest the calendar glyph is a picture (the row's tap opens the request), drawn the same. */
.card.mrow .mh2 .cal-glyph.still { cursor: inherit; pointer-events: none; }
/* Shifts on any day (design notes 2026-10-07-build36, item 2, the approved mockup; places cut 10/07 night, rigs only): a shift
   with no event shows its rig where an event's name goes, its note on the quiet line under (the Rig pill beside the name went:
   p7-crewrow, the holes audit item 19); an event's shift has its rig on that line on a truck with more than one. The Assign
   sheet's Rig: one chip row that wraps. */
.cp-sub { display: block; flex-basis: 100%; margin-left: calc(5.6em + var(--s-8)); font: 500 .8rem/1.3 var(--ui); color: var(--muted); }
.cd-shift .cp-sub { margin-left: 0; }
.cd-where { flex-basis: 100%; display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s-8); }
.asg-rig { justify-self: start; margin-left: 0; }
.asg-where .pick.on { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-soft); }
.add-events .pick.add { border-style: dashed; border-color: var(--field-line); }
.add-events .pick.add b { color: var(--brand-soft); }
/* The Where row (Build 36 item 3, the approved mockup; rigs only): under the period picker on Income and the reports (the
   Customer list is one list, the owner 10/09); chips (All and each rig) when four or fewer, else the app's select. Book's
   line: "Where Big Rig · change". */
.where-l { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: none; }
.wchips { display: flex; gap: var(--s-8); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.wchips::-webkit-scrollbar { display: none; }
.wc { flex: none; min-height: 44px; padding: 0 var(--s-16); border-radius: 999px; border: 1.5px solid var(--line); background: var(--raised);
  font: 600 .88rem/1 var(--ui); color: var(--ink); white-space: nowrap; cursor: pointer; }
.wc[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-soft); }
.where-select { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); padding: 0 var(--s-8); }
.book-where { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-8); margin: 0; font: 600 .95rem/1.3 var(--ui); }
.book-where .linkish { min-height: 44px; }
.book-where-picks { margin-top: var(--s-4); }

/* ── Build 38 item 1: the request card's preview, per the approved card mockup (docs/mockups/2026-10-08-mailbox-card.html) ── */
/* Exactly two controls in what they wrote: the Contact pill (their name, nothing else) on top of the text, and More centered under
   it (Less at its foot when open). The gray box is the preview: its text opens the whole conversation. No bubble by the name and
   no fold chevron in the head; a tap on the head still folds the card. */
.quote-wrap { display: grid; }
.pv { display: grid; gap: var(--s-8); min-width: 0; background: var(--bg); border-left: 3px solid var(--quote-stripe); border-radius: 6px; cursor: pointer; }
.pv > .contact-pill { margin: var(--s-4) var(--s-12) 0; }
.pv > .quote, .card.open .cblk.wrote .pv > .quote { width: 100%; margin: 0; padding: 0 var(--s-12) var(--s-8); background: none; border: 0; border-radius: 0 0 6px 0; }
.pv > .quote:first-child { padding-top: var(--s-8); }
.pv.solo { background: none; border-left: 0; }
.pv.solo > .contact-pill { margin: 0; }
.card.open .cblk.wrote .pv { margin-top: var(--s-4); }
.contact-pill { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; max-width: calc(100% - var(--s-24)); padding: var(--s-4) var(--s-16);
  border-radius: 999px; border: 1.5px solid var(--raised-line); background: var(--raised); color: var(--ink); font: 600 .84rem/1.2 var(--ui); cursor: pointer; }
.contact-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv > .contact-pill { max-width: calc(100% - var(--s-24)); }   /* a long name ends in an ellipsis inside the gray box */
.pv.solo > .contact-pill { max-width: 100%; }
.contact-pill[aria-expanded="true"] { border-color: var(--brand); color: var(--brand-soft); }
.quote-handle { justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-4); min-height: 44px; min-width: 96px;
  margin: 0; padding: 0 var(--s-16); border: 0; background: none; color: var(--brand-soft); font: 600 .9rem/1.3 var(--ui); cursor: pointer; }
.quote-handle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* The contact sheet (the mockup's frame 4): from the bottom of a phone over a dimmed page, the name and the company on top, the
   rows in one rounded box. A wide screen keeps the short menu by the pill. */
.contact-scrim { position: fixed; inset: 0; z-index: 46; background: rgba(4, 3, 8, .62); }
.contact-menu.as-sheet { position: fixed; z-index: 47; top: auto; left: 0; right: 0; bottom: 0; display: block; min-width: 0; max-width: 560px; max-height: 88dvh;
  margin: 0 auto; padding: var(--s-8) var(--s-16) calc(var(--s-24) + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.7); }
.contact-menu.as-sheet > * + * { border-top: 0; }
.contact-menu.as-sheet .cm-grab { display: block; width: 40px; height: 4px; margin: 0 auto var(--s-12); border-radius: 2px; background: var(--line); }
.contact-menu.as-sheet .cm-title { margin: 0; font: 700 1.15rem/1.3 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.contact-menu.as-sheet .cm-title small { display: block; grid-column: auto; font: 400 .82rem/1.3 var(--ui); color: var(--muted); }
.contact-menu.as-sheet .cm-rows { display: grid; margin-top: var(--s-12); padding: var(--s-8); border-radius: 14px; background: var(--raised); border: 1px solid var(--raised-line); }
.contact-menu.as-sheet .cm-rows > * { min-height: 52px; }
.contact-menu.as-sheet .cm-rows > * + * { border-top: 1px solid var(--line); border-radius: 0; }
.contact-menu.as-sheet .cm-rows > :is(a, button) > span { font-size: 1rem; }
@media (min-width: 900px) { .contact-scrim { display: none; } }

/* ── Build 38 item 8: an organization's Edit, and event series ── */
.co-edit .co-to-event { justify-self: start; }
.co-edit .co-confirm { grid-column: auto; }
.series-row .l span { color: var(--muted); }

/* Build 38 item 3: the calendar cross-check on a request's date line. "On the calendar: Sat Oct 10" reads like the date it
   stands in for; "Mail says Oct 10. Calendar says Oct 11." is in amber and may take two lines (never clipped mid-date). */
.card.mrow .mh2 .mf-t.cal-check { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; }
.card.mrow .mh2 .mf-t.cal-check.differ { color: var(--amber-ink); }
/* Build 38 item 4: Settings > Signature. The preview is the block as it goes out, plain text, under a small label. */
.sig-preview-box { display: grid; gap: var(--s-4); }
.sig-preview-box > .label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sig-preview { margin: 0; min-height: 44px; padding: var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px dashed var(--line);
  background: var(--card); color: var(--ink); font: 400 15px/1.45 var(--ui); white-space: pre-wrap; overflow-wrap: anywhere; }
.sig-preview .hint { color: var(--muted); }
.sig-form .sig-found { color: var(--ink); }

/* App lock (Build 38 item 6): over everything (the shell goes inert under it), the page's own background so nothing of the truck
   shows through; one centered card: the truck's badge, "Locked", its name, Face ID first when this phone has it, the PIN box
   (big, spaced numbers), Unlock, the error line, and the way out when the PIN is forgotten. */
.lock-screen { position: fixed; inset: 0; z-index: 1000; background: var(--bg); color: var(--ink); overflow-y: auto;
  padding: calc(var(--s-40) + env(safe-area-inset-top)) var(--s-16) calc(var(--s-24) + env(safe-area-inset-bottom));
  display: grid; align-content: start; justify-items: center; }
body.app-locked { overflow: hidden; }
.lock-card { width: 100%; max-width: 360px; display: grid; justify-items: center; gap: var(--s-12); text-align: center; }
.lock-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; overflow: hidden; display: grid;
  place-items: center; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--field-line); }
.lock-badge b { font: 800 1.4rem/1 var(--ui); letter-spacing: .02em; }
.lock-badge img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--card); }
.lock-title { margin: var(--s-8) 0 0; font: 700 1.3rem/1.15 var(--ui); }
.lock-name { margin: 0; color: var(--muted); font: 500 .95rem/1.3 var(--ui); }
.lock-card .lock-bio { width: 100%; margin-top: var(--s-12); }
.lock-pin { width: 100%; display: grid; gap: var(--s-8); margin-top: var(--s-12); }
.lock-pin label { font: 600 .8rem/1.2 var(--ui); color: var(--muted); }
.lock-pin input { justify-self: center; width: 9.5em; padding: var(--s-12) var(--s-12); border-radius: 12px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); font: 700 1.6rem/1 var(--ui); letter-spacing: .5em; text-indent: .5em; text-align: center; }
.lock-pin input[aria-invalid="true"] { border-color: var(--red); }
.lock-pin .btn { width: 100%; }
.lock-err { margin: 0; min-height: 1.3em; color: var(--red); font: 600 .9rem/1.3 var(--ui); }
.lock-err:empty { visibility: hidden; }
.lock-out { justify-self: center; min-height: 44px; color: var(--brand-soft); }
.lock-minutes { width: 100%; }
.lock-here { margin: 0; }
/* ── The sign-up wizard (Build 39, docs/design-notes-2026-10-08-build39-wizard.md; sizes from docs/mockups/2026-10-08-wizard.html):
   one column at 390, 16px gutters (the view's 12 and 4 here), the step line with seven bars, the heading 1.45rem 800, the lead
   muted, fields 46px with the field line, the filled button 52px, quiet buttons in brand words. Signed in, the header and the
   bar stay out of the way (body.in-wizard) until it is done. The heights over 44 say !important: the 44-point floor on every
   control (Build 21) is !important too. ── */
.wiz { padding: var(--s-8) var(--s-4) var(--s-12); display: flex; flex-direction: column; gap: var(--s-12); font-size: 16px;
  width: 100%; max-width: 440px; margin: 0 auto; min-height: calc(100dvh - var(--s-24) - env(safe-area-inset-bottom)); }
body.in-wizard .top, body.in-wizard .nav { display: none; }
body.in-wizard .view { padding-bottom: calc(var(--s-12) + env(safe-area-inset-bottom)); }
.wiz-brand { display: grid; justify-items: center; gap: var(--s-8); margin-top: var(--s-4); }
.wiz-brand .login-mark { width: 72px; height: 64px; }
.wiz-brand .login-name { font-size: 1.6rem; }
.wiz-prog { display: flex; gap: var(--s-8); align-items: center; color: var(--muted); font-size: .82rem; font-weight: 600; }
.wiz > .back { align-self: flex-start; }   /* Back (10/08): the app's own, top left, its own width */
.wiz > .wiz-demo-back { text-decoration: none; }   /* "Back to the demo" on screen 1 (Founding flow v2): the same Back, a link */
.wiz-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.wiz-prog i.on { background: var(--brand-soft); }
.wiz-h { font: 800 1.45rem/1.15 var(--ui); margin: var(--s-4) 0 0; letter-spacing: -.01em; }
.wiz-lead { color: var(--muted); font-size: .95rem; line-height: 1.4; margin: 0; }
.wiz-form { display: flex; flex-direction: column; gap: var(--s-12); }
.wiz-f { display: grid; gap: var(--s-8); font-weight: 700; font-size: .92rem; }
.wiz-f small { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.4; }   /* the helper, under its box */
/* Groups, every wizard screen (the owner 10/08; the screen 2 mockup's Spacing column, artifact EEGLkHDR6Xv8kZ7cPdnTrv): a group
   (.wiz-group) is a label with its box and helper, a question with its chips or taps, the rigs, a card. 8 inside a group (the
   group's own gap), 24 between groups, 24 from the heading to the first group and 24 above the screen's filled button, so a label
   plainly belongs to the box under it. The column's gap is 12; these add the other 12. */
:is(.wiz, .wiz-form) > .wiz-group + .wiz-group, .wiz > :is(.wiz-h, .wiz-lead) + :is(.wiz-group, .wiz-form) { margin-top: var(--s-12); }
.wiz-rigs > .wiz-group + .wiz-group { margin-top: var(--s-16); }   /* rig to rig: the rigs' gap is 8 */
:is(.wiz, .wiz-form) > :has(+ .btn.wiz-fill) { margin-bottom: var(--s-12); }
/* The line of reassurance, then its button, 8 apart (polish 1, the layout audit's 18.1 and 18.9): screen 1's sign-in line over Send
   me the link, screen 5's still-reading line over Looks right; 24 above the two, as above any filled button, and at the foot. */
.wiz-end { display: grid; gap: var(--s-8); }
:is(.wiz, .wiz-form) > :has(+ .wiz-end) { margin-bottom: var(--s-12); }
.wiz > .wiz-end { margin-top: auto; }
/* Screen 1 (the wizard lane, P2): Send me the link and its line at the foot, within thumb reach, "Already a member?" under them. */
.wiz-start > .wiz-form { flex: 1; }
.wiz-start > .wiz-form > .wiz-end { margin-top: auto; }
/* Google identity leaves fewer fields: keep agreement and Next with Business name (rule 21, P4). */
.wiz-google-start > .wiz-form { flex: none; }
.wiz-google-start > .wiz-form > .wiz-end { margin-top: 0; }
.wiz-start > .wiz-foot { margin-top: 0; }
.wiz-opt { font-weight: 400; color: var(--muted); }   /* "(optional)" on its label's line (10/08) */
.wiz input, .wiz textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: var(--s-12) var(--s-16); min-height: 46px !important; width: 100%;
  border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); }
.wiz textarea { resize: none; line-height: 1.5; }
.wiz .btn { width: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.wiz-fill { background: var(--action); border-color: var(--action-edge); color: var(--on-action); font-weight: 800; font-size: 1.05rem; min-height: 52px !important; }
.btn.wiz-outline { background: none; border-color: var(--brand); color: var(--brand-soft); min-height: 46px !important; }
.btn.wiz-quiet { background: none; border: 0; color: var(--brand-soft); font-weight: 600; min-height: 44px; }
.wiz-fine { text-align: center; color: var(--muted); font-size: .82rem; margin: 0; }
.wiz-foot { margin-top: auto; }
.wiz-foot a { color: var(--brand-soft); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.wiz-error { color: var(--red); font-size: .88rem; margin: 0; overflow-wrap: anywhere; }
/* Screen 1's "I agree" row (terms fixes 2026-10-23, item 5; the approved mockup ~/fb-brain-runs/agree-mockup): in .wiz-end, 8 above
   Next, at least 44 tall (rule 21). The box and the plain words toggle it (a label); the two links open in a new tab and never
   toggle it. The square is the pay-chk look: 22 square, 6 radius, the field line, the brand fill and a white tick when on. Its
   error line is .wiz-error, 8 under the row. Next is never disabled (P3; rule 14: the line appears when they tap). */
.wiz-agree { display: flex; align-items: center; flex-wrap: wrap; min-height: 44px; padding: 0 var(--s-4); border-radius: 8px;
  font: 500 .92rem/1.3 var(--ui); color: var(--ink); cursor: pointer; }
.wiz-agree > span { white-space: pre; }
.wiz .wiz-agree input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 22px; height: 22px;
  min-height: 22px !important; margin: 0 var(--s-12) 0 0; padding: 0; border-radius: 6px; border: 1.5px solid var(--field-line);
  background: var(--raised); cursor: pointer; }
.wiz .wiz-agree input:checked { background: var(--brand); border-color: var(--brand); }
.wiz .wiz-agree input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wiz .wiz-agree input:focus-visible { outline: none; }
.wiz-agree:has(input:focus-visible) { outline: 2px solid var(--brand-soft); outline-offset: -2px; }
.wiz-agree a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-soft); font-weight: 600; text-decoration: underline; }
.wiz-check { align-items: center; text-align: center; padding-top: 120px; }
.wiz-step { display: grid; gap: var(--s-8); }
.wiz-social { display: grid; gap: var(--s-8); }   /* the social field and its "How do I find my link?" (p5-sociallink): one group, 8 inside */
.wiz-step > b { font-size: .92rem; }
.wiz-rigs { gap: var(--s-8); }
.wiz-hint { color: var(--muted); font-size: .84rem; line-height: 1.35; margin: 0; }
.wiz-row { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.wiz-chip { font: 600 .92rem/1 var(--ui); min-height: 44px; padding: 0 var(--s-16); border-radius: 999px; border: 1.5px solid var(--field-line);
  background: none; color: var(--ink); cursor: pointer; white-space: nowrap; }   /* one line each: they wrap as whole chips */
.wiz-chip[aria-pressed="true"], .wiz-chip[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.wiz-link { justify-self: start; border: 0; background: none; padding: 0; color: var(--brand-soft); font: 600 .92rem/1 var(--ui);
  text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; }
.wiz-rigline { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-4) 0; }
.wiz-rigline .wiz-hint { flex: 1; }
.wiz .btn.wiz-addit { width: auto; min-height: 44px !important; padding: 0 var(--s-20); font-size: .95rem; flex: none; }
.wiz-rowlabel { display: flex; justify-content: space-between; align-items: center; gap: var(--s-8); }
.wiz-remove { border: 0; background: none; padding: 0; color: var(--muted); font: 600 .84rem/1 var(--ui); text-decoration: underline; cursor: pointer; }
.wiz .wiz-next { margin-top: auto; }
.wiz-ok { display: flex; gap: var(--s-8); align-items: center; background: var(--green-bg); color: var(--green); border-radius: 10px;
  padding: var(--s-8) var(--s-12); font-weight: 700; font-size: .9rem; margin: 0; }
.wiz-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: var(--s-16); box-shadow: var(--shadow);
  display: grid; gap: var(--s-12); }
.wiz-card .wiz-t { font-size: .95rem; }
.wiz-how { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-12); counter-reset: wizs; }
.wiz-how li { counter-increment: wizs; display: grid; grid-template-columns: 26px 1fr; gap: var(--s-12); font-size: .92rem; line-height: 1.35; }
.wiz-how li::before { content: counter(wizs); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-soft);
  font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.wiz-how a { color: var(--brand-soft); }
/* Connect help (walk 11/10, rules 13, 21, P9): Google starts with its heading; Apple keeps its prerequisite.
   More help opens in place. The steps' size, 12 apart as the steps are, 44 tall taps. */
.wiz-howto { display: grid; gap: var(--s-12); }
.wiz .wiz-howto .wiz-open-google { margin-top: var(--s-4); }
.wiz-note { margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.45; }
.wiz-before { display: grid; gap: var(--s-8); padding: var(--s-12); margin-bottom: var(--s-12); border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.wiz-before h2, .wiz-howto > h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.wiz-before .wiz-link { display: inline-flex; align-items: center; }
.wiz :is(.wiz-open-google, [data-password-connect]) { min-height: 52px !important; }
.mail-form .tf-actions [data-password-connect] { margin-top: 0; }
.wiz-howto .wiz-link { min-height: 44px; line-height: 1.3; }
.wiz-more { gap: var(--s-4); }
.wiz-more .rchev { margin: 0; color: currentColor; }
.wiz-more-body { display: grid; gap: var(--s-8); margin-top: calc(-1 * var(--s-4)); }
.wiz-more-body[hidden] { display: none; }
/* p5-pwreturn: the paste box and its line under it are a .wiz-f (8 apart, as screen 2's box and helper); in the installed app, "or
   copy:" and the page's address on their own line under Open it, a 44 tall tap that copies it (rule 21). */
.wiz-copyurl { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); min-height: 44px; margin: 0; padding: 0; border: 0;
  background: none; color: var(--muted); font: inherit; font-size: .84rem; text-align: left; cursor: pointer; }
.wiz-copyurl span { color: var(--brand-soft); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.wiz .btn.wiz-stuck { margin-top: calc(-1 * var(--s-4)); }
.wiz-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wiz-bar > i { display: block; height: 100%; background: var(--brand-soft); border-radius: 4px; transition: width .4s ease-out; }
.wiz .wiz-tight { margin-top: calc(-1 * var(--s-4)); }
.wiz textarea[name="sign_off"] { min-height: 92px !important; }
.wiz-qa { display: grid; gap: var(--s-8); padding-top: var(--s-12); border-top: 1px solid var(--line); }
.wiz-qa b { font-size: .92rem; line-height: 1.3; }
.wiz-fix { font-weight: 700; }
/* The travel question's Yes: "How much per mile?" under its taps, a dollar sign before a short box (p5-travelline). */
.wiz-rate { margin-top: var(--s-4); }
.wiz-money { display: inline-flex; align-items: center; gap: var(--s-8); font-weight: 400; font-size: 1rem; }
.wiz .wiz-money input { width: 120px; }
/* A thing and its line, 8 apart (wizard round 2): the gray Sample tag over its card (rule 4), the switch over its line. */
.wiz-pair { display: grid; gap: var(--s-8); }
.wiz-pair > .tag { justify-self: start; }
/* The wizard lane (2026-10-09, rule 9): Tone, Length and Practice mode / Go live are the one segmented control, equal parts, the
   column's full width so each pair on a screen is one width. */
.seg.wiz-seg:not(.mini) { width: 100%; }
.seg.wiz-seg button { padding-left: var(--s-8); padding-right: var(--s-8); }
/* Screen 7's Edit (quiet, a hairline) and Looks good (outlined), equal halves; the one filled button is Finish (P2). */
.wiz-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.wiz .btn.wiz-plain { background: none; border: 1.5px solid var(--field-line); color: var(--ink); min-height: 44px; }
.wiz-two .btn[aria-pressed="true"] { background: var(--brand-bg); border-color: var(--brand); color: var(--brand-soft); }
/* Cloudflare Turnstile's box on screen 1, only when its two keys are set: the widget's own 65 tall, centered. */
.wiz-check-box { min-height: 65px; display: grid; justify-items: center; }
.wiz-anytime { margin: 0; text-align: center; font-size: 1.05rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
/* Screen 6's cards (wizard round 2): card to card 12; each is its title and its buttons only (the owner after the mockup), so it
   sits one step down the scale from a card's 16 and 12 and is as short as what it holds. */
.wiz-cards { display: grid; gap: var(--s-12); }
.wiz-card.wiz-pos-card { padding: var(--s-12); gap: var(--s-8); }
/* Skip for now, a tight text link (the owner): 36 tall, 8 at its sides, no button padding; the card hugs it, 4 under it. The
   owner's call under the app's 44 point floor (its !important), so this says !important too. Screen 3's Facebook and Instagram
   card has the same one at its foot (polish 1). */
.wiz-pos-card .btn.wiz-quiet, .wiz-tip .btn.wiz-quiet { min-height: 36px !important; padding: 0 var(--s-8); width: auto; justify-self: center; }
.wiz-card.wiz-pos-card.wiz-pos-skip, .wiz-card.wiz-tip.wiz-tip-skip { padding-bottom: var(--s-4); }
/* Screen 6's four chips (the owner's v20): one row that never wraps, equal widths, the pill otherwise as everywhere. */
.wiz-row.wiz-pos-chips { flex-wrap: nowrap; }
.wiz-pos-chips .wiz-chip { flex: 1 1 0; min-width: 0; padding: 0 var(--s-8); text-align: center; }
/* A connect that failed (the two steps, 2026-10-08): the first try's words in red, what to fix; the second and after, "Still
   not connecting...", in the ink, since we have it. On the wizard's cards, Connections' rows and Toast's paste form. */
.wiz-failed, .conn-failed { margin: 0; color: var(--red); font-size: .84rem; line-height: 1.35; }
.wiz-failed.still, .conn-failed.still { color: var(--ink); }
.conn-failed { grid-column: 1 / -1; }
.wiz-msg { font-size: .9rem; line-height: 1.45; border-left: 3px solid var(--line); padding-left: var(--s-12); color: var(--muted); margin: 0; }
.wiz-draft { font-size: .95rem; line-height: 1.5; white-space: pre-line; margin: 0; }
/* The admin page's Sign-ups (Build 39 item 8). */
.adm-signups { display: grid; gap: var(--s-8); }
/* Holding a spot (p7-waitlist): the row's one button, Invite, outlined at its right (rule 6); its refusal under the email. */
.adm-hold { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.adm-hold .adm-invite { min-height: 44px; }
.adm-hold .adm-err { margin: var(--s-4) 0 0; }
.adm-h { font: 700 1rem/1.2 var(--ui); margin: var(--s-8) 0 0; }
/* The Facebook and Instagram tip (Build 39 item 9): on the wizard's screen 3 once connected, and in Settings > Connections. */
.wiz-quote { margin: 0; padding: var(--s-8) var(--s-12); border-left: 3px solid var(--brand-soft); background: var(--brand-bg);
  border-radius: 0 10px 10px 0; color: var(--ink); font-size: .92rem; line-height: 1.45; }
.wiz-quote { white-space: pre-line; }   /* an owner's saved reply keeps its line breaks, in Settings and on screen 3 (fb-block) */
.wiz-tip .btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.wiz-meta a { color: var(--brand-soft); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; margin-right: var(--s-8); }
/* Meta notify (docs/design-notes-2026-10-08-meta-notify.md, item 2): a Facebook or Instagram message's card. The tag sits where
   "Found in spam" does (both, side by side, when a page message came out of Spam); the link back to the conversation sits
   under what they wrote, a 44 point target like every link that acts. */
.src-pills { display: flex; flex-wrap: wrap; gap: var(--s-8); justify-self: start; }
.social-pill { display: inline-block; width: max-content; padding: 0 var(--s-8); border-radius: 999px; background: var(--blue-bg);
  color: var(--blue); font: 700 .68rem/1.5 var(--ui); letter-spacing: .03em; }
.social-link { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
/* p7-fbcopy: once Copy reply copied, the line under the button (P12, where the tap was): "Copied. Finish in Messenger." at the left
   and I sent it at the right, the one tap that marks the card Sent; both 44 tall (rule 21), one row at 390. */
.social-copied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 var(--s-12); }
.social-copied > span { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .9rem; }
.social-copied .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); font-size: .9rem;
  text-underline-offset: 3px; }
/* Settings > Connections' Facebook and Instagram card (fb-block, 10/08, the owner's approved mockup): one card of its own, 24
   under the group above (.conn-groups' gap), sides 16 so the heading lines up with the row names. The heading and
   its sentence 4 apart, the link's 44 tap box overhanging 8 each way; 12 to the reply; the label 8 over the wizard's tinted
   quote (or the box, 16 px so a phone does not zoom); 8 to the muted line; 12 to the two buttons, 8 apart. */
.fb-card { display: grid; gap: var(--s-12); padding: var(--s-12) var(--s-16); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.fb-head { display: grid; gap: var(--s-4); }
.fb-title { margin: 0; font: 700 .95rem/1.3 var(--ui); color: var(--ink); text-wrap: pretty; }
.fb-line { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
/* The settings lane: the row sits in Booking requests' group under the Book us page (a row's top line, no card of its own); its
   two buttons equal halves (Copy outlined, Write your own quiet); Facebook's help a muted link under them, centered. */
.group > .fb-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: var(--s-12) var(--s-16); }
.fb-links { display: flex; justify-content: center; margin-top: calc(-1 * var(--s-4)); }
.fb-how { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-12); }
.fb-reply { display: block; min-width: 0; }
.fb-quote { overflow-wrap: anywhere; }
.fb-box { display: block; width: 100%; min-height: 124px; resize: none; font: 400 16px/1.5 var(--ui); color: var(--ink);
  padding: var(--s-12) var(--s-16); border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--raised); }
.fb-box:focus { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-color: var(--brand-soft); }
.fb-hint { margin: var(--s-8) 0 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.fb-err { margin: var(--s-8) 0 0; color: var(--red); font-size: .84rem; font-weight: 600; line-height: 1.35; }
.fb-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-8); margin-top: var(--s-12); }
.fb-acts .act { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px; }
.fb-acts .act.outline { background: none; border-color: var(--brand-soft); color: var(--brand-soft); }
.fb-acts .act.plain { background: none; border-color: var(--line); color: var(--muted); }
/* Settings > Connections' Book us page row (docs/design-notes-2026-10-08-book-us.md): the link in a box, then the row's pills,
   Copy filled, Open and Change link outlined, left aligned (polish 1); Change link opens the one change of the link's end. */
.set.book-row { grid-template-columns: 1fr; align-items: start; }
.set.book-row > span, .set.book-row > b { grid-column: 1; }
.book-link { font: 500 16px/1.25 var(--ui); padding: var(--s-8) var(--s-12); min-height: 44px; border-radius: 9px; border: 1.5px dashed var(--field-line);
  background: var(--raised); color: var(--ink); width: 100%; min-width: 0; }
/* Copy and Open, the row's two, equal halves (rules 6, 7; the settings lane); Change link a muted link under them. */
.book-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.book-acts .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s-16); text-decoration: none; }
.book-change { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-12); }
.book-change[aria-expanded="true"] { color: var(--brand-soft); }
.book-slug { display: grid; gap: var(--s-4); min-width: 0; margin-top: var(--s-4); }
.book-slug label { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.book-slug-line { display: flex; align-items: center; gap: var(--s-8); min-width: 0; }
.book-slug input { flex: 1 1 auto; min-width: 0; font: 500 16px/1.25 var(--ui); padding: var(--s-8) var(--s-12); min-height: 44px; border-radius: 9px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); }
.book-slug .btn { flex: none; min-height: 44px; padding: var(--s-8) var(--s-16); }
.book-row .hint, .book-row .book-note { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.book-row .book-err { color: var(--red); font-size: .84rem; font-weight: 600; }

/* ── The shared pieces (shared-1, docs/design-rules.md; app/public/ui.js draws them): the page head (rule 1), the segmented
   control (rule 9), the tag (rule 4), the one chevron (rule 7b), the row and the accordion (rules 6, 7; P9), the confirm in
   place (P13), the empty state (P10), the outlined row button (P2). The house tokens only; light and dark both. ── */

/* Rule 1: the title hard left; one group of pills hard right, 44 tall, 8 apart: Create, search, share. */
.page-head { gap: var(--s-8); min-height: 44px; }
.page-head h1 { margin: 0 auto 0 0; min-width: 0; }
.head-acts { display: flex; align-items: center; gap: var(--s-8); flex: none; margin-left: auto; }
/* Calendar's head has three pills since layout item 22 (Create, search, share): at 200% zoom (195 wide) they wrap inside
   the row instead of running past the edge (rule 21; tests/test_e2e_b22.py). Wider phones never wrap them. */
.head-acts { flex-wrap: wrap; justify-content: flex-end; row-gap: var(--s-8); max-width: 100%; }
.create-pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); height: 44px; padding: 0 var(--s-16) 0 var(--s-12);
  border-radius: 999px; border: 1.5px solid var(--action-edge); background: var(--action); color: var(--on-action); font: 700 .92rem/1 var(--ui); cursor: pointer;
  white-space: nowrap; flex: none; }
.create-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.create-pill.quiet { background: none; border-color: var(--line); color: var(--muted); font-weight: 600; }   /* .btn.quiet's look: New message with no mailbox yet (P10) */
.rpill { flex: none; width: 44px; height: 44px; padding: 0; gap: 0; border-radius: 50%; border: 1.5px solid var(--raised-line); background: var(--raised);
  color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.rpill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rpill[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-soft); }
.create-pill:active, .rpill:active { transform: scale(.98); }
.head-acts .rpill { margin: 0; }
.page-head.login-head h1 { margin: 0 auto; }   /* Sign in stays centered */

/* Rule 9: one segmented control. Centered, equal parts, 44 tall, the picked part a gold chip inside it (fix4); two or more stack 8
   apart at one width, the widest's; nothing else in a switch's row. (.seg.mini, the $ / % inside a form field, stays inline.) */
.seg:not(.mini) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; max-width: 100%; margin-inline: auto; padding: 0;
  height: auto; min-height: 44px; border-radius: 10px; background: var(--raised); border: 0; box-shadow: inset 0 0 0 1px var(--line); flex-wrap: nowrap; overflow: visible; }
.seg:not(.mini) button { position: relative; isolation: isolate; min-height: 44px; padding: var(--s-4) var(--s-16); border: 0; border-radius: 10px; background: none;
  box-shadow: none; font: 600 .85rem/1.15 var(--ui); color: var(--muted); white-space: normal; text-wrap: balance; text-align: center; }
.seg:not(.mini) button::before { content: ""; position: absolute; inset: var(--s-4); z-index: -1; border-radius: 7px; }
.seg:not(.mini) button[aria-selected="true"], .seg:not(.mini) button[role="radio"][aria-checked="true"] { background: var(--action); box-shadow: none; color: var(--on-action); }
.seg:not(.mini) button[aria-selected="true"]::before, .seg:not(.mini) button[role="radio"][aria-checked="true"]::before {
  background: var(--action); box-shadow: none; }   /* fix4: selected gold, no shadow, no ring */
.seg-stack { display: grid; gap: var(--s-8); width: max-content; max-width: 100%; margin-inline: auto; }
.seg-stack > .seg:not(.mini) { width: auto; margin: 0; }
.inbox-bar { display: block; padding: 0; }
.inbox-bar .seg:not(.mini) button { padding-left: var(--s-8); padding-right: var(--s-8); white-space: nowrap; }
.pf > .seg:not(.mini), .tf-actions .seg:not(.mini) { margin-inline: 0; }
[data-fee-form] .pf > .seg:not(.mini) { width: 100%; display: flex; }
[data-fee-form] [data-fee-kind] { flex: 1; }
/* A picker of many words, not a switch (the admin's six filters, the mail services in Settings): it wraps, as before. */
.seg.adm-filters, .mail-form .seg { display: flex; flex-wrap: wrap; width: auto; max-width: 100%; }
.seg.adm-filters { margin: var(--s-4) 0 var(--s-12); }
.seg.adm-filters button, .mail-form .seg button { padding-left: var(--s-12); padding-right: var(--s-12); }
.sync-line { margin: 0; text-align: center; }
/* At 200% zoom (195 wide) a switch scrolls inside itself rather than the page. */
@media (max-width: 359px) {
  .seg:not(.mini) { overflow-x: auto; scrollbar-width: none; }
  .seg:not(.mini)::-webkit-scrollbar { display: none; }
}

/* Rule 4: the tag, one word in one of three colors (or gray when inert). Old names keep their colors. */
.tag.red, .card .doc-pick .tag.red { color: var(--red); background: var(--red-bg); box-shadow: none; }
.tag.amber { color: var(--amber-ink); background: var(--amber-bg); box-shadow: none; }
.tag.green { color: var(--green); background: var(--green-bg); box-shadow: none; }
.tag.gray { color: var(--muted); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }

/* Rule 7b: the one chevron, the Mailbox's, at a row's right edge: down on a row that opens in place (up while open), right on a
   row that goes to a page. Same size, same color everywhere. */
.rchev { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: auto; color: var(--muted); font-style: normal; }
.rchev svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s ease; }
.rchev.up svg, [aria-expanded="true"] > .rchev:not(.go) svg, .acc.open > .acc-h .rchev:not(.go) svg { transform: rotate(180deg); }
.card.line > .state, .inc-row > .inc-num, .inv > .inv-r { margin-left: auto; }
.card.line > .rchev, .inc-row > .rchev, .inv > .rchev { margin-left: calc(-1 * var(--s-4)); }
.inc-row > .inc-l { min-width: 0; overflow-wrap: anywhere; }   /* gives way first at 200% zoom, the chevron beside it */
.done-line > .said { order: 2; }
.srow-head { align-items: center; padding-bottom: var(--s-16); }
.srow.open .srow-head { padding-bottom: var(--s-12); }
.card.mrow .mh3 > .rchev { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.ev > .rchev { align-self: center; }
.m-row > .rchev { grid-column: 3; }
.set.link-row > .rchev { grid-column: 2; }
button.set.rig-row .rchev { grid-column: 2; grid-row: 1 / span 2; }
button.lever-info .rchev { position: absolute; right: var(--s-8); top: 50%; transform: translateY(-50%); }
.em-sum { position: relative; padding-right: var(--s-32); }
.em-sum .rchev { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.doc-row .l { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-8); flex: 1; }
.doc-row .l > :not(.rchev) { grid-column: 1; }
.doc-row .l > .rchev { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.hist.opens { position: relative; padding-right: var(--s-40); }
.hist > .hist-chev { position: absolute; right: var(--s-12); top: 50%; transform: translateY(-50%); }
.help-q > span:first-child { min-width: 0; text-align: left; }
.reach-head { grid-template-columns: 34px 1fr auto; }
.reach-head > .rchev { grid-column: 3; grid-row: 1; }
.rp-plain { gap: var(--s-8); }
.rp-plain > .rchev { margin-left: 0; }
.cl-open { padding-right: var(--s-40); }
.cl-open > .rchev { position: absolute; right: var(--s-12); top: 50%; transform: translateY(-50%); }

/* Rules 6, 7 and P8, P9: one row (ui.js rowHtml). The name with its fact, the tag upper right, the detail, one date line, at most
   one outlined button, the chevron; with a body it opens in place (the accordion), the chevron turned, the same tap folds it. */
.urow { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.urow.open { box-shadow: var(--shadow); border-color: var(--field-line); }
.urow-h { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "name tag chev" "detail detail chev" "date act chev";
  column-gap: var(--s-8); row-gap: 0; align-items: center; padding: var(--s-12) var(--s-8) var(--s-12) var(--s-16); cursor: pointer; }
.urow-h:active { background: var(--bg); }
.urow-name { grid-area: name; min-width: 0; font: 600 1rem/1.3 var(--ui); overflow-wrap: anywhere; }
.urow-k { font-variant-numeric: tabular-nums; }
/* Which money an amount is (parked answers P1, P4): a small gray word beside it, "$643.82 gross" (ui.js amountWordHtml). In a
   colored day-view block it takes the block's ink, a little lighter, as its amount does. */
.amt-word { font: 400 .8em/1 var(--ui); color: var(--muted); white-space: nowrap; }
/* The amount and its word wrap as one ("· $1,150.91 after tax"), never the word alone on its own line (shot fix 10/22). */
.urow-k:has(> .amt-word) { white-space: nowrap; }
.dv-ev .amt-word { color: inherit; opacity: .8; }
.urow-h > .tag { grid-area: tag; justify-self: end; height: 26px; padding: 0 var(--s-12); font-size: .76rem; }
.urow-detail { grid-area: detail; min-width: 0; font-size: .84rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.urow-date { grid-area: date; min-width: 0; font-size: .82rem; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.urow-act { grid-area: act; justify-self: end; }
.urow-h > .rchev { grid-area: chev; justify-self: end; width: 28px; height: 44px; margin: 0; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.acc.open > .acc-body { grid-template-rows: 1fr; }
.acc-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .24s; }
.acc.open > .acc-body > .acc-in { visibility: visible; transition-delay: 0s; }
.urow .acc-in { padding: 0 var(--s-12); }
.urow.open .acc-in { border-top: 1px solid var(--line); padding: var(--s-12) var(--s-12) var(--s-4); }
/* "How do I find my link?" (p5-sociallink; ui.js findLinkHtml; rules 7, 7b, 21, P9): a quiet line, 44 tall, the down chevron beside its
   words and turning as it opens; open, the eight lines as a plain list. One per page, under the group of social fields. */
.find-h { display: flex; align-items: center; justify-content: flex-start; gap: var(--s-4); min-height: 44px; cursor: pointer;
  color: var(--muted); font: 600 .88rem/1.3 var(--ui); }
.find-h > .rchev { margin: 0; width: 24px; height: 24px; }
.find-list { margin: 0; padding: 0 0 var(--s-8) var(--s-20); color: var(--ink); font: 400 .88rem/1.45 var(--ui); overflow-wrap: anywhere; }
.find-list li + li { margin-top: var(--s-8); }
.btn.line, .btn.outline, .btn.wiz-outline, .act.line, .act.outline {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; cursor: pointer; gap: var(--s-8);
  background: none; border-color: var(--brand-soft); color: var(--brand-soft); }
.row-btn, .inv-r .inv-remind.line { min-height: 44px; padding: 0 var(--s-16); font-size: .85rem; }

/* P13: confirm once, in place: the consequence in one line, then the destructive word and Keep, side by side. */
.confirm-in { display: grid; gap: var(--s-8); margin: var(--s-8) 0; padding: var(--s-12); border-radius: 10px; background: var(--raised);
  border: 1px solid var(--line); color: var(--ink); grid-column: 1 / -1; flex-basis: 100%; }
.ci-line { font: 600 .92rem/1.35 var(--ui); }
.ci-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.ci-acts .btn { min-height: 44px; padding: 0 var(--s-12); }
.confirm-in .btn.danger { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }

/* P10: the empty state, one line that names the next step and its one button. */
.empty.empty-one { padding: var(--s-40) var(--s-16); gap: var(--s-16); justify-items: center; }
.empty-line { margin: 0; max-width: 30ch; color: var(--ink); font: 600 1rem/1.4 var(--ui); text-wrap: balance; }
.empty-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; padding: 0 var(--s-24); }

@media (prefers-reduced-motion: reduce) { .urow, .acc-body, .acc-in, .rchev svg { transition: none; } }

/* ── The calendar lane (2026-10-09; docs/design-rules.md rules 4, 6, 7, 7b, 8, 9, 13, P2, P6, P9; the audit's "Calendar event
   detail" and "Crew schedule"; Calendar v3). Upcoming: a heading per day, each event an accordion row that stays where it is and
   opens under itself: the details, the rig's switch, one row of three equal pills, the rows that carry a tag, the notes, then
   "Read the conversation" folded at the foot. The house tokens only; light and dark both. ── */
.ev-list { display: grid; gap: var(--s-8); }
.ev-list > .divider:first-child { padding-top: var(--s-4); }
.ev-acc { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ev, var(--brand)); border-radius: 10px; overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease; }
.ev-acc.open { box-shadow: var(--shadow); border-color: var(--field-line) var(--field-line) var(--field-line) var(--ev, var(--brand)); }
.ev-acc.passed { border-left-style: dashed; }
.ev-acc.passed .ev-main b { text-decoration: line-through; text-decoration-color: var(--muted); }
.ev-h { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; column-gap: var(--s-8); align-items: center; min-height: 44px;
  padding: var(--s-12) var(--s-8) var(--s-12) var(--s-12); cursor: pointer; }
.ev-h:active { background: var(--bg); }
.ev-h > .tag { height: 26px; padding: 0 var(--s-12); font-size: .76rem; }
.ev-h > .rchev { grid-column: 3; justify-self: end; width: 28px; height: 44px; margin: 0; }
.ev-h .rig-tag { white-space: nowrap; }
.ev-acc .acc-in { padding: 0 var(--s-12); }
.ev-acc.open .acc-in { border-top: 1px solid var(--line); padding: var(--s-12) var(--s-12) var(--s-4); }
.ev-body { display: grid; gap: var(--s-12); cursor: default; }
.ev-weather-slot:empty { display: none; }
.ev-weather { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-8); align-items: center;
  color: var(--ink); font: 500 .84rem/1.4 var(--ui); text-decoration: none; }
a.ev-weather { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 44px; }
.ev-weather-k { color: var(--muted); }
.ev-weather.muted { color: var(--muted); }
.ev-weather-v { overflow-wrap: anywhere; }
.ev-weather-forecast { display: flex; min-width: 0; white-space: pre; }
.ev-weather-forecast > span { flex-shrink: 0; }
.ev-weather-forecast > .ev-weather-condition { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
a.ev-weather:focus-visible { outline: 2px solid var(--brand); outline-offset: var(--s-4); }
.ev-body .facts { margin: 0; padding: 0; font: 500 .95rem/1.4 var(--ui); }
.ev-body .fact dd { color: var(--ink); }
.ev-body .ev-note { margin: 0; }
.ev-cust { display: flex; align-items: center; gap: var(--s-8); width: 100%; min-height: 44px; margin: calc(-1 * var(--s-8)) 0; padding: 0; border: 0;
  background: none; color: var(--ink); font: 600 1rem/1.3 var(--ui); text-align: left; cursor: pointer; }
.ev-cust > span { min-width: 0; overflow-wrap: anywhere; }
.ev-cust .ev-org { color: var(--muted); font-weight: 500; }
.ev-cust > .rchev { margin-left: auto; }
.ev-rigsw { display: grid; }
/* The menu it uses (pass 3, item 18b): the line is its name with the down chevron beside it (rule 7b), turning while the pick is
   open; the pick, the menus by name, a centered switch (rule 9) or, past three, a list. */
.ev-menu { display: inline-flex; align-items: center; gap: var(--s-4); min-height: 44px; margin: calc(-1 * var(--s-12)) 0; padding: 0; border: 0;
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ev-menu > span { min-width: 0; overflow-wrap: anywhere; }
.ev-menu > .rchev { margin-left: 0; }
.ev-menu-none { color: var(--brand-soft); font-weight: 600; }
.ev-menusw { display: grid; }
.ev-menu-list { display: grid; gap: var(--s-4); }
.ev-menu-opt { min-height: 44px; padding: 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line); background: transparent; color: var(--ink);
  font: 600 .9rem/1.2 var(--ui); text-align: left; cursor: pointer; }
.ev-menu-opt[aria-checked="true"] { border-color: var(--brand); background: var(--raised); }
/* Rule 7 as decided: one row of three equal pills, outlined (P2: the page's one filled button is not here). */
.ev-acts3 { display: flex; gap: var(--s-8); }
.ev-act { flex: 1 1 0; min-width: 0; min-height: 44px; padding: var(--s-4); border-radius: 999px; border: 1.5px solid var(--field-line); background: transparent;
  color: var(--ink); font: 600 .85rem/1.15 var(--ui); text-align: center; cursor: pointer; }
.ev-act:active, .ev-act[aria-expanded="true"] { background: var(--raised); }
@media (max-width: 340px) { .ev-act { font-size: .78rem; } }
/* The rows that carry a tag (rules 4, 6): the label at the left, one line, the tag at the right edge. */
.ev-body .ev-rows { margin: 0; }
.ev-body .ev-rows:empty { display: none; }
.ev-done-rows + .ev-rows { border-top: 0; }
.ev-row-v > .tag, .ev-row-v > .rchev { margin-left: auto; }
.ev-row-v > .tag + .rchev { margin-left: 0; }
.ev-row-v .row-btn { margin-left: auto; }
.ev-row-line { min-width: 0; overflow-wrap: anywhere; }
button.ev-row-btn { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.ev-row-btn:active { background: var(--bg); }
.ev-body .ev-crew { display: grid; gap: var(--s-4); width: 100%; }
.ev-crew .crew-name { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
/* The Crew row's Send (p7-crewrow, the approved mockup's option A; rules 6, 15, 21): on the Crew label's line at its right end, as
   Agreement's Send sits, the names under it; on a phone too narrow for both it wraps under the label. */
.ev-crew-row { row-gap: 0; }
.ev-crew-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8) var(--s-12); }
.ev-crew-top > .row-btn { margin-left: auto; white-space: nowrap; }
.ev-crew-row > .ev-crew, .ev-crew-row > .ev-crew-held { grid-column: 2; }
.ev-crew-row > .ev-crew-held { padding-top: var(--s-4); }
/* A scheduled name opens their shift (p7-crewrow): 44 tall (rule 21), the link purple Add a note wears, no chevron (rule 7b). */
.ev-body .ev-crew:has(.crew-link) { gap: 0; }
.crew-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--brand-soft); font: 600 1rem/1.3 var(--ui); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
/* The shift sheet: the event, its day and the one status line, each on its own line (the mockup). */
.shift-sheet .asg-event { display: grid; gap: var(--s-4); }
.shift-sheet .asg-event span { font: 500 .9rem/1.3 var(--ui); color: var(--muted); }
.ev-note-text { color: var(--ink); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-note-add { color: var(--brand-soft); font-weight: 600; }
.ev-notes-open .notes-box { margin: var(--s-8) 0 0; }
.ev-body .ev-checkin { margin: 0; font-size: .92rem; color: var(--muted); }
.ev-loading { margin: 0; color: var(--muted); font-size: .9rem; }
.ev-unblock { justify-self: start; }
/* Rule 7: "Read the conversation" folded at the foot, the right chevron (it goes to the conversation). */
.ev-fold { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); width: 100%; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font: 500 .9rem/1.2 var(--ui); text-align: left; cursor: pointer; }
.ev-rows + .ev-fold, .ev-checkin + .ev-fold { margin-top: calc(-1 * var(--s-4)); }
.ev-rows:not(:empty) + .ev-fold { border-top: 0; }
.ev-demo-sign { flex-basis: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--muted);
  font: 500 .82rem/1.35 var(--ui); text-align: left; cursor: pointer; }
.ev-row:has(.ev-demo-sign) { align-items: start; }
.ev-full > .tag { justify-self: start; }
.ev-full .ev-body { margin-top: var(--s-4); }
.ev-body .ev-pin { color: var(--brand-soft); }
.ev-event-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-12); }
.ev-website-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-soft); }
.ev-website-edit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ev-website-add { justify-self: start; min-height: 44px; padding: 0; }
.walk-event-fields .ev-website-add { display: none; }
.ev-website-form { display: grid; gap: var(--s-8); }
.ev-website-form input { width: 100%; min-width: 0; }

/* The Crew view (the audit's Crew schedule, the crew mockup): the two switches one width (rule 9); no amber outline and no amber
   day off (P6); each shift its day, then what it is and its times, then its own tag at the row's upper right (rule 4; p10-calpolish
   item 4: the person's one tag at the card's head went, it read one shift's state beside another), the house tag's size. */
.seg-stack > .seg.cal-mode, .seg-stack > .seg.crew-view { justify-self: stretch; }
.cp-head { justify-content: space-between; align-items: center; min-height: 26px; }
.cp-ev, .cp-ev[data-shift] { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; column-gap: var(--s-8); align-items: start; align-content: center; }
/* The row's chevron at its right edge (sweep 10/22 V47, rule 7b): it was a fourth cell in a three-column grid, so it wrapped
   under the weekday. It shares the tag's column, under the tag, so the shift's words keep their width. */
.cp-ev > .tag { grid-column: 3; grid-row: 1; align-self: start; }
.cp-ev > .rchev { grid-column: 3; grid-row: 1; align-self: end; justify-self: end; }
.cp-ev:not(:has(> .tag)) > .rchev { align-self: center; }
.cp-ev:has(> .tag) > .rchev { margin-top: calc(var(--s-24) + var(--s-4)); }   /* the 24 px tag, then 4: a short row grows to hold both, never one over the other */
.cp-what { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-8); }
.cp-what .cp-time { color: inherit; }
.cp-what .cp-sub { margin-left: 0; }
.cp-off { color: var(--muted); font-weight: 500; }
.cd-shift > .tag { margin-left: auto; height: 24px; padding: 0 var(--s-8); font-size: .74rem; }
.crew-month > .crew-step, .crew-week > .month-head { padding: 0; }   /* the week's arrows at the month's inset (P4; pass 3 hunt) */
.asg-event { display: block; font: 500 .95rem/1.4 var(--ui); color: var(--muted); }
.asg-event b { color: var(--ink); font-weight: 700; }
.pf.asg-where > .seg.asg-rig-seg { margin-inline: auto; }
.asg-who > .tag { height: 24px; padding: 0 var(--s-8); font-size: .74rem; }
@media (prefers-reduced-motion: reduce) { .ev-acc { transition: none; } }

/* ── The Mailbox (the design round 2026-10-09, docs/design-rules.md; the audit's Mailbox section and its mockup). Rules 4 and 5: Ready
   (red), Sent (amber), Booked (green) as filter pills over stacked sections, no counts; rule 6: ui.js's row (.urow) for every
   conversation, the stripe gone; rule 7: an open card leads with Send and Book, the rare actions one muted row at its foot; rule 21:
   the --s scale, 24 between groups, 44 tall taps. The house tokens only; light and dark both. ── */
/* The filter pills (ui.js pillsHtml): the Mailbox's, and since the stack (2026-10-09, P4) Invoices' and Documents' too. */
/* Walk 1118 (Chris's phone, larger text): the row wraps instead of squeezing. Equal widths while a line holds them (P4), each pill
   never narrower than its word (fit-content), 8 apart both ways; a word wider than the whole row wraps inside its own pill. The
   old fixed 3- and 4-column grids let "Awaiting reply" spill over its neighbours once the text grew. */
.mpills { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.mpill { flex: 1 1 0; min-width: fit-content; max-width: 100%; min-height: 44px; padding: var(--s-4) var(--s-12); border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; font: 700 .92rem/1.15 var(--ui); white-space: normal; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; }
.mpill.red { color: var(--red); background: var(--red-bg); }
.mpill.amber { color: var(--amber-ink); background: var(--amber-bg); }
.mpill.green { color: var(--green); background: var(--green-bg); }
/* Picked: the word's color fills the pill and the word takes the card's (light on the dark inks in light, dark on the bright ones
   in dark): house tokens only. */
.mpill[aria-pressed="true"] { color: var(--card); }
.mpill.red[aria-pressed="true"] { background: var(--red); }
.mpill.amber[aria-pressed="true"] { background: var(--amber-ink); }
.mpill.green[aria-pressed="true"] { background: var(--green); }
.mpill:active { transform: scale(.98); }
.mb-rows { gap: var(--s-24); }
.mb-sec { display: grid; gap: var(--s-8); align-content: start; min-width: 0; }
.mb-sec-h { margin: 0; padding: 0 var(--s-4); font: 600 .7rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mb-sec-h.red { color: var(--red); }
.mb-rows > .divider { padding-top: 0; }

/* The row: the old card's stripe, padding and shadow off; ui.js's head lays it out. */
.card.mbx { display: block; padding: 0; min-height: 0; box-shadow: none; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.card.mbx::before { content: none; display: none; }
.card.mbx.open { box-shadow: var(--shadow); border-color: var(--field-line); }
.card.mbx.unsure { border-style: solid; }
.card.mbx > .urow-h { padding: var(--s-12) var(--s-8) var(--s-12) var(--s-16); }
/* The name and its day wrap to two lines whole, an ellipsis only after the second (Mailbox pass 1, item 1); the tag stays level with
   the first line. */
.card.mbx .urow-name { font-size: 1rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card.mbx .urow-h > .tag { align-self: start; margin-top: calc(-1 * var(--s-4)); }
.card.mbx .urow-k { font-weight: 600; }
.card.mbx .urow-detail { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card.mbx .urow-h > .tag.red { color: var(--red); background: var(--red-bg); box-shadow: none; }
.card.mbx .urow-h > .tag.amber { color: var(--amber-ink); background: var(--amber-bg); box-shadow: none; }
.card.mbx .urow-h > .tag.green { color: var(--green); background: var(--green-bg); box-shadow: none; }
.card.mbx .urow-h > .tag.gray { color: var(--muted); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.card.mbx .urow-act { margin: var(--s-4) 0 calc(-1 * var(--s-4)); }
.card.mbx.selected { border-color: var(--brand); }
.card.mbx.incoming .urow-h > .tag { animation: poll-blink 1.2s ease-in-out infinite; }

/* The open card, under its head: Send and Book, what they wrote, the reply, the add-ons, the muted row. */
.mb-body { display: grid; gap: var(--s-12); min-width: 0; padding: var(--s-12); border-top: 1px solid var(--line); }
.mb-body > * { margin: 0; }
.card.mbx .mb-body .cblk.wrote { display: grid; gap: var(--s-8); padding: 0; }
.card.mbx .mb-body .cblk.wrote:empty { display: none; }
.card.mbx .mb-body .draft { margin: 0; }
.card.mbx .mb-body .levers { padding: 0; }
.card.mbx .mb-body .quote, .card.mbx .mb-body .pv > .quote { width: 100%; margin: 0; }
.card.mbx .mb-body .pv { margin: 0; }
.card.mbx .actions.mb-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); padding: 0; }
.card.mbx .actions.mb-acts > :only-child { grid-column: 1 / -1; }
.card.mbx .actions.mb-acts > .send-split { grid-column: auto; }
.card.mbx .actions.mb-acts:not(.with-book) > .send-split { grid-column: 1 / -1; }
.card.mbx .actions.mb-acts > .btn { min-height: 44px; padding: 0 var(--s-12); font-weight: 700; }
.card.mbx .actions.mb-acts > .btn.book { display: inline-flex; align-items: center; justify-content: center; background: none; border-color: var(--raised-line); color: var(--ink); }
.card.mbx .actions.mb-acts > .owner-sends { grid-column: 1 / -1; text-align: center; }
.mb-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.mb-links .linkish { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--s-8); color: var(--muted); font: 500 .88rem/1 var(--ui);
  text-decoration: underline; text-underline-offset: 3px; }
.mb-links .linkish[aria-pressed="true"] { color: var(--ink); }
.mb-links .mb-dot { color: var(--muted); }
.mb-handled { display: flex; justify-content: center; margin-top: var(--s-12); }
.mb-handled .btn { min-height: 44px; }
.card.mbx .mb-body .call-out, .card.mbx .mb-body .stop, .nm-composer .stop { margin: 0; }
.card.mbx .mb-body .quiet-next, .card.mbx .mb-body .no-reply { margin: 0; padding: 0 var(--s-4); color: var(--muted); font-size: .88rem; }
.card.mbx .mb-body .aside-why { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* Other mail, the quiet row at the foot of the list (it goes to its own page: the right chevron). */
.mb-other { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); width: 100%; min-height: 52px; padding: 0 var(--s-8) 0 var(--s-16);
  border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--muted); font: 600 .95rem/1.2 var(--ui); cursor: pointer; text-align: left; }
.mb-other:active { background: var(--raised); }
.mb-other .rchev { width: 28px; height: 44px; margin: 0; }
.mb-rows > .demo-ask.quiet { margin-top: 0; }
@media (min-width: 320px) { .demo-ask.quiet .da-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* two halves; stacked below 320 as before */
/* Narrow phones and 200% zoom (195 wide): the filter pills wrap as above, never past the page (rule 21). */
@media (max-width: 359px) {
  .mb-links .linkish { padding: 0 var(--s-4); }
  /* The tag under the name, the name whole; Send and Book stacked. */
  .card.mbx .urow-h { grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "name chev" "tag chev" "detail chev" "date chev" "act chev"; }
  .card.mbx .urow-h > .tag { justify-self: start; margin: var(--s-4) 0 0; }
  .card.mbx .urow-act { justify-self: start; }
  .card.mbx .actions.mb-acts { grid-template-columns: minmax(0, 1fr); }
}
/* The survey's card on a live truck's Mailbox (pass-2 item 10): its title, one line, Start and Not now, the X at its corner. */
.survey.sv-card { position: relative; }
.survey.sv-card .sv-title { margin: 0; padding-right: var(--s-40); font: 800 1.02rem/1.3 var(--ui); }
.survey.sv-card .sv-line { margin: calc(-1 * var(--s-4)) 0 0; color: var(--muted); font-size: .92rem; }

/* ── Documents (the documents lane, 2026-10-09; app/public/docs.js): the pills over the sections (rules 4, 5), each paper a row
   that opens in place (rules 6, 7, 7b) with Send on it (rule 19), the paper as a picture inside, the muted link row, the Send
   sheet (P9). The --s scale and the house tokens only; light and dark both (rule 21). ── */
.docs-page { gap: var(--s-12); }
.doc-sec { display: grid; gap: var(--s-8); align-content: start; }
.doc-sec > .divider { padding: var(--s-12) var(--s-4) 0; }
.doc-sec[data-doc-sec="lapsed"] > .divider { color: var(--red); }
/* The head's one button steps aside while the row is open: its twin leads the body (P2, one Send on the screen). It keeps its
   width, so the name and the tag stay put (P9). */
.doc-r.open > .urow-h .urow-act { visibility: hidden; height: 0; overflow: hidden; }
.doc-r > .confirm-in { margin: 0 var(--s-12) var(--s-12); }
.doc-r .acc-in { display: grid; gap: var(--s-12); }
.doc-r.open .acc-in { padding-bottom: var(--s-12); }
.doc-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--s-8); }
.doc-acts .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); min-height: 44px; padding: 0 var(--s-12); }
.doc-acts .btn .ico { width: 18px; height: 18px; }
.doc-pic { display: grid; }
.doc-pic:empty { display: none; }
.doc-pic-wait { height: 160px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.doc-pic-fail { margin: 0; color: var(--muted); font-size: .9rem; }
.doc-pic-img { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); overflow: hidden; cursor: zoom-in; }
.doc-pic-img img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
/* A PDF: a sheet of paper with its name, opened full screen with a tap. */
.doc-paper { display: grid; justify-items: center; gap: var(--s-12); width: 100%; padding: var(--s-20) var(--s-16); border: 1px solid var(--line);
  border-radius: 10px; background: var(--raised); color: var(--ink); cursor: zoom-in; font: 600 .92rem/1.3 var(--ui); }
.doc-sheet { display: grid; align-content: start; gap: var(--s-8); width: 108px; height: 140px; padding: var(--s-16) var(--s-12); border-radius: 4px;
  background: #fffdf9; box-shadow: 0 1px 2px rgba(20, 10, 40, .12), 0 6px 18px -10px rgba(20, 10, 40, .4); }
.doc-sheet i { display: block; height: 6px; border-radius: 3px; background: #d6cfc3; }
.doc-sheet i:first-child { width: 60%; height: 8px; background: #6f6861; }
.doc-sheet i:nth-child(3) { width: 80%; }
.doc-sheet i:nth-child(5) { width: 50%; }
.doc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; }
.doc-links .linkish { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-8);
  font-size: .9rem; }
.doc-links .linkish:first-child { justify-content: flex-start; padding-left: 0; min-width: 0; }
.doc-dot { color: var(--muted); }
.doc-r .doc-form { margin: 0; padding: 0; border: 0; background: none; }
/* The Send sheet: who, then the email as it will go (P9: one short task). */
.dsend-sheet { gap: var(--s-12); }
.dsend-people { display: grid; gap: var(--s-4); }
.dsend-people[aria-busy="true"] { opacity: .5; pointer-events: none; }
.dsend-who { display: grid; gap: var(--s-4); text-align: left; min-height: 44px; padding: var(--s-8) var(--s-12); border-radius: 9px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); cursor: pointer; font: 600 1rem/1.3 var(--ui); }
.dsend-who > span { font: 600 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dsend-mail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4) var(--s-12); padding: var(--s-12); border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); }
.dsend-mail .lbl { font: 600 .68rem/1.6 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dsend-mail .val { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; }
.pf > .send-subject { font: inherit; text-transform: none; letter-spacing: normal; color: var(--ink); overflow-wrap: anywhere; }
.dsend-words { grid-column: 1 / -1; margin: var(--s-8) 0 0; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
textarea.dsend-words { width: 100%; min-height: 12em; font: 400 16px/1.5 var(--ui); padding: var(--s-8) var(--s-12); border-radius: 9px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink); resize: vertical; }
.dsend-files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-8); }
.dsend-file { display: inline-flex; align-items: center; gap: var(--s-4); max-width: 100%; padding: var(--s-4) var(--s-12); border-radius: 999px;
  border: 1px solid var(--raised-line); background: var(--raised); font-size: .84rem; overflow-wrap: anywhere; }
.dsend-file .ico { width: 15px; height: 15px; }
.dsend-people .pick-ev { grid-template-columns: 20px minmax(0, 1fr); }
.dsend-people .pick-ev .mono { justify-self: center; }
/* Menus (pass 3, item 18): Create's three ways in on one row (Take a photo, Upload a file, Menu); a menu's Send for, one switch of
   three equal parts the form's width (rule 9), under its label. */
.doc-adds.doc-adds3 { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.doc-adds.doc-adds3 .btn { flex: 1 1 auto; margin: 0; padding: 0 var(--s-8); gap: var(--s-4); font-size: .88rem; white-space: nowrap; }
.doc-sendfor > .seg:not(.mini) { width: 100%; }

/* ── Income, Reports and Team (income-team-reports, the design round; docs/design-rules.md, the audit's three sections). ── */
/* Rule 9: the switches on these pages are one width (the mockup's: the column, up to 340), equal parts, centered, stacked 8
   apart; Events / Customers / Costs matches the two above it. The stepper under them: the arrows at the column's edges, the
   period's name centered between them, a tap on it opens Custom dates (rule 10). */
.inc-period { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); justify-content: normal; justify-items: stretch; }
.income-page .seg-stack, .team-page .seg-stack, .report-page .seg-stack { width: 100%; max-width: 340px; }
.income-page .seg:not(.mini), .team-page .seg:not(.mini), .report-page .seg:not(.mini) { width: 100%; max-width: 340px; margin-inline: auto; }
.income-page .seg:not(.mini) button, .team-page .seg:not(.mini) button, .report-page .seg:not(.mini) button { padding-left: var(--s-8); padding-right: var(--s-8);
  white-space: nowrap; min-width: 0; }
.inc-period .where-select { width: 100%; max-width: 340px; margin-inline: auto; }
.inc-step { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); min-height: 44px; }
.inc-step.one { justify-content: center; }
.inc-step .inc-nav-btn { font: 600 1.2rem/1 var(--ui); color: var(--ink); }
.inc-step .inc-nav-btn:disabled { opacity: .35; cursor: default; }
.inc-step .inc-label.inc-range { min-height: 44px; padding: 0 var(--s-8); font: 700 1rem/1.2 var(--ui); color: var(--ink); text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* P11: Profit, the one large number; Income · Costs on one line under Last year; the sales tax and tips quiet under them. */
.inc-two { gap: var(--s-8); color: var(--ink); font-size: .95rem; }
.inc-two > span[aria-hidden] { color: var(--muted); }
.inc-tax { margin: 0; font-size: .84rem; }
.inc-profit { gap: var(--s-4); padding: var(--s-16); border-radius: 12px; }
.rp-door { min-height: 56px; padding: var(--s-12) var(--s-12) var(--s-12) var(--s-16); border-radius: 12px; }
.rp-door .inc-l b { font-size: 1rem; }
.income-page { gap: var(--s-12); }
.income-page > .seg.inc-tabs { margin-top: var(--s-12); }
/* Rule 7, P9: an event's money opened in place. The row is the card: no second border around Income and Costs; their label the
   small caps one; each line the label left and its box right; the totals on a rule, bold. Dashed is filled in for you (rule 12). */
.inc-wait { margin: 0; color: var(--muted); font-size: .9rem; padding: var(--s-4) 0 var(--s-8); }
.money.inc-money { padding: 0; border-top: 0; gap: var(--s-8); }
.inc-money .em-card { padding: 0; border: 0; border-radius: 0; background: none; gap: 0; }
.inc-money .em-head { padding: var(--s-8) 0 var(--s-4); }
.inc-money .em-line, .money .em-tax.em-line { min-height: 44px; }
.money .em-tax.em-line { display: grid; font-size: inherit; color: inherit; }
/* The $ sits inside the box, as the mockup draws it (the event's money and an Income row's, one look; P4). */
.money .em-box .rate { gap: 0; width: 112px; min-height: 44px; padding: 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); justify-content: flex-end; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.money .em-box.auto .rate { border-style: dashed; color: var(--muted); }
.money .em-box .rate:focus-within { border-color: var(--brand); border-style: solid; }
.money .em-box .rate input { width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; background: none; outline: none; }
.money .em-served .em-box input, .money .em-miles .em-box input { width: 112px; padding: 0 var(--s-12); }
/* Miles each way (pass 3, item 4): a plain box like Served's (the label says miles), and while it holds the owner's own number,
   "Use the app's number" under it at the box's edge: rule 7's muted link, 44 tall (rule 21). */
.em-app { display: flex; justify-content: flex-end; margin-top: calc(-1 * var(--s-4)); }
.em-app[hidden] { display: none; }
.em-app .linkish { min-height: 44px; padding: 0 0 0 var(--s-12); font-size: .88rem; text-underline-offset: 3px; }
.inc-money .em-label { font-weight: 500; }
.inc-money .em-total { font-weight: 700; }
.inc-money .em-total .em-label { font-weight: 700; }
/* Event fees (pass 3, item 21; rules 6, 7, 7b, 9, 13, 21; P9, P13): the Fees group in the costs, over Total costs. Each fee a row,
   "Vendor fee · $150" and the chevron, 44 tall, that opens in place to its boxes: the name, Flat / % of sales (the switch, centered),
   the number ($ or %), and Remove, muted, centered. "Add fee" is a muted link row, the "+ Add a line" look, that opens the same. */
.em-fees { display: grid; }
.money .em-fees-head { padding: var(--s-12) 0 var(--s-4); }
.em-fee > .acc-h { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: var(--s-8); min-height: 44px; cursor: pointer; }
.em-fee-t { min-width: 0; overflow-wrap: anywhere; }
.em-fee-n { font-weight: 600; }
.inc-money .em-fee-n { font-weight: 500; }
.em-fee-k { font-variant-numeric: tabular-nums; }
.em-fee > .acc-h > .rchev { justify-self: end; width: 28px; height: 44px; margin: 0; }
/* Inside Income's row (or a customer's event row) the row's own body padding and rule are not the fee's. */
.money .em-fee > .acc-body > .acc-in { padding: 0; border-top: 0; }
.em-fee.em-fee-add > .acc-h { display: flex; width: max-content; max-width: 100%; color: var(--muted); font-size: .82rem; text-decoration: underline;
  text-underline-offset: 3px; }
.em-fee-form { display: grid; gap: var(--s-8); padding: var(--s-4) 0 var(--s-8); }
.em-fee-name { width: 100%; min-height: 44px; font-size: 16px; padding: 0 var(--s-12); border-radius: 10px; border: 1.5px solid var(--field-line);
  background: var(--raised); color: var(--ink); }
.em-fee-name:focus { outline: none; border-color: var(--brand); }
.em-fee-form[data-kind="flat"] .fee-pct, .em-fee-form[data-kind="percent"] .fee-flat { display: none; }
.money .em-fee-num .rate .fee-pct { margin-left: var(--s-4); }
.inc-money .em-fee-num .em-label { font-weight: 500; }
.em-fee-rare { display: flex; justify-content: center; }
.em-fee-rare .linkish { min-height: 44px; padding: 0 var(--s-12); font-size: .88rem; text-underline-offset: 3px; }
/* A coming event's Fees row (pass 3, item 21; rules 6, 7, 7b; P10): "Fees" and what they come to, the down chevron, one of the
   event's rows; it opens in place to the same Fees group (no heading of its own), and with none yet to Add fee alone. */
.ev-fees-one { display: grid; }
.ev-fees-row > .ev-fees-h { cursor: pointer; }
.ev-fees-h .ev-row-v { flex-wrap: nowrap; }
.ev-body .ev-fees-row > .acc-body > .acc-in { padding: 0; border-top: 0; }
.ev-fees-row.open > .acc-body { border-bottom: 1px solid var(--line); }
/* No fees yet: "Add fee" in the Notes row's "Add a note" look (P4), hidden while the row is open over its own Add fee (rule 8). */
.ev-fees-h .ev-fees-add { color: var(--brand-soft); font-weight: 600; }
.ev-fees-row.open > .ev-fees-h .ev-fees-add { visibility: hidden; }
.money.ev-fees-box { padding: var(--s-4) 0 var(--s-4); border-top: 0; gap: 0; }
.ev-fees-box .em-fee-n, .ev-fees-box .em-label { font-weight: 500; }
.inc-worked { margin-top: var(--s-8); }
.inc-worked .ev-row { grid-template-columns: 112px minmax(0, 1fr); }
.urow-act .row-btn { white-space: nowrap; }
/* Reports: eight rows in one group, each its name, its gray line and the right chevron (P4, rule 7b). */
.reports-page .rp-list { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.reports-page .rp-open { min-height: 56px; border: 0; border-radius: 0; padding: var(--s-12) var(--s-12) var(--s-12) var(--s-16); background: none; }
.reports-page .rp-open + .rp-open { border-top: 1px solid var(--line); }
.reports-page .rp-open .inc-l b { font-size: 1rem; }
.reports-page .rp-open .inc-l small { font-size: .84rem; line-height: 1.35; }
/* A report: Columns opens in place over the table (P5), a row like any other that opens (rule 7b). */
.report-page { gap: var(--s-12); }
.acc.rp-cols { min-height: 0; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.rp-cols > .acc-h { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s-8) 0 var(--s-16); cursor: pointer; }
.rp-cols > .acc-h b { font: 600 1rem/1.2 var(--ui); }
.rp-cols .acc-in { padding: 0 var(--s-12); }
.rp-cols.open .acc-in { border-top: 1px solid var(--line); padding: var(--s-4) var(--s-12); }
/* Team: rows as cards 8 apart (rule 6); open, Contact and Pay stub side by side, what is on file, the two rows to pages, then
   Edit · Retire, muted, centered (rule 7). The period's labor a quiet line under the rows. */
.team-rows { display: grid; gap: var(--s-8); }
.urow.trow.open { background: var(--card); }
.tm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.tm-acts.one { grid-template-columns: 1fr; }
.tm-acts .btn { min-height: 44px; padding: 0 var(--s-12); }
.urow .tm-facts { padding: var(--s-12) var(--s-4) var(--s-4); }
.tm-gos { display: grid; margin: var(--s-8) calc(-1 * var(--s-12)) 0; border-top: 1px solid var(--line); }
.tm-gos .tm-go, .trow.past .tm-go { min-height: 48px; border: 0; border-radius: 0; background: none; padding: 0 var(--s-8) 0 var(--s-16); }
.tm-gos .tm-go + .tm-go { border-top: 1px solid var(--line); }
.tm-links { display: flex; align-items: baseline; justify-content: center; gap: var(--s-4); margin: 0 calc(-1 * var(--s-12)); padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line); }
.tm-links .linkish { min-height: 44px; padding: 0 var(--s-12); font-size: .9rem; }
.tm-links .dot { color: var(--muted); opacity: .7; }
.urow .team-form { border-top: 0; padding: 0; }
.urow .team-note { margin: var(--s-8) 0 0; }
.team-total { margin: 0; padding: 0 var(--s-4); color: var(--muted); font-size: .86rem; line-height: 1.4; }
.team-foot { margin-top: 0; }
.trow.past .tm-go { margin: 0; border-top: 1px solid var(--line); }
/* The event's money folded to its one Profit line (rule 8): the line and the chevron on one center. */
.em-sum { align-content: center; }

/* Customers (design audit 2026-10-08, Customers; rules 4, 6, 7, 7b; P5, P9): the people, organizations and series as ui.js rows
   that go to their page; on a customer's, an organization's or a series' page their events open in place: the event sheet's own
   element drawn in the row's body, without its head, its title and its person (the row says them; rule 8). */
.cust-evs { display: grid; gap: var(--s-8); }
/* What New means, once over the People rows (audit holes 19; rule 15): a muted line, the team total's size. */
.cust-new-line { margin: 0; padding: 0 var(--s-4); color: var(--muted); font-size: .86rem; line-height: 1.4; }
.hist-sum { margin: 0 0 var(--s-8); font-size: .9rem; line-height: 1.45; color: var(--ink); }
.hist-after { display: grid; gap: var(--s-4); padding: var(--s-8) 0 var(--s-4); }
.hist-row .acc-in .src, .hist-after .src { justify-self: start; min-height: 44px; padding: 0; font-weight: 600; color: var(--brand-soft); }
#evs.sheet.inline { position: static; inset: auto; left: auto; top: auto; transform: none; z-index: auto; width: auto; max-width: none;
  max-height: none; margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: none; }
#evs.sheet.inline::before { content: none; }   /* no grabber: it isn't a sheet to pull down */
#evs.inline .cal-sheet { padding: 0 0 var(--s-8); border-left: 0; }
#evs.inline .sheet-head, #evs.inline .ev-title { display: none; }
/* On a customer's own page the event's Customer line is the page's title again (rule 8): it goes there, not on an organization's
   or a series' page, where it names who. */
.person-page:not(.company-page):not(.series-page) #evs.inline .fact:has(.ev-cust) { display: none; }
#evs.parked { display: none !important; }

/* A request still drafting, open (pass 3, row 6; rule 7): the card it is about to be, Send and Book there but off, what they
   wrote in full, and the reply's box saying "Writing the reply..." in its corner with three dots breathing where the text lands.
   The demo's draft comes back whole, so the dots are the typing state until it does. */
.draft.busy.writing { padding-top: var(--s-24); }   /* the drafted box's own shape: the dots sit where its first line lands */
.draft.writing .spin { top: var(--s-8); }
.send-split .send-more:disabled { opacity: .55; cursor: default; }   /* the split dims as one, as .btn:disabled does */
.draft.writing .typing { display: inline-flex; align-items: center; gap: var(--s-4); height: var(--s-24); }
.draft.writing .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .25; animation: typing-dot 1.2s ease-in-out infinite; }
.draft.writing .typing i:nth-child(2) { animation-delay: .2s; }
.draft.writing .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot { 40% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .draft.writing .typing i { animation: none; opacity: .55; } }
/* Import a list (pass 3 row 19; rules 1, 13, 14, 21; P2): Create's two choices under Customers' head, outlined like Documents' (the
   pill is the one filled control), and the sheet: the file box, the count, three rows as they will land, the quiet lines, Import. */
.cust-adds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.cust-adds .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); min-height: 48px; }
.cust-adds .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet.bottom .cimp-sheet.cal-sheet { gap: var(--s-12); }
.cimp-file { display: grid; gap: var(--s-4); justify-items: center; text-align: center; min-height: 96px; align-content: center;
  padding: var(--s-16) var(--s-12); border-radius: 12px; border: 1.5px dashed var(--field-line); background: var(--raised); cursor: pointer; }
.cimp-file b { font: 600 1rem/1.3 var(--ui); color: var(--brand-soft); overflow-wrap: anywhere; }
.cimp-file span { font-size: .86rem; line-height: 1.4; color: var(--muted); }
.cimp-file.busy { opacity: .6; cursor: progress; }
.cimp-file:focus-within { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.cimp-err { margin: 0; color: var(--red); font-size: .92rem; line-height: 1.4; }
.cimp-count { margin: var(--s-4) 0 0; font: 700 1.05rem/1.3 var(--ui); color: var(--ink); }
.cimp-rows { display: grid; gap: var(--s-8); }
.cimp-row .urow-h { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "detail detail" "date act"; cursor: default; }
.cimp-row .urow-h:active { background: none; }
.cimp-left { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.cimp-left + .cimp-left { margin-top: calc(var(--s-4) - var(--s-12)); }   /* the quiet lines read as one block */
.cimp-go { min-height: 48px; margin-top: var(--s-8); }
/* The Book sheet's quote (pass 3 item 30, pick A; rules 13, 21): what the customer last wrote, one muted line over the buttons,
   trimmed with an ellipsis (SF Rounded runs wider than the mockup's face). */
.pick-sheet .book-quote { margin: 0; padding: 0 var(--s-4); color: var(--muted); font-size: .88rem; line-height: 1.4; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── The foot of Settings (lane p4-delete; rule 7's rare action as one muted line, P13): under everything, 24 below the rows (the
   page's 12 gap plus 12), centered, 44 tall (rule 21). Delete this truck's typed confirm opens in place under it (ui.js
   typedConfirmHtml): the line, the box for the name in the house field, Delete (off until the name matches) and Keep. ── */
.set-foot { display: flex; justify-content: center; margin-top: var(--s-12); }
.set-foot .set-exit { min-height: 44px; padding: 0 var(--s-12); font-size: .88rem; text-underline-offset: 3px; }
.settings-page > .confirm-in { margin: 0 0 var(--s-24); }   /* its foot clears the Ask circle at the page end */
.ci-type { display: grid; gap: var(--s-8); }
.ci-type > span { font: 500 .86rem/1.35 var(--ui); color: var(--muted); }
.ci-type b { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.ci-type input { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px solid var(--field-line);
  background: var(--card); color: var(--ink); }
/* The admin page's Trucks (lane p4-delete): a card a truck, as the admin rows read; Delete as a quiet link at its right, its typed
   confirm across the card under it. Its own classes, so the page's lists (.adm-row, .adm-signups) count what they did. */
.adm-trucks { display: grid; gap: var(--s-8); margin-bottom: var(--s-8); }
.adm-truck { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-12); padding: var(--s-12);
  border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.adm-truck .adm-del { min-height: 44px; padding: 0 var(--s-8); font-size: .88rem; text-underline-offset: 3px; }
.adm-truck > .confirm-in { margin: 0; }

/* In-card history, folded in place with the Mailbox chevron (rules 7, 7b, 21). */
.earlier-messages { border-bottom: 1px solid var(--line); margin-bottom: var(--s-12); }
.earlier-messages > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; color: var(--muted); font: 600 .85rem/1.4 var(--ui); list-style: none; }
.earlier-messages > summary::-webkit-details-marker, .history-long > summary::-webkit-details-marker { display: none; }
.earlier-messages[open] > summary .rchev { transform: rotate(180deg); }
.history-list { display: flex; flex-direction: column; gap: var(--s-16); padding-bottom: var(--s-12); }
.history-message { display: grid; gap: var(--s-4); max-width: 92%; }
.history-message.out { align-self: flex-end; }
.history-latest .history-message.out { margin-left: auto; }
.history-message.in .bubble { border-left: 3px solid var(--quote-stripe); }
.history-message .meta, .history-latest > .meta { font: 500 .75rem/1.4 var(--ui); color: var(--muted); margin-bottom: var(--s-4); }
.history-message .bubble { padding: var(--s-12); border-radius: 12px; background: var(--raised); font: 500 .95rem/1.45 var(--ui); overflow-wrap: anywhere; }
.history-message.out .bubble { background: var(--brand-bg); border: 1px solid var(--brand); }
.history-message .text, .history-preview { white-space: pre-wrap; }
.history-message .files, .history-latest .files { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.history-message .chip, .history-latest .chip { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.history-long > summary { list-style: none; cursor: pointer; }
.history-more, .history-less { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; }
.history-less, .history-long[open] .history-more, .history-long[open] .history-preview { display: none; }
.history-long[open] .history-less { display: flex; }

/* Invoice editing, rules 7, 8, 21 and P2. */
.inv-editor{padding:var(--s-12);display:grid;gap:var(--s-24);background:none;border:0}
.inv-edit-group{display:grid;gap:var(--s-8)}
.inv-edit-group h2{margin:0;font:600 .7rem/1.3 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.inv-edit-group h2 small{float:right;text-transform:none;letter-spacing:0;font-size:.75rem}
.inv-edit-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-8);min-width:0}
.inv-edit-pair input,.inv-edit-group input{min-width:0;width:100%;min-height:44px}
.inv-edit-fee{display:flex;align-items:center;gap:var(--s-8);padding:var(--s-8) var(--s-12);border:1px solid var(--line);border-radius:10px;background:var(--card)}
.inv-edit-fee>span:first-child{flex:1;min-width:0}.inv-edit-fee small{display:block;color:var(--muted);font-size:.8rem}
.inv-edit-fee .icon{width:44px;height:44px;flex:none}
.inv-exempt,.inv-pay-choice{display:flex;align-items:center;gap:var(--s-12);min-height:44px}
.inv-pay-choice input{width:20px;min-height:20px;accent-color:var(--brand);flex:none}
.inv-save{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:var(--s-12);background:var(--bg);padding:var(--s-12);border-top:1px solid var(--line)}
.inv-save .btn{min-width:120px}.inv-editor .inv-hands{padding:0}.inv-editor .msg-chips:empty{display:none}

/* Event edit and duplicate, rules 7, 8, 21 and P9. */
.ev-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-8)}
.ne-copy-note{margin:var(--s-4) 0 0;font-size:.8rem;line-height:1.35;color:var(--muted)}
.ne-date-needed{color:var(--red);font-size:.85rem}.ne-form select{min-height:44px;width:100%;min-width:0;padding:var(--s-8);border:1.5px solid var(--field-line);border-radius:9px;background:var(--raised);font:inherit;color:var(--ink)}
.ne-rigs{min-height:44px}.ne-rigs button{min-width:0;min-height:44px;padding:0 var(--s-8);font-size:.8rem}
.ne-rigs button[aria-pressed=true]{color:var(--brand-soft);background:var(--brand-bg)}
.ne-crew{display:grid;gap:var(--s-8)}.ne-crew-row{display:flex;align-items:center;gap:var(--s-12);padding:var(--s-8) var(--s-12);background:var(--card);border:1px solid var(--line);border-radius:10px}
.ne-crew-row>span{flex:1}.ne-crew-row .icon{width:44px;height:44px}.ne-crew-pick{display:grid;gap:var(--s-4)}
.ne-invoice-ask .hint{margin:0}.ne-form .ci-acts{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-8)}

/* Shared account menu, approved header pill, rules 7b, 8, 21 and P4. */
.account-pill { flex:0 1 auto; display:flex; align-items:center; gap:var(--s-8); min-width:0; max-width:100%; width:auto; height:44px; margin:0; padding:var(--s-4) var(--s-12) var(--s-4) var(--s-4); border:1px solid var(--field-line); border-radius:999px; background:var(--card); }
.account-pill .tenant-badge { flex:none; box-shadow:none; }
.account-pill .rchev { flex:none; }

.account-pill:focus-visible { border-radius:999px; }
.account-dim { position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:50; }
.account-menu { position:fixed; left:max(var(--s-12), calc((100vw - 560px)/2 + var(--s-12))); width:calc(min(100vw, 560px) - 24px); max-height:calc(100dvh - 100px); overflow:auto; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:0 12px 32px rgba(0,0,0,.15); z-index:54; }
.account-open .top { z-index:55; }
.account-who { display:flex; align-items:center; gap:var(--s-12); padding:var(--s-16); border-bottom:1px solid var(--line); }
.account-who .tenant-badge { flex:none; width:48px; height:48px; box-shadow:none; }
.account-who div { min-width:0; display:grid; gap:var(--s-4); }
.account-who b { overflow-wrap:anywhere; }
.account-who div span { color:var(--muted); font-size:.85rem; text-transform:none; }
.account-rows { padding:var(--s-4) var(--s-8); }
.account-rows .m-row { min-height:44px; grid-template-columns:minmax(0,1fr) auto; }
.account-rows .m-row > .rchev { grid-column:2; }
.account-open .nav { filter:brightness(.65); }
.account-footer { padding:var(--s-12); border-top:1px solid var(--line); }
.account-footer .m-access-row { margin:0; }
.m-person .m-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.m-person .m-avatar { background:var(--brand); color:white; border-radius:50%; overflow:hidden; }

.inv-save { justify-content:space-between; align-items:center; }
.inv-save-total .inv-row.total { display:grid; gap:var(--s-4); border:0; padding:0; margin:0; }
.inv-save-total .inv-row.total span { font-size:.7rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.inv-save-total .inv-row.total b { font-size:1.125rem; }
.inv-editor button { min-height:44px; }
.inv-editor .li-kinds .li-del { width:44px; height:44px; }
.ne-form .linkish { min-height:44px; }

.inv-editor .seg.mini button { min-height:44px; }

/* Build 2 event page. Rules 7b, 17, 21 and P4/P9; approved event-page mockup. */
.ep-title-row{display:flex;align-items:center;gap:var(--s-16);margin-bottom:var(--s-12)}
.ep-title-row .ev-title{margin:0;flex:1;font-size:1.3rem}
.ep-event .ep-title-row{gap:var(--s-8);margin-bottom:var(--s-4)}
.ep-event .ep-title-row h2.ev-title{margin:0;flex:1;font:800 1.3rem/1.2 var(--ui)}
.ep-page{display:grid;gap:var(--s-8);font-size:1rem}
.ep-page *{min-width:0;box-sizing:border-box}
.ep-box{position:relative;background:var(--field,var(--card));border:1px solid var(--line);border-radius:14px;padding:var(--s-8) var(--s-12) var(--s-12) var(--s-12);color:var(--ink);overflow-wrap:anywhere}
.ep-label{display:block;font:700 .66rem/1.2 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:var(--s-4)}
.ep-type-links{display:flex;justify-content:space-between;align-items:center;gap:var(--s-16);min-height:36px;margin-bottom:var(--s-4)}
.ep-type{display:flex;gap:0;padding:0;background:var(--field,var(--card));border:1px solid var(--line-strong,var(--line));border-radius:999px;overflow:hidden}
.ep-type button{border:0;background:transparent;border-radius:0;min-height:31px;padding:0 var(--s-12);font:600 12.8px var(--ui);color:var(--muted)}
.ep-type button[aria-pressed=true]{background:var(--brand);color:#fff;font-weight:700}
/* The toggle keeps its 34px look. The halves round their own outer ends, so the box no longer clips them (a clipped box would
   clip the taller tap area too). */
.ep-type{overflow:visible}.ep-type button{position:relative}
.ep-type button:first-child{border-radius:999px 0 0 999px}.ep-type button:last-child{border-radius:0 999px 999px 0}
/* Owner walk 2026-11-01, item 10 (rule 21): each half is a full 44px tap of its own now, the same 34px look. The half reaches 6px
   above and below the pill (its negative margins keep the row's height), and the lit half's colour is a 32px band inside it,
   rounded as before. */
.ep-type button{z-index:0}
.ep-page .ep-type button[aria-pressed=true]{background:transparent}
.ep-page .ep-type button[aria-pressed=true]::before{content:'';position:absolute;inset:6px 0;z-index:-1;background:var(--brand);border-radius:inherit}
.ep-links{display:flex;gap:var(--s-4);align-items:center;font-size:.9rem}
.ep-links a{min-height:34px;display:flex;align-items:center;color:var(--brand-soft);text-decoration:underline;text-underline-offset:3px}
.ep-pencil{position:absolute;top:-12px;right:-8px;width:44px;height:44px;display:grid;place-items:center;background:none;border:0;color:var(--muted)}
.ep-pencil .glyph{width:17px;height:17px}
.ep-when{min-height:0}.ep-when:not(.ep-editing){display:grid;grid-template-columns:minmax(0,max-content) minmax(82px,1fr)}.ep-when-grid{display:contents}.ep-when>.ep-label{grid-column:1;grid-row:1}.ep-date{grid-column:1;grid-row:2}.ep-time{grid-column:1;grid-row:3}.ep-when-grid>.ev-weather-slot{grid-column:1;grid-row:4}
.ep-date,.ep-time{font-weight:500;line-height:1.4}.ep-time{margin-top:0}
.ep-calendar{position:relative;z-index:1;grid-column:2;grid-row:1 / 5;align-self:center;justify-self:center;margin-right:calc(-1 * var(--s-12));margin-top:var(--s-4);height:82px;width:82px;padding:0;border:1.5px solid var(--line-strong,var(--line));border-radius:22px;background:var(--bg);color:var(--brand-soft);display:grid;place-items:center}
.ep-weather.ev-weather{display:flex;align-items:center;gap:var(--s-8);padding:0;margin:var(--s-4) 0 0;border:0;flex-wrap:wrap;color:var(--ink);font-size:.92rem}
.ep-weather-icon{color:var(--amber-ink);width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ep-address{padding-right:var(--s-20);line-height:1.35}.ep-address>div{display:flex;align-items:center;gap:var(--s-16)}
.ep-address .ev-where{background:none;border:0;min-height:44px;padding:0;display:inline;text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:4px;color:var(--ink);text-align:left;font-size:1rem;font-weight:500}
.ep-address .ev-pin{width:44px;min-width:44px;height:44px;margin:0;border:0;color:var(--muted)}
.ep-note{font-size:.78rem;color:var(--muted);margin:var(--s-4) 0 0;line-height:1.4}
.ep-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-8)}
.ep-box select{display:block;background:transparent;border:0;color:var(--ink);width:100%;min-height:20.5px;height:20.5px;padding:0;font:500 .95rem var(--ui)}
.ep-crew{padding-top:var(--s-8)}.ep-crew>.ep-label{margin-bottom:var(--s-4)}
.ep-crew-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4);font-size:.88rem;min-height:40px}
.ep-crew-row+.ep-crew-row{margin-top:0}
.ep-crew-status{display:flex;align-items:center;gap:var(--s-4);flex-wrap:wrap;justify-content:flex-end}
.ep-crew-status .tag{font-size:.65rem}.ep-crew-status .linkish{font-size:.72rem}
.ep-pill{min-height:44px;padding:0 var(--s-12);border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font:600 .8rem var(--ui)}
.ep-notes-text{white-space:pre-wrap;padding-right:var(--s-20);font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.ep-notes{min-height:0}.ep-notes>.ep-label{margin-bottom:var(--s-4)}
.ep-contact-name{font-weight:500;margin-top:0}.ep-contact-actions{display:flex;gap:var(--s-8);margin-top:var(--s-8)}
.ep-contact-actions .ep-pill{flex:1;font-size:.88rem;font-weight:700}
.ep-footer{margin-top:var(--s-4);display:flex;align-items:center;justify-content:center;gap:var(--s-16);color:var(--muted)}
.ep-footer button{min-width:44px;min-height:44px;font-size:.85rem;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.ep-money,.ep-documents{padding:0}.ep-fold{width:100%;min-height:44px;display:flex;align-items:center;gap:var(--s-8);padding:0 var(--s-12);border:0;background:none;color:var(--ink);text-align:left}
.ep-fold .ep-label{margin:0}.ep-fold .rchev{margin-left:0;flex:none}.ep-fold>.ep-label{margin-right:auto}.ep-count{margin-left:auto;color:var(--muted);font-size:.8rem}
.ep-gross-summary{margin-left:auto;display:flex;align-items:center;gap:var(--s-8);font-size:.82rem;white-space:nowrap}.ep-gross-summary b{font-size:.92rem;font-weight:600}
.ep-gross-summary.ep-quote-summary{white-space:normal;min-width:0;flex-wrap:wrap;justify-content:flex-end;text-align:right;padding:var(--s-8) 0}
.ep-money-line:has(.ep-quote-value){grid-template-columns:auto minmax(0,1fr) 44px}
.ep-guarantee{margin:0;padding:0 var(--s-12) var(--s-12);font-size:.93rem;line-height:1.5}
.ep-money-heading{display:block;width:100%;padding:0 var(--s-12) var(--s-12);text-align:left;color:var(--ink)}
.ep-money-head{display:block;font:600 1.08rem/1.35 var(--ui);overflow-wrap:anywhere}
.ep-money-subline{display:block;margin-top:var(--s-4);font-size:.9rem;line-height:1.45;color:var(--muted)}
.ep-money-link{min-height:44px;border:0;background:none;cursor:pointer}
.ep-money-action{display:grid;gap:var(--s-8);padding:0 var(--s-12) var(--s-12)}
.ep-money-action>.btn{width:100%;height:44px;min-height:44px;padding:0 var(--s-12)}
.ep-money-body{padding:0 var(--s-12) var(--s-8);display:grid;gap:var(--s-8)}
.ep-money-line{display:grid;grid-template-columns:minmax(0,1fr) 104px 26px;gap:var(--s-8);align-items:center;min-height:44px;border-bottom:1px solid var(--line)}
.ep-money-label{padding:0;border:0;background:none;min-height:44px;display:flex;align-items:center;gap:var(--s-8);text-align:left;font:400 .93rem/1.5 var(--ui);color:var(--ink)}
.ep-money-label .rchev{width:12px;flex:none;margin-left:0}.ep-remove{border:0;background:none;color:var(--muted);width:26px;height:43px;display:grid;place-items:center;font-size:.8rem}
.ep-amount{display:block;background:var(--bg);border:1px solid var(--line);border-radius:8px;text-align:right;font:600 .92rem var(--ui);font-variant-numeric:tabular-nums;width:104px;height:30px;min-height:30px;padding:var(--s-4) var(--s-8);color:var(--ink)}
.ep-amount.ep-quote-value{width:auto;height:auto;border:0;background:none;line-height:1.5;white-space:normal}
.ep-net{border:0;background:transparent;font-size:1rem;font-weight:800;display:flex;justify-content:flex-end;align-items:center;white-space:nowrap}
.ep-money-detail{display:grid;gap:var(--s-4);padding:var(--s-4) var(--s-32) var(--s-4) var(--s-12);border-bottom:1px solid var(--line)}
.ep-money-sub{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:var(--s-8);align-items:center;font-size:.9rem;min-height:38px}
.ep-money-sub>span:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s-4)}
.ep-percent{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:0 var(--s-4);gap:0;height:30px}.ep-pct{width:7ch;min-height:28px;border:0;background:transparent;color:var(--ink);padding:0;text-align:right;font-size:.9rem}
.ep-money [data-ep-splits]{display:grid;gap:var(--s-4)}
.ep-other-row input:first-child{width:100%;min-height:44px;background:var(--raised);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:var(--s-8)}
.ep-payment{display:grid;gap:var(--s-16)}.ep-payment-methods{display:flex;gap:var(--s-16);flex-wrap:wrap}
.ep-payment-methods .ep-pill[aria-pressed=true]{background:var(--raised);border-color:var(--ink)}
.ep-check{display:flex;align-items:center;gap:var(--s-16);min-height:44px;font-size:.8rem}.ep-check input{width:22px;height:22px}
.ep-money input:not(.ep-amount):not(.ep-pct):not([type=checkbox]):not([type=file]):not([data-ep-other-name]){min-height:44px;width:100%;background:var(--raised);border:1px solid var(--line);border-radius:10px;padding:var(--s-8);color:var(--ink)}
.ep-field{display:grid;gap:var(--s-4);font-size:1rem}.ep-field>span{color:var(--muted);font:700 .66rem/1.2 var(--ui);text-transform:uppercase;letter-spacing:.08em}
.ep-field input,.ep-editing textarea{min-height:44px;width:100%;background:var(--raised);border:1px solid var(--line);border-radius:10px;padding:var(--s-8);color:var(--ink);font:inherit}
.ep-editing{padding-right:var(--s-16)}.ep-editing form{display:grid;gap:var(--s-8);margin-top:var(--s-8)}
.ep-edit-actions{display:flex;justify-content:flex-end;gap:var(--s-16)}
.ep-crew-edit{display:grid;gap:var(--s-16)}.ep-crew-edit>label{display:flex;align-items:center;gap:var(--s-16);min-height:44px}
.ep-error{color:var(--red);font-size:.85rem}.ep-add-lines{display:grid;gap:var(--s-16)}
.ep-inline-sheet{display:grid;gap:var(--s-16);padding:var(--s-16);border-top:1px solid var(--line)}
.ep-inline-sheet button{min-height:44px;background:transparent;border:0;text-align:left;color:var(--ink)}
.ep-inline-sheet p{font-size:.78rem;color:var(--muted)}
.ep-documents-body{padding:0 var(--s-12) var(--s-8);display:grid;gap:var(--s-8)}
.ep-file{display:flex;align-items:center;gap:var(--s-8);min-height:44px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--ink);text-align:left;font-size:.95rem;padding:0}.ep-file .tag{margin-left:auto}.ep-file>button{white-space:nowrap;font-size:.95rem}.ep-file-icon{width:18px;height:18px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linejoin:round}
.ep-file .tag{font-size:.65rem}.ep-file-actions{display:grid;gap:var(--s-16)}
.ep-upload{position:relative;display:flex;align-items:center;min-height:44px;color:var(--ink);font-size:.85rem;text-decoration:underline}
.ep-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.ep-mail-return{padding:var(--s-12) var(--s-16);display:grid;gap:var(--s-16);background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:var(--s-16)}
.ep-mail-email{display:flex;align-items:center;gap:var(--s-16);overflow-wrap:anywhere;font-size:.85rem}.ep-mail-email button{min-height:44px}
.ep-phone-number{display:block;font-size:1rem;margin-bottom:var(--s-16)}
.ep-phone-actions{display:flex;gap:var(--s-16)}.ep-phone-actions>a,.ep-phone-actions>button{min-height:44px;display:flex;align-items:center;justify-content:center;flex:1;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);text-decoration:none}
.ep-page .glyph{color:inherit;border:0;background:transparent;padding:0;box-shadow:none}
.ep-page .ep-pencil .glyph{width:18px;height:18px}
.ep-page .ep-calendar .glyph{width:24px;height:24px}
.ep-page .ep-pencil svg,.ep-page .ep-calendar svg{width:100%;height:100%}
.ep-map-address{display:grid!important;gap:0;align-content:start;text-decoration:none!important;line-height:1.4}
.ep-map-address>span{display:flex;align-items:center;gap:var(--s-4);min-height:23px}
.ep-map-address u{text-underline-offset:4px;text-decoration-color:var(--muted)}
.ep-map-address .glyph{flex:none;width:15px;height:15px;color:var(--brand-soft)}
.ep-remove-scrim{position:fixed;inset:0;background:rgb(10 8 16 / .5);z-index:180}
.ep-inline-sheet{position:fixed;left:50%;transform:translateX(-50%);width:min(100%,560px);bottom:calc(var(--tabs-h) + env(safe-area-inset-bottom));background:var(--chrome);border:1px solid var(--line);border-radius:24px 24px 0 0;box-shadow:0 -12px 30px rgb(0 0 0 / .25);z-index:181}
.ep-inline-sheet:before{content:'';display:block;width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto}

.ep-contact-name{display:block;min-height:21.6px;border:0;background:none;padding:0;color:var(--ink);text-align:left;font:500 1rem/1.35 var(--ui)}

.ep-mail-email button{min-width:44px;min-height:44px}

.cal-sheet.ep-event{border-left:0}

.ep-crew-status .ep-pill{min-height:32px;height:32px;padding:0 var(--s-12);font:700 .76rem var(--ui)}
.ep-pair>.ep-box{padding-left:var(--s-8);padding-right:var(--s-4)}
.ep-money-body>.ep-money-line:last-child{border-top:1.5px solid var(--ink);border-bottom:0;margin-top:var(--s-4)}
.ep-money-body>.ep-money-line:last-child .ep-money-label{font-weight:800}
.ep-money-detail span.ep-amount{border:0;background:transparent}
.ep-add,.ep-documents-body>[data-ep-file-add]{color:var(--brand-soft);font-weight:600;min-height:30px;text-align:left}
.ep-edit-actions [data-ep-cancel]{border:0;background:none;box-shadow:none;color:var(--muted)}
.ep-edit-actions [type=submit]{border:0;background:var(--brand);color:#fff;padding:0 var(--s-24);font-weight:700}
.ep-inline-sheet>b{font:800 1.2rem/1.2 var(--ui)}
.ep-inline-sheet [data-ep-drop]{min-height:48px!important;padding:0 var(--s-12);border-radius:12px;border:1.5px solid var(--line-strong,var(--line));background:var(--field,var(--card));font-weight:700;font-size:.95rem}
.ep-inline-sheet [data-ep-remove-cancel]{text-align:center;font-weight:600}
.ep-phone-head{display:flex;justify-content:space-between;align-items:center;gap:var(--s-8);font-size:19.2px}
.ep-phone-head .ep-pill{min-height:44px;font-weight:700}
.ep-phone-sheet.contact-menu{padding:var(--s-8) var(--s-16) var(--s-20);display:grid;gap:var(--s-8)}
.ep-phone-sheet .ep-phone-number{padding:0;border:0;background:none;border-radius:0;margin:0;font:500 1rem/1.35 var(--ui)}
.ep-phone-actions{gap:var(--s-8)}.ep-phone-actions>a,.ep-phone-actions>button{font:700 .88rem var(--ui)}
.ep-when.ep-editing{border-color:var(--brand)}

/* The approved compact controls override the app-wide important 44px floor. */
.ep-event .ep-page{margin-top:0}
.ep-page .ep-type button{min-height:44px!important;margin-block:-6px}
.ep-page .ep-box select{min-height:20.5px!important}
.ep-page .ep-crew-status .ep-pill{min-height:32px!important}
.ep-page .ep-contact-name{min-height:21.6px!important}
.ep-page .ep-money input.ep-amount{min-height:30px!important}
.ep-page .ep-money input.ep-pct{min-height:28px!important}
.ep-page .ep-add,.ep-page [data-ep-file-add]{min-height:30px!important}
.ep-page .ep-other-row input:first-child{min-height:40px!important;height:40px;font:400 .85rem var(--ui);padding:0 var(--s-8);border-radius:8px;background:var(--bg)}
.ep-page .ep-money-label{gap:var(--s-4)}
.ep-page .ep-money-label .rchev svg{width:14px;height:14px}
.ep-event,.ep-page,.ep-phone-sheet{--line-strong:#4a4361}
:root[data-theme=light] :is(.ep-event,.ep-page,.ep-phone-sheet){--line:#ddd6ca;--muted:#6a635b;--line-strong:#c9c1b3}

.ep-fold{min-height:44px!important;margin-block:-1px}   /* 44px to tap (item 10, rule 21); the box keeps its 42px look */
.ep-when:not(.ep-editing){min-height:109px}
.ep-notes:not(.ep-editing){min-height:62px}

.ep-page .ep-money-label,.ep-page .ep-remove,.ep-page .ep-money-chevron{min-height:43px!important}
.ep-box select{appearance:none;padding-right:var(--s-20)}
.ep-pair>.ep-box:has(select)::after{content:'';position:absolute;right:12px;bottom:21px;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.ep-fold[aria-expanded=true] .ep-count{display:none}
.ep-page .ep-calendar .glyph{width:66px;height:66px}
.ep-page .ep-calendar .glyph svg{width:66px;height:66px;stroke-width:1.15}
.ep-weather.ev-weather{font-weight:400}

.ep-page .ep-crew-status .linkish{min-height:32px!important}
.ep-page .ep-file>button{min-height:43px!important}
/* The demo's "See what <name> signs" line, restored inside Contract on the same line: the tag beside Contract, the line at
   the row's right end, as before the redesign. 44px tall over the row's bottom rule, so the row stays 44. */
.ep-page .ep-file>.ev-demo-sign{flex:none;margin:0 0 calc(-1 * var(--s-4)) auto;min-height:44px!important;white-space:nowrap;font:500 .85rem var(--ui);text-align:right}
.ep-file:has(>.ev-demo-sign) .tag{margin-left:0}
/* Round B2, rules 6 and 21: one contract action, 44 tall, wrapping inside a narrow phone. */
.ep-file:has(>[data-ep-contract]){flex-wrap:wrap}
.ep-page .ep-file>[data-ep-contract]{min-height:44px!important}
.pricing-form[data-terms-section] .wiz-row{margin-top:var(--s-8)}
.nav:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}

.ep-page .ep-pill,.ep-phone-actions>a,.ep-phone-actions>button{border:1.5px solid var(--line-strong,var(--line))}
.ep-phone-head .ep-pill{border:1.5px solid var(--brand);color:var(--brand-soft)}
.ep-editing .ep-field input{border:1.5px solid var(--line-strong,var(--line));background:var(--bg);padding:0 var(--s-12)}
.ep-map-address u{text-decoration-color:var(--line-strong,var(--line))}

.ep-money>.ep-fold[aria-expanded=true],.ep-documents>.ep-fold[aria-expanded=true],.ep-report-card>.ep-fold[aria-expanded=true]{min-height:28px!important;margin-block:0}
.ep-money-body>.ep-money-line:last-child .ep-money-label{min-height:42px!important}

.ep-inline-sheet{gap:var(--s-8);padding:var(--s-8) var(--s-16) var(--s-20);border:0;border-top:1px solid var(--line)}
.ep-inline-sheet:before{margin-bottom:var(--s-4);background:var(--line-strong,var(--line))}
.ep-inline-sheet p{line-height:1.35}
.ep-inline-sheet [data-ep-remove-cancel]{font-size:.95rem;color:var(--muted)}
.ep-phone-sheet.contact-menu{border:0;border-top:1px solid var(--line);background:var(--chrome);border-radius:24px 24px 0 0}
.ep-phone-head>b{font:800 1.2rem/1.2 var(--ui)}
.ep-phone-sheet .ep-phone-box{padding:var(--s-8) var(--s-12) var(--s-12);border:1px solid var(--line)}
.ep-phone-box .ep-phone-actions{margin-top:var(--s-8)}
.contact-menu.ep-phone-sheet .cm-grab{height:5px;margin-bottom:var(--s-4);background:var(--line-strong,var(--line))}

.contact-scrim.ep-phone-scrim{background:rgb(10 8 16 / .5)}
.ep-phone-sheet.contact-menu,.ep-inline-sheet{box-shadow:0 -12px 30px -10px rgb(0 0 0 / .5)}

.ep-money [data-ep-other]{min-height:30px!important;color:var(--brand-soft);font:600 12.8px/30px var(--ui)}
.ep-money-sub{color:var(--muted)}
.ep-percent{color:var(--ink)}
.ep-money .ep-check{font-size:.9rem;gap:var(--s-8);padding-left:var(--s-12)}

.ep-phone-head>b{min-width:0;overflow-wrap:anywhere}
.ep-phone-head .ep-pill{padding:0 var(--s-16);flex:none}
.ep-edit-actions{gap:var(--s-8)}
.ep-edit-actions [data-ep-cancel]{padding:0 var(--s-16);font:600 .95rem var(--ui)}
.ep-edit-actions [type=submit]{font:700 .95rem var(--ui);border-radius:12px}
.ep-editing .ep-field input{font:500 1rem var(--ui)}
.ep-weather.ev-weather{line-height:1.5}
.ep-money-body>.ep-money-line:last-child .ep-money-label b{font-weight:inherit}
.ep-crew-status .tag{font:700 .62rem/1 var(--ui);padding:var(--s-4) var(--s-8);min-height:0;height:auto}

.ep-phone-sheet.contact-menu{padding-bottom:calc(var(--s-20) + env(safe-area-inset-bottom))}

.ep-phone-head .ep-pill{display:inline-flex;align-items:center;justify-content:center;font:700 .8rem var(--ui);text-align:center}
.ep-phone-actions>a,.ep-phone-actions>button{padding:0 var(--s-8);gap:0;text-align:center}

/* End Build 2 event page */

/* Polish 1: approved Calendar / Mailbox soft cards. */
:root { --soft-line:#2b2640; --soft-shadow:none; --soft-chev:#7d7790; }
:root[data-theme="light"] { --soft-line:#ebe6dc; --soft-shadow:0 1px 2px rgba(20,10,40,.04),0 8px 18px -12px rgba(20,10,40,.14); --soft-chev:#9a9389; }
.tag.brand { color:var(--brand-soft); background:var(--brand-bg); }
.tag.blue { color:var(--blue); background:var(--blue-bg); }
.mpill.brand { --pill:var(--brand-soft); --pill-bg:var(--brand-bg); }
.mpill.blue { --pill:var(--blue); --pill-bg:var(--blue-bg); }
.mb-sec .tone-brand,.tone-brand { --status:var(--brand-soft); }
.tone-blue { --status:var(--blue); }
.tone-amber { --status:var(--amber-ink); }
.tone-green { --status:var(--green); }
.tone-gray { --status:var(--muted); }
.mb-sec-h { color:var(--muted); display:flex; align-items:center; gap:var(--s-8); }
.mb-sec-h::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--status); }
.mb-sec { gap:calc((var(--s-12) + var(--s-16))/2); }
.card.mbx { position:relative; border:1px solid var(--soft-line); border-left:5px solid var(--status,var(--brand-soft)); border-radius:16px; box-shadow:var(--soft-shadow); }
.card.mbx > .mb-preview { display:grid; column-gap:var(--s-8); row-gap:0; padding:var(--s-16) var(--s-4) var(--s-16) var(--s-16); }
.card.mbx .urow-name { display:block; grid-area:name; min-width:0; font:600 17px/24px var(--ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card.mbx .mb-time { grid-area:time; white-space:nowrap; color:var(--muted); font:400 13px/18px var(--ui); align-self:center; }
.card.mbx .urow-detail { display:block; grid-area:detail; min-width:0; color:var(--muted); font:400 15px/21px var(--ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card.mbx .mb-preview > .rchev { width:44px; height:44px; align-self:center; color:var(--soft-chev); margin:0; }
.card.mbx .mb-preview > .tag { grid-area:tag; justify-self:start; margin:var(--s-4) 0 0; }
.mb-sec ~ .mb-sec { margin-top:var(--s-24); }
.mpills:has([data-inbox]) .mpill { background:transparent; color:var(--pill); border:1.5px solid var(--soft-line); font-weight:600; }
.mpills:has([data-inbox]) .mpill[aria-pressed="true"] { background:var(--pill-bg); border-color:var(--pill); font-weight:700; }
.ev-acc,.ev:not(.block) { border-color:var(--soft-line); border-left:5px solid var(--ev,var(--brand)); border-radius:16px; box-shadow:var(--soft-shadow); }
.ev-list { gap:calc((var(--s-12) + var(--s-16))/2); }
.ev-h { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:0; padding:var(--s-16) var(--s-4) var(--s-16) var(--s-16); }
.ev-h > .rchev { grid-column:2; width:44px; color:var(--soft-chev); }
.ev-main { min-width:0; }
.ev-main b { display:block; font:600 17px/24px var(--ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ev-main > span { display:block; font:400 15px/21px var(--ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--muted); }
.ev-acc.recent,.ev-acc.passed { border-left-style:dashed; border-left-color:color-mix(in srgb,var(--ev) 50%,transparent); }
.ev-acc.recent .ev-main b { color:var(--muted); text-decoration:none; }
.ev-acc.passed .ev-main b { color:var(--muted); }
.rig-filters { display:flex; flex-wrap:wrap; gap:var(--s-8); margin:var(--s-12) 0 var(--s-24); }
.rig-filters button { display:inline-flex; align-items:center; gap:var(--s-8); min-height:44px; padding:0 var(--s-16); border:1.5px solid var(--soft-line); border-radius:999px; background:transparent; color:var(--muted); font:600 .98rem/1 var(--ui); }
.rig-filters button[aria-pressed="true"] { color:var(--brand-soft); border-color:var(--brand-soft); background:var(--brand-bg); }
.mbar:not(.block),.dv-ev:not(.block),.dv-chip:not(.block) { background:color-mix(in srgb,var(--ev) 18%,var(--card)); color:var(--ink); border-color:var(--ev); }
.mbar.passed,.dv-ev.passed,.dv-chip.passed { border-style:dashed; opacity:.65; background:transparent; color:var(--muted); }
.mbar > .rig-dot,.dv-ev .rig-dot,.dv-chip .rig-dot { display:none; }
.lg-bar.passed { background:transparent; border:1px dashed var(--muted); }
.ep-in-receipts::placeholder { color:var(--muted); opacity:1; font-size:.85rem; }
/* Overlays sit outside scrolling content; never intercept a tap. */
.scroll-fade { position:fixed; z-index:25; pointer-events:none; height:24px; background:linear-gradient(to bottom,transparent,var(--fade-bg)); }

.mpill.amber { --pill:var(--amber-ink); --pill-bg:var(--amber-bg); }
.mpill.green { --pill:var(--green); --pill-bg:var(--green-bg); }
.mpill.blue { color:var(--blue); background:var(--blue-bg); }
.mpill.blue[aria-pressed="true"] { background:var(--blue); color:var(--card); }
.mpills:has([data-inbox]) .mpill.blue { color:var(--blue); background:transparent; }
.mpills:has([data-inbox]) .mpill.blue[aria-pressed="true"] { background:var(--blue-bg); }

.card.mbx .urow-h > .tag.brand { background:var(--brand-bg); color:var(--brand-soft); }
.card.mbx .urow-h > .tag.blue { background:var(--blue-bg); color:var(--blue); }
.card.mbx .mb-preview > .tag { margin:0; }
.mbar.passed { box-shadow:none; border:1px dashed var(--ev); }
.lg-bar.passed { box-shadow:none; }

.cal-sheet.ev-full.ep-event { border-left:4px solid var(--ev,var(--brand)); }

.inv-strip.blue { background:var(--blue-bg); color:var(--blue); }
.events > .seg-stack { width:100%; }
.events > .seg-stack > .seg { border-radius:999px; }
.events > .seg-stack > .seg > button { border-radius:999px; }
.ev-acc.recent { background:transparent; box-shadow:none; border-style:dashed; }

.mb-context { margin:0; color:var(--muted); font-size:.85rem; }
.card.unsure .mb-context { white-space:pre-line; margin-bottom:var(--s-12); }   /* what they wrote, as they wrote it (no card opens to show it) */

.card.mbx.home-card { border-left-width:1px; }

.events > .seg-stack > .seg > button::before { border-radius:999px; }
.card.mbx.open,.card.mbx.selected { border-left-color:var(--status,var(--brand-soft)); }

.ev-h .ev-main { gap:0; }
.card.mbx.open,.ev-acc.open { box-shadow:var(--soft-shadow); }

.mbar.passed,.dv-ev.passed,.dv-chip.passed { opacity:1; border-color:color-mix(in srgb,var(--ev) 50%,transparent); }
.ev.passed,.cal-sheet.ev-full.passed { border-left-style:dashed; border-left-color:color-mix(in srgb,var(--ev) 50%,transparent); }
.card.mbx .mb-links .linkish { padding-inline:var(--s-4); }

/* Safari paints border dashes unevenly at rounded corners. The background
   paints through the transparent left border and clips to the card's radius. */
.ev-acc.recent,.ev-acc.passed { border-left-style:solid; border-left-color:transparent; background-image:repeating-linear-gradient(to bottom,color-mix(in srgb,var(--ev) 65%,transparent) 0 7px,transparent 7px 12px); background-size:5px 100%; background-position:left top; background-repeat:no-repeat; background-origin:border-box; background-clip:border-box; }
.scroll-fades { pointer-events:none; }
/* Dark Month bars use the full dark rig palette, rather than nearly identical
   low-opacity tints on the purple card background. */
:root[data-theme="dark"] .mbar:not(.block):not(.passed) { background:var(--ev); color:var(--chrome); }

/* Ask polish 3: opaque viewport, one composer pill, and content that can shrink above tall keyboards. */
#ask { overflow: hidden; }
#ask .chat-thread { min-height: 0; }
#ask .chat-thread > * { flex-shrink: 0; }
#ask .chat-empty { margin: auto var(--s-8); padding: var(--s-24) 0; }
#ask .ask-chips { margin: auto 0 0; padding-top: var(--s-16); flex-shrink: 0; }
#ask .ask-chip { margin: 0; background: var(--raised); border: 1px solid var(--line); font-size: .85rem; padding: var(--s-8) var(--s-12); }
#ask .chat-thread .me { background: var(--brand-bg); color: var(--ink); border-radius: 20px; }
#ask .chat-thread .bot { width: 100%; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
#ask .compose { flex: none; position: relative; margin: 0 var(--s-12) var(--s-40); padding: 0; border: 1px solid var(--line);
  border-radius: 28px; background: var(--raised); align-items: center; }
#ask .compose:focus-within { border-color: var(--brand-soft); }
#ask .compose textarea { border: 0; border-radius: 28px; background: transparent; padding: var(--s-12) calc(var(--s-40) + var(--s-16)); min-height: 48px; }
#ask .send-btn { position: absolute; right: var(--s-4); bottom: var(--s-4); width: 44px; height: 44px; }
@media (max-width: 899px) {
  body.asking.kb-open .top, body.asking.kb-open #nav { visibility: hidden; pointer-events: none; }
  body.asking.kb-open #ask { animation: none; z-index: 10; top: var(--ask-top, 0px); height: var(--ask-h, 100dvh); bottom: auto; }
  body.asking.kb-open #ask .chat-bar { padding-block: var(--s-4); }
  body.asking.kb-open #ask .chat-thread { padding: var(--s-8) var(--s-16); gap: var(--s-8); }
  body.asking.kb-open #ask .chat-empty { padding: 0; }
  body.asking.kb-open #ask .ask-chips { padding-top: 0; }
  body.asking.kb-open #ask .compose { margin-bottom: var(--s-8); padding: 0; }
}
@media (min-width: 900px) { #ask .compose { margin-bottom: var(--s-16); } }

#ask .compose textarea:focus-visible { box-shadow: none; }

/* Round 5, approved founding screen. Rules 7b, 8, 21 and P2. */
body:has(.founding-access) .shell > .top { display:none; }
html.door-first .shell > .top { display:none; }   /* opened on the door: no header from the first paint (theme.js) */
body:has(.founding-access) #view { padding:0 0 var(--s-24); }
.founding-access { padding:0 var(--s-16) var(--s-24); gap:var(--s-12); }
.founding-head { display:flex; align-items:flex-start; gap:var(--s-4); padding:var(--s-8) var(--s-16) var(--s-12) var(--s-4); border-bottom:1px solid var(--soft-line); background:var(--chrome); }
.founding-access .founding-head { margin:0 calc(-1 * var(--s-16)); }
.founding-head .back { flex:none; width:auto; height:44px; }
.founding-head:not(:has(.back)) { padding-left:var(--s-16); }   /* opened by the link: nothing to go back to (rule 3) */
.founding-head > div { min-width:0; padding-top:var(--s-4); }
.founding-brand { display:flex; align-items:center; gap:var(--s-8); font:700 1.1rem/1.2 var(--ui); }
.founding-brand .mark-inline { width:32px; height:32px; background:var(--ink); }
.founding-head p { margin:var(--s-8) 0 0; color:var(--muted); font:400 .86rem/1.4 var(--ui); }
.founding-sheet { width:100%; max-width:560px; margin:0 auto; }
.founding-sheet .fs-body { margin:0; padding:var(--s-24) var(--s-16) var(--s-24); }
.founding-sheet h1,.founding-access h1 { margin:0 0 var(--s-12); font:800 1.75rem/1.2 var(--ui); }
.founding-access h1 { margin:var(--s-12) 0 0; }
.founding-approved,.founding-sheet .founding-card.founding-approved { display:block; padding:var(--s-16); border:1px solid var(--soft-line); background:var(--card); border-radius:16px; box-shadow:var(--soft-shadow); }
.founding-approved .access-form { padding:0; border:0; background:none; gap:var(--s-8); }
.founding-approved .access-form label { font:600 .9rem/1.2 var(--ui); gap:var(--s-8); }
.founding-approved .access-form input[type=email] { min-height:50px; font:400 1rem/1 var(--ui); }
.founding-approved .access-form .access-chk { display:flex; align-items:center; gap:var(--s-8); min-height:44px; font:400 .9rem/1.3 var(--ui); }
.founding-approved .access-chk input { flex:none; width:22px; height:22px; }
.founding-approved .access-line { margin:var(--s-4) 0 0; text-align:center; color:var(--muted); font:500 .86rem/1.4 var(--ui); text-wrap:balance; }
.founding-rows { margin:var(--s-16) calc(-1 * var(--s-16)) 0; padding:0 var(--s-16); border-top:1px solid var(--soft-line); }
.founding-row { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--s-4); padding:var(--s-12) 0; border-bottom:1px solid var(--soft-line); font:400 1rem/1.35 var(--ui); }
.founding-row > span:first-child { flex:none; }
.founding-row > span:last-child { min-width:0; text-align:right; text-wrap:balance; }
.founding-row b { font-weight:600; }
.founding-row small { display:block; margin-top:calc(var(--s-4) / 2); color:var(--muted); font:400 .86rem/1.35 var(--ui); white-space:nowrap; }
.founding-row .plain { font-size:.95rem; color:var(--muted); }
.founding-fine { padding:var(--s-12) 0; margin:0; color:var(--muted); font:400 .88rem/1.4 var(--ui); }
.founding-included { border-top:1px solid var(--soft-line); }
.founding-included .acc-h { min-height:52px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.founding-included .acc-in > ul { gap:var(--s-12); padding:0 0 var(--s-4); }
.founding-approved li { padding:0; color:var(--muted); font:400 .88rem/1.4 var(--ui); }
.founding-approved li::before { display:none; }
.founding-approved li b { color:var(--brand-soft); font-weight:700; }
.founding-sheet .access-links,.founding-access .access-links { margin-top:var(--s-16); gap:var(--s-4); }
.founding-sheet .access-link .linkish,.founding-access .access-link .linkish { min-height:44px; display:inline-flex; align-items:center; color:var(--muted); font-size:.92rem; }
.founding-spots { padding:0 0 var(--s-12); border-bottom:1px solid var(--soft-line); }
.founding-row:has(+ .founding-spots) { border-bottom:0; }
.founding-spots p { margin:0; color:var(--muted); font:500 .9rem/1.3 var(--ui); }
.founding-bar { height:6px; margin-top:var(--s-8); border-radius:999px; background:var(--soft-line); overflow:hidden; }
.founding-bar i { display:block; height:100%; background:color-mix(in srgb,var(--brand) 60%,transparent); border-radius:inherit; }
.sheet.bottom.fs-full { padding:0; border-radius:0; }
.rig-chip-wrap { position:relative; margin:var(--s-12) 0 var(--s-24); min-width:0; }
.rig-filters { display:flex; flex-wrap:nowrap; gap:var(--s-8); margin:0; overflow-x:auto; scrollbar-width:none; }
.rig-filters::-webkit-scrollbar { display:none; }
.rig-filters button { padding:0 var(--s-8); flex:0 0 var(--rig-width,max-content); width:var(--rig-width,max-content); justify-content:center; white-space:nowrap; font:600 1rem/1 var(--ui); }
.rig-filters button:first-child { flex:0 0 auto; width:auto; min-width:44px; padding:0 var(--s-8); }
.rig-chip-fade { position:absolute; top:0; right:0; bottom:0; width:40px; pointer-events:none; opacity:0; background:linear-gradient(to right,transparent,var(--bg)); }
.rig-chip-wrap[data-more=true] .rig-chip-fade { opacity:1; }
.inc-kitchen-detail { margin:0; padding:var(--s-12); }
.inc-kitchen-detail > div { display:flex; justify-content:space-between; gap:var(--s-12); padding:var(--s-4) 0; }
.inc-kitchen-detail dd { margin:0; }
@media (max-width:359px) { .founding-row small { white-space:normal; } }
/* A line wider than its column wraps inside it instead of running past the card's edge (sweep 10/22 V187: at 375 "No card
   needed when your spot opens." ran 17 px past the other lines, to the card's edge); one that fits stays on one line. */
.founding-row small { white-space:normal; text-wrap:balance; }
.founding-logo { width:32px; height:32px; border-radius:9px; background:#4a148c; display:grid; place-items:center; }
.founding-logo .mark-inline { width:20px; height:20px; background:#f5f3ee; }
.founding-sheet h1,.founding-access h1 { font-size:1.6rem; }
.founding-sheet .access-links,.founding-access .access-links { gap:0; }
.founding-sheet .access-link,.founding-access .access-link { display:flex; align-items:center; justify-content:center; gap:var(--s-4); min-height:44px; }
.founding-sheet .access-link .linkish,.founding-access .access-link .linkish { color:var(--brand-soft); font-weight:700; text-decoration:none; }
.rig-filters .rig-dot { margin-right:0; }
.founding-head { position:sticky; top:0; z-index:3; }
.founding-included > .acc-body,.founding-included .acc-in { transition:none; }
.founding-sheet .access-links { margin-top:var(--s-20); }
.founding-access .access-links { margin-top:var(--s-8); }
/* Follow-ups 10/16: the founding page's foot, Terms · Privacy · About, quiet and under the content (the menu foot's look). */
.founding-legal { margin:var(--s-24) 0 0; gap:var(--s-4); font:400 .72rem/1.4 var(--ui); color:var(--muted); }
.founding-legal a { min-width:44px; justify-content:center; color:var(--muted); text-decoration:none; }
.nobr { white-space:nowrap; }   /* nav.js keepHyphens: "pop-ups" and "owner-operator" never split at the hyphen */
/* The admin page's Demo section (demo tracking, 2026-10-17): the by-day table's look, the source and step tables folded. */
.adm-demo { margin: 0 0 var(--s-24); }
.adm-det { margin: 0 0 var(--s-12); }
.adm-det summary { min-height: 44px; display: flex; align-items: center; font: 700 .9rem/1.3 var(--ui); color: var(--ink); cursor: pointer; }
.adm-track th, .adm-track td { white-space: nowrap; }
.adm-track th[scope="row"] { white-space: normal; }
.adm-funnel .adm-drop th, .adm-funnel .adm-drop td { color: var(--red); font-weight: 800; }

/* Round 8 (X7): a long file name stays inside the card's padding. The row may shrink in the card's grid; the chip's name wraps
   (its size kept whole) rather than pushing Send and the draft to the card's edge (Linda Marsh's certificate). */
.attach.files { min-width: 0; }
.attach.files .chip.file { display: inline-flex; min-width: 0; max-width: 100%; }
.attach.files .chip-open { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.attach.files .chip-open small { white-space: nowrap; }
.attach.files .chip-x { flex: none; }

/* The demo Menu's Sign in line (round 8): right under Terms and Privacy, the same quiet foot. */
:is(.menu, .menu-page) .m-foot:has(+ .m-signin) { margin-bottom: 0; }
:is(.menu, .menu-page) .m-signin { margin: 0 0 calc(var(--s-16) + env(safe-area-inset-bottom)); padding: 0 var(--s-8); text-align: center;
  font: 400 .72rem/1.4 var(--ui); color: var(--muted); }
:is(.menu, .menu-page) .m-signin a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 var(--s-4); vertical-align: middle; }

/* An invoice row's date line (round 8, X8): two lines break near the middle, never leaving a lone "20" ("due Oct / 20"). */
.inv-acc .urow-date, .inv .inv-meta, .inv-page-row .urow-date, .inv-page-row .urow-detail { text-wrap: balance; }

/* No-reply card: approved B2, rules 4, 7, 8, 21 and P2. */
.no-reply-facts { display:grid; gap:var(--s-12); margin:0 0 var(--s-16); }
.no-reply-facts > div { display:grid; grid-template-columns:80px minmax(0,1fr); gap:var(--s-8); }
.no-reply-facts dt { color:var(--muted); font-size:11px; }
.no-reply-facts dd { margin:0; overflow-wrap:anywhere; }
.no-reply-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--s-8); margin-top:var(--s-24); }
.no-reply-actions .btn { min-height:44px; padding:var(--s-8) var(--s-4); }
.no-reply-card .tag { color:var(--muted); background:var(--raised); }
.no-reply-read { min-height:44px; }


/* Cleanup 10/19, rule 3 and P9: the event Back stays reachable at every sheet width. */
#evs.sheet.bottom:not(.inline) .sheet-head { position:sticky; top:0; z-index:4; background:var(--bg); touch-action:none; }

/* Report card, approved dark shots. Rules 21, P4, P11: existing type and spacing, 44px taps. */
/* E6 (evening list 10/20): the card folds like Money and Documents; its body keeps the approved spacing. */
.ep-report-card{padding:0}
.ep-report-card .rc-body{display:grid;gap:var(--s-24);padding:var(--s-8) var(--s-12) var(--s-12)}
.rc-stars.rc-stars-shown{color:#ffb515}.rc-stars.rc-stars-shown svg{width:18px;height:18px}
.rc-question{display:grid;gap:var(--s-8)}
.rc-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-8)}
.rc-chip{min-height:44px;min-width:0;padding:var(--s-4) var(--s-8);border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:.875rem;line-height:1.2;text-align:center}
.rc-chip[aria-pressed=true]{background:var(--brand-bg);border-color:var(--brand-soft);color:var(--brand-soft)}
.rc-stars{display:flex;gap:var(--s-4);width:max-content;max-width:100%}
.rc-stars button{display:grid;place-items:center;width:44px;height:44px;padding:var(--s-4);border:0;background:transparent;color:#ffb515}
.rc-stars svg{width:32px;height:32px;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;fill:none}
.rc-stars .rc-filled{fill:currentColor}
.rc-notes{display:grid;gap:var(--s-8)}
.rc-notes textarea{width:100%;box-sizing:border-box;min-height:88px;font:inherit;font-size:16px;padding:var(--s-8) var(--s-12);border-radius:10px;border:1.5px solid var(--field-line);background:var(--raised);color:var(--ink);resize:vertical}   /* the event Notes box's field (P4) */
.rc-previous>.linkish,.rc-history>.linkish{color:var(--brand-soft);min-height:44px}
.rc-previous-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s-8);width:100%;min-height:44px;padding:0;border:0;background:none;color:var(--brand-soft);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.ep-report-card .rc-previous{margin-top:calc(-1 * var(--s-16))}
.rc-history{display:grid;gap:var(--s-8)}
.rc-history>button{display:flex;justify-content:space-between;gap:var(--s-12);width:100%}
.rc-history>button>span:last-child{color:#ffb515}

/* Report card round 2, approved History, series, Month and Lists. Rules 7b, 8, 9, 21, P3, P9. */
.rating-gold { color:#ffb515; letter-spacing:.06em; }
.rate-it { color:var(--brand-soft); }
.history-tools { display:flex; align-items:center; flex-wrap:wrap; gap:var(--s-8); }
.history-tools .rig-chip-wrap { flex:1 1 100%; min-width:0; }   /* the rigs keep their row; Sort under them, never over a chip */
.history-sort { display:flex; align-items:center; gap:var(--s-4); font:500 12px var(--ui); min-height:44px; }
.history-sort select { min-height:44px; max-width:160px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:999px; padding:var(--s-8); }
.calendar-history,.series-dates { display:grid; gap:var(--s-8); }
.history-row { display:flex; justify-content:space-between; align-items:center; gap:var(--s-12); width:100%; text-align:left; padding:var(--s-12); border:1px solid var(--line); border-radius:var(--s-12); background:var(--card); color:var(--ink); min-height:44px; }
.history-row>span { display:grid; gap:var(--s-4); min-width:0; }
.history-row b { font:600 15px/1.4 var(--ui); overflow-wrap:anywhere; }
.history-row small { font:500 12px/1.4 var(--ui); overflow-wrap:anywhere; }
.history-row .rating-gold { font-size:18px; }
.history-row .rate-it { font-size:13px; }
.history-more { justify-self:center; }
.report-series>h2,.prospects-page>h2 { margin:var(--s-8) 0 0; font-size:20px; }
.series-location { color:var(--muted); margin:var(--s-8) 0 var(--s-24); font-size:13px; }
.series-overall { display:flex; align-items:center; gap:var(--s-16); margin-bottom:var(--s-24); }
.series-overall>strong { font-size:36px; }
.series-overall>div { display:grid; gap:var(--s-4); }
.series-overall .rating-gold { font-size:24px; }
.series-overall small { color:var(--muted); }
.calendar-month-page { display:flex; flex-direction:column; gap:var(--s-8); min-height:0; padding-bottom:0; overflow:hidden; }
.calendar-month-page>.page-head,.calendar-month-page>.seg-stack { flex:none; }
.month-full { flex:1; display:flex; flex-direction:column; min-height:0; padding:0; }
.month-full .month-head { flex:none; display:flex; gap:0; min-height:44px; margin:0; }
.month-full .month-head>b { flex:1; text-align:left; font-size:15px; }
.month-full .month-head>span { display:flex; gap:var(--s-8); }
.month-rig { display:flex; align-items:center; gap:var(--s-4); font-size:11px; }
.month-rig>i { width:var(--s-8); height:var(--s-8); border-radius:var(--s-4); }
.month-full .dow { flex:none; }
.month-full .mgrid { flex:1; min-height:0; }
.month-full .mweek { min-height:0; row-gap:0; overflow:hidden; }
.month-full .mday { border-left:1px solid var(--line); border-radius:0; min-height:0; }
.month-full .mday:last-of-type { border-right:1px solid var(--line); }
.month-full .mbar { margin:0; padding:0 var(--s-4); height:16px; overflow:hidden; background:color-mix(in srgb,var(--ev) 22%,var(--card)); color:var(--ink); }
.month-full .mbar-t { text-overflow:clip; }
.month-full .mmore { line-height:17px; }
.prospect-list-link { display:flex; align-items:center; width:100%; min-height:44px; text-align:left; border:0; background:none; color:var(--brand-soft); }
.prospect-head { display:flex; justify-content:space-between; align-items:center; gap:var(--s-8); }
.prospect-head>button { min-height:44px; }
.prospect-row { display:flex; align-items:center; gap:var(--s-8); border-bottom:1px solid var(--line); }
.prospect-row>.li-circle { flex:none; margin:0; min-width:44px; min-height:44px; }
.prospect-open { flex:1; min-width:0; min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:var(--s-8); text-align:left; border:0; background:none; color:var(--ink); padding:var(--s-8) 0; }
.prospect-open>span { display:grid; gap:var(--s-4); }
.prospect-open b { font-size:14px; overflow-wrap:anywhere; }
.prospect-open small { font-size:12px; overflow-wrap:anywhere; }
.prospect-note { white-space:pre-wrap; overflow-wrap:anywhere; padding:var(--s-12); }
.prospect-form { display:grid; gap:var(--s-8); padding:var(--s-12) 0; scroll-margin-bottom:calc(var(--tabs-h) + var(--s-24)); }   /* V141: Add clears the bar's fade */
.prospect-form input,.prospect-form textarea { width:100%; min-height:44px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:var(--s-8); padding:var(--s-8); }
.prospect-reminder { width:100%; min-height:44px; border:1px solid var(--brand); border-radius:var(--s-12); color:var(--brand-soft); background:var(--card); }
@media (min-width:900px) { .calendar-month-page { padding-top:var(--s-20); } }
.prospect-reminder { display:flex; align-items:center; justify-content:space-between; padding:var(--s-12); }
.report-series>.back { justify-self:start; width:auto; align-self:start; }
/* Approved follow-ups: rules 7b, 21, P4. Same controls in both themes. */
.history-sort-row { display:flex; align-items:center; justify-content:space-between; gap:var(--s-8); }
.year-picker { position:relative; flex:none; font-size:12px; }
.year-picker summary { display:flex; align-items:center; justify-content:center; gap:var(--s-8); min-height:44px; padding:0 var(--s-12); border:1px solid var(--line); border-radius:var(--s-24); background:var(--raised); color:var(--ink); cursor:pointer; list-style:none; }
.year-picker summary::-webkit-details-marker { display:none; }
.year-picker .chev { width:16px; height:16px; }
.year-menu { position:absolute; top:calc(100% + var(--s-4)); right:0; z-index:20; display:grid; min-width:112px; max-height:264px; overflow:auto; padding:var(--s-4); border:1px solid var(--line); border-radius:var(--s-16); background:var(--raised); box-shadow:0 4px 16px #0003; }
.year-menu button { min-height:44px; padding:var(--s-8) var(--s-16); color:var(--ink); border:0; border-radius:var(--s-12); background:none; text-align:left; font:inherit; }
.year-menu button[aria-current="true"] { background:var(--brand-bg); color:var(--brand-soft); }
.month-full .month-head { gap:var(--s-8); padding:var(--s-4); }
.month-full .month-head>b { font-size:15px; }
.month-full .month-head>.icon { width:44px; min-width:44px; }
.month-full .month-legend { flex:none; justify-content:flex-start; flex-wrap:wrap; gap:var(--s-4) var(--s-12); margin:0; border:0; padding:var(--s-4); font-size:10px; }
.calendar-month-page>.month-line { flex:none; }
.rating-reminder { display:grid; gap:var(--s-8); width:100%; text-align:left; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:var(--s-12); padding:var(--s-12); margin-bottom:var(--s-12); font:inherit; }
.rating-reminder span,.prospect-head>[data-prospect-back] { color:var(--brand-soft); }
.prospect-reminder>span { display:grid; gap:var(--s-8); text-align:left; }
.prospect-form label { display:grid; gap:var(--s-8); }
.prospect-open small,.rc-private { color:var(--muted); }
.mbx>.rc-previous { border-top:1px solid var(--line); margin:0 var(--s-12); }
.later-pick>.call-opts { display:flex; flex-wrap:wrap; gap:var(--s-8); }
.later-pick>.call-opts>.btn { flex:1 1 auto; padding-left:var(--s-8); padding-right:var(--s-8); white-space:nowrap; }
.history-sort-row { flex:1 1 100%; }
.year-picker summary { background:var(--card); }
.year-picker .rchev { width:16px; height:16px; }
.year-picker .rchev { margin:0; color:var(--ink); }
.year-picker .rchev svg { width:16px; height:16px; }   /* the Sort select's small arrow (year mockup), not the 22px row chevron */
/* The Year jump lands its month heading below the sticky top bar, not under it (P9). */
.calendar-history [data-history-month] { scroll-margin-top:calc(var(--head-h, 60px) + var(--s-8)); }
.month-full .mbar:not(.block):not(.passed) { background:color-mix(in srgb,var(--ev) 18%,var(--card)); }
.month-full .mbar.passed { background:transparent; }
.month-full .mbar.block { background:repeating-linear-gradient(135deg,var(--raised) 0 5px,var(--line) 5px 7px); }

/* Audit shared P4, P5, P10. Rules 4, 6, 7b, 21, P12. */
.tag.gray { box-shadow: none; border: 0; }
.unread-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: var(--s-8); vertical-align: middle; }
.mbx .urow-n { font-weight: 600; }
.mbx.is-unread .urow-n { font-weight: 850; }
.field-error, .ne-date-needed { color: var(--red); margin: var(--s-8) 0 0; font-size: 14px; }
/* Deposit's reusable field instructions, rules 13, 14, 21. No space until Save needs one. */
[data-validation-field] > .field-note { color: var(--red); font: 400 14px/1.4 var(--ui); margin: 0; }
[aria-invalid="true"] { border-color: var(--red); }
.field-saved { display: inline-block; color: var(--muted); font-size: 14px; margin: var(--s-8); }
.send-sheet { padding-bottom: calc(var(--tabs-h) + var(--s-40) + var(--s-24) + env(safe-area-inset-bottom)); }
.send-sheet .send-go { width: 100%; min-height: 44px; margin-top: var(--s-12); }
/* Send quote's Share and Print (app/public/ui.js sendSheetHtml): the same width and height as Send, rule 21 and P4. */
.send-sheet .send-more { display: grid; gap: var(--s-8); margin-top: var(--s-12); }
.send-sheet .send-more > .btn { width: 100%; min-height: 44px; }
.send-sheet .dsend-who > .send-to { font: 400 .92rem/1.3 var(--ui); letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.send-sheet .send-destination { margin: var(--s-8) 0 var(--s-24); color: var(--muted); }
.send-sheet textarea { width: 100%; }
.rule-add { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.rule-add .rule-label { width: 100%; }
.rule-add input { flex: 1; min-width: 0; }
/* Rule 21: room under the last row (Other mail) for the tab bar plus the raised Ask control's 58px and 16px more, so
   scrolled to the end the row clears it, in the phone page and the desktop list alike. */
.mb-rows { padding-bottom: calc(var(--tabs-h) + 58px + var(--s-16) + env(safe-area-inset-bottom)); }
.send-paper { display: block; width: 100%; min-height: 320px; max-height: 60vh; margin-top: var(--s-12); border: 1px solid var(--line); object-fit: contain; overflow: auto; white-space: pre-wrap; }

.send-sheet .dsend-who:not([data-send-who]) { cursor: default; }

/* Audit Mailbox, rules 9, 21 and P2/P9/P12. D6 order and pinned header. */
.card.mbx.open > .urow-h { position: sticky; top: var(--head-h, 60px); z-index: 3; background: var(--card, var(--bg)); border-radius: inherit; }
/* The two-pane Mailbox scrolls its detail pane, not the page: pinned there at the pane's top (the page head's offset put the
   header over the latest message). */
.detail .card.mbx.open > .urow-h { top: 0; }
.card.mbx .actions.mb-acts { grid-template-columns: minmax(0, 1fr); }
.card.mbx .actions.mb-acts > .send-split { grid-column: 1 / -1; width: 100%; }
.card.mbx .send-more { width: auto; min-width: 80px; padding-inline: var(--s-12); }
.pick-time .pick-day { width: 100%; min-width: 0; }
.pick-time .pick-day label { flex: 1 1 0; min-width: 0; width: auto; }
.pick-time .pick-day span { padding-inline: var(--s-12); white-space: nowrap; }
#pick.sheet.bottom > .addon-sheet { min-height: 0; }
#ask .chat-bar { grid-template-columns: auto minmax(0, 1fr) 44px; }
#ask [data-chats-toggle] { width: auto; min-width: 44px; padding-inline: var(--s-12); font: inherit; }
.chat-list-tools { display: flex; align-items: center; justify-content: space-between; padding-inline: var(--s-16); }
.chat-list-tools .linkish { min-height: 44px; }
.chat-list.editing .cl-open { width: calc(100% - 96px); }
.chat-list.editing .cl-del { z-index: 2; }
.chat-thread .chat-chip.src { display: block; width: 100%; text-align: left; background: none; border: 1px solid var(--line); color: var(--ink); }
/* A38: keep the approved raised Ask mark; scrolling content clears its overhang. */
#pick .cal-sheet, #dsend .send-sheet { padding-bottom: calc(var(--s-40) + var(--s-24)); }
/* Back from New message brings the kept row into view: clear of the list's bottom fade (gate 3 item 6, P3). */
.split>.list .mrow.selected { scroll-margin-block: var(--s-40); }
/* A phone's Send opens clear of the raised Ask circle (gate 3 item 5, rule 21, P2): the paper takes the room that's left, never
   under 100, and on a screen too short even for that Send lifts above the circle. Both Send quote and the invoice's sheet. */
@media (max-width: 899px) {
  #dsend .send-sheet { display: flex; flex-direction: column; }
  #dsend .send-sheet > * { flex: none; }
  #dsend .send-sheet > .send-paper { flex: 1 1 100px; min-height: 100px; }
  #dsend .send-sheet > .send-go { position: sticky; bottom: var(--s-40); z-index: 1; }
}
.card.mbx .actions.mb-acts.quiet-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* W2: keep the approved sentence case in search results. */
.done-line .said .label, .done-line .state, .mb-rows > .divider { text-transform: none; }

#pick:has(.addon-sheet) { top: auto; max-height: min(50dvh, calc(100dvh - var(--head-h, 60px) - var(--tabs-h))); }
.card.mbx .actions.mb-acts > .row-btn { width: 100%; justify-content: center; }

.card.mbx.open { overflow: visible; }

.card.mbx .actions.mb-acts.quiet-actions > .btn { border-color: var(--brand); color: var(--brand-soft); background: none; }

/* Calendar audit, approved mockups P3/P11, P6/P8. Rules 7b, 9, 21. */
.calendar-rig-select select{min-height:44px;max-width:100%;border:1px solid var(--line);border-radius:22px;padding:var(--s-8) var(--s-12);background:var(--card);color:var(--ink);font:inherit}
.calendar-rig-select.on select{background:var(--brand-bg);color:var(--brand);border-color:var(--brand)}
.history-tools{display:flex;align-items:center;gap:var(--s-8);flex-wrap:wrap}
.mbar.waiting,.lg-bar.waiting,.dv-chip.waiting,.dv-ev.waiting{background:transparent;border:1px solid var(--muted);color:var(--ink)}
.month-full .mweek{min-height:58px}
.month-full .mgrid{min-height:348px}
.calendar-month-page{min-height:max-content}
.month-today{min-height:44px;padding:var(--s-8);font-size:.8rem}
.mday.overlap>span{color:var(--red);outline:1px solid var(--red);border-radius:50%}
.cal-overlap{color:var(--red);font-weight:600}
/* The head's Create opens its two choices in place under the head (layout audit 2026-10-27, item 22; rule 21), outlined: Create
   is the page's one filled control (P2), as Documents' Add opens its ways. */
.cal-create-choices{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-8)}
.cal-create-choices .btn{min-height:48px;margin:0}
.ep-calendar{font:inherit;color:var(--brand);min-height:44px;text-decoration:underline;background:none;border:0}
.ep-money-chevron{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:none;border:0;color:var(--muted)}
.ep-money-detail>.linkish{min-height:44px}
.ep-type-links .ep-type{margin-inline:auto}
.prospect-note{white-space:pre-wrap}
:root .month-full .mbar.waiting:not(.block):not(.passed){background:transparent;color:var(--ink);box-shadow:none;border:0;pointer-events:auto;font:600 10.5px/13px var(--ui);text-align:left}
/* A Waiting chip is a button (a tap opens its request). The 44px tap floor stretched its outline over the day's next rows
   (b20 landing): the button keeps the 44px box as an invisible ring centered on its 16px lane, and the outline is drawn on
   its words, a 16px chip like the others. */
:root .month-full .mbar.waiting{height:44px;margin-block:calc((var(--s-24) + var(--s-4)) / -2);padding:0}
:root .month-full .mbar.waiting .mbar-t{display:flex;align-items:center;height:16px;padding:0 var(--s-4);border:1px solid var(--muted);border-radius:4px;box-sizing:border-box}
:root[data-theme="dark"] .month-full .mbar.waiting:not(.block):not(.passed){background:transparent;color:var(--ink);border-color:var(--muted)}
.ep-invoice-row{border-bottom:1px solid var(--line);margin-bottom:var(--s-8)}
.calendar-day-list{margin-top:var(--s-24);scroll-margin-bottom:calc(var(--tabs-h) + var(--s-24))}
.calendar-day-list .passed b{text-decoration:line-through}
.calendar-month-page{height:auto;min-height:0;overflow:visible}
.month-full{flex:none}
.calendar-rig-select.on select{color:var(--brand-soft)}
.ep-calendar{width:auto;height:44px;min-width:44px;padding:0 var(--s-8);margin-right:0;border-radius:0;color:var(--brand-soft)}
.ep-money-line{grid-template-columns:minmax(0,1fr) 104px 44px}
.ep-invoice-row>span:first-child{margin-right:auto}
/* Money audit: rules 1, 6, 7, 9 and 21. */
.inv-mark-primary .btn.primary { width:100%; }
/* P12 (shot fix 10/22): Mark as paid, then its one line under it, then the fields: a column, never squeezed side by side. */
.inv-mark-primary:has(.inv-payment-line) { flex-direction:column;align-items:stretch;gap:var(--s-4); }
.inv-mark-primary:has(.inv-payment-line) .inv-payment-line { width:auto;align-self:center; }
.inv-payment-line { display:flex;align-items:center;justify-content:center;gap:var(--s-8);width:100%;min-height:44px; }
.inv-payment-fields { display:grid;grid-template-columns:1fr 1fr;gap:var(--s-12);border:1px solid var(--line);border-radius:var(--s-12);padding:var(--s-12);width:100%;text-align:left; }
.inv-payment-fields .pf { min-width:0;margin:0; }
.inv-payment-fields input { width:100%;min-width:0; }
.inv-payment-how { grid-column:1/-1; }
.inv-payment-how .seg { width:100%; }
.inv-payment-how .seg button { padding:var(--s-8);min-width:0;flex:1; }
.inv-rare { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 var(--s-8); }
.inv-rare > .dot { display:inline-flex;align-items:center;line-height:1;align-self:center; }
.inv-row-action { display:flex;justify-content:flex-end;padding:0 var(--s-12) var(--s-8); }
.inv-acc.open > .inv-row-action { display:none; }
.inv-fee-control { border-bottom:1px solid var(--line);padding:var(--s-8) 0; }
.inv-fee-head { display:flex;align-items:center;justify-content:space-between;gap:var(--s-8); }
.inv-fee-head .inv-switch { margin:0;flex:1;min-width:0; }
.inv-fee-head > button { display:flex;align-items:center;gap:var(--s-8);min-height:44px; }
.inv-fee-fields { padding:var(--s-12);border:1px solid var(--line);border-radius:var(--s-12); }
.inv-deposit-value { display:flex;align-items:center;gap:var(--s-12);margin-top:var(--s-8); }
.inv-deposit-value > input { width:80px;min-width:0; }
.inv-deposit-value b { margin-left:auto; }
.inv-refund-confirm { border:1px solid var(--line);border-radius:var(--s-12);padding:var(--s-12);margin-top:var(--s-12); }
.inv-refund-confirm .confirm-buttons { display:flex;gap:var(--s-8); }
.inc-cost-part { display:flex;justify-content:space-between;gap:var(--s-12);padding:var(--s-8) 0; }
.report-page .page-head { flex-wrap:nowrap;align-items:center; }
.prospects-page .page-head { flex-wrap:nowrap;align-items:center; }
.report-page .page-head h1, .prospects-page .page-head h1 { min-width:0;flex:1;font-size:clamp(22px,6vw,30px); }
.report-page .page-head .share-top { flex-shrink:0; }
/* A title on two lines (Outstanding balances) grows down; Back and Share keep the same spot on every report (rule 1). */
.report-page .page-head > .back, .report-page .page-head > .head-acts { align-self:flex-start; }
.prospects-page .page-head > .back, .prospects-page .page-head > .head-acts { align-self:flex-start; }
.report-page .page-head h1 { min-height:44px;display:flex;align-items:center; }
.rp-table tr[data-ev] { cursor:pointer; }
.rc-line { display:grid;grid-template-columns:1fr 72px 100px 44px; }
.rc-line .rcl-name { grid-column:1/-1;resize:vertical;min-height:64px;white-space:normal;overflow-wrap:anywhere; }
.rc-line .rc-qty-field { grid-column:2; }
.rc-qty-field > span { display:block;color:var(--muted);font-size:12px; }
.rc-qty-field input { width:100%; }

.rc-line > .rate { grid-column:3; }
.rc-line > .rcl-del { grid-column:4; }
/* Audit Menu: rules 7b, 9, 21, P5/P8/P9. The fifth tab is a page. */
.menu-page .m-card { margin-bottom: var(--s-24); }
.menu-page .m-card .m-card { margin: 0; border: 0; border-radius: 0; background: none; }
/* First run's Mailbox row has no tile: its name takes the tile's column too, or it wraps as "Mail / box" in 34px. */
.m-row[data-first-mailbox] { grid-template-columns: minmax(0, 1fr) auto; }
.menu-page .m-demo { margin: 0; }
.menu-page .m-row { color: var(--ink); }
.menu-page .m-label { margin-top: var(--s-24); }
.rig-form select { color: var(--ink); background: var(--raised); color-scheme: inherit; }
.rig-color-field { margin-block: var(--s-8); }
.rig-color-row { width: 100%; min-height: 44px; display: flex; align-items: center; gap: var(--s-8); text-align: left; color: var(--ink); }
.rig-color-row > span { margin-left: auto; display: flex; align-items: center; gap: var(--s-8); }
.rig-line > span.rig-dot-btn { cursor: default; }
.todo .li-main { flex-wrap: wrap; }
.todo .li-todo-text { flex: 1; width: 0; min-width: 80px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0; text-overflow: ellipsis; }
.li-date-chip { position: relative; display: flex; align-items: center; min-height: 44px; max-width: 50%; border: 1px solid var(--line); border-radius: var(--s-12); padding-inline: var(--s-8); color: var(--muted); }
.li-date-chip input { position: absolute; inset: 0; opacity: 0; width: 100%; min-width: 0; cursor: pointer; }
/* Words too long to sit beside the chip take the line; the chip goes under them, in line with the words (shot fix 10/22). */
.todo.li-long .li-main { row-gap: var(--s-4); }
.todo.li-long .li-todo-text { flex: 1 1 calc(100% - 44px); }
.todo.li-long .li-date-chip { margin-left: var(--s-40); max-width: none; }
.li-todo-links { display: none; flex-basis: 100%; align-items: center; justify-content: flex-end; gap: var(--s-8); }
.todo:focus-within .li-todo-links { display: flex; }
.li-todo-links .linkish { min-height: 44px; }
#chat-list:not([hidden]) { position: fixed; inset: 0; max-height: none; border: 0; z-index: 120; background: transparent; }
.chat-list-scrim { position: absolute; inset: 0; background: #0008; }
/* Its rows clear the bottom bar and Ask's raised button, as the Send sheet's do (P9: what a tap reveals shows whole). */
.chats-sheet { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); max-height: 80dvh; overflow-y: auto; padding: var(--s-16); padding-bottom: calc(var(--tabs-h) + var(--s-40) + var(--s-24) + env(safe-area-inset-bottom)); border-radius: var(--s-16) var(--s-16) 0 0; background: var(--chrome); }
.chats-sheet header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); margin-bottom: var(--s-16); }
.chats-sheet header h2 { margin: 0; font-size: 1.1rem; }
.chats-sheet header button { min-width: 44px; min-height: 44px; }
.cl-row.editing .cl-open { padding-right: 96px; }
.cl-row.editing .cl-del, .cl-del:focus-visible { z-index: 2; }
.pr-pill { border: 0; }
.pr-pill.demo-pill { cursor: pointer; min-height: 44px; font-family: inherit; }
.pr-pill:disabled { opacity: 1; cursor: default; }
.demo-explainer p { margin-block: var(--s-24); }
.demo-explainer .wide { width: 100%; min-height: 44px; margin-top: var(--s-8); }
.walk-hold { min-height: 44px; margin-top: var(--s-8); }
/* d35: Ask's invoice preview keeps Send at the bottom of the visible preview. */
.ask-invoice .inv-mark-primary:has([data-inv-send]) { position: sticky; bottom: 0; z-index: 4; padding-block: var(--s-12); background: var(--chrome); }

/* d34: every Ask answer link uses the same outlined treatment. */
.chat-thread .chat-chip.act { background: transparent; color: var(--brand-soft); border-color: var(--line); }
.cust-reach a { display: inline-flex; align-items: center; min-height: 44px; }
#ask .chat-bar { grid-template-columns: calc(44px + var(--s-16)) minmax(0, 1fr) calc(44px + var(--s-16)); }
#ask [data-chats-toggle] { width: auto; min-width: 44px; padding: var(--s-8); border: 1px solid var(--line); border-radius: 999px; }
#ask [data-chat-new] { justify-self: end; }
/* Rules > Prices and fees: the How you price switch (audit shared P10) fits its card at 320, one third each (rules 9, 21). */
.pricing-form .seg { width: 100%; }
.pricing-form .seg button { flex: 1; min-width: 0; padding-left: var(--s-8); padding-right: var(--s-8); }
/* The event sheet ends at the bottom bar, whose Ask circle rises 26px above it: whatever the sheet scrolls into view (a
   Money line opened, the Add pair, a field) stops clear of that circle (P9: shown whole above the bottom bar; rule 21). */
#evs.sheet { scroll-padding-bottom: 32px; }

/* One select in both engines (sweep 10/22 V31, V49, V151). WebKit, the iPhone's engine, draws a select as its own small native
   box (about 22 px, no padding, its own border and arrows) unless appearance is none, while Chromium honors the app's height,
   padding, border and radius. The app's selects drop the native look in both and wear the app's one chevron, so the
   rig filter, History's Sort, a rig's Kind and the forms' pickers are the same 44 px pill or field everywhere (rule 21, P4).
   Last in the file so the chevron outlasts the earlier rules' background shorthands. */
.calendar-rig-select select, .calendar-rig-select.on select, .history-sort select, .rig-form select, .ne-form select, .where-select,
.labor-row select, .doc-form select, .rc-form select, .rc-year select {
  -webkit-appearance: none; appearance: none; min-height: 44px; padding-right: var(--s-32);   /* the chevron's 12 + 14, then 6 clear */
  background-image: var(--select-chev); background-position: right 12px center; background-size: 14px 14px; background-repeat: no-repeat; }
/* The chevron, the app's own (the Year pill's), in --muted for each theme. */
:root, :root[data-theme="dark"] { --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a39db3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="light"] { --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236f6861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* A rig's Kind is a field like the Name box above it. */
.rig-form select { width: 100%; font-size: 16px; padding: var(--s-8) var(--s-32) var(--s-8) var(--s-12); border-radius: 9px; border: 1.5px solid var(--field-line); }

/* Queue 17 start. Rule 21: invisible hit areas, unchanged drawn controls and flow.
   Q5-19, Q5-27, Q5-29 and the tightly packed Other action are left for a layout approval. */
.wiz-ok { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.adm-track th[scope="row"] { overflow-wrap: anywhere; }

/* Rig/Menu selects (Q5-26) are left for a layout approval: a 44px select box draws over its label. */

.ep-contact-name { position: relative; }
/* Expand the name upward into its label, away from Call/View below it. Folds, Add, files and the event links are
   packed too tightly for an invisible 44px area without overlapping a neighbour: left for the polish round's layout. */
.ep-contact-name::before { content: ''; position: absolute; left: 0; width: 100%; min-width: 44px; height: max(44px, 100%); bottom: 0; }
/* Queue 17 end. */

/* INTEG-MOCKUPS-2: rules 9, 21, P4. Existing house colors in both themes. */
.habs { display: grid; gap: var(--s-12); }
.hab { display: grid; gap: var(--s-8); padding: var(--s-12); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.hab p { margin: 0; font: 600 .95rem/1.4 var(--ui); overflow-wrap: anywhere; }
.hab-ev { font: 500 .8rem/1.3 var(--ui); color: var(--muted); }
.hab.no p, .hab.no .hab-ev { opacity: .5; }
.hab .seg { width: 100%; }
.hab .seg button { flex: 1; min-width: 0; min-height: 44px; }
.hab-edit { display: grid; gap: var(--s-8); }
.hab-edit textarea { width: 100%; min-height: 76px; font: inherit; }
.hab-edit .tf-actions .btn { min-height: 44px; flex: 1; }
.calendar-fill { display: grid; gap: var(--s-24); align-content: start; }   /* rows their own height: never stretched to fill the screen */
.calendar-fill .btn.wiz-fill { min-height: 44px !important; padding-block: 0; font-size: 1rem; }   /* rule 21 */
.calendar-fill h2 { font-size: 1.2rem; margin: 0; }
.fnds { display: grid; gap: var(--s-8); }
.fnd { padding: var(--s-12); border-radius: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.fnd-from { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.fnd-act { display: flex; align-items: center; gap: var(--s-16); }
.fnd-act button { min-height: 44px; }
.fnd.done { border-left-color: var(--green); }
.fnd.skipped { border-left-color: var(--line); }
.fnd.skipped .ev-main > :not(.fnd-act) { opacity: .55; }
.calendar-fill .wiz-card { display: grid; gap: var(--s-12); }
.price-rates { display: grid; gap: var(--s-12); }
.price-rate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: var(--s-8); align-items: start; }
/* fields follow-up 1: each label's words, box and note share the row's three tracks (subgrid), so a note under one box moves
   neither the other box nor the remove button, which sits level with the boxes. */
.price-rate { grid-template-rows: auto auto auto; row-gap: var(--s-4); }
.price-rate:has(> .wiz-f) { row-gap: var(--s-8); }
@supports (grid-template-rows: subgrid) {
  .price-rate > label { display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; }
  .price-rate > button { grid-row: 2; }
}
.price-rate input { width: 100%; min-width: 0; }
.price-rate button { min-height: 44px; }

.hab .seg button[aria-pressed="true"] { color: var(--brand-soft); }
.hab .seg button[aria-pressed="true"]::before { background: var(--brand-bg); }
.calendar-fill label.btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Calendar fill keeps the approved calendar date block, month groups and upper-right status (rules 4, 6, 21). */
.fnd { position: relative; display: flex; gap: var(--s-12); align-items: flex-start; }
.fnd .ev-main { padding-right: var(--s-48, 56px); }
.fnd > .tag { position: absolute; top: var(--s-12); right: var(--s-12); }
.fnd-from { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
/* Long package names and uploaded filenames stay inside a phone at larger text sizes (rule 21). */
.price-rate label, .calendar-fill form, .calendar-fill label.btn { min-width: 0; }
.price-rate label, .calendar-fill [data-calendar-filename] { overflow-wrap: anywhere; }
.calendar-fill [data-calendar-filename] { min-width: 0; max-width: 100%; }
/* The hidden file box stays 1px inside its Choose file button: the setup boxes' full width must not reach it (rule 21: no
   sideways scroll at 320). */
.calendar-fill label.btn { position: relative; }
.calendar-fill input[type="file"].sr-only { width: 1px; min-width: 0; height: 1px; padding: 0; }

/* Rate this draft: approved 2026-10-25 mockup, without chips. Rules 13 (exception), 15, 17, 21, P9, P12. */
.draft-rating-dialog { position: fixed; inset: 0; margin: 0; padding: 0; border: 0; width: 100%; max-width: none;
  height: 100dvh; max-height: none; background: transparent; color: var(--ink); overflow: hidden; }
.draft-rating-dialog[open] { display: grid; align-items: end; justify-items: center; }
.draft-rating-dialog::backdrop { background: rgba(5,4,10,.62); }
:root[data-theme="light"] .draft-rating-dialog::backdrop { background: rgba(29,26,23,.42); }
.draft-rating-sheet { width: min(100%, 480px); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.7); padding: var(--s-8) var(--s-16) calc(var(--s-20) + env(safe-area-inset-bottom));
  display: grid; gap: var(--s-12); animation: draft-rating-rise .2s ease-out; }
.draft-rating-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--raised-line);
  justify-self: center; margin-bottom: var(--s-4); touch-action: none; }
.draft-rating-sheet h2 { margin: 0; font: 700 1.05rem/1.2 var(--ui); touch-action: none; }
.draft-rating-values { display: grid; grid-template-columns: repeat(5, 44px); justify-content: space-between; gap: var(--s-8); }
.draft-rating-values button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--raised); color: var(--ink); font: 700 .95rem/1 var(--ui); cursor: pointer; }
.draft-rating-values button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.draft-rating-sheet textarea { width: 100%; min-height: 76px; resize: none; padding: var(--s-12); border-radius: 10px;
  border: 1.5px solid var(--brand); background: var(--raised); color: var(--ink); font: 400 16px/1.4 var(--ui); }
.draft-rating-sheet textarea::placeholder { color: var(--muted); opacity: 1; }
.draft-rating-sheet p { margin: calc(-1 * var(--s-4)) 0 0; color: var(--muted); font: 400 .85rem/1.4 var(--ui); }
.draft-rating-skip { justify-self: center; min-height: 44px; padding: 0 var(--s-16); border: 0;
  background: none; color: var(--muted); font: 600 .9rem/1 var(--ui); cursor: pointer; }
.draft-rating-sheet :focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
@keyframes draft-rating-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .draft-rating-sheet { animation: none; } }

/* App analytics: rules 8, 15, 21. Readable tables at 390px in both house themes. */
.app-analytics { margin-bottom: var(--s-24); min-width: 0; }
.app-test-switch { display: flex; align-items: center; gap: var(--s-8); min-height: 44px; }
.app-counts { width: 100%; table-layout: fixed; }
.app-counts th, .app-counts td { white-space: normal; overflow-wrap: anywhere; padding: var(--s-8) var(--s-4); }
.app-counts th:first-child { width: 34%; }
.app-counts small { display: block; color: var(--muted); }

.app-counts[data-columns="5"] th:first-child { width: 24%; }

.app-analytics .adm-h { margin: var(--s-24) 0 var(--s-8); }
.app-counts a { display: inline-flex; align-items: center; min-height: 44px; }

/* Address suggestions, rules 13, 21: same field, 44px choices, both house themes. */
.places-menu { border:1px solid var(--line); border-radius:8px; background:var(--raised); color:var(--ink); margin-top:var(--s-4); overflow:hidden; }
.places-menu[hidden] { display:none; }
.places-menu [role="listbox"] { max-height:264px; overflow-y:auto; overscroll-behavior:contain; }
.places-option { min-height:44px; box-sizing:border-box; display:flex; align-items:center; padding:var(--s-12); font-size:16px; line-height:1.4; cursor:pointer; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.places-option:hover, .places-option[aria-selected="true"] { background:var(--bg); outline:2px solid var(--brand); outline-offset:-2px; }
.places-credit { color:var(--muted); font-family:var(--ui); font-size:12px; line-height:18px; padding:var(--s-8) var(--s-12); text-align:right; white-space:nowrap; }

/* Short signup, approved 2026-10-25. Rules 8, 13, 21, P2 and P4. House colors cover light and dark. */
.wiz .wiz-open-google { width: 100%; margin-top: var(--s-12); }
.wiz-pastewrap { display: flex; gap: var(--s-8); border-radius: 12px; scroll-margin-block: var(--s-24); }
.wiz-pastewrap input { min-width: 0; flex: 1; }
.wiz .wiz-pastewrap .btn { width: auto; flex: none; padding-inline: var(--s-16); }
.wiz-paste-ready { outline: 3px solid var(--brand-soft); outline-offset: var(--s-4); }
.wiz-pastewrap:focus-within { outline: 3px solid var(--brand-soft); outline-offset: var(--s-4); }
.wiz-taste { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: var(--s-16); padding: var(--s-24) var(--s-8); }
.wiz-taste-line { font: 800 1.45rem/1.25 var(--ui); letter-spacing: -.01em; min-height: 2.6em;
  display: flex; align-items: center; justify-content: center; margin: 0; transition: opacity .45s ease; }
.wiz-taste-line.out { opacity: 0; }
.wiz-read-bar { width: min(100%, 320px); }
.wiz-read-bar .signup-progress-row { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .wiz-taste-line { transition: none; }
}

.wiz-done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.wiz-done-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Approved signup frames 5/6, rules 7b, 21, P10, P12. House tokens support both themes. */
.signup-learning { padding: var(--s-12); margin: 0 0 var(--s-12); background: var(--amber-bg); color: var(--ink); border-radius: var(--s-8); font-size: 13px; }
.signup-book-hint { max-width: 32em; color: var(--muted); font-size: 13px; }
.signup-tone, .signup-ask { margin: var(--s-12) 0; padding: var(--s-12); border: 1px solid var(--line); border-radius: var(--s-8); }
.signup-confirm { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); }
.signup-confirm button { flex-shrink: 0; min-height: 44px; }
.signup-tones { display: grid; gap: var(--s-8); }
.signup-tone-pick { display: grid; gap: var(--s-8); text-align: left; padding: var(--s-12); min-height: 44px; border: 1px solid var(--line); border-radius: var(--s-8); background: var(--raised); color: var(--ink); font: inherit; }
.signup-tone-pick span { font-size: 13px; color: var(--muted); }
.signup-tone-pick[aria-checked="true"] { border-color: var(--brand); }
.signup-setup { margin: var(--s-24) 0; border: 1px solid var(--line); border-radius: var(--s-12); background: var(--raised); overflow: hidden; }
.signup-setup-head, .signup-step { display: flex; align-items: center; gap: var(--s-12); width: 100%; min-height: 44px; padding: var(--s-12); border: 0; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.signup-setup-head > .rchev, .signup-step > .rchev { margin-left: auto; }
.signup-step { border-top: 1px solid var(--line); }
.signup-check { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 4px; text-align: center; color: var(--green); flex-shrink: 0; }
.signup-ask .seg { margin: var(--s-8) 0; }
.signup-ask .seg button { min-height: 44px; flex: 1; }
.signup-amount { display: grid; gap: var(--s-8); }
.signup-remember { color: var(--muted); font-size: 13px; }
.mb-other > span { display: grid; gap: var(--s-4); }
.mb-other small { font-size: 12px; color: var(--muted); font-weight: 400; }
.pr-pill { min-height: 44px; }
.signup-ask .seg { width: 100%; }
.signup-ask .seg button { min-width: 0; padding-inline: var(--s-8); }
.signup-ask .seg button[aria-pressed="true"] { color: var(--brand-soft); }
.signup-ask .seg button[aria-pressed="true"]::before { background: var(--brand-bg); }
/* Google Identity branding colors and local Google Sans. Rules 8, 17, 21, P4. */
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/brand/google-sans.ttf') format('truetype'); }
.google-choice { width: 100%; margin-bottom: var(--s-12); }
.google-identity { overflow-wrap: anywhere; }
.google-signin { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: var(--s-12); padding: var(--s-8) var(--s-12); border: 1px solid #747775; border-radius: var(--s-4); background: #fff; color: #1f1f1f; font: 500 14px/20px 'Google Sans', sans-serif; cursor: pointer; }
.google-signin svg { width: 20px; height: 20px; flex: 0 0 20px; }
.google-signin:focus-visible { outline: 2px solid var(--ink); outline-offset: var(--s-4); }
.google-signin:disabled { cursor: wait; opacity: .6; }
:root:not([data-theme="light"]) .google-signin { background: #131314; border-color: #8e918f; color: #e3e3e3; }
.google-divider { display: flex; align-items: center; gap: var(--s-12); margin-top: var(--s-24); color: var(--muted); font-size: 14px; }
.google-divider::before, .google-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Send Undo, decision 0020, design rule 21. */
.send-undo { min-height: 44px; min-width: 44px; }

/* Signup follow-ups, rules 7b, 9 and 21. Hide is a separate 44px target in both themes. */
.signup-setup-title { display: flex; align-items: center; gap: var(--s-8); padding-right: var(--s-12); }
.signup-setup-title .signup-setup-head { flex: 1; min-width: 0; }
.signup-setup-hide { min-height: 44px; padding-inline: var(--s-8); flex-shrink: 0; }
.signup-due { display: flex; }
.signup-amount input[data-signup-due-days] { width: 5em; min-height: 44px; }
/* Private service records: existing admin layout, design rules 15, 21 and P12. */
.uptime-restore { display: grid; gap: var(--s-12); margin-top: var(--s-12); }
.uptime-restore label { display: grid; gap: var(--s-8); }
.uptime-restore input, .uptime-restore select, .uptime-restore textarea { min-height: 44px; width: 100%; min-width: 0; box-sizing: border-box; }

/* Provider entry, approved picker mockup. Rules 7b, 8, 21, P8 and P10. */
.wiz-picker, .wiz-notify { padding-top: var(--s-20); gap: var(--s-16); }
.wiz-picker .wiz-brand, .wiz-notify .wiz-brand { gap: var(--s-4); margin: 0 0 calc(-1 * var(--s-4)); }
:is(.wiz-picker, .wiz-notify) .login-mark { width: 56px; height: 56px; }
:is(.wiz-picker, .wiz-notify) .login-name { font-size: 1.5rem; }
.wiz-picker .wiz-h, .wiz-notify .wiz-h { font-size: 1.625rem; line-height: 1.2; margin: 0; }
.wiz-provider-rows { display: grid; gap: var(--s-8); }
.wiz-provider-row { display: flex; align-items: center; gap: var(--s-12); width: 100%; min-height: 48px !important;
  padding: var(--s-8) var(--s-16) var(--s-8) var(--s-12); border: 1.5px solid var(--field-line); border-radius: 14px;
  background: var(--card); color: var(--ink); text-align: left; cursor: pointer; }
.wiz-provider-label { flex: 1; min-width: 0; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.wiz-provider-chevron { flex: none; width: 20px; height: 20px; color: var(--muted); }
.wiz-provider-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.wiz-provider-mark img { display: block; width: 22px; height: 22px; }
.wiz-provider-other > summary { list-style: none; box-sizing: border-box; }
.wiz-provider-other > summary::-webkit-details-marker { display: none; }
.wiz-provider-other > summary .wiz-provider-chevron { transform: rotate(90deg); }
.wiz-provider-other[open] > summary .wiz-provider-chevron { transform: rotate(-90deg); }
.wiz-provider-other > .wiz-provider-rows { margin-top: var(--s-8); }
.mark-microsoft { background: #526273; }
.mark-gmail { background: #d93025; } .mark-icloud { background: #2f80ed; } .mark-yahoo { background: #6001d2; }
.wiz-picker > .wiz-foot { margin-top: 0; font-size: .9375rem; }
.wiz-provider-selected { display: flex; gap: var(--s-8); align-items: center; min-height: 44px; color: var(--muted); font-size: .8125rem; margin: calc(-1 * var(--s-8)) 0; }
.wiz-provider-selected .wiz-link { width: auto; padding: 0; min-height: 44px; font: inherit; font-weight: 700; }
.wiz-notify .wiz-notify-sub { margin: calc(-1 * var(--s-8)) 0 0; font-size: 1rem; }
.wiz-notify .wiz-form { gap: var(--s-16); }
.wiz-notify .wiz-f { font-size: 1rem; }
.wiz-notify input { min-height: 50px !important; border-radius: 14px; }
.wiz-notify .btn { border-radius: 14px; }
.wiz-notify-ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.wiz-notify-ok svg { width: 28px; height: 28px; }

/* The approved notification form keeps 16 between field and button. */
.wiz.wiz-notify > :has(+ .btn.wiz-fill), .wiz.wiz-notify .wiz-form > :has(+ .btn.wiz-fill) { margin-bottom: 0; }

/* Private numeric tables, existing house spacing, rules 8, 15, 21. */
.number-scroll { overflow-x: auto; max-width: 100%; }
.number-scroll .app-counts { min-width: 640px; }
.number-scroll .app-counts th:first-child { width: 14%; }

/* Departure question, rules 13, 21: existing theme tokens, phone-sized targets. */
.leaving-question { border: 0; padding: 0; margin: var(--s-12) 0; min-width: 0; }
.leaving-question legend { font-weight: 600; padding: 0; }
.leaving-choice { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; cursor: pointer; }
.danger-zone .leaving-choice input { width: 20px; height: 20px; flex: 0 0 20px; padding: 0; }
.leaving-question [hidden] { display: none; }
.leaving-question .pf { margin: var(--s-8) 0 var(--s-12); }

/* Booking setup: approved v3 (Chris 10-26). Rules 7b, 21, P9, P12. All colors use the house themes. */
.booking-setup { min-width:0; margin:0; }
.booking-setup h3 { font-size:1.6rem; font-weight:800; line-height:1.15; margin:0 0 var(--s-8); text-align:left; }
.booking-setup h4 { margin:0; font-size:1.05rem; font-weight:800; }
.booking-setup .bs-lead { margin:0 0 var(--s-24); color:var(--muted); }
.bs-label { margin:0 0 var(--s-8) var(--s-4)!important; color:var(--muted); font-size:.85rem!important; }
.bs-card { background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); margin-bottom:var(--s-24); overflow:hidden; }
.booking-setup .book-row { display:grid; gap:var(--s-12); padding:var(--s-12); }
.bs-link { display:flex; align-items:center; min-height:44px; padding:var(--s-8) var(--s-12); border-radius:10px; border:1.5px solid var(--field-line); background:var(--bg); font-weight:700; overflow-wrap:anywhere; user-select:all; }
.bs-row, .booking-setup summary { display:flex; align-items:center; gap:var(--s-12); min-height:56px; width:100%; padding:var(--s-8) var(--s-12); color:var(--ink); background:none; border:0; text-align:left; font:700 .92rem/1.25 var(--ui); cursor:pointer; list-style:none; }
.booking-setup summary::-webkit-details-marker { display:none; }
.bs-row + .bs-row, .bs-item { border-top:1px solid var(--line); }
.bs-row-title { flex:1; min-width:0; }
.bs-status { flex:none; color:var(--muted); font-size:.78rem; font-weight:600; white-space:nowrap; }
.bs-status.working { color:var(--green); font-weight:700; }
.booking-setup .rchev { flex:none; margin:0; width:18px; color:var(--muted); }
.booking-setup details[open] > summary > .rchev { transform:rotate(180deg); }
.bs-test { min-height:44px; justify-self:center; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.bs-under { font-size:.8rem; text-align:center; color:var(--muted); margin:0 var(--s-4); }
.bs-more { display:grid; gap:var(--s-12); padding:0 var(--s-12) var(--s-16); }
.bs-more label { color:var(--muted); font-size:.85rem; font-weight:700; }
.bs-more select { width:100%; min-height:44px; border:1.5px solid var(--field-line); border-radius:10px; background-color:var(--raised); color:var(--ink); padding-left:var(--s-12); font:700 .92rem var(--ui); }
.bs-message { margin:0 0 var(--s-12); padding:var(--s-12); border-radius:10px; border:1.5px solid var(--field-line); background:var(--raised); white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9rem; line-height:1.45; }
.bs-steps { list-style:none; padding:0; margin:var(--s-16) 0; border:1px solid var(--line); background:var(--card); border-radius:12px; overflow:hidden; }
.bs-steps li { display:flex; align-items:center; gap:var(--s-12); min-height:52px; padding:var(--s-8) var(--s-12); font-weight:600; }
.bs-steps li + li { border-top:1px solid var(--line); }
.bs-number { flex:none; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--brand-bg); color:var(--brand-soft); font-size:.85rem; font-weight:800; }
.bs-note { color:var(--muted); font-size:.85rem; margin:0 var(--s-4) var(--s-16); }
.bs-finish { display:flex; align-items:center; justify-content:center; gap:var(--s-12); min-height:52px; width:100%; border:1.5px solid var(--field-line); border-radius:10px; background:var(--raised); color:var(--ink); font:700 .92rem var(--ui); cursor:pointer; }
.bs-box { width:24px; height:24px; border:2px solid var(--field-line); border-radius:6px; }
.bs-skip { display:block; min-height:44px; justify-self:center; margin:0 auto; padding:0 var(--s-16); background:none; border:0; color:var(--muted); font:600 .92rem var(--ui); cursor:pointer; }
.booking-setup .btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--s-8); text-decoration:none; }
.booking-setup .btn svg { flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.booking-setup [hidden] { display:none; }
/* The step screens: the drill-in bar (back arrow, the row's short name), steps first, the box, Copy under it. */
.bs-screen { display:grid; gap:var(--s-12); }
.bs-navbar { display:flex; align-items:center; gap:var(--s-4); min-height:48px; }
.bs-navbar .back { min-width:44px; justify-content:center; padding:0; margin-left:calc(-1 * var(--s-12)); border:0; background:none; color:var(--ink); }
.bs-navbar .back svg { width:22px; height:22px; }
.bs-nt { font-size:1rem; font-weight:800; }
.bs-screen > .bs-steps { margin:0; }
.bs-steps li .bs-stepbtn { flex:1; min-width:0; }
.bs-screen > .btn { width:100%; }
.bs-screen .bs-note { margin:var(--s-4) var(--s-4) 0; }
.bs-edit { display:block; width:100%; min-height:200px; margin:0; padding:var(--s-12); border-radius:10px; border:1.5px solid var(--field-line); background:var(--raised); resize:vertical; color:var(--ink); font:500 .9rem/1.45 var(--ui); }
.bs-edit:focus-visible { outline:2px solid var(--brand-soft); outline-offset:2px; }
.bs-over { margin:calc(-1 * var(--s-4)) var(--s-4) 0; color:var(--red); font-size:.85rem; font-weight:700; }
.bs-copyrow { display:flex; align-items:center; gap:var(--s-8); }
.bs-copyrow .btn { flex:1; min-width:0; }
.bs-reset { flex:1; min-width:0; min-height:44px; padding:0 var(--s-4); background:none; border:0; color:var(--muted); font:600 .8rem var(--ui); text-decoration:underline; text-underline-offset:3px; cursor:pointer; text-align:center; }

/* One-month feedback, rules 13 and 21. Uses the public signing page's spacing. */
.monthmail { gap: var(--s-24); }
.monthmail textarea { box-sizing: border-box; width: 100%; min-width: 0; resize: vertical;
  font: 500 17px/1.5 var(--ui); padding: var(--s-12); border: 1.5px solid var(--field-line);
  border-radius: 10px; background: var(--raised); color: var(--ink); }
.monthmail button { min-height: 44px; }
.monthmail-answers { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-8); min-width: 0; }
.monthmail-answers legend { font: 600 17px/1.4 var(--ui); color: var(--ink); padding: 0; margin-bottom: var(--s-8); }
.monthmail-choice { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; padding: 0 var(--s-12);
  border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--raised); color: var(--ink); font: 500 17px/1.4 var(--ui); }
.monthmail-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.monthmail-choice:has(input:checked) { border-color: var(--brand); }

/* Sharing: house rows, native radio controls, phone first. Rules 7b, 21, P2, P9. */
.share-choices { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-8); min-width: 0; }
.share-choice { display: flex; align-items: start; gap: var(--s-8); padding: var(--s-12); border: 1px solid var(--line); border-radius: var(--s-12); cursor: pointer; min-height: 44px; }
.share-choice:has(input:checked) { border-color: var(--brand); background: var(--raised); }
.share-choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.share-choice span { font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.share-edit { margin-top: var(--s-8); font-weight: 600; }
.share-body textarea { width: 100%; min-height: 160px; resize: vertical; padding: var(--s-12); border: 1.5px solid var(--field-line); border-radius: var(--s-12); background: var(--raised); color: var(--ink); font: 400 16px/1.45 var(--ui); }
.share-body [data-share-go] { grid-column: 1 / -1; }

/* Truck notices reuse .notice, rules 4, 13, 21. Fixed uses the existing green tokens. */
.outage-notice { margin: var(--s-12); overflow-wrap: anywhere; flex-shrink: 0; }
.outage-notice.fixed { background: var(--green-bg); color: var(--green); }
.outage-admin { grid-template-columns: minmax(0, 1fr); }
.outage-admin > form, .outage-admin > p { width: 100%; min-width: 0; }
[aria-label="Truck notices"] input { max-width: 100%; min-width: 0; }
[aria-label="Truck notices"] fieldset { min-width: 0; }
[aria-label="Truck notices"] label:has([type="checkbox"]) { display: flex; align-items: center; min-height: 44px; }
[aria-label="Truck notices"] input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: none; }

/* Obvious audit fixes, rules 7b, 8, 21, P4: existing controls, readable in both themes. */
.head-pill-space { width:44px; height:44px; flex:none; }
.crew-time-off summary { min-height:44px; display:flex; align-items:center; gap:var(--s-8); cursor:pointer; font-weight:600; }
.crew-time-off summary .rchev { margin-left:auto; }
.crew-time-off[open] summary .rchev { transform:rotate(180deg); }
.ep-crew-edit .ep-pair[hidden] { display:none; }
.ep-add-note { justify-self:start; min-height:44px; }
.rig-photo { min-height:calc(var(--s-32) * 3); max-width:calc(var(--s-32) * 6); }
.rig-photo img { max-height:calc(var(--s-24) * 6); }
.rig-photo .rig-ph { align-self:start; margin-top:var(--s-8); }
.rig-photo .rig-ph svg { width:var(--s-32); height:var(--s-32); }
.rig-retire { color:var(--muted); min-height:44px; }
.cust-reach a { color:inherit; text-decoration:none; }
.todo .li-date-chip { flex:none; white-space:nowrap; max-width:none; }
.todo .li-date-chip.sr-only { position:absolute; width:1px; height:1px; min-height:0; padding:0; border:0; }
.mday.selected { box-shadow:inset 0 0 0 2px var(--brand); }
.card.mbx.open .urow-name { white-space:normal; overflow:visible; text-overflow:clip; -webkit-line-clamp:unset; line-clamp:unset; }
/* Mailbox layout audit 12, 16, 18 and 19. Rules 7b, 8, 21; P4, P5, P9. */
.mb-draft-group { display:grid; gap:calc((var(--s-12) + var(--s-16))/2); min-width:0; }
.mb-draft-group + .mb-draft-group { margin-top:var(--s-24); }
.request-facts { margin:0; padding:var(--s-12) var(--s-16) var(--s-4); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--s-12) var(--s-16); }
.request-facts > div { display:grid; align-content:start; gap:var(--s-4); min-width:0; }
.request-facts dt { color:var(--muted); font:600 .68rem/1 var(--ui); letter-spacing:.08em; text-transform:uppercase; }
.request-facts dd { margin:0; font-size:.95rem; overflow-wrap:anywhere; }
.request-facts .missing { color:var(--muted); }
.request-facts .request-quote { grid-column:1 / -1; }
.send-reply-label { color:var(--muted); font-size:.8rem; text-align:center; }
#evs.sheet.mailbox-pane { position:static; inset:auto; transform:none; z-index:auto; width:auto; max-width:none; max-height:none; min-height:0; margin:0; overflow:visible; border:0; border-radius:0; box-shadow:none; background:none; }
#evs.mailbox-pane::before { content:none; }
#evs.sheet.mailbox-pane .sheet-head { position:static; justify-content:flex-end; }
#evs.mailbox-pane [data-evs-close] { display:none; }
#evs.mailbox-pane .cal-sheet { border-left:0; padding:0; }
.list .done-line.selected { border-color:var(--brand); }
.history-owner > summary { display:flex; align-items:center; min-height:44px; gap:var(--s-8); color:var(--muted); cursor:pointer; }
.history-owner > summary .rchev { margin-left:auto; }
.history-owner[open] > summary .rchev { transform:rotate(180deg); }
.help-page { padding-bottom:calc(var(--s-40) + var(--s-24)); }
.inv-save-total .inv-row.total span { color:var(--ink); }
.ep-invoice-row:last-child { border-bottom:0; margin-bottom:0; }
.receipt-page .rc-thumb { min-height:0; width:calc(var(--s-32) * 3); height:calc(var(--s-32) * 3); margin-top:var(--s-24); }
.receipt-page .rc-thumb img { width:100%; height:100%; object-fit:cover; }
.rc-items > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--muted); }
.doc-open { min-height:44px; }

.rc-items > summary .rchev { margin-left:auto; }
.rc-items[open] > summary .rchev { transform:rotate(180deg); }
/* Eight existing payment choices, four equal columns, so their words fit on a phone. */
.inv-payment-how .seg { grid-auto-flow:row; grid-template-columns:repeat(4,minmax(0,1fr)); }

/* Week-one approved layouts, rules 6, 8, 21, P5, P9. */
.bk-details summary { list-style:none; display:flex; align-items:center; justify-content:space-between; min-height:44px; cursor:pointer; font-weight:700; }
.bk-details summary::-webkit-details-marker { display:none; }
.bk-details summary svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; }
.bk-details[open] summary svg { transform:rotate(180deg); }
.bk-details-body { display:grid; gap:var(--s-16); margin-top:var(--s-12); }
.bk-details .bk-row2 { align-items:start; }
.bk-unavailable { color:var(--muted); font-size:.86rem; font-weight:400; }
.bk-unavailable[hidden] { display:none; }
.ep-customer-line { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--s-8); }
.ep-customer-line .ep-contact-name { min-height:44px!important; font-weight:600; flex:1; }
.ep-customer-line .tag { flex:none; }
.ep-customer .ev-checkin { margin:0 0 var(--s-8); }
.ep-conversation { width:100%; min-height:44px!important; margin-top:var(--s-8); }
.cm-reply { display:grid; gap:var(--s-8); padding:var(--s-12) var(--s-16); border-bottom:1px solid var(--line); }
.cm-reply-label { color:var(--muted); font-size:.85rem; }
.cm-reply-address { display:flex; align-items:center; gap:var(--s-8); overflow-wrap:anywhere; }
.cm-reply-address input { min-width:0; width:100%; min-height:44px; }
.cm-reply-address .linkish { margin-left:auto; min-height:44px; }

.contact-menu .cm-reply .seg button { display:block; grid-template-columns:none; text-align:center; min-height:44px; }
.cm-reply-address > span { min-width:0; flex:1; }
.contact-menu .cm-reply-address .linkish { display:block; flex:none; width:auto; white-space:nowrap; grid-template-columns:none; }
.contact-menu.as-sheet.floating { position:absolute; inset:auto; width:min(390px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }

/* Layout audit item 6, rules 7, 8 and 21: the invoice stays one tap away. */
.inv-document { min-width: 0; }
.inv-document > summary { display: flex; align-items: center; gap: var(--s-12); min-height: 44px; cursor: pointer; list-style: none; }
.inv-document > summary::-webkit-details-marker { display: none; }
.inv-document-item { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.inv-document > summary .linkish { flex: none; }
.inv-document:not([open]) .inv-hide, .inv-document[open] .inv-see { display: none; }
.inv-document[open] > .inv-paper { margin-top: var(--s-8); }

/* Upcoming's time on the left (layout audit 2026-10-27, item 20; the approved mockup; rules 6, 21, P4): a column outside the card,
   the start in bold on the title's line, "to" and the end under it in muted. */
.ev-trow { display:grid; grid-template-columns:62px minmax(0,1fr); gap:var(--s-8); align-items:start; }
.ev-trow > .ev-acc { min-width:0; }
.ev-tm { display:grid; padding-top:var(--s-16); text-align:right; }
.ev-tm b { font:700 15px/24px var(--ui); white-space:nowrap; }
.ev-tm small { font:500 12px/1.3 var(--ui); color:var(--muted); white-space:nowrap; }

/* Who's working (layout audit 2026-10-27, item 24; the approved mockup; rules 8, 21): a third line on an Upcoming row and on a
   Month day card row, first names in ink after a muted person mark. */
.ev-main > .ev-who, .history-row .ev-who { display:block; min-width:0; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ev-main > .ev-who { font:500 14px/20px var(--ui); }
.ev-who .glyph { width:14px; height:14px; margin-right:var(--s-4); vertical-align:-2px; color:var(--muted); }
.ev-who .glyph svg { width:14px; height:14px; }

/* Approved Customers layout item 8, rules 9 and 21. */
.cust-sec { display: grid; gap: var(--s-8); margin-top: var(--s-16); align-content: start; }
.cust-sec .sec-h { margin: 0; padding: 0 var(--s-4); font: 600 .7rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Decision 0043, rules 5 (Customers exception), 6, 7b, 21: search, folded filter, one list. */
.cust-search.narrow { display:flex; align-items:center; gap:var(--s-8); min-height:44px; padding:0 var(--s-12); border:1.5px solid var(--field-line); border-radius:10px; background:var(--raised); }
.cust-search svg { width:18px; height:18px; flex:none; fill:none; stroke:var(--muted); stroke-width:2.1; stroke-linecap:round; }
.cust-search.narrow input { flex:1; min-width:0; height:41px; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; outline:none; }
.cust-search:focus-within { border-color:var(--brand); }
.cust-filters { position:relative; display:grid; gap:var(--s-8); margin-top:var(--s-4); }
.cust-fbar { display:flex; align-items:center; gap:var(--s-8); }
.cust-fbtn { display:inline-flex; align-items:center; gap:var(--s-8); height:44px; padding:0 var(--s-12); border-radius:999px; border:1.5px solid var(--raised-line); background:var(--raised); color:var(--ink); font:600 .9rem/1 var(--ui); }
.cust-fbtn svg, .cust-fclear svg { width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; }
.cust-fbtn .cust-down { width:14px; height:14px; color:var(--muted); transition:transform .2s ease; }
.cust-fbtn[aria-expanded="true"] { border-color:var(--brand); color:var(--brand-soft); }
.cust-fbtn[aria-expanded="true"] .cust-down { transform:rotate(180deg); }
.cust-fbtn.amber { background:var(--amber-bg); border-color:var(--amber-ink); color:var(--amber-ink); }
.cust-fbtn.green { background:var(--green-bg); border-color:var(--green); color:var(--green); }
.cust-fbtn.gray { border-color:var(--muted); }
.cust-fclear { width:44px; height:44px; border:0; border-radius:50%; background:none; color:var(--muted); display:grid; place-items:center; }
.cust-fclear svg { width:16px; height:16px; stroke-width:2.4; }
.cust-fpanel { display:grid; gap:var(--s-8); padding:var(--s-12); background:var(--card); border:1px solid var(--field-line); border-radius:12px; box-shadow:var(--shadow); }
.cust-fpanel h3 { margin:0; padding:0; font:600 .7rem/1 var(--ui); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.cust-opts { display:grid; gap:var(--s-4); margin-bottom:var(--s-4); }
.cust-opt { display:grid; grid-template-columns:84px minmax(0,1fr) 20px; align-items:center; gap:var(--s-8); min-height:44px; padding:var(--s-8); border:0; border-radius:10px; background:none; text-align:left; color:var(--ink); }
.cust-opt[aria-pressed="true"] { background:var(--brand-bg); }
.cust-opt .tag { justify-self:start; justify-content:center; min-width:72px; height:26px; font-size:.76rem; }
.cust-opt .tag.all { color:var(--ink); background:var(--raised); box-shadow:inset 0 0 0 1px var(--line); }
.cust-def { font-size:.86rem; color:var(--muted); line-height:1.3; }
.cust-opt[aria-pressed="true"] .cust-def { color:var(--ink); }
.cust-check { width:18px; height:18px; fill:none; stroke:var(--brand-soft); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; visibility:hidden; }
.cust-opt[aria-pressed="true"] .cust-check { visibility:visible; }
.cust-fpanel .seg { display:grid; grid-template-columns:1fr 1fr; width:100%; max-width:none; margin:0; }
/* The filtered empty state's Show all sits centered under its line, in the brand link color (mockup .empty .linkish; rule 21). */
.cust-page .empty .linkish { justify-self:center; min-height:44px; padding:0 var(--s-8); color:var(--brand-soft); font-weight:600; }
.cust-list { display:grid; gap:var(--s-8); margin-top:var(--s-8); }
.cust-list > .cust-sec { margin-top:var(--s-8); }
.person-row .urow-h { grid-template-areas:"name tag chev" "detail detail chev" "date date chev"; }
@media (min-width:900px) { .cust-fpanel { position:absolute; top:52px; left:0; width:380px; z-index:4; } }

/* Approved rig layout item 32, rules 7b, 13 and 21. Specs remain in the save form. */
.rig-next { width:100%; min-height:44px; display:flex; align-items:center; gap:var(--s-12); text-align:left; color:var(--ink); font:inherit; }
.rig-next > span { flex:1; min-width:0; display:grid; gap:var(--s-4); }
.rig-next { border:1px solid var(--line); border-radius:var(--s-12); background:var(--card); }
.rig-next b { font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
/* The mockup's small photo beside Name, with Add a photo as a link under it. */
.rig-name-row { display:flex; gap:var(--s-12); align-items:flex-end; }
.rig-name-row > .pf { flex:1; min-width:0; }
.rig-name-row .rig-photo { flex:none; width:calc(var(--s-24) * 3); height:calc(var(--s-24) * 3); min-height:0; max-width:none; border-style:dashed; }
.rig-name-row .rig-photo img { width:100%; height:100%; max-height:none; object-fit:cover; }
.rig-name-row .rig-photo .rig-ph { align-self:center; margin:0; }
.rig-photo-act { justify-self:start; min-height:44px; display:inline-flex; align-items:center; }
.rig-next small { color:var(--muted); }
.rig-details { border:1px solid var(--line); border-radius:var(--s-12); padding:0 var(--s-12); }
.rig-details > summary { min-height:44px; display:flex; align-items:center; gap:var(--s-8); cursor:pointer; font-weight:600; list-style:none; }
.rig-details > summary::-webkit-details-marker { display:none; }
.rig-details > summary .rchev { margin-left:auto; }
.rig-details[open] > summary .rchev { transform:rotate(180deg); }
.rig-specs { display:grid; gap:var(--s-12); padding:var(--s-8) 0 var(--s-12); }

/* Layout item 5: existing pencils and fields, including the event title. Rules 8, 21; P4, P9. */
.ep-title-row > .ep-pencil { position:static; flex:0 0 44px; }
[data-ep-form] { display:grid; gap:var(--s-8); }
.ep-field select { min-height:44px; width:100%; background:var(--raised); border:1px solid var(--line); border-radius:10px; padding:var(--s-8); color:var(--ink); font:inherit; }
.ep-customer-line > .ep-pencil { position:static; flex:0 0 44px; }
.ep-customer [data-ep-form] { margin-top:var(--s-8); }
.ep-footer .danger { color:var(--red); }

/* Layout item 25, equal tabs retain Reminders until the separate list merge. */
.seg.lists-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; justify-self: center; }
.seg.lists-tabs button { min-width: 0; min-height: 44px; padding: var(--s-4) 0; font-size: .78rem; line-height: 1.15; white-space: normal; overflow-wrap: normal; hyphens: none; }

/* Layout item 42, topic and question accordions share the house row. */
.help-content, .help-topics { display: grid; gap: var(--s-8); }
.help-topic { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.help-topic > .acc-body > .acc-in { padding: 0 var(--s-12); }
.help-topic.open > .acc-body > .acc-in { padding-block: var(--s-12); }
.help-person .hq-q { display: grid; gap: var(--s-4); justify-items: start; text-align: left; }
.help-person small { color: var(--muted); font-weight: 400; }

/* Layout item 44, the form keeps its one submit within thumb reach. */
.feedback-page { padding-bottom: calc(var(--s-40) + var(--s-40) + var(--s-4)); }   /* room for the pinned Send (44) and 40 more */
.lf-send-bar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); width: min(100%, 560px);
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding: var(--s-12); background: var(--chrome); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .lf-send-bar { width: min(100%, 760px); bottom: 0; padding-inline: var(--s-16); }
}
body.kb-open .lf-send-bar { bottom: max(0px, calc(100dvh - var(--ask-top, 0px) - var(--ask-h, 100dvh))); }

/* Layout item 45, keep each destructive action beside its consequence. */
.set.account-delete, .set-foot.account-delete { display: grid; grid-template-columns: 1fr; gap: var(--s-4); justify-items: start; }
.set.account-delete > .act { grid-column: 1; grid-row: auto; }
.set-foot.account-delete { margin: 0; padding: var(--s-12) var(--s-16); border-top: 1px solid var(--line); }
.account-delete small { color: var(--muted); font-size: .84rem; line-height: 1.35; }

/* Approved layout item 13, rules 8 and 21. */
.inc-sort { display:block; justify-self:end; max-width:100%; min-height:44px; margin:var(--s-8) 0 0 auto; padding:var(--s-8) var(--s-12); border:1px solid var(--line); border-radius:999px; background:var(--raised); color:var(--muted); }

/* Approved layout item 14, rules 8 and 21: date and time under the words. */
.lists-page .todo .li-main { align-items:flex-start; }
.li-task { flex:1; min-width:0; display:grid; gap:0; }
.todo .li-task .li-todo-text { width:100%; min-width:0; box-sizing:border-box; padding:var(--s-8) 0; resize:none; overflow:hidden; line-height:1.5; white-space:pre-wrap; }
.li-task .li-when { margin:calc(-1 * var(--s-4)) 0 var(--s-4); }   /* the textarea keeps its 44 touch height (the global rule); its day and time sit right under the words */
.todo .li-todo-links { width:100%; display:none; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:var(--s-8); }
.todo:focus-within .li-todo-links { display:grid; }

/* Approved invoice folds, layout audit item 33, rules 8, 13, 21. */
.inv-pay-summary { display:flex;align-items:center;justify-content:space-between;gap:var(--s-12); }
.inv-pay-summary > span { display:grid;gap:var(--s-4);min-width:0; }
.inv-pay-summary > span > span { color:var(--muted);overflow-wrap:anywhere; }
.inv-pay-summary button,.inv-fee-picker button,.inv-edit-group .add-fee { display:flex;align-items:center;gap:var(--s-8);min-height:44px; }
.inv-fee-picker { padding:var(--s-12);border:1px solid var(--line);border-radius:var(--s-12); }

/* A linked purchase keeps its source visible in Food costs, item 36. */
.ep-receipt-source { display:block;color:var(--muted);font-size:.8rem;font-weight:400; }
.ep-money-detail .rc-row { width:100%;text-align:left; }

/* Nearby receipt events, item 37, same controls in both themes. */
.rc-event-toggle,.rc-event-choice { display:flex;align-items:center;justify-content:space-between;gap:var(--s-12);min-height:44px;width:100%;text-align:left; }
.rc-event-toggle { border:1.5px solid var(--field-line);border-radius:9px;padding:var(--s-8) var(--s-12);background:var(--raised);color:var(--ink); }
.rc-event-choices { display:grid;gap:var(--s-8);border:1px solid var(--line);border-radius:var(--s-8);padding:var(--s-12); }
.rc-event-choice { padding:var(--s-8) 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--ink); }
.rc-event-choice > span { display:grid;gap:var(--s-4);min-width:0;overflow-wrap:anywhere; }
.rc-event-choice small,.rc-near { color:var(--muted); }
.rc-event-choices .linkish { min-height:44px;text-align:left;justify-content:flex-start; }
/* First run, approved clickable, rules 6, 7b, 21, P2, P10, P12. */
.ne-price{display:grid;gap:var(--s-12);padding:var(--s-12);border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.ne-price .pf,.ne-price p{margin:0}
.ne-price .linkish{text-align:left}
.ne-quote{padding:var(--s-12);background:var(--brand-bg);border-radius:12px}
.ne-more>summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.ne-more[open]{display:grid;gap:var(--s-12)}
.first-mailbox .signup-step:first-of-type{min-height:56px}
.first-connect{padding:var(--s-12);border:1px solid var(--line);border-radius:12px;margin-block:var(--s-24)}
.first-connect .first-connect-actions{display:flex;gap:var(--s-8)}
.first-connect .btn{flex:1}
.first-wait{width:100%;text-align:left;margin-block:var(--s-8)}
.first-wait small{display:block;color:var(--muted)}
.first-mailbox .signup-setup{margin-top:var(--s-24)}
/* A save confirmation takes its own space above chrome, away from editable content. */
.ne-form{padding-bottom:var(--s-24)}
.saved-confirm{position:static;margin:var(--s-8) var(--s-16);color:var(--muted);font-size:14px;min-height:24px}
.saved-confirm.gone{visibility:hidden}
.toast.sr-only{position:fixed;transform:none;left:0;bottom:0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;box-shadow:none}

.send-sum{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--s-12)}
.send-sum>div{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.send-sum .send-to{display:block}
.send-sum>b{min-width:0;max-width:100%;overflow-wrap:anywhere}
.quote-message summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:var(--s-12);cursor:pointer}
.quote-message summary small{display:block;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.quote-message[open]{display:grid;gap:var(--s-12)}
.quote-view-link{min-height:44px;display:flex;align-items:center;color:var(--brand)}

.send-sheet .send-more:has([data-quote-copy]){grid-template-columns:repeat(3,minmax(0,1fr))}
.send-sheet .send-more:has([data-quote-copy]) .btn{padding-inline:var(--s-8)}
.quote-message[open] summary small{display:none}


/* Contract v3, rules 6, 7, 9, 13, 14, 15, 21. Existing house colors in both themes. */
.contract-field { display:grid; gap:var(--s-8); margin-block:var(--s-12); }
.contract-field input,.contract-field select,.contract-field textarea { width:100%; min-height:44px; box-sizing:border-box; }
.contract-field textarea { min-height:120px; }
.contract-section { border-bottom:1px solid var(--line); padding-block:var(--s-12); }
.contract-section-head { display:flex; align-items:center; justify-content:space-between; gap:var(--s-12); min-height:44px; }
.contract-section-head b { flex:1; }
.contract-section-body { margin-top:var(--s-8); }
.contract-locked-body { display:none; }
.contract-locked-body.open { display:block; }
.contract-lock { min-width:44px; min-height:44px; }
.contract-wording { background:var(--raised); padding:var(--s-12); border-radius:var(--s-8); margin-block:var(--s-12); }
.contract-wording summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.contract-wording[open] summary .rchev { transform:rotate(180deg); }
.contract-words { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.contract-words[contenteditable] { min-height:120px; outline:2px solid var(--brand-soft); padding:var(--s-8); }
.contract-chip { color:var(--brand-soft); background:var(--bg); border-radius:4px; }
.contract-word-actions { display:flex; justify-content:space-between; margin-top:var(--s-12); }
.contract-word-actions button { min-height:44px; }
.contract-preview { max-width:680px; }
.contract-preview-nav { display:flex; gap:var(--s-12); justify-content:space-between; }
.contract-preview-nav a { min-height:44px; display:flex; align-items:center; }
.contract-paper { overflow-wrap:anywhere; }
.contract-paper h1 { font-size:24px; }
.contract-paper h2 { font-size:18px; margin-top:var(--s-24); }
.contract-paper p { line-height:1.6; }
.contract-paper dl>div { display:flex; gap:var(--s-12); justify-content:space-between; padding-block:var(--s-8); border-bottom:1px solid var(--line); }
.contract-paper dd { margin:0; flex-shrink:0; }

.contract-preview.docv-body { overflow:auto; width:100%; margin-inline:auto; padding:var(--s-24); box-sizing:border-box; }
/* The contract's Share and Download, or Download and Print (rules.js contractFileHtml): Send quote's row, as wide and tall as Send
   (rule 21, P4). The PDF behind Print waits in a frame nobody sees. */
.contract-file { display:grid; gap:var(--s-8); margin-top:var(--s-12); width:100%; }
.contract-file > .btn { width:100%; min-height:44px; }
/* Batch with first run: Send quote's row is now its buttons side by side (Share, Copy link, Print); the contract's two match it. */
.contract-file { grid-template-columns:repeat(2,minmax(0,1fr)); }
.contract-file > .btn { padding-inline:var(--s-8); }
.contract-preview [data-event-contract-send] { width:100%; min-height:44px; margin-top:var(--s-24); }   /* Send quote's full-width Send over the row */
.contract-print { position:fixed; right:0; bottom:0; width:1px; height:1px; border:0; opacity:0; pointer-events:none; }
/* Review round 1: the top choice stacked like the mockup's three radios; two-way choices are equal-halved switches (rule 9). */
.contract-modes { display:grid; gap:var(--s-8); margin-bottom:var(--s-12); }
.contract-modes .v-opt { min-height:44px; text-align:left; }
.contract-modes .v-opt[aria-checked="true"] { background:var(--brand-bg); border-color:var(--brand-soft); color:var(--brand-soft); }
.contract-field > .seg.contract-seg:not(.mini) { width:100%; box-sizing:border-box; }   /* one width for every switch on the card */
.contract-lock svg { width:18px; height:18px; stroke:var(--muted); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.contract-section-title { flex:1; min-width:0; }
.contract-section-title b, .contract-section-title small { display:block; }
.contract-section-title small { color:var(--muted); margin-top:var(--s-8); }
/* Itemized quotes, approved calculator words and the event form's spacing (rules 8, 21, P4). */
.ne-items,.ne-item{display:grid;gap:var(--s-12);min-width:0}.ne-items{margin-block:var(--s-12)}.ne-item{padding-block:var(--s-12);border-top:1px solid var(--line)}.ne-item input{min-width:0;width:100%;min-height:44px}.ne-item .linkish{justify-self:start;min-height:44px}.ne-items>.linkish{min-height:44px}

/* Approved calculator receipt, shared by New event and event quote (rules 7, 8, 21, P4). */
.ne-receipt{display:block;max-width:620px;background:var(--card);font-variant-numeric:tabular-nums}
.ne-receipt-head,.ne-item,.ne-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:var(--s-8);align-items:start}
.ne-receipt-head{padding:var(--s-8) 0;border-bottom:1px solid var(--line);font-size:12px;text-transform:uppercase;color:var(--muted)}
.ne-receipt-head span:last-child{text-align:right}
.ne-receipt .ne-item,.ne-receipt-row{padding:var(--s-12) 0;border-bottom:1px solid var(--line)}
.ne-item-inputs{display:grid;gap:var(--s-8);min-width:0}.ne-item-inputs>input{width:100%}
.ne-item-math{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-8)}.ne-item-math input{width:64px;min-width:48px;text-align:right;font-size:16px}
.ne-receipt .ne-item-total,.ne-receipt-row b{white-space:nowrap;text-align:right;padding-top:var(--s-12)}
.ne-receipt .ne-item-remove{height:44px;width:44px;margin-right:calc(-1 * var(--s-16));padding:0;border:0;background:none;color:var(--muted);font-size:22px}
.ne-receipt-row>span:first-child{padding-top:var(--s-12)}.ne-receipt-row small{display:block;color:var(--muted);font-weight:400}
.ne-receipt-total{border-top:2px solid var(--ink);font-weight:700}
.ne-receipt .ne-quote-notes{margin-top:var(--s-12)}.ne-receipt textarea{width:100%;font-size:16px}
.ep-quote-fields{display:grid;gap:var(--s-12)}.ne-receipt>.linkish{min-height:44px}

/* Setup home v7. Rules 7b, 21, P2, P4, P10: house tokens, 44px targets in both themes. */
.signup-connect{padding:var(--s-12);border-top:1px solid var(--line)}
.signup-connect b{font-size:1rem}.signup-connect p{color:var(--muted);margin:var(--s-8) 0 var(--s-12)}
.signup-connect .btn{width:100%;min-height:44px}
.signup-waitlist,.signup-next{padding:var(--s-12);margin:0;color:var(--muted)}
.mailbox-booking-link{display:flex;width:100%;justify-content:center;min-height:44px;margin:0 0 var(--s-12);border-color:var(--brand);color:var(--brand-soft)}
.booking-link-sheet p{color:var(--muted);margin-block:var(--s-12)}
.booking-link-actions{display:flex;gap:var(--s-8);margin-top:var(--s-12)}
.booking-link-actions .btn{flex:1;min-width:0;min-height:44px}
.booking-link-preview{display:flex;justify-content:center;align-items:center;min-height:44px;margin-top:var(--s-12)}
.signup-learning>b{display:block;font-size:1rem;line-height:1.5}
.signup-learning>small{display:block;font-size:inherit;margin:var(--s-12) 0 var(--s-8)}
.signup-progress-row{display:flex;align-items:center;gap:var(--s-8);margin-top:var(--s-12)}
.signup-progress{flex:1;height:8px;background:var(--line);border-radius:var(--s-8);overflow:hidden}
.signup-progress>span{display:block;height:100%;background:var(--brand);border-radius:inherit}
.signup-progress.indeterminate>span{width:35%;animation:signup-progress 1.8s ease-in-out infinite alternate;animation-delay:var(--read-loop-at,0ms)}
.signup-progress-row small{color:var(--muted);font-variant-numeric:tabular-nums}
.signup-tour-choices{display:grid;gap:var(--s-8)}
.signup-tour-offer{margin:0 0 var(--s-12)}   /* decision 0035: the first screen's one-time tour offer */
@keyframes signup-progress{to{transform:translateX(185%)}}
/* The read is still going: a soft band of light crosses the whole track, so a 1% bar moves as plainly as a 90% one. White over the
   fill and the empty track alike, never the fill's color: only the fill and the number say how far it is. Transform only. Drawn only
   while the read runs; --read-loop-at (readBarHtml) keeps its place when a poll draws the bar again. */
.read-live{position:relative;isolation:isolate;--read-band:rgba(255,255,255,.28)}
:root[data-theme="light"] .read-live{--read-band:rgba(255,255,255,.55)}
.read-live:not(.indeterminate)::after{content:"";position:absolute;inset:0 auto 0 0;width:40%;background:linear-gradient(90deg,transparent,var(--read-band),transparent);transform:translateX(-100%);animation:read-sweep 3.6s ease-in-out infinite;animation-delay:var(--read-loop-at,0ms);pointer-events:none}
@keyframes read-sweep{0%{transform:translateX(-100%)}67%,100%{transform:translateX(250%)}}
@media(prefers-reduced-motion:reduce){.signup-progress.indeterminate>span,.read-live:not(.indeterminate)::after{animation:none}}

.first-mailbox .empty [data-connect-email]{justify-self:center;color:var(--brand-soft);font-size:1rem}
.booking-link-preview{width:100%}
/* Quotes v3: house spacing, equal phone button pairs, document actions below the paper. Rules 7b, 9, 21. */
.quote-pair {display:flex;gap:var(--s-8);width:100%}
.quote-pair > .btn {flex:1;min-height:44px;white-space:normal;justify-content:center;text-align:center}
.quote-owner .inv-mark-primary {display:flex;justify-content:center}
.quote-conversation {display:flex;align-items:center;justify-content:center;gap:var(--s-4);width:100%;min-height:44px;margin-top:var(--s-24);border-radius:999px}
.quote-conversation svg {flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.doc-strip {display:flex;align-items:center;gap:var(--s-8);padding:var(--s-12) 0;color:var(--muted)}
.quote-page .sheet-head-title {font-size:1.1rem;margin:0}
.quote-settings {display:flex;gap:var(--s-8);flex-wrap:wrap}
.quote-settings .btn {flex:1;min-height:44px}
.inv-page-row .urow-h {cursor:pointer}
/* Mailbox Waiting's document line and Nudge (Quotes v3 mockup screen 5): their own lines under the preview. Where each part
   sits is decision 0042's flat-row template alone (below, "Decision 0042 and its amendment"); no rule here names a grid area.
   The pre-0042 card templates that lived here ("name time chev" / "detail tag chev" / "date act chev", and the no-reply and
   red-tag ones) matched the flat row through :has() and outranked it, so a held request with its Done button put the name in
   the 44px initials column and the subject over the initials (walk 2026-11-06 note 109). */
.card.mbx .mb-preview > .urow-date { min-width:0; align-self:center; color:var(--muted); font:400 15px/21px var(--ui); white-space:normal; }
.card.mbx .mb-preview > .urow-act { justify-self:end; align-self:center; margin:var(--s-8) 0 0; }
/* The Nudge widens the time's column on the folded row only: the time keeps to the right edge, so it never moves when the row
   opens (build 17 item 8). */
.card.mbx .mb-preview > .mb-time { justify-self:end; }
/* A contract opened in Documents: Open sits centred under the row, its links on one line where they fit (mockup screen 4). */
[data-doc-key] .doc-pic > .doc-open { justify-self:center; padding:0 var(--s-24); }
[data-doc-key] .inv-rare { gap:0; }
[data-doc-key] .inv-rare .linkish { padding:0 var(--s-8); }
[data-doc-key] .quote-conversation { margin-top:var(--s-12); }
/* The event page's quote line (mockup screen 6): "Quote · $860" with its tag upper right, the line under it, the chevron beside both. */
.ep-money-link[data-document-quote] { display:grid; grid-template-columns:minmax(0,1fr) auto 28px; grid-template-areas:"head tag chev" "sub sub chev"; column-gap:var(--s-8); align-items:center; }
.ep-money-link[data-document-quote] > :first-child { grid-area:head; font:600 1.08rem/1.35 var(--ui); }
.ep-money-link[data-document-quote] > .ep-money-subline { grid-area:sub; }
.ep-money-link[data-document-quote] > .tag { grid-area:tag; justify-self:end; }
.ep-money-link[data-document-quote] > .rchev { grid-area:chev; justify-self:end; }
/* Crewmenu: existing document controls, house spacing and 44px targets (rules 9, 21). */
.doc-share-choices { display: grid; gap: var(--s-8); margin-top: var(--s-24); }
.doc-share-choices .btn { min-height: 44px; width: 100%; }
.doc-menu-form textarea[name="menu_text"] { min-height: 240px; resize: vertical; }
/* Crew's Schedule / People switch sits in the same place, full width, on both parts (it jumped narrower on People). */
.team-page > .seg-stack:has(> .seg.crew-parts), .team-page .seg.crew-parts { width: 100%; max-width: none; }

/* Approved app-tour mockup, rules 7b, 15 to 17, 21. Shared guide card, ring, scrim and round Back. */
.app-tour-active #view { padding-bottom:calc(var(--app-tour-reserve, 320px) + var(--tabs-h) + var(--s-24)); }
.app-tour-active #evs { padding-bottom:var(--app-tour-reserve, 320px); }
/* Computers: the page scrolls inside .events, so the room goes there; padding #view would shrink that box and clip its rows. */
@media (min-width: 900px) { .app-tour-active #view { padding-bottom:0; } .app-tour-active #view .events { padding-bottom:calc(var(--app-tour-reserve, 320px) + var(--s-24)); } }
#app-tour-example { z-index:80; padding:var(--s-16) var(--s-16) var(--app-tour-reserve, 320px); overflow-y:auto; }
#app-tour-example .events { max-width:560px; margin:auto; }
#app-tour-example .ev-head { display:grid; gap:var(--s-8); }
#app-tour-example .ex-tag, .ev-list .ex-tag { background:var(--amber-bg); color:var(--amber-ink); padding:var(--s-4) var(--s-8); border-radius:8px; font-weight:700; }
#app-tour-example .ex-line { color:var(--muted); font-size:.85rem; margin:0; }
#app-tour .app-tour-card { padding:var(--s-8) var(--s-24) var(--s-16); overflow-y:auto; }
#app-tour .app-tour-card h2 { margin:0 0 var(--s-8); font:800 1.18rem/1.25 var(--ui); }
#app-tour .app-tour-card > h2:first-child { margin-top:var(--s-12); }   /* the end card has no count line above its title (mockup: 10px) */
#app-tour .app-tour-card p { font-size:1rem; line-height:1.4; margin:0 0 var(--s-12); }
#app-tour .app-tour-card .app-tour-line { font-size:.9rem; color:var(--muted); }
#app-tour .app-tour-card .app-tour-tip { padding:var(--s-8) var(--s-12); border-radius:10px; background:var(--amber-bg); color:var(--ink); font-size:.9375rem; text-align:center; }   /* centered like the rest of the card (signup walk 2026-11-04, note 13) */
#app-tour .app-tour-tip b { color:var(--amber-ink); }
#ask.app-tour-ask { animation:none; }   /* the tour's Ask stop shows its sample in place (signup walk 2026-11-04, note 16) */
#app-tour .app-tour-card header { min-height:36px; margin-bottom:var(--s-8); }
#app-tour .app-tour-card small { font-size:.9375rem; font-weight:600; }
/* The mockup's foot: Next centered at 168 wide, round Back on the left at Next's height (the pair stays level). */
.app-tour-foot { position:relative; display:flex; align-items:center; justify-content:center; min-height:48px; margin-top:var(--s-12); }
.app-tour-foot > .btn { min-width:min(168px, calc(100% - 120px)); height:48px; min-height:48px; padding:var(--s-8) var(--s-16); font-size:1rem; }
.app-tour-foot > .walk-back { position:absolute; left:-6px; top:50%; transform:translateY(-50%); width:48px; height:48px; }
.app-tour-foot + .btn { width:100%; margin-top:var(--s-8); }
/* The end card's Try the demo truck is a link to the public demo (walk list 11/17, note 21): a button's look, its note under it. */
#app-tour a.btn { display:flex; align-items:center; justify-content:center; box-sizing:border-box; text-decoration:none; }
#app-tour .app-tour-card .app-tour-demo-note { margin:var(--s-8) 0 0; }
.app-tour-pair { display:grid; grid-template-columns:1fr 1fr; gap:var(--s-8); align-items:stretch; }
.app-tour-pair .btn { min-height:44px; line-height:1.3; padding:var(--s-12) var(--s-8); }
.app-tour-ring { animation:none; }
@keyframes app-tour-pulse { 0%,100% { box-shadow:0 0 0 0 color-mix(in srgb,var(--brand-soft) 24%,transparent); } 50% { box-shadow:0 0 0 8px transparent; } }
.app-tour-dot { position:fixed; z-index:100002; width:16px; height:16px; margin:calc(var(--s-8) * -1) 0 0 calc(var(--s-8) * -1); border-radius:50%; background:#c083ff; box-shadow:0 0 0 2.5px #fff; pointer-events:none; }
.app-tour-dot::after { content:""; position:absolute; inset:0; border-radius:50%; background:#c083ff; animation:app-tour-dot 1.5s ease-out infinite; }
@keyframes app-tour-dot { 0% { transform:scale(1); opacity:.75; } 100% { transform:scale(3.2); opacity:0; } }
@media(prefers-reduced-motion:reduce) { .app-tour-ring { animation:none; } .app-tour-dot::after { animation:none; opacity:0; } #app-tour .walk-card { transition:none; } }
.signup-tour-choice { display:flex; align-items:center; gap:var(--s-12); min-height:48px; padding:var(--s-8) var(--s-12); border:1.5px solid var(--raised-line); border-radius:10px; background:var(--card); color:var(--ink); text-align:left; font:700 .95rem/1.3 var(--ui); cursor:pointer; }
.signup-tour-choice .m-tile { flex:none; }

/* Launch gate round 5, setup-home v7 and Quotes v3, rules 4, 6, 7b, 8, 21, P4, P9, P10. */
.signup-setup, .first-mailbox .signup-setup { margin-top:var(--s-12); }
.mb-rows > .signup-setup { margin:0; }
.mb-rows > .signup-setup:not(:first-child) { margin-top:calc(-1 * var(--s-12)); }
.signup-setup-count { color:var(--muted); font-weight:400; }
.signup-connect { display:flex; align-items:center; gap:var(--s-12); }
.signup-connect > div { flex:1; min-width:0; }
.signup-connect p { margin-bottom:0; }
.signup-connect > .btn { flex:none; width:auto; margin:0; }
.mailbox-ready .m-label { margin:0 0 var(--s-8); }
.mailbox-ready .m-card { margin:0; }
.mailbox-ready .m-sub { display:block; color:var(--muted); font-weight:400; }
.mail-form .wiz-provider-dot { width:18px; height:18px; border:1.5px solid var(--muted); border-radius:50%; margin-left:auto; flex:none; }
.mail-form [aria-checked="true"] .wiz-provider-dot { border:5px solid var(--brand); }
.mail-form .pf > span { text-transform:none; letter-spacing:normal; }
/* Settings' connect form borrows sign-up's pieces, not its screen (launch gate round 2, item A; setup-home v7 .mail-form): it sits
   in the Connections card at its own height, left aligned, the boxes full width, the step's word and Cancel side by side in one
   row at the same height. Sign-up's .wiz keeps its own look. Rules 21, P2, P4. */
.mail-form.wiz { min-height:0; max-width:none; width:auto; margin:0; padding:var(--s-16); align-items:stretch; text-align:left; gap:var(--s-12); }
.mail-form.wiz .wiz-next, .mail-form.wiz > .wiz-end { margin-top:0; }
.mail-form.wiz > .pf, .mail-form.wiz > .wiz-f { justify-items:stretch; text-align:left; }
.mail-form.wiz .pf > span { font:700 .92rem/1.2 var(--ui); color:var(--ink); }
.mail-form.wiz > .wiz-hint { margin-top:calc(-1 * var(--s-4)); }
.mail-form.wiz > .wiz-group + .wiz-f { margin-top:0; }
.mail-form.wiz .tf-actions { display:flex; flex-wrap:nowrap; align-items:stretch; gap:var(--s-8); }
.mail-form.wiz .tf-actions .btn { width:auto; display:inline-flex; flex:none; min-height:44px !important; padding:0 var(--s-20); margin:0; }
.mpill.gray { color:var(--muted); background:var(--raised); border-color:var(--line); }
.mpill.gray[aria-pressed="true"] { background:var(--muted); color:var(--card); border-color:var(--muted); }
.booking-link-backdrop { position:fixed; inset:0; z-index:44; background:rgb(10 8 16 / .5); }
#share.booking-link-modal { z-index:45 !important; }
#share.booking-link-modal > .cal-sheet { min-height:0; }
/* Launch gate round 2, item E: on a computer the sheet is a centered card, so no grabber (nothing to pull down); and the empty
   Mailbox's line sits the list's gap (12 to 24) over Ready now, one list, not two (rule 21, the --s scale). */
@media (min-width:900px) { #share.booking-link-modal.sheet.bottom::before { content:none; } }
.mb-rows > .empty.empty-one + .mailbox-ready { margin-top:calc(var(--s-16) - var(--s-40)); }   /* back over its 40 bottom pad: the list's 16 alone (0042 took the rows' gap to 0) */
/* The empty Mailbox's Connect your email. clears the Ask circle at first view on a 740-tall phone: the mockup's 12px under the
   setup card and its -12px over the link (setup-home v7 .empty-link), and a shorter top pad. Rules 6, 8, P4. */
.first-mailbox .mb-rows > .signup-setup + .empty.empty-one { margin-top:calc(-1 * var(--s-12)); padding-top:var(--s-24); }
.first-mailbox .empty [data-connect-email]:not(:only-child) { margin-top:calc(-1 * var(--s-12)); }
@media (max-width:899px) {
  #view:has([data-connect-email]) { padding-bottom:calc(var(--tabs-h) + var(--s-40) + var(--s-24) + env(safe-area-inset-bottom)); }
  #share.booking-link-modal { inset:auto 0 0; top:auto; max-height:88dvh; border-radius:var(--s-16) var(--s-16) 0 0; border-top:1px solid var(--line); }
  .booking-link-modal .sheet-head { position:static; }
}

/* Approved HQ wrong-door pointer, rules 13 and 21. */
.signin-door{display:grid;gap:var(--s-8)}.signin-door p{margin:0;font-weight:600}.signin-door .btn{width:100%;min-height:44px;font-weight:800}

/* Round B Mailbox, approved mockup. Rules 7b, 8, 15 to 17, 21; P2, P9, P12. */
.nm-composer{width:100%;max-width:680px;margin:0 auto;padding-bottom:var(--s-24)}
.nm-composer>.back{margin-bottom:var(--s-8)}
.nm-composer .page-head{margin-bottom:var(--s-12);padding-inline:0}
.nm-helper .wide,.nm-connect .wide{width:100%}
.nm-from{color:var(--muted);font-size:.85rem;margin:0 0 var(--s-16)}
.nm-field{display:block;margin:0 0 var(--s-16)}
.nm-field>span{display:block;font:600 .72rem/1 var(--ui);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:var(--s-8)}
.nm-field input,.nm-field textarea{width:100%;min-height:48px;padding:var(--s-12);border:1.5px solid var(--field-line);border-radius:10px;background:var(--card);color:var(--ink);font:400 16px/1.5 var(--ui);box-sizing:border-box}
.nm-field textarea{resize:vertical}.nm-field input:focus,.nm-field textarea:focus{outline:2px solid var(--brand);outline-offset:2px}
.nm-helper,.nm-connect,.nm-leave{padding:var(--s-12);border:1.5px dashed var(--raised-line);border-radius:12px;background:var(--raised);margin-bottom:var(--s-16)}
.nm-connect{border-style:solid}.nm-connect p{margin:var(--s-8) 0 var(--s-12)}
.nm-helper>b{display:block;margin-bottom:var(--s-8)}.nm-helper .nm-field{margin-bottom:var(--s-8)}
.nm-suggestions{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:calc(-1 * var(--s-8)) 0 var(--s-16)}
.nm-suggestions button{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:52px;padding:var(--s-12);border:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--ink);text-align:left;font:inherit}
.nm-suggestions small,.nm-recipient small{display:block;color:var(--muted);font-size:.82rem}
.nm-recipient{display:flex;align-items:center;justify-content:space-between;gap:var(--s-8);border:1.5px solid var(--field-line);border-radius:10px;padding:var(--s-8) var(--s-8) var(--s-8) var(--s-12)}
.nm-x{width:44px;height:44px;background:none;color:var(--muted);border:0;font-size:22px}
.nm-foot{position:static;padding-top:var(--s-16);text-align:center}
.nm-foot [data-nm-send]{width:100%}
.nm-subject-note,.nm-email-note{font-size:.9rem;color:var(--muted);margin:var(--s-4) 0}
.nm-undo{display:flex;align-items:center;justify-content:space-between;color:var(--muted)}
.nm-pair,.nm-attach{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-8);margin-top:var(--s-8)}
.nm-attach .wide{grid-column:1/-1}.nm-composer .files{display:flex;gap:var(--s-8);flex-wrap:wrap}
.reply-tune{margin-top:var(--s-4);border-top:1px solid var(--line)}
.reply-tune>button{display:flex;align-items:center;justify-content:center;gap:var(--s-8);width:100%;min-height:44px;border:0;background:none;color:var(--muted);font:600 .88rem/1 var(--ui)}
.reply-tune-count{color:var(--brand-soft);font-weight:800}
.reply-tune-panel{display:grid;gap:var(--s-12);padding:var(--s-4) 0 var(--s-8)}
.reply-tune-panel .clean-row,.reply-tune-panel .learn{display:flex;align-items:center;justify-content:space-between;gap:var(--s-8);margin:0;border:1px solid var(--line);border-radius:8px;padding:var(--s-12);font-size:.93rem}
.reply-tune-panel .learn button,.reply-tune-panel .clean-row button{flex:none}

.nm-suggestions [data-nm-add]{flex-direction:row;align-items:center;gap:var(--s-8);color:var(--brand-soft);font-weight:700}
.nm-suggestions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;flex:none}

.nm-helper>b{display:flex;align-items:center;gap:var(--s-8)}
.nm-helper>b>svg,.reply-tune-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nm-helper>b>svg{color:var(--brand-soft)}

/* Round B notes 18/28/30b. Rules 7b, 9, 21, P2, P4, P9, P12. */
.phone-cal-card { margin-bottom:var(--s-24); }
.phone-cal-card h2 { margin:0 0 var(--s-8); font-size:1rem; }
.phone-cal-card p { color:var(--muted); margin:0 0 var(--s-12); line-height:1.5; }
.pc-actions { display:flex; gap:var(--s-12); align-items:center; }
.phone-cal-foot { text-align:center; margin:var(--s-24) 0; }
.phone-cal-foot .linkish { color:var(--muted); }
.pc-steps { display:grid; gap:var(--s-16); padding-left:var(--s-24); }
.pc-steps .btn { margin-top:var(--s-8); }
.calendar-import .wiz-card { margin:var(--s-16) 0; }
.calendar-import [data-import-undo] { float:right; }
.import-help summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.import-help summary .rchev { margin-left:auto; }
.import-help[open] summary .rchev { transform:rotate(180deg); }
.import-help li { margin:var(--s-8) 0; line-height:1.5; }
/* Chris 11-18, rule 21: one spacing scale inside the import card, including empty status and paragraphs. */
.calendar-import form > p { margin:0; }
.calendar-import [data-import-status]:empty { display:none; }
.calendar-import .import-help ul { margin:var(--s-8) 0 0; padding-left:var(--s-24); }
.history-row > :first-child { min-width:0; flex:1; }
.history-row .ce-in, .history-row .ce-up { flex:none; text-align:right; }
@media (min-width:900px) {
  #menu { bottom:auto; width:360px; max-width:calc(100vw - 24px); max-height:calc(100dvh - var(--head-h) - 24px); padding:var(--s-12); border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:0 12px 32px rgb(0 0 0 / .15); z-index:54; transition:none; transform:none; }
  #menu .menu-page { padding:0; }
  #menu .page-head { display:none; }
  #menu .m-card { border:0; border-radius:0; }
  #menu .m-card .m-row { min-height:44px; padding:var(--s-8); }
  #menu .m-card .m-row::before { display:none; }
  #menu .m-card + .m-card { margin-top:var(--s-8); border-top:1px solid var(--line); padding-top:var(--s-8); }
}

#nav [data-nav="more"] > .rchev { display:none; }
@media (min-width:900px) {
  #nav [data-nav="more"] > .rchev { display:inline-flex; margin:0; width:16px; }
  #nav [data-nav="more"][aria-expanded="true"] > .rchev { transform:rotate(180deg); }
}

/* Decision 0042 and its amendment, rules 1, 5, 8, 9 and 21: Mailbox tabs and flat mail rows. */
.mailbox-head { display:flex; align-items:center; gap:var(--s-8); margin-bottom:0; }   /* the view's 12 to the search (Chris 11-18) */
.mailbox-head h1 { flex:none; margin:0; font-size:clamp(22px,6vw,30px); font-weight:800; }
.mailbox-head .head-acts { margin-left:auto; }
.mailbox-search { margin:0 0 var(--s-12); }
.mailbox-search input { width:100%; min-height:44px; background:var(--raised); border-radius:10px; padding:var(--s-12); font-size:16px; }
.inbox-bar .mailbox-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:var(--s-4); border:1px solid var(--soft-line); border-radius:999px; background:var(--card); }
.inbox-bar .mailbox-tabs .mpill { width:100%; min-width:0; min-height:44px; padding:0 var(--s-4); gap:var(--s-4); border-color:transparent; background:var(--raised); color:var(--muted); font-size:.88rem; white-space:normal; }
.inbox-bar .mailbox-tabs .mpill[aria-pressed="true"] { border-color:var(--action-edge); background:var(--action); color:var(--on-action); }
.mb-rows { gap:0; }
.mb-rows > :not(.mbx) { margin-top:var(--s-16); }
.card.mbx:not(.home-card) { border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.card.mbx:not(.home-card)::before, .card.mbx:not(.home-card)::after { display:none; }
.card.mbx:not(.home-card) > .mb-preview { display:grid; grid-template-columns:44px minmax(0,1fr) auto; grid-template-areas:"avatar name time" "avatar subject tag" "avatar detail detail" "avatar date date" "avatar action action"; column-gap:var(--s-12); row-gap:var(--s-4); padding:var(--s-12) var(--s-4); min-height:72px; }
.card.mbx .mb-avatar { grid-area:avatar; align-self:start; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--brand-bg); color:var(--brand-soft); font:800 .9rem/1 var(--ui); }
.card.mbx .urow-name { grid-area:name; display:flex; gap:var(--s-4); align-items:center; font-weight:800; white-space:nowrap; min-width:0; }
.card.mbx .urow-n { overflow:hidden; text-overflow:ellipsis; }
.card.mbx .mb-subject { grid-area:subject; font:700 .94rem/1.35 var(--ui); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card.mbx .urow-detail { grid-area:detail; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:.88rem; color:var(--muted); }
.card.mbx .mb-time { grid-area:time; font-size:.75rem; }
.card.mbx .mb-preview > .tag { grid-area:tag; align-self:center; justify-self:end; margin:0; height:24px; font-size:13px; font-weight:600; box-shadow:none; }
.card.mbx .mb-preview > .tag.brand { color:var(--brand-soft); background:var(--brand-bg); }
.card.mbx .mb-preview > .tag.amber { color:var(--amber-ink); background:var(--amber-bg); }
.card.mbx .mb-preview > .tag.gray { color:var(--muted); background:var(--raised); box-shadow:none; border:0; }
.card.mbx .mb-preview > .rchev { display:none; }
.card.mbx .urow-date { grid-area:date; }
.card.mbx .urow-act { grid-area:action; }
.card.mbx.selected { background:var(--brand-bg); border-radius:var(--s-8); }
.card.mbx.selected .mb-preview > .tag { background:var(--card); }   /* the tag stays a filled pill on the selected row's tint */
.card.mbx.open > .mb-preview { border-bottom:1px solid var(--line); }
.card.mbx.open .mb-body { border-top:0; padding:var(--s-12) 0 var(--s-24); }
.card.mbx .draft { position:relative; padding:var(--s-12); border:1px solid var(--brand-soft); border-radius:var(--s-16); background:var(--brand-bg); }
.card.mbx .draft .label.corner { display:block; position:static; margin-bottom:var(--s-12); color:var(--brand-soft); font:800 1rem/1.2 var(--ui); text-transform:none; letter-spacing:0; }
/* The tour's typing card keeps its fitted layout (Chris, final tour round 10/18; P9): the label rides the corner, so Karen's
   whole email and the whole draft still fit between the top bar and the guide on a short phone. The opened reply's own static
   label (reply round 2) does not take it back. */
.card.mbx.walk-typing .draft .label.corner,.card.mbx.reply-screen.walk-typing .draft .label.corner { position:absolute; top:var(--s-12); right:var(--s-12); margin:0; }
.card.mbx .draft textarea.edit { display:block; width:100%; box-sizing:border-box; min-height:180px; padding:var(--s-12) var(--s-12) 56px; background:var(--card); color:var(--ink); border:1px solid var(--field-line); border-radius:10px; font:500 16px/1.5 var(--ui); resize:vertical; }
.draft-attach { display:grid; place-items:center; position:absolute; bottom:var(--s-16); right:var(--s-16); width:44px; height:44px; border:0; border-radius:var(--s-8); background:var(--card); color:var(--muted); }
.draft-attach .ico { width:24px; height:24px; }
.card.mbx .draft:has(.files) .draft-attach { position:static; margin-left:auto; }
.card.mbx .reply-tune { border:0; }
.card.mbx .reply-tune > button { justify-content:flex-start; }
.card.mbx .reply-tune > button > .rchev { margin-left:auto; }
.card.mbx .actions.mb-acts:has(.send-split) { grid-template-columns:1fr; }
.card.mbx .actions.mb-acts > .send-split { grid-column:1 / -1; display:flex; width:100%; }
.card.mbx .send-split .send-main { flex:1; min-height:50px; }
.card.mbx .send-split .send-more { flex:1; min-height:50px; padding:0 var(--s-8); font:700 .9rem/1.2 var(--ui); }
.card.mbx .actions.mb-acts > .btn.book { width:100%; border-color:var(--brand-soft); color:var(--brand-soft); }
.card.mbx .mb-handled .btn { border:0; background:none; color:var(--muted); }
@media (max-width:360px) { .mailbox-head { gap:var(--s-4); } }

.mb-rows > .signup-setup:not(:first-child) { margin-top:var(--s-24); }

/* Opened reply, Chris's approved round 2. Rules 8, 15, 17, 19, 21, P2, P4, P12. */
.reply-screen { min-width:0; }
/* As the approved mockup lays it out: ⋯ and the fold sit on the name's line only, and the subject and the event line take the
   full width under them, so the head pinned on a phone stays compact (P4, P9, rule 21). */
.reply-head { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; grid-template-areas:'avatar name more fold' 'avatar subject subject subject' 'avatar event event event'; align-items:start; padding:var(--s-12) var(--s-4); border-bottom:1px solid var(--line); }
.reply-head>.mb-avatar { margin-right:var(--s-12); }
.reply-heading { display:contents; }
.reply-heading>:first-child { grid-area:name; min-width:0; }
.reply-heading>.reply-subject { grid-area:subject; min-width:0; }
.reply-heading>.reply-event { grid-area:event; min-width:0; justify-self:start; }
.reply-more { grid-area:more; }
.reply-fold { grid-area:fold; }
.reply-name,.reply-event { border:0; background:none; text-align:left; padding:var(--s-4) 0; min-height:44px; color:var(--brand-soft); overflow-wrap:anywhere; }
/* The name opens where the folded row's name was: same size, same line, top-aligned in its 44 tall tap (P4, P9, rule 21). */
.reply-name { font:800 17px/24px var(--ui); display:flex; align-items:flex-start; padding-top:0; }
.reply-subject { font:700 .95rem/1.4 var(--ui); overflow-wrap:anywhere; }
.reply-event { font:600 .88rem/1.4 var(--ui); }
.reply-more,.reply-fold { flex:none; min-width:44px; min-height:44px; border:0; background:none; color:var(--muted); display:grid; place-items:center; padding:0; }
.reply-more { font-size:24px; }
.reply-fold .rchev { margin:0; }
.reply-more-menu { position:absolute; z-index:20; top:56px; right:0; width:min(300px,100%); border:1px solid var(--raised-line); border-radius:var(--s-12); background:var(--card); box-shadow:var(--shadow); padding:var(--s-8); }
.reply-more-menu .later-pick { margin:0; padding:0; border:0; background:none; }
.reply-menu-actions { display:grid; gap:var(--s-4); }
.reply-menu-item { width:100%; min-height:48px; display:grid; gap:var(--s-4); text-align:left; border:0; border-radius:var(--s-8); background:none; padding:var(--s-8) var(--s-12); font:600 .95rem/1.3 var(--ui); }
.reply-menu-item small { font:400 .82rem/1.3 var(--ui); color:var(--muted); }
.reply-menu-item:hover { background:var(--brand-bg); }
.reply-layout,.reply-layout>.mb-body { min-width:0; }
.reply-layout>.mb-body { display:block; }
.reply-screen .draft { margin:var(--s-12) var(--s-4); display:grid; grid-template-columns:minmax(0,1fr); gap:var(--s-8); }
.reply-screen .draft-label { display:flex; align-items:center; justify-content:space-between; gap:var(--s-8); min-height:24px; }
.card.mbx.reply-screen .draft .label.corner { position:static; margin:0; font-size:1rem; }
.draft-saved { color:var(--muted); font:600 .78rem/1.2 var(--ui); white-space:nowrap; }
.draft-working { font-size:.82rem; color:var(--muted); }
.draft-editor { position:relative; background:var(--card); border-radius:10px; min-width:0; }
.card.mbx.reply-screen .draft textarea.edit { position:relative; z-index:1; margin:0; padding:var(--s-12); min-height:200px; max-height:420px; overflow-y:auto; background:transparent; font:500 16px/1.5 var(--ui); white-space:pre-wrap; overflow-wrap:break-word; }
.reply-screen textarea.edit:focus { outline:2px solid var(--brand-soft); outline-offset:0; }
.draft-mirror { position:absolute; inset:0; margin:0; padding:var(--s-12); border:1px solid transparent; border-radius:10px; font:500 16px/1.5 var(--ui); white-space:pre-wrap; overflow-wrap:break-word; word-break:normal; color:transparent; overflow:hidden; pointer-events:none; }
.draft-mirror mark.just-changed { color:transparent; }
mark.just-changed { animation-duration:1.2s; }
.draft-write { position:absolute; z-index:2; top:50%; left:50%; transform:translate(-50%,-50%); white-space:nowrap; }
.draft-drafting { position:absolute; inset:0; z-index:2; display:grid; place-items:center; border:1px solid var(--field-line); border-radius:10px; background:var(--brand-bg); overflow:hidden; font-weight:700; }
.reply-bar { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); align-items:center; gap:var(--s-4); min-width:0; }
.reply-bar .barbtn { display:inline-flex; align-items:center; gap:var(--s-4); min-height:44px; min-width:0; border:1px solid transparent; border-radius:999px; background:none; padding:0 var(--s-4); font:700 .9rem/1 var(--ui); white-space:nowrap; }
.reply-bar .snippets { justify-self:start; }
.reply-bar .clip { width:44px; justify-content:center; justify-self:center; color:var(--muted); }
.reply-bar .tune { justify-self:end; color:var(--muted); font-weight:600; }
.reply-bar .barbtn[aria-expanded="true"] { border-color:var(--raised-line); background:var(--card); }
.reply-bar .ico { width:20px; height:20px; }
.reply-snippets { display:grid; border:1px solid var(--raised-line); border-radius:var(--s-12); padding:var(--s-8); background:var(--card); }
.reply-snippets .addon-pick { min-height:48px; }
.reply-snippets>.linkish { justify-self:start; }
.reply-screen .attach-pick { margin:0; background:var(--card); }
.reply-screen .attach-pick .call-opts { display:grid; grid-template-columns:minmax(0,1fr); }
.reply-screen .files { margin:0; padding:0; }
.draft-snippet-chips { display:flex; gap:var(--s-8); flex-wrap:wrap; }
.draft-snippet-chips .chip { display:inline-flex; align-items:center; padding-left:var(--s-12); min-height:44px; background:var(--ink); color:var(--bg); border-color:var(--ink); }
.draft-snippet-chips .chip-x { position:static; width:44px; min-height:44px; color:inherit; }
.reply-screen .reply-tune { margin:0; }
.reply-screen .reply-tune-panel { padding:var(--s-12); border:1px solid var(--line); border-radius:var(--s-12); background:var(--card); min-width:0; }
.reply-rate-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s-4); }
.reply-rate-head small { font-size:.78rem; color:var(--muted); }
.reply-tune-panel .tell { margin:0; min-width:0; }
.reply-tune-panel .tell-row { display:flex; min-width:0; gap:var(--s-8); }
.reply-tune-panel .tell input { width:100%; min-width:0; min-height:44px; font-size:16px; }
.reply-tune-panel .tell button { flex:none; width:44px; min-height:44px; padding:0; }
.reply-tune-panel .draft-rating-values { grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; }
.draft-rating-values button { border:0; border-radius:var(--s-8); background:none; font-size:30px; color:var(--muted); padding:0; }
.draft-rating-values button.filled,.draft-rating-values button[aria-pressed="true"] { color:var(--brand-soft); background:var(--brand-bg); border-color:transparent; }
.card.mbx.reply-screen .actions.mb-acts:has(.send-split) { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); padding:var(--s-4); }
.card.mbx.reply-screen .actions.mb-acts>.send-split { grid-column:1/-1; }
.card.mbx.reply-screen .actions.mb-acts.with-book>.send-split { grid-column:auto; }
.card.mbx.reply-screen .send-split .send-more { flex:none; width:44px; padding:0; }
.card.mbx.reply-screen .send-split .send-main { min-width:0; }
.reply-side { display:none; }
@media (max-width:360px) {
  .reply-head>.mb-avatar { display:none; }
}
@media (min-width:900px) {
  #view>.split { grid-template-columns:minmax(260px,.7fr) minmax(0,1.8fr); }
  .reply-layout { display:grid; grid-template-columns:minmax(0,1fr) 200px; }
  .reply-side { display:grid; align-content:start; gap:var(--s-24); padding:var(--s-16); border-left:1px solid var(--line); min-width:0; }
  .reply-side h3 { margin:0 0 var(--s-8); color:var(--muted); font:700 .8rem/1.3 var(--ui); }
  .reply-side-contact { display:grid; gap:var(--s-4); }
  .reply-side-contact button,.reply-side-contact a { min-height:44px; display:flex; align-items:center; background:none; border:0; padding:0; text-align:left; color:var(--brand-soft); }
  .reply-side .request-facts { padding:0; grid-template-columns:minmax(0,1fr); }
  .reply-side .request-facts .linkish { padding:0; }
  .reply-phone-facts { display:none; }
  .reply-screen .draft { margin:var(--s-12); }
}
@media (min-width:900px) {
  .reply-side h3 { font:800 1.05rem/1.3 var(--ui); color:var(--ink); }
  .reply-side-contact { border:1px solid var(--line); border-radius:var(--s-12); overflow:hidden; gap:0; }
  .reply-side-contact button,.reply-side-contact a { display:grid; gap:var(--s-4); min-height:52px; padding:var(--s-8) var(--s-12); border-bottom:1px solid var(--line); background:var(--card); color:var(--ink); text-decoration:none; }
  .reply-side-contact > :last-child { border-bottom:0; }
  .reply-side .cm-reply { padding:0 0 var(--s-12); border-bottom:0; }
  .reply-side .cm-reply .seg { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); justify-self:stretch; width:100%; margin:0; }
  .reply-side .cm-reply .seg button { min-height:44px; }
  .reply-side .cm-reply-address input { padding:0 var(--s-12); box-sizing:border-box; }
  .reply-side-contact b { font:600 .92rem/1.2 var(--ui); }
  .reply-side-contact small { color:var(--muted); font:.8rem/1.3 var(--ui); overflow-wrap:normal; word-break:normal; white-space:nowrap; overflow-x:auto; }
}
@media (min-width:1200px) {
  #view>.split { grid-template-columns:380px minmax(0,1fr); }
  .reply-layout { grid-template-columns:minmax(0,1fr) 300px; }
}
.reply-menu-item b { font:600 .95rem/1.3 var(--ui); color:inherit; text-transform:none; letter-spacing:0; }
.reply-more-menu .call-opts { grid-template-columns:repeat(3,minmax(0,1fr)); }
.reply-more-menu .call-opts .btn { padding:0 var(--s-4); min-height:44px; font-size:.85rem; }
.reply-more-menu .remind-pick { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--s-4); }
.reply-more-menu .remind-pick input { width:100%; min-width:0; min-height:44px; }
@media (min-width:900px) {
  .detail .reply-screen:has(.reply-side) { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,max-content); max-width:none; }
  .reply-layout:has(.reply-side) { display:contents; }
  .reply-screen:has(.reply-side)>.reply-head,.reply-layout>.mb-body { grid-column:1; }
  .reply-side { grid-column:2; grid-row:1 / span 2; max-width:360px; }
}
@media (min-width:1200px) {
  .detail .reply-screen:has(.reply-side) { grid-template-columns:minmax(0,1fr) minmax(300px,max-content); }
}
.draft-saved[data-state="saved"]::before { content:'\2713\00a0'; }
.reply-heading > b:first-child { font:800 17px/24px var(--ui); padding:0 0 var(--s-4); }
.reply-name { color:var(--ink); }
.draft-snippet-chips .chip-x { background:none; border:0; padding:0; font-size:1.2rem; line-height:1; }
.draft-rating-values button.filled,.draft-rating-values button[aria-pressed="true"] { background:none; }
/* The opened reply's head stays pinned under the top bar on a phone, as the open card's head did (V310). */
@media (max-width:899px) { .card.mbx.open > .reply-head { position:sticky; top:var(--head-h, 60px); z-index:3; background:var(--card, var(--bg)); } }
.draft-snippet-chips .chip { max-width:100%; height:auto; text-align:left; }
.draft-snippet-chips .chip > span { white-space:normal; overflow-wrap:anywhere; min-width:0; padding:var(--s-4) 0; }

/* Decision 0044, approved Upcoming Hold tag (rules 4, 6, 21). */
.ev-h:has(> .tag){grid-template-columns:minmax(0,1fr) auto 44px}
.ev-h > .tag{grid-column:2;align-self:start}
.ev-h:has(> .tag) > .rchev{grid-column:3}

/* Round 2: the title yields space to Hold/Waiting, with the existing small-text tones. */
.cal-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-status{flex:none;margin-left:var(--s-4)}
.mbar .cal-status{font:inherit;color:inherit}
.mbar .cal-title{flex:1;min-width:0}
.mbar .cal-title[hidden] + .cal-status{margin-left:0}
.mbar .cal-status{flex:none;white-space:nowrap}
:root .month-full .mbar.waiting .mbar-t{padding-inline:0}
.dv-ev b:has(.cal-status),.dv-chip:has(.cal-status){display:flex;align-items:baseline}
.dv-ev .cal-title{flex:1;white-space:normal;overflow-wrap:anywhere}
.dv-chip .cal-status{font-size:11.5px;font-weight:500;color:var(--muted)}

/* Truck time zone: reuse form tokens, native selection, 44px targets (rules 13, 21). */
:is(.pf, .wiz-f) select[name="tz"] {
  width: 100%; min-width: 0; min-height: 44px; font-size: 16px;
  padding: var(--s-8) var(--s-12); border-radius: 9px;
  border: 1.5px solid var(--field-line); background: var(--raised); color: var(--ink);
  /* WebKit's native select ignores the field sizing, as with the shared selects above (rule 21, P4). */
  -webkit-appearance: none; appearance: none; padding-right: var(--s-32);
  background-image: var(--select-chev); background-position: right 12px center; background-size: 14px 14px; background-repeat: no-repeat;
}
:is(.pf, .wiz-f):has(> select[name="tz"]) { min-width: 0; grid-template-columns: minmax(0, 1fr); }

/* Approved gold-window Ask, variant B. Rules 21, P3, P4: existing geometry and desktop/tiny-phone mark retained. */
@media (min-width: 241px) and (max-width: 899px) {
  .nav .ask-circle, .nav .ask-slot[aria-current="page"] .ask-circle {
    background: var(--action);
    border-color: #4a148c;
    box-shadow: 0 0 0 5px var(--chrome), 0 10px 22px -6px rgba(0,0,0,.6);
  }
  .nav .ask-circle .ask-mark {
    -webkit-mask: none; mask: none;
    background: url("/brand/ask-window-cream.svg") center / contain no-repeat;
  }
}

/* Chris's walk 11/17, B3g. Rules 17, 21, P4: shared chrome, decoration never intercepts a control. */
:root { --awning-depth:14px; --awning-page-space:var(--s-12); }
/* Chris 11-18: on a phone the page starts 12 under the scallops (the view's own 12), not 24, so a title row sits close to the
   awning on every top-level page; the computer keeps its spacing. */
@media (max-width:899px) { :root { --awning-page-space:0px; } }
/* The opaque border reserves the scallops inside the sticky header and shields scrolling content. */
.top { overflow:visible; border-bottom:var(--awning-depth) solid var(--bg); background-clip:padding-box; padding-bottom:calc(var(--s-8) + 1px); margin-bottom:var(--awning-page-space); background-image:repeating-linear-gradient(90deg,rgba(74,20,140,.16) 0 30px,rgba(255,249,238,.16) 30px 60px); }
.awning-edge { position:absolute; left:0; right:0; bottom:calc(-1 * var(--awning-depth)); height:var(--awning-depth); pointer-events:none; background:repeating-linear-gradient(90deg,#4a148c 0 30px,#fff9ee 30px 60px); -webkit-mask:radial-gradient(ellipse 15px 14px at 15px 0,#000 98%,transparent 100%) 0 0/30px 14px repeat-x; mask:radial-gradient(ellipse 15px 14px at 15px 0,#000 98%,transparent 100%) 0 0/30px 14px repeat-x; }
:root[data-theme="light"] .top::after { content:""; position:absolute; left:0; right:0; bottom:-14px; height:14px; pointer-events:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='14'%3E%3Cpath d='M30.5 0 A14.5 13.5 0 0 0 59.5 0' fill='none' stroke='%23231c29' stroke-opacity='.25' stroke-width='1'/%3E%3C/svg%3E") 0 0/60px 14px repeat-x; }
.wiz-pastewrap.pass-box { display:block; }
[data-app-password-show] { display:flex; align-items:center; justify-content:center; gap:var(--s-4); width:88px; }
[data-app-password-show] svg { width:20px; height:20px; flex:none; }
.pass-box[data-app-password] input { padding-right:96px; }
.app-password-shape { min-height:2.8em; color:var(--red); font-size:.85rem; line-height:1.4; }
.wiz-wait-note { text-align:center; margin-top:var(--s-24); }
.wiz-wait-title { color:var(--ink); font:800 1.25rem/1.4 var(--ui); margin-bottom:var(--s-8); }
.wiz-wait-choices { display:grid; gap:var(--s-8); }
.signup-demo-note,.read-starting { color:var(--muted); font-size:13px; }
.signup-tour-choice { text-decoration:none; }
.learning-saying { min-height:3em; }
@media(min-width:900px) { body:not(.signed-out):not(.in-wizard) .view { height:calc(100dvh - var(--top-h) - var(--awning-depth) - var(--awning-page-space)); } }

#connect-form #show { display:flex; align-items:center; gap:var(--s-4); min-width:88px; }
#connect-form #show svg { width:20px; height:20px; }

.demo-sample { margin-top:0; }
@media(min-width:900px) {
  .top { height:calc(var(--top-h) + var(--awning-depth)); padding-bottom:0; }
  #menu { max-height:calc(100dvh - var(--menu-top, calc(var(--head-h) + var(--s-24))) - var(--s-12)); }
}

/* Desktop pages and the Mailbox list share the phone's 24px gap below the scallops. */
@media(min-width:900px) { #view > .events { padding-top:var(--s-12); } }

.wiz-wait-note + .wiz-next { margin-top:0; }

/* Early access, walk 11/17 note 8. Quiet Menu badge and Help disclosure, rules 17, 21, P4. */
.early-access-badge { width: fit-content; margin: 0 var(--s-4); padding: var(--s-4) var(--s-8);
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--card); font-size: .8rem; }
.early-access-notice { padding: var(--s-16); display: grid; gap: var(--s-12); }
.early-access-actions { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.early-access-actions .btn { min-height: 44px; }

/* Walk note 9, approved reassurance, rules 13, 17, 21. In normal flow before any connection starts. */
.wiz-send-note { color:var(--muted); margin:0; }

/* Approved H1 Dashboard entry, rules 3, 21, P4. Only truck text yields space. */
/* Chris 11-18: a bottom-bar tab on the awning, not a pill. The chart over the word "Dashboard", in the bar's label size, weight
   and colors (.nav button: muted, the brand tint when it is the page, the soft capsule behind the icon), no outline, so the truck
   name keeps the room. 44 tall like every tap; the bar does not grow. */
.dashboard-button{position:relative;isolation:isolate;flex:0 0 auto;display:grid;justify-items:center;align-content:center;gap:var(--s-4);min-width:44px;height:44px;min-height:44px;padding:0 var(--s-4);border:0;border-radius:12px;background:none;color:var(--muted);font:600 .7rem/1 var(--ui);white-space:nowrap;cursor:pointer}
.dashboard-button svg{flex:none;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dashboard-button[aria-current="page"]{color:var(--brand-soft)}
.dashboard-button[aria-current="page"]::after{content:"";position:absolute;z-index:-1;top:calc(50% - 22px);height:30px;left:max(0px,calc(50% - 28px));right:max(0px,calc(50% - 28px));border-radius:999px;background:color-mix(in srgb, var(--brand-soft) 22%, transparent)}
:root[data-theme="light"] .dashboard-button[aria-current="page"]::after{background:color-mix(in srgb, var(--brand) 13%, transparent)}
.dashboard-button:focus-visible{outline:2px solid var(--brand-soft);outline-offset:2px}
.account-pill .tenant{flex:0 1 auto}
body.signed-out .dashboard-button,body.in-wizard .dashboard-button{display:none}

/* Dashboard round 3, rules 21 and P4: use available desktop room; compact the phone pill first. */
@media (min-width:1280px){
  .top{grid-template-columns:minmax(0,1fr) auto auto}
  .top .account-pill{max-width:320px}
}
/* The chart and its word on every bar, owner, demo and Practice, at every width (Chris 11-18); the truck name gives way first with
   its ellipsis. */
@media (max-width:429px){   /* a phone: the bar's own gaps tighten so the truck keeps what room there is */
  .top .account-pill{gap:var(--s-4);padding-right:var(--s-8)}
  body:is(.demo,.in-practice) .top .brand{gap:var(--s-4)}   /* beside the Demo pill and toggle, or the Practice tag */
  body:is(.demo,.in-practice) .top .head-line{gap:var(--s-8)}
}
@media (max-width:319px){
  .brand{flex-wrap:wrap;row-gap:var(--s-4)}
}

/* Chris 11-18: an unpicked option still reads as a button. Every switch (.seg), filter chip row (.mpills, Events' truck filters)
   and the Mailbox tabs give their unpicked options a visible edge in the field line (3:1 on cream and on dark); the picked one
   keeps its fill (the Mailbox's gold, a switch's brand tint, a chip's color). Inset rings, so nothing grows. A switch's options sit
   4 apart so two edges never merge into one. */
.seg { gap: var(--s-4); }
.seg button:not([aria-selected="true"]):not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px var(--field-line); }
.mpill:not([aria-pressed="true"]), .mpills:has([data-inbox]) .mpill:not([aria-pressed="true"]) {
  border-color: color-mix(in srgb, currentColor 45%, transparent); }
.mpill.gray:not([aria-pressed="true"]) { border-color: var(--field-line); }
.inbox-bar .mailbox-tabs { gap: var(--s-4); }
.inbox-bar .mailbox-tabs .mpill:not([aria-pressed="true"]) { border-color: var(--field-line); }
.rig-filters button:not([aria-pressed="true"]) { border-color: var(--field-line); }
/* A count on a tab is its own small badge after the word, the bottom bar's Mailbox badge: "For you" and a filled 1. */
.mail-tab-count { flex: none; display: inline-block; min-width: 19px; height: 19px; padding: 0 var(--s-4); border-radius: 999px;
  background: var(--brand); color: #fff; font: 700 .68rem/19px var(--ui); font-style: normal; text-align: center;
  font-variant-numeric: tabular-nums; }

/* Chris 11-18 (blocker): a real email with a 600-character tracking link and lines with no spaces grew the open Mailbox row past
   the screen, and iOS zoomed the whole page out. Every place that shows someone's words (an email, a note, a draft, a message)
   breaks a long token inside its own box, and its boxes may shrink below that token, so the page is never wider than the screen. */
.done-line .said, .done-line .said .text, .msg .text, .history-message .text, .history-preview, .card.unsure .mb-context,
.inv-msg, .ip-memo p, .t-note, .ev-note-text, .prospect-note, .wiz-draft, .wiz-quote, .draft .reply-signature,
.send-sheet .reply-signature, .sign-lines, .mb-body, .mb-body .cblk, .quote, .pv { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.done-line .said { grid-template-columns: minmax(0, 1fr); }

/* Chris 11-18: a Mailbox row tapped open is one card that opened downward: the head and what dropped down share the card's
   background and edge, no line between them. Under their words, the truck's own last word, as the conversation shows it: "You"
   and its time over the brand-tinted bubble. On a phone (a computer opens rows in the side pane). */
@media (max-width:899px) {
  .card.mbx.open:not(.home-card) { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  .card.mbx.open:not(.home-card) > .mb-preview { border-bottom: 0; }
  .card.mbx.open:not(.home-card) .mb-body { padding: 0 var(--s-12) var(--s-16); }
  .done-line.open .said { border-top: 0; padding-top: 0; }
}
.said-sent { display: grid; gap: var(--s-4); justify-items: end; min-width: 0; margin-top: var(--s-4); }
.said-sent .meta { font-size: 12px; color: var(--muted); padding: 0 var(--s-4); }
.said-sent .text { justify-self: stretch; margin-left: var(--s-24); padding: var(--s-12); border-radius: 12px; background: var(--brand-bg);
  border: 1px solid var(--brand); white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; font-size: .9rem; line-height: 1.45; }

/* fix4, rules 7, 9, 21, P4: shrink every parent of mail, preserve line breaks, and wrap unknown long tokens. */
.mb-body, .reply-layout, .reply-layout > *, .cblk, .pv, .quote, .draft, .msg, .msg .bubble,
.history-message, .history-message .bubble, .history-latest, .chat-thread, .chat-thread > *, .bot-text {
  min-width:0; max-width:100%; overflow-wrap:anywhere;
}
.done-line .said .text, .msg .text, .history-message .text, .bot-text { white-space:pre-wrap; }
/* Read rows use normal weight. Only new arrivals emphasize both sender and subject. */
.card.mbx .urow-name, .card.mbx .urow-n, .card.mbx .mb-subject { font-weight:400; }
.card.mbx.is-unread .urow-name, .card.mbx.is-unread .urow-n, .card.mbx.is-unread .mb-subject { font-weight:800; }
/* A selected switch keeps the house gold; an unselected option always has its own edge. */
.seg button:not([aria-selected="true"]):not([aria-checked="true"]):not([aria-pressed="true"]) { box-shadow:inset 0 0 0 1px var(--field-line); }
.seg button:is([aria-selected="true"],[aria-checked="true"],[aria-pressed="true"]) { background:var(--action); color:var(--on-action); box-shadow:none; }
.seg, .seg button { min-width:0; max-width:100%; }
.seg button { white-space:normal; overflow-wrap:anywhere; }
.chip { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
/* Count labels can wrap independently without compressing their badge. */
.mailbox-tabs .mpill { flex-wrap:wrap; }
.mail-tab-count { height:auto; min-height:19px; line-height:1.3; padding:var(--s-4); overflow-wrap:anywhere; max-width:100%; }
/* Title to its controls, with the same house spacing at every width. */
.page-head { min-height:44px; }
/* The card's own reply header shares its surface too, including desktop's pane. */
.card.mbx.open > .reply-head { border-bottom:0; background:var(--card); border-radius:inherit; }
@media (min-width:900px) {
  .card.mbx.open:not(.home-card) { background:var(--card); border:1px solid var(--line); border-radius:12px; }
  .card.mbx.open > .mb-preview { border-bottom:0; }
  .done-line.open .said { border-top:0; }
}
.card.reply-screen .reply-name, .card.reply-screen .reply-heading > b, .card.reply-screen .reply-subject { font-weight:400; }
@media (min-width:900px) {
  .dashboard-button { font-size:.85rem; }
  .dashboard-button svg { width:19px; height:19px; }
}

/* Phone walk 11-18, rules 6, 21: every found card owns its full event date. */
.fnd .ev-date{width:auto;min-width:5em;max-width:100%;gap:var(--s-4)}
.fnd .ev-date b{font-size:1rem;white-space:nowrap;text-transform:uppercase}
.fnd .ev-main{min-width:0;flex:1}
.fnd .ev-main>[data-found-thread]{display:block;text-align:left;min-height:44px;white-space:normal}

/* S07: WebKit paints today's date for an empty native date input. Keep the
   actual value empty and show its real state until focus opens the picker. */
.pf > .ne-date-control { position: relative; display: block; font: 400 16px/1.2 var(--ui); letter-spacing: normal; text-transform: none; color: var(--ink); }
.ne-date-control input { width: 100%; }
.ne-date-control input[data-empty="true"],
.ne-date-control input[data-empty="true"]::-webkit-date-and-time-value { color: transparent; -webkit-text-fill-color: transparent; }
.ne-date-control input[data-empty="true"]::-webkit-datetime-edit { opacity: 0; }

/* Shot review 11/19 (fix4-1118/review). */
/* Shots 2 and 18: every unpicked option wears its own edge (Chris 11-18), so the track behind a switch only showed as a strip in
   the 4 px between two options. The options are the control; the track draws nothing. */
.seg, .seg:not(.mini) { background: none; border-color: transparent; box-shadow: none; }
/* Shot 6: an opened Mailbox row's two ways on, side by side under the reply, Reply a 44 px button in the link's ink (it sat
   alone 52 px lower as a small underlined word). */
.done-line .said .said-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-16); }
.done-line .said .said-acts:empty { display: none; }
.done-line .said .said-reply { min-height: 44px; min-width: 44px; padding: 0 var(--s-12); border: 1px solid var(--field-line); border-radius: 999px;
  background: none; font: 600 .82rem/1.3 var(--ui); color: var(--brand-soft); cursor: pointer; }
/* Shot 9: a link inside a sentence keeps its 44 px tap without opening the line it sits in. */
[data-found-notice] p .linkish { display: inline-flex; vertical-align: baseline; min-height: 44px; margin-block: calc(-1 * var(--s-12)); font-size: inherit; }
[data-found-notice] p { line-height: 1.45; }
/* Shot 22: the Item and Amount receipt on its card keeps the card's inner margin. */
.ne-receipt { padding: 0 var(--s-16); border-radius: 12px; }
/* Shot 23: the title's pencil reads as the 44 px button it is; the Kind picker is a field like Title under it (WebKit drew a
   22 px native box). */
.ep-pencil .glyph { border: 0; background: none; box-shadow: none; }
.ep-title-row > .ep-pencil { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.ep-field select { -webkit-appearance: none; appearance: none; height: auto; min-height: 44px; padding: var(--s-8) var(--s-32) var(--s-8) var(--s-8);
  border: 1px solid var(--line); border-radius: 10px; background: var(--raised) var(--select-chev) no-repeat right 12px center / 14px 14px; color: var(--ink); }
/* Shot 24: a document's truck and expiry on their own lighter line under its name. */
.doc-pick { flex-direction: column; align-items: flex-start; gap: 0; }
.doc-pick small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }

/* Quotes and invoices, approved 11/19. One full-width switch, equal status filters and a flat list. */
.inv-page { container-type: inline-size; width: 100%; }
.inv-page .page-head, .inv-page .head-acts { flex-wrap: nowrap; }
.inv-page .page-head h1 { flex: 1; }
.inv-page .head-acts { gap: var(--s-4); margin-right: calc(-1 * var(--s-4)); }
.inv-page .head-acts button, .inv-page .mpill { position: relative; isolation: isolate; }
.inv-page .head-acts button { border: 0; background: none; }
.inv-page .head-acts button::before, .inv-page .mpill::before {
  content: ""; position: absolute; z-index: -1; border-radius: inherit; box-sizing: border-box;
}
.inv-page .create-pill { height: 44px; padding: 0 var(--s-12); gap: var(--s-4); font-size: .88rem; }
.inv-page .create-pill::before { inset: 5px 0; border: 1.5px solid var(--action-edge); background: var(--action); }
.inv-page .mag { width: 44px; height: 44px; }
.inv-page .mag::before { inset: 5px; background: var(--raised); border: 1.5px solid var(--raised-line); }
.inv-page .mag[aria-pressed="true"]::before { border-color: var(--brand); }
.inv-page .head-acts svg { width: 17px; height: 17px; }
.inv-page .seg:not(.mini) {
  width: 100%; height: 44px; padding-inline: var(--s-4); gap: 0; border-radius: 12px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
}
.inv-page .seg:not(.mini) button { font: 600 .9rem/1 var(--ui); }
.inv-page .seg:not(.mini) button::before { inset: 5px 0; border-radius: 8px; }
.inv-page .seg:not(.mini) button[aria-selected="true"] { color: var(--brand-soft); background: transparent; font-weight: 700; }
.inv-page .seg:not(.mini) button[aria-selected="true"]::before { background: var(--brand-bg); }
.inv-page .seg:not(.mini) button[aria-selected="false"] { box-shadow: none; }
.inv-page .mpills {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--s-4);
}
/* The six Quotes filters keep a 2 px gutter, measured (WebKit, iPhone 15, 11-20): at var(--s-4) the words sit 2.2 px from
   their edges at 388 and 440 wide on one row, under the 3 px the list's rule asks; named in tests/test_hig_1004c.py. */
.inv-page.quotes-list .mpills { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 2px; }
.inv-page .mpills .mpill {
  min-width: 44px; min-height: 44px; padding: 0; border: 0; box-shadow: none; background: none;
  white-space: nowrap; font: 600 clamp(max(12px, .62rem), 3.45cqi, .84rem)/1 var(--ui);
}
.quotes-list .mpills .mpill {
  font-size: clamp(max(12px, .6rem), 3.25cqi, .84rem);
}
/* The five invoice labels also fit at 320px when the four gaps narrow (measured 11-20: at var(--s-4) the words sit 2.2 px
   from their edges at 320 with big text; named in tests/test_hig_1004c.py). */
@container (max-width: 296px) or (width < 15.2rem) {
  .inv-page:not(.quotes-list) .mpills { column-gap: 2px; }
}
@container (width < 26rem) {
  .quotes-list .mpill { letter-spacing: -.03em; }
}
/* At a 16px root, six compact labels first clear both edges by 3px at 364px. */
@container (width < 22.75rem) {
  .inv-page.quotes-list .mpills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotes-list .mpills .mpill { font-size: .84rem; letter-spacing: normal; }
}
.inv-page .mpill::before { inset: 6px 0; background: var(--chip-bg); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.inv-page .mpill.all { --chip-bg: var(--raised); --picked: var(--ink); color: var(--ink); }
.inv-page .mpill.red { --chip-bg: var(--red-bg); --picked: var(--red); }
.inv-page .mpill.amber { --chip-bg: var(--amber-bg); --picked: var(--amber-ink); }
.inv-page .mpill.blue { --chip-bg: var(--blue-bg); --picked: var(--blue); }
.inv-page .mpill.green { --chip-bg: var(--green-bg); --picked: var(--green); }
.inv-page .mpill.gray { --chip-bg: var(--raised); --picked: var(--muted); }
.inv-page .mpill[aria-pressed="true"] { color: var(--card); }
.inv-page .mpill[aria-pressed="true"]::before { background: var(--picked); border-color: transparent; }
.inv-page .mpill.all[aria-pressed="true"] { color: var(--bg); }
.inv-page .inv-list { display: grid; margin: 0; gap: var(--s-8); }
/* The separator may end a line. Currency and its digits use normal numeric line-breaking. */
.inv-page .urow-k { overflow-wrap: normal; }
.money-summary p b { white-space: nowrap; }
.inv-page .in-past .urow-date { color: var(--red); font-weight: 600; }
.inv-page .urow:not(:has(.inv-row-action)) .urow-date { grid-column: 1 / 3; }
/* The row opens its paper. Its separate keyboard stop for Remind or Follow up shares the date track. */
.inv-page .urow:has(.inv-row-action) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; column-gap: var(--s-8);
  padding: var(--s-12) var(--s-8) var(--s-12) var(--s-16); position: relative;
}
.inv-page .urow:has(.inv-row-action) .urow-h {
  grid-area: 1 / 1 / 4 / 4; grid-template-columns: subgrid; grid-template-rows: subgrid; padding: 0;
}
.inv-page .urow:has(.inv-row-action) .urow-h::before { content: ""; position: absolute; inset: 0; }
.inv-page .inv-row-action { grid-area: 3 / 2; align-self: center; justify-self: end; position: relative; padding: 0; }
.inv-page .inv-row-action button { min-height: 44px; white-space: nowrap; }
.money-summary { display: flex; align-items: center; min-height: 44px; padding-left: var(--s-4); position: relative; }
.money-summary p { flex: 1; margin: 0; font: 600 .95rem/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.money-summary .red { color: var(--red); }
.money-summary .blue { color: var(--blue); }
.money-summary .muted { color: var(--muted); }
.balances-menu summary { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); cursor: pointer; list-style: none; }
.balances-menu summary::-webkit-details-marker { display: none; }
.balances-menu summary svg { width: 22px; height: 22px; fill: currentColor; }
.balances-menu[open] summary { color: var(--brand-soft); }
/* Closed, the menu has no box at all (Chromium keeps a closed details' content laid out, past the edge at 320). */
.balances-menu:not([open]) > div { display: none; }
.balances-menu > div { position: absolute; right: 0; top: calc(100% - 2px); z-index: 2; padding: var(--s-4); min-width: min(260px, 100%); max-width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.balances-menu button { display: grid; grid-template-columns: 22px 1fr; align-items: center; column-gap: var(--s-12);
  min-height: 56px; padding: var(--s-8) var(--s-12); border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; }
.balances-menu button:hover { background: var(--raised); }
.balances-menu button svg { grid-row: span 2; width: 20px; height: 20px; stroke: var(--muted); stroke-width: 2; fill: none; }
.balances-menu b { font: 600 .95rem/1.25 var(--ui); }
.balances-menu small { font-size: .82rem; line-height: 1.3; color: var(--muted); }
.balance-lines { display: none; }
@media (max-width: 899px) {
  #outs.sheet.bottom > .out-sheet:has(.balance-lines) {
    flex: 1 1 0; min-height: 0; align-content: stretch;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .out-sheet:has(.balance-lines) .out-preview { overflow-y: auto; }
  .out-sheet:has(.balance-lines) .out-foot { position: static; margin: 0; padding: 0; }
  .out-paper .balance-lines { --muted: #6f6861; --ink: #1d1a17; --line: #e4ded3; }
  .balance-lines { display: block; list-style: none; margin: 0; padding: 0; }
  .balance-lines + .out-scroll { display: none; }
  .balance-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-12);
    align-items: baseline; padding: var(--s-8) 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  .balance-lines b { overflow-wrap: anywhere; }
  .balance-lines strong { white-space: nowrap; }
  .balance-lines small { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
  .balance-lines .out-total { border-bottom: 0; border-top: 1.5px solid var(--ink); }
}
.quote-page .ip-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* The owner's paper keeps each column's lines together at the top, as the customer's page does (gate 11-20, A). */
.quote-page .ip-meta > div { align-content: start; }
.quote-page .ip-sent a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
.quote-page .ip-email { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .top .head-line > .brand { display: contents; }
  .top .dashboard-button { order: 1; }
  .top .head-end { margin-left: auto; }
}
#ask .compose textarea { padding-left: var(--s-12); }
#ask .chat-empty h3 { margin: 0 0 var(--s-8); color: var(--ink); }
#ask .chat-empty p { margin: 0; }
#ask .saved-confirm { flex: none; text-align: center; }

.lever-edit[data-lever-form] .le-default { margin-top: calc(-1 * var(--s-4)); font-weight: 600; }
.lever-edit[data-lever-form] .tf-actions { align-items: center; }
.lever-edit textarea[name="say"] { resize: none; overflow: hidden; line-height: 1.4; }
.lever-edit .le-stale { color: var(--muted); font-size: .85rem; }
.travel-message-note {
  min-height: 44px; align-self: flex-start; padding: 0; background: none; border: 0;
  text-align: left; text-decoration: underline; cursor: pointer;
}

/* Recent mail is usable: quiet background read, same tokens and text, rules 8, 12, 21. */
.signup-read-background { color:var(--muted); font-size:13px; margin:0 0 var(--s-12); }
.signup-read-background p { margin:0; }
.signup-read-background .signup-progress { height:4px; }
