/* Amail's console: one stylesheet, in the order a page is built.
 *   1 tokens   2 base   3 type   4 controls   5 surfaces and rows   6 patterns
 *   7 signed-out pages   8 the signed-in frame   9 page layouts   10 sheet and toast   11 motion
 * The design language is ported from the "Week" direction (docs/design/console.md): clean neutrals (warm until D-450),
 * one action colour, eight type sizes, cards on a canvas. The type is Outfit. Layout follows content:
 * each page has its own width, centred in the main panel. This is where the hexes live. */

@font-face { font-family: "Outfit"; src: url("/assets/outfit-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/assets/outfit-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/assets/outfit-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ================================================================== 1 tokens */
/* Three grounds give the screen depth: the canvas, the chrome (bars and navigation), and the
 * surfaces content lives on. A well is a recess inside a surface. */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --chrome: #fbfbfc;
  --card: #ffffff;
  --well: #f3f4f6;
  --line: #e5e7eb;
  --edge: #d5d8de;
  --field-line: #868b94;
  --ink: #15171c;
  --ink-2: #4a4f58;
  --ink-3: #686e78;
  --coral: #ee5335;
  --coral-strong: #c93f1f;
  --coral-tint: #fde8e2;
  --coral-deep: #ae3418;
  --on-coral: #ffffff;
  --green: #17704a;
  --green-tint: #e0f2e8;
  --hero-bg: #15171c;
  --hero-ink: #f3f4f6;
  --hero-sub: #aab0ba;
  /* The colour of a problem on the ink card (Home's strip switched off or closing), measured against --hero-bg. */
  --hero-coral: #ff9a82;
  --hero-edge: transparent;
  --shadow: 0 0 0 1px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.06), 0 10px 24px -12px rgba(16, 24, 40, 0.18);
  --shadow-lift: 0 0 0 1px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.08), 0 20px 40px -16px rgba(16, 24, 40, 0.3);
  --scrim: rgba(15, 17, 21, 0.48);
  /* Monogram tiles (D-449): six tones a store's colour is picked from by its domain. Each ink is measured on its ground. */
  --mg-1: #e2eaf6; --mg-1-ink: #2b4a7a;
  --mg-2: #ece4f5; --mg-2-ink: #5a3a80;
  --mg-3: #ddefec; --mg-3-ink: #1d5e58;
  --mg-4: #f5e9d4; --mg-4-ink: #77501a;
  --mg-5: #f4e1ea; --mg-5-ink: #8a2e56;
  --mg-6: #e6ebd9; --mg-6-ink: #4a5823;
  --glass: color-mix(in srgb, var(--chrome) 88%, transparent);

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-code: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  /* The eight sizes, tuned for Outfit. */
  --t-money: 600 44px/1 var(--font);
  --t-large: 600 30px/1.12 var(--font);
  --t-title: 600 23px/1.2 var(--font);
  --t-section: 600 18px/1.25 var(--font);
  --t-row: 500 16px/1.3 var(--font);
  --t-body: 400 15px/1.5 var(--font);
  --t-meta: 400 13px/1.4 var(--font);
  --t-tab: 500 11px/1.2 var(--font);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --gutter: 20px;
  --radius-card: 20px;
  --radius-media: 14px;
  --radius-thumb: 12px;
  --radius-pill: 999px;
  --button-h: 52px;
  --row-min: 60px;
  --tap: 44px;
  --thumb: 44px;
  --tabbar-h: 63px;
  --topbar-h: 56px;
  --sidebar-w: 248px;
  --phead-h: 76px;
  /* The width of this page's content. A page sets it with a class on the body. */
  --container: 720px;
  --field-max: 440px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
/* Dark: the same grounds on neutral near-black (D-450; warm before it). Follows the device unless the person chose (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e10; --chrome: #14161a; --card: #1a1c20; --well: #22252a; --line: #2c2f35; --edge: #3a3e45; --field-line: #8a909a;
    --ink: #f3f4f6; --ink-2: #b9bec7; --ink-3: #9ba1ab;
    --coral: #f0674b; --coral-strong: #c93f1f; --coral-tint: #40201a; --coral-deep: #ffa48b; --on-coral: #ffffff;
    --green: #7ad6a4; --green-tint: #173323;
    --hero-bg: #262a31; --hero-ink: #f3f4f6; --hero-sub: #c3c8d0; --hero-coral: #ff9a82; --hero-edge: transparent;
    --mg-1: #1f2a3b; --mg-1-ink: #a9c4ee; --mg-2: #2b2238; --mg-2-ink: #cfb6ec; --mg-3: #17312e; --mg-3-ink: #8fd6cc;
    --mg-4: #352b1a; --mg-4-ink: #e8c88c; --mg-5: #36212b; --mg-5-ink: #f0aecb; --mg-6: #262c1a; --mg-6-ink: #c5d292;
    --shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0, 0, 0, 0.6); --shadow-lift: 0 0 0 1px var(--edge), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
    --scrim: rgba(0, 0, 0, 0.64);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e10; --chrome: #14161a; --card: #1a1c20; --well: #22252a; --line: #2c2f35; --edge: #3a3e45; --field-line: #8a909a;
  --ink: #f3f4f6; --ink-2: #b9bec7; --ink-3: #9ba1ab;
  --coral: #f0674b; --coral-strong: #c93f1f; --coral-tint: #40201a; --coral-deep: #ffa48b; --on-coral: #ffffff;
  --green: #7ad6a4; --green-tint: #173323;
  --hero-bg: #262a31; --hero-ink: #f3f4f6; --hero-sub: #c3c8d0; --hero-coral: #ff9a82; --hero-edge: transparent;
  --mg-1: #1f2a3b; --mg-1-ink: #a9c4ee; --mg-2: #2b2238; --mg-2-ink: #cfb6ec; --mg-3: #17312e; --mg-3-ink: #8fd6cc;
  --mg-4: #352b1a; --mg-4-ink: #e8c88c; --mg-5: #36212b; --mg-5-ink: #f0aecb; --mg-6: #262c1a; --mg-6-ink: #c5d292;
  --shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0, 0, 0, 0.6); --shadow-lift: 0 0 0 1px var(--edge), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  --scrim: rgba(0, 0, 0, 0.64);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --tabbar-h: 0px; --gutter: 32px; } }
/* One frame for every signed-in page (D-469): one width, list and detail pages included. */
.w-frame { --container: 1040px; }

/* ================================================================== 2 base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-y: scroll; scrollbar-color: var(--edge) transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: var(--t-body); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; }
p { text-wrap: pretty; }
a { color: var(--coral-deep); font-weight: 500; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--coral) 28%, transparent); color: var(--ink); }
svg.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -80px; z-index: 60; padding: var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--ink); color: var(--bg); }
.skip:focus { top: var(--space-4); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
div[role="status"]:empty, div[aria-live]:empty { display: none; }

/* ================================================================== 3 type */
.num, .row-amount, .row-meta, .track-meta, .hint { font-variant-numeric: tabular-nums; }
.ink-2 { color: var(--ink-2); }
.strong { font-weight: 600; color: var(--ink); }
.wrap-any { overflow-wrap: anywhere; }
/* Addresses, keys and codes are set in the monospace. Nothing else is. */
.mono, .copy-value, .address-big, .codes li, .codeblock { font-family: var(--font-code); letter-spacing: 0; }
.mono { font-size: 13px; overflow-wrap: anywhere; }
.hint { font: var(--t-meta); color: var(--ink-3); }
.problem { font: var(--t-meta); font-weight: 500; color: var(--coral-deep); }
.problem:empty, .hint:empty { display: none; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); text-decoration: none; font: var(--t-row); font-weight: 600; }
.wordmark-dot { width: 22px; height: 22px; border-radius: var(--radius-pill); background: var(--coral); flex: none; }

/* ================================================================== 4 controls */
/* Buttons: pressed at once, working without changing size, done with a tick. One filled button a view. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--button-h); padding: 0 var(--space-6); border-radius: var(--radius-pill); font: 600 15px/1 var(--font); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; flex: none; user-select: none; transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--coral-strong); color: var(--on-coral); }
.btn-secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-quiet { color: var(--ink-2); font-weight: 500; padding: 0 var(--space-3); }
.btn-sm { min-height: var(--tap); padding: 0 var(--space-4); font-size: 15px; }
.btn-quiet.btn-sm { padding: 0 var(--space-3); }
.btn-lg { min-height: 56px; padding: 0 var(--space-8); font-size: 16px; }
.btn-block { width: 100%; }
.btn:focus-visible, .tab:focus-visible, .icon-btn:focus-visible, .pill-link:focus-visible { border-radius: var(--radius-pill); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { background: var(--coral-deep); color: var(--card); }
  .btn-secondary:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink-2); }
  .btn-quiet:hover:not(:disabled) { background: var(--well); color: var(--ink); }
  .hero-card.is-due .btn-primary:hover, :root[data-theme="dark"] .btn-primary:hover:not(:disabled) { background: var(--coral); color: var(--on-coral); }
}
@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover:not(:disabled) { background: var(--coral); color: var(--on-coral); } }
.btn:disabled:not([aria-busy]) { background: var(--well); color: var(--ink-3); box-shadow: none; }
.btn-quiet:disabled:not([aria-busy]) { background: transparent; }
.btn[aria-busy="true"], .btn.is-done { color: transparent; }
.btn[aria-busy="true"] > *, .btn.is-done > * { opacity: 0; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: var(--radius-pill); border: 2px solid var(--ink-2); border-right-color: transparent; animation: spin 600ms linear infinite; }
.btn-primary[aria-busy="true"]::after { border-color: var(--on-coral); border-right-color: transparent; }
.btn.is-done::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-2px) rotate(-45deg); animation: tick 220ms var(--ease-out); }
.btn-primary.is-done::after { border-color: var(--on-coral); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-pill); color: var(--ink-2); flex: none; text-decoration: none; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--well); color: var(--ink); } }
/* Copy confirms in place: the icon becomes a tick, then comes back. */
.copy-btn { position: relative; }
.copy-btn .icon { transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.copy-btn .copy-b { position: absolute; opacity: 0; transform: scale(0.9); color: var(--green); }
.copy-btn.is-done .copy-a { opacity: 0; transform: scale(0.9); }
.copy-btn.is-done .copy-b { opacity: 1; transform: scale(1); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.linkish { color: var(--coral-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); display: inline-flex; align-items: center; }

/* Fields. No text input is wider than --field-max. */
.form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); width: 100%; max-width: var(--field-max); }
.form > .btn-block { align-self: stretch; }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; width: 100%; max-width: var(--field-max); }
.label { font: 500 13px/1.4 var(--font); color: var(--ink-2); }
.input, .select { width: 100%; height: var(--button-h); padding: 0 var(--space-4); border: 1px solid var(--field-line); border-radius: var(--radius-thumb); background: var(--card); color: var(--ink); font: 500 16px/1.3 var(--font); }
.input.mono { font: 500 15px/1.3 var(--font-code); }
.input::placeholder { color: var(--ink-3); font-weight: 400; }
.input:focus-visible, .select:focus-visible, .joined:focus-within { outline: 2px solid var(--coral-deep); outline-offset: -1px; border-color: var(--coral-deep); border-radius: var(--radius-thumb); }
.input[aria-invalid="true"], .joined.is-invalid { border-color: var(--coral-deep); }
.select { appearance: none; padding-right: var(--space-10); background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.joined { display: flex; align-items: center; height: var(--button-h); border: 1px solid var(--field-line); border-radius: var(--radius-thumb); background: var(--card); overflow: hidden; }
.joined .input { border: 0; background: transparent; height: 100%; min-width: 0; flex: 1; padding-right: var(--space-1); outline: none; }
.joined .input.mono { font-weight: 600; }
.joined-end { padding: 0 var(--space-4) 0 0; color: var(--ink-3); font: 400 13px/1 var(--font-code); white-space: nowrap; flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
/* Names to tap, and the address being made: the name is the dark part, the service's own part is quiet and whole. */
.suggest { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.suggest-chip { min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); font: 500 13px/1 var(--font-code); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.suggest-chip[aria-pressed="true"] { background: var(--well); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink-2); }
.suggest-chip:focus-visible { border-radius: var(--radius-pill); }
.made { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); width: 100%; min-width: 0; }
.address-chip { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; min-height: var(--tap); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3); border-radius: var(--radius-thumb); background: var(--well); font: 400 13px/1.4 var(--font-code); color: var(--ink-2); }
.address-chip .icon { width: 18px; height: 18px; }
.address-chip-text { min-width: 0; overflow-wrap: anywhere; }
.address-chip b { font-weight: 600; color: var(--ink); }
.address-chip.is-empty b { font-weight: 400; color: var(--ink-3); }
.rules { display: flex; flex-direction: column; gap: var(--space-1); }
.rule { display: flex; align-items: center; gap: var(--space-2); font: var(--t-meta); color: var(--ink-2); }
.rule::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--ink-3); flex: none; }
.rule.is-met::before { background: var(--green); box-shadow: none; }
.rule.is-broken { color: var(--coral-deep); }
.rule.is-broken::before { background: var(--coral); box-shadow: none; }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); cursor: pointer; font: var(--t-body); font-weight: 500; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--field-line); border-radius: 7px; background: var(--card); display: grid; place-content: center; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--on-coral); border-bottom: 2.5px solid var(--on-coral); transform: rotate(-45deg) translateY(-1px) scale(0); transition: transform 140ms var(--ease-out); }
.check input:checked { background: var(--coral-strong); border-color: var(--coral-strong); }
.check input:checked::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
/* A segmented choice: compact, never full width. */
.seg { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: var(--radius-thumb); background: var(--well); max-width: 100%; }
.seg button { min-height: 38px; padding: 0 var(--space-4); border-radius: 9px; font: 500 15px/1 var(--font); color: var(--ink-2); white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
/* The six-digit code: six slots over one real field. */
.otp { position: relative; width: 100%; max-width: 348px; }
.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 2em; outline: none; z-index: 1; cursor: text; }
.otp-input::selection { background: transparent; }
.otp-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.otp-slots span { display: grid; place-content: center; height: 60px; border-radius: var(--radius-thumb); background: var(--well); box-shadow: inset 0 0 0 1px var(--edge); font: 600 24px/1 var(--font-code); color: var(--ink); transition: box-shadow 140ms ease, background-color 200ms ease, color 200ms ease; }
.otp-slots span.is-filled { box-shadow: inset 0 0 0 1px var(--ink-2); }
.otp-slots span.is-caret { box-shadow: inset 0 0 0 2px var(--coral-deep); }
.otp-slots span.is-caret:empty::after { content: ""; width: 2px; height: 24px; border-radius: 1px; background: var(--coral-deep); animation: caret 1.1s steps(1) infinite; }
.otp.is-wrong .otp-slots { animation: shake 360ms var(--ease-in-out); }
.otp.is-wrong .otp-slots span { box-shadow: inset 0 0 0 2px var(--coral-deep); color: var(--coral-deep); }
.otp.is-right .otp-slots span { background: var(--green-tint); box-shadow: inset 0 0 0 2px var(--green); color: var(--green); }
.otp.is-right .otp-slots span:nth-child(2) { transition-delay: 30ms; } .otp.is-right .otp-slots span:nth-child(3) { transition-delay: 60ms; }
.otp.is-right .otp-slots span:nth-child(4) { transition-delay: 90ms; } .otp.is-right .otp-slots span:nth-child(5) { transition-delay: 120ms; } .otp.is-right .otp-slots span:nth-child(6) { transition-delay: 150ms; }

/* ================================================================== 5 surfaces and rows */
/* A card is white on the canvas, with a hairline and a soft drop. Its heading and at most one action
 * sit in its own header row; its closing actions sit in a foot row, pushed to the bottom. */
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: var(--space-5); min-width: 0; }
.card-stack { gap: var(--space-4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap); }
.card-head + .rows, .card-head + .dl, .card-head + .setup, .card-head + .track, .card-head + .steps3 { margin-top: var(--space-2); }
.card-title { font: var(--t-section); letter-spacing: -0.015em; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-4); }
.card-stack > .card-foot { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
@media (min-width: 1024px) { .card { padding: var(--space-6); } }

/* Rows: a tile or nothing, a title and a line of meta, and something at the end. */
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--row-min); padding: var(--space-2) 0; min-width: 0; }
a.row, button.row { color: inherit; text-decoration: none; font-weight: inherit; width: 100%; text-align: left; border-radius: var(--radius-thumb); transition: background-color 160ms ease; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* Marks under a row's name (Stores): a few pills in a line that wraps, so a long name keeps the row's width. */
.row-marks { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: 4px; }
.row-title { font: var(--t-row); color: var(--ink); overflow-wrap: anywhere; }
.row-meta { font: var(--t-meta); color: var(--ink-2); overflow-wrap: anywhere; }
/* A row that leads with who: the name on one line, with how long there is to answer at its end. */
.row-top { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; }
.row-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.row-when { flex: none; font: var(--t-meta); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-when.is-soon { color: var(--coral-deep); font-weight: 500; }
/* A plain label over a group of rows. */
.rows > li.rows-head { padding: var(--space-4) 0 var(--space-1); font: var(--t-tab); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); border-top: 0; }
.rows > li.rows-head:first-child { padding-top: var(--space-3); }
.rows > li.rows-head + li { border-top: 0; }
.row-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); text-align: right; }
.row-amount { font: var(--t-row); }
.row-chev { color: var(--ink-3); width: 20px; height: 20px; }
.row-link { min-height: var(--thumb); padding: 0; }
@media (hover: hover) and (pointer: fine) {
  a.row, button.row { margin: 0 calc(-1 * var(--space-3)); padding-left: var(--space-3); padding-right: var(--space-3); width: calc(100% + 2 * var(--space-3)); }
  a.row:hover, button.row:hover { background: var(--well); }
}
.tile { width: var(--thumb); height: var(--thumb); border-radius: var(--radius-thumb); background: var(--well); color: var(--ink-2); display: grid; place-content: center; flex: none; }
.tile .icon { width: 22px; height: 22px; }
.tile-coral { background: var(--coral-tint); color: var(--coral-deep); }
.tile-green { background: var(--green-tint); color: var(--green); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--well); color: var(--ink-2); font: 500 13px/1.4 var(--font); white-space: nowrap; flex: none; }
.pill-due { background: var(--coral-tint); color: var(--coral-deep); }
.pill-ok { background: var(--green-tint); color: var(--green); }
/* A key someone else tried (D-468): the one state in the colour of a problem, filled, with its sign. */
.pill-alarm { background: var(--coral-strong); color: var(--on-coral); font-weight: 600; }
.pill-alarm .icon { color: var(--on-coral); }
/* A store no business proves, named by its domain (D-468): its own name in ink, the ending quieter, one text. */
.dom-wrap { display: flex; min-width: 0; max-width: 100%; }
.dom-own { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-end { color: var(--ink-3); white-space: nowrap; flex: none; }
/* What a message is, before its subject in the Mail list (D-468). */
svg.mail-kind { display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; color: var(--ink-3); stroke-width: 2.25; }
.pill-link { text-decoration: none; min-height: 32px; padding: 4px 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); }
.pill-link:empty { display: none; }
.count { display: inline-grid; place-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--coral-tint); color: var(--coral-deep); font: 600 13px/1 var(--font); }
/* At most three chips, on one line. */
.chips { display: flex; gap: var(--space-2); overflow: hidden; }
.chips .pill { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* A definition list: label, value, state and action on one line. */
.dl { display: flex; flex-direction: column; }
.dl > * + * { border-top: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-3); min-height: 52px; padding: var(--space-2) 0; }
.dl-row > dt, .dl-name { font: var(--t-meta); color: var(--ink-2); }
.dl-row > dd, .dl-value { font: var(--t-body); font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.dl-row > dd.mono { font: 400 13px/1.5 var(--font-code); }
.dl-end { display: flex; align-items: center; gap: var(--space-1); justify-content: flex-end; }
.dl-end .btn-sm { min-height: 36px; padding: 0 var(--space-3); }
.dl-fix { grid-column: 2 / -1; display: flex; gap: var(--space-2); align-items: center; }
.dl-fix .input { height: var(--tap); max-width: 260px; }
@media (max-width: 599px) {
  .dl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-row > dt, .dl-name { grid-column: 1 / -1; margin-bottom: -6px; }
  .dl-fix { grid-column: 1 / -1; }
  .dl-row.has-actions > .dl-value { grid-column: 1 / -1; }
  .dl-row.has-actions > .dl-end { grid-column: 1 / -1; justify-content: flex-start; margin-left: calc(-1 * var(--space-1)); }
}
/* A setting: what it is on the left, its control on the right. */
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--row-min); padding: var(--space-2) 0; }
.setting-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setting-form { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.setting-form .input { width: 112px; height: var(--tap); }
@media (max-width: 599px) { .setting { flex-wrap: wrap; } }

/* A value to copy, a code sample, a quoted message. */
.copy { display: flex; align-items: center; gap: var(--space-2); min-height: var(--button-h); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); min-width: 0; }
.copy-value { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.bigcode { font: 600 23px/1.2 var(--font-code); letter-spacing: 0.08em; white-space: nowrap; }
.code { border-radius: var(--radius-thumb); background: var(--well); min-width: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-1) 0 var(--space-4); min-height: var(--tap); font: 500 13px/1 var(--font); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.codeblock { display: block; padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.quote { padding: var(--space-4); border-radius: var(--radius-thumb); background: var(--well); font: var(--t-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-1) var(--space-4); padding: var(--space-4); border-radius: var(--radius-thumb); background: var(--well); }
.codes li { font-size: 13px; line-height: 1.8; user-select: all; }
.address-big { font-size: 16px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
/* A note inside a card: neutral, coral when the person must act, green when settled. */
.note { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); color: var(--ink-2); font: var(--t-meta); }
.note .icon { width: 20px; height: 20px; }
.note-body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; flex: 1; }
.note-title { font: var(--t-body); font-weight: 600; color: var(--ink); }
/* Home's warnings, one above the other, each its own note. */
.warn-stack { display: grid; gap: var(--space-3); }
.note-due { background: var(--coral-tint); }
.note-due .icon, .note-due .note-title { color: var(--coral-deep); }
.note-due .copy { background: var(--card); }
.note-ok { background: var(--green-tint); }
.note-ok .icon, .note-ok .note-title { color: var(--green); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); padding: var(--space-4) 0; }
.empty .row-title { font-weight: 600; }
.empty p:not(.row-title) { color: var(--ink-2); max-width: 34em; }
.empty .btn { margin-top: var(--space-3); }
.skel { display: block; height: 14px; border-radius: var(--radius-pill); background: var(--line); animation: skel 1.4s ease-in-out infinite; }
.skel-lg { height: 22px; }
.skel-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--row-min); padding: var(--space-2) 0; }
.skel-tile { width: var(--thumb); height: var(--thumb); border-radius: var(--radius-thumb); }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.w-30 { width: 30%; } .w-45 { width: 45%; } .w-60 { width: 60%; } .w-80 { width: 80%; }
/* A disclosure: quiet, because coral is for the thing to do. */
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); cursor: pointer; color: var(--ink-2); font: 500 13px/1.4 var(--font); border-radius: 8px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
details.more[open] > summary .icon { transform: rotate(90deg); }
details.more > .more-body { padding-bottom: var(--space-2); color: var(--ink-2); font: var(--t-meta); display: flex; flex-direction: column; gap: var(--space-2); }
.card > details.more { margin-top: var(--space-2); margin-bottom: calc(-1 * var(--space-2)); }

/* ================================================================== 6 patterns */
/* The hero: the one thing a screen has to say. When it asks for the person it is dark, with the coral button. */
.hero-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.hero-card.is-due { background: var(--hero-bg); color: var(--hero-ink); box-shadow: var(--shadow-lift); }
.hero-card.is-due .hero-sub { color: var(--hero-sub); }
.hero-card.is-due .hero-statement { font: var(--t-large); letter-spacing: -0.025em; }
.hero-card.is-due .btn-primary { background: var(--coral); color: var(--on-coral); }
/* Nothing to do is said in plain type on the canvas: a card is for something to press or read through. */
.hero-card.is-calm { background: transparent; box-shadow: none; padding: var(--space-1) var(--space-1) 0; gap: var(--space-2); }
.hero-card .btn { align-self: flex-start; }
.hero-card > .skel { display: block; }
.hero-line { display: flex; align-items: center; gap: var(--space-4); }
.hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-statement { font: var(--t-title); letter-spacing: -0.02em; text-wrap: balance; }
.hero-sub { font: var(--t-body); color: var(--ink-2); }
@media (max-width: 479px) { .hero-card .btn { align-self: stretch; } }
/* Trackers. Horizontal: segments. Vertical: dots joined by a line. */
.segs { display: flex; gap: var(--space-1); }
.segs > span { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--line); transition: background-color 320ms var(--ease-out); }
.segs > .is-done { background: var(--ink); }
.segs > .is-now { background: var(--coral); }
.segs > .is-working { background: var(--ink-3); }
.segs-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1); font: var(--t-tab); color: var(--ink-3); }
.segs-labels .is-here { color: var(--ink); font-weight: 600; }
.order-progress { display: flex; flex-direction: column; gap: var(--space-2); }
.track { display: flex; flex-direction: column; }
.track > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-4); }
.track > li:last-child { padding-bottom: 0; }
.track > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.track > li:last-child::before { display: none; }
.track > li.is-done::before { background: var(--ink); }
.track-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 4px; }
.track-title { font: var(--t-body); font-weight: 500; }
.track-meta { font: var(--t-meta); color: var(--ink-2); }
.mark { width: 28px; height: 28px; border-radius: var(--radius-pill); display: inline-grid; place-content: center; flex: none; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); font: 600 13px/1 var(--font); transition: background-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out), color 320ms var(--ease-out); }
.mark .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.is-done > .mark, .mark.is-done, .is-done > .setup-row > .mark { background: var(--ink); box-shadow: none; border: 0; color: var(--card); }
.is-now > .mark, .mark.is-now, .is-now > .setup-row > .mark { box-shadow: inset 0 0 0 2px var(--coral); color: var(--coral-deep); }
.is-optional:not(.is-done) > .setup-row > .mark { box-shadow: none; border: 1.5px dashed var(--ink-3); }
.mark.just-done { animation: mark-in 360ms var(--ease-out); }
/* The checklist: the mark, the title and its state on one line; the hint under them. */
.setup > li { padding: var(--space-3) 0; }
.setup > li + li { border-top: 1px solid var(--line); }
.setup > li:last-child { padding-bottom: 0; }
.setup-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: 2px; align-items: center; }
.setup-text { display: contents; }
.setup-title { grid-column: 2; grid-row: 1; font: var(--t-row); color: var(--ink-2); }
.is-now > .setup-row .setup-title { color: var(--ink); font-weight: 600; }
.is-done > .setup-row .setup-title { color: var(--ink); }
.setup-state { grid-column: 3; grid-row: 1; }
.setup-hint { grid-column: 2 / -1; grid-row: 2; font: var(--t-meta); color: var(--ink-2); }
.setup-detail { margin: var(--space-3) 0 var(--space-1) 40px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: var(--field-max); }
.setup-detail > .copy { align-self: stretch; }
.mini-steps { display: grid; gap: var(--space-2); counter-reset: mini; }
.mini-steps li { display: flex; align-items: center; gap: var(--space-3); font: var(--t-body); counter-increment: mini; }
.mini-steps li::before { content: counter(mini); display: grid; place-content: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--well); color: var(--ink-2); font: 600 12px/1 var(--font); flex: none; }
.track.consent { max-height: 300px; overflow-y: auto; padding: var(--space-4); border-radius: var(--radius-thumb); background: var(--well); scrollbar-color: var(--edge) transparent; }
.track.consent .mark { background: var(--card); box-shadow: none; width: 24px; height: 24px; font-size: 11px; }
.track.consent > li { grid-template-columns: 24px minmax(0, 1fr); }
.track.consent > li::before { display: none; }
.track.consent .track-body p { font: var(--t-meta); color: var(--ink-2); }
.outcomes { display: grid; gap: var(--space-2); }
.outcomes > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-2); }
.outcomes b { font-weight: 600; color: var(--ink); }
.code-hero { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-thumb); background: var(--coral-tint); }
.code-hero .hint { color: var(--coral-deep); font-weight: 500; }
.code-hero .copy { background: var(--card); }
.code-hero .bigcode { font-size: 30px; }

/* ================================================================== 6b identity */
/* The proof, in small: the check page's own headline, the address, and its four lines. It sits in a
 * well, because it is a picture of another page and not something to press. */
.proof { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.proof-top { display: flex; align-items: center; gap: var(--space-3); }
.proof-top .tile { width: 36px; height: 36px; }
.proof-top .tile:not(.tile-green) { background: var(--card); }
.proof-top .tile .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.proof-says { font: var(--t-row); font-weight: 600; text-wrap: balance; }
.proof-address { align-self: flex-start; max-width: 100%; padding: var(--space-1) 10px; border-radius: 8px; background: var(--card); color: var(--ink); font-size: 13px; line-height: 1.5; }
.proof-rungs { display: grid; gap: 6px; }
.proof-rungs li { display: flex; align-items: center; gap: var(--space-2); font: var(--t-meta); color: var(--ink-2); }
.proof-rungs li.is-held { color: var(--ink); }
.dot { width: 18px; height: 18px; border-radius: var(--radius-pill); display: grid; place-content: center; flex: none; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--edge); }
.dot .icon { width: 11px; height: 11px; stroke-width: 3; }
.is-held > .dot, .dot.is-held { background: var(--green); color: var(--card); box-shadow: none; }
.dot.just-done { animation: mark-in 420ms var(--ease-out) 360ms both; }
/* Copying a link says so in place: the icon becomes a tick and the word changes, then both return. */
.link-btn .icon { width: 16px; height: 16px; }
.link-btn .link-b { display: none; color: var(--green); }
.link-btn.is-copied .link-a { display: none; }
.link-btn.is-copied .link-b { display: block; animation: arrive 200ms var(--ease-out) both; }
.link-btn.is-copied { color: var(--ink); }
/* Identity: the sentence on the canvas, then the ladder. */
.stack-page { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.seen-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: 0 var(--space-1); min-width: 0; }
.seen-strip .row-body { flex: 1 1 280px; }
.seen-strip .hero-statement:focus { outline: none; }
/* The ladder: four rungs joined by a line. Done is green, as it is on the check page; the next one
 * carries the coral ring and the page's one filled button; one not offered here is dashed and quiet. */
.ladder { display: flex; flex-direction: column; margin-top: var(--space-3); }
.rung { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-4); padding-bottom: var(--space-6); }
.rung:last-child { padding-bottom: 0; }
.rung::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line); transition: background-color 320ms var(--ease-out); }
.rung:last-child::before { display: none; }
.rung.is-done::before { background: var(--green); }
.rung.is-done > .mark { background: var(--green); color: var(--card); box-shadow: none; }
.rung.is-next > .mark { box-shadow: inset 0 0 0 2px var(--coral); color: var(--coral-deep); }
.rung.is-stopped > .mark { background: var(--coral-tint); color: var(--coral-deep); box-shadow: none; }
.rung.is-off > .mark { box-shadow: none; border: 1.5px dashed var(--ink-3); }
.rung-body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.rung-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); min-height: 28px; }
.rung-title { font: var(--t-row); font-weight: 600; }
.rung-proves { color: var(--ink-2); max-width: 38em; }
.rung .hint { max-width: 44em; }
.rung.is-off .rung-title { color: var(--ink-2); font-weight: 500; }
.rung-act { margin-top: var(--space-3); }
.track > li.is-up > .mark { background: var(--green-tint); color: var(--green); box-shadow: none; }
.track > li.is-down > .mark { background: var(--coral-tint); color: var(--coral-deep); box-shadow: none; }
.settings > .setting:not([hidden]) ~ .setting { border-top: 1px solid var(--line); }
.setting .btn .icon { width: 16px; height: 16px; }
.seen-row { align-items: flex-start; }
.seen-row .task-end { padding-top: 2px; }
@media (max-width: 599px) { .seen-row { flex-wrap: wrap; } .seen-row .row-body { flex-basis: 100%; } .seen-row .task-end { margin-left: calc(-1 * var(--space-3)); } }
@media (min-width: 1024px) { .stack-page { gap: var(--space-5); } }
/* An address says what a checker is told about it, with the link to send. */
.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.proof-line-text { flex: 1 1 220px; min-width: 0; font: var(--t-body); font-weight: 500; }
.proof-line-text .hint { font-weight: 400; }
.proof-line + .rows { margin-top: var(--space-2); border-top: 1px solid var(--line); }
.card > .card-head + .ink-2 { margin-bottom: var(--space-2); max-width: 44em; }

/* The off switch. Three plain lines say what it does; when it is off, the dark card leads the
 * page and its one button is the way back on. */
.points { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); color: var(--ink-2); max-width: 44em; }
.points li { position: relative; padding-left: var(--space-5); }
.points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--ink-3); }
.sheet-body .points { margin-top: 0; color: var(--ink); }
.card > .points + details.more { margin-top: var(--space-3); }
.settings .row-title { font: var(--t-row); }
.tile-ink { background: var(--ink); color: var(--card); }
.proof-top .tile.tile-ink { background: var(--ink); color: var(--card); }
/* In the frame of every page while it is off: a small ink pill that leads to Identity. */
.off-flag { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); font: 600 13px/1 var(--font); text-decoration: none; white-space: nowrap; }
.off-flag .icon { width: 16px; height: 16px; stroke-width: 2.25; }
.topbar .off-flag { margin-left: auto; margin-right: var(--space-2); }
.nav-state { display: none; }
@media (min-width: 1024px) { .nav-state { display: flex; padding: 0 var(--space-3); } .nav-state:has(.off-flag:not([hidden])) { margin: calc(-1 * var(--space-2)) 0 var(--space-4); } }

/* The forwarding steps: the goal in one line, what reaches us and what never does, the two
 * values once, then at most five lines to follow. */
.goal { display: flex; flex-direction: column; gap: var(--space-3); }
.goal-line { font: var(--t-section); letter-spacing: -0.015em; text-wrap: balance; max-width: 24em; }
.gets { display: grid; gap: var(--space-2); }
.gets li { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--ink-2); max-width: 40em; }
.gets .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); stroke-width: 2.25; }
.gets .is-yes .icon { color: var(--green); }
.setup-row > .setup-state { display: flex; align-items: center; gap: var(--space-1); }
.setup-alt { grid-column: 2 / -1; grid-row: 2; }
.setup-under { margin: var(--space-3) 0 0 40px; display: flex; flex-direction: column; gap: var(--space-3); }
.setup-under[hidden] { display: none; }
.setup-alt.more > summary { min-height: 36px; }
.setup-alt .more-body { align-items: flex-start; max-width: 40em; }
@media (max-width: 599px) {
  .setup-row > .setup-state:not(:empty) { grid-column: 2 / -1; grid-row: 2; margin: var(--space-1) 0 0 calc(-1 * var(--space-2)); }
  .setup-row > .setup-state:not(:empty) ~ .setup-alt { grid-row: 3; }
}
.note-list { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); }
.note-list li { position: relative; padding-left: var(--space-4); }
.note-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: var(--radius-pill); background: currentColor; }
.note .actions { margin-top: var(--space-1); }
.note-due .btn-secondary { background: var(--card); }
#google-wait .btn-quiet { margin-left: calc(-1 * var(--space-3)); }
.mismatch { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.mismatch > .stack { align-self: stretch; }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.choices legend { padding: 0; margin-bottom: var(--space-2); }
.choices .stack { gap: 0; }
.check input[type="radio"] { border-radius: var(--radius-pill); }
.check input[type="radio"]::after { width: 10px; height: 10px; border: 0; border-radius: var(--radius-pill); background: var(--on-coral); transform: scale(0); }
.check input[type="radio"]:checked::after { transform: scale(1); }
.check span { min-width: 0; }

/* ================================================================== 7 signed-out pages */
.out { min-height: 100dvh; display: flex; flex-direction: column; }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-3) var(--gutter); }
.out-foot { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin: auto auto 0; padding: var(--space-6) var(--gutter); color: var(--ink-2); font: var(--t-meta); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.out-foot a { color: var(--ink-2); }
/* On a phone the links are two columns under the name, so none is left on a line of its own. */
@media (max-width: 599px) {
  .out-foot { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 var(--space-8); }
  .out-foot > span { grid-column: 1 / -1; padding-bottom: var(--space-1); }
  .out-foot a { display: inline-flex; align-items: center; min-height: var(--tap); justify-self: start; }
}
/* Landing. */
.hero { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-8); display: grid; gap: var(--space-8); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hero-title { font: 600 34px/1.08 var(--font); letter-spacing: -0.03em; max-width: 12em; text-wrap: balance; }
.hero-lede { font: 400 17px/1.45 var(--font); color: var(--ink-2); max-width: 30em; }
.hero-copy .btn { margin-top: var(--space-2); }
.hero-show { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.hero-show .hero-card.is-due .hero-statement { font: var(--t-title); letter-spacing: -0.015em; }
.hero-caption { font: var(--t-meta); color: var(--ink-3); padding: 0 var(--space-1); }
.checker { gap: var(--space-4); }
.checker-row { display: flex; gap: var(--space-2); }
.checker-row .input { flex: 1; min-width: 0; }
.checker-shows { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-media); background: var(--well); }
.lower { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space-8); display: grid; gap: var(--space-4); }
.lower-card { gap: var(--space-5); }
.lower-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); }
.band-title { font: var(--t-title); letter-spacing: -0.02em; }
.band-lede { color: var(--ink-2); }
.how, .keep { display: grid; gap: var(--space-4); align-items: start; }
.how li, .keep > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); row-gap: 2px; align-items: center; }
.how h3, .keep h3 { font: var(--t-row); font-weight: 600; }
.how p, .keep p { grid-column: 2; font: var(--t-meta); color: var(--ink-2); }
.keep .tile { width: 36px; height: 36px; }
.keep .tile .icon { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .how, .keep { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
  .how li, .keep > div { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); align-items: start; }
  .how p, .keep p { grid-column: 1; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--space-12); padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .hero-title { font-size: 44px; line-height: 1.06; letter-spacing: -0.03em; }
  .hero-lede { font-size: 18px; }
}
/* Sign-up, sign-in, recovery: one card, centred, in the upper middle of the window. */
.is-join .out-head { max-width: calc(440px + 2 * var(--space-10)); }
.is-join main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--space-4) var(--gutter) var(--space-10); }
.join { width: 100%; max-width: calc(440px + 2 * var(--space-6)); display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6); background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.join-head { display: flex; flex-direction: column; gap: var(--space-2); }
.join-title { font: var(--t-large); letter-spacing: -0.025em; text-wrap: balance; }
.join-lede { color: var(--ink-2); }
.join-to { color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); }
.join-alt { color: var(--ink-2); }
.join .btn-quiet { align-self: flex-start; margin-left: calc(-1 * var(--space-3)); }
.join .codes { grid-template-columns: 1fr; }
.step { display: flex; flex-direction: column; gap: var(--space-6); }
.step:focus { outline: none; }
@media (min-width: 768px) {
  .is-join main { padding-top: min(12vh, 96px); }
  .join { max-width: calc(440px + 2 * var(--space-10)); padding: var(--space-10); }
}

/* ================================================================== 8 the signed-in frame */
/* Chrome: a bar and a tab bar on a phone, a sidebar and a header band from 1024px. */
.app { min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: calc(var(--topbar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--edge); }
.avatar { width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--ink); color: var(--chrome); display: grid; place-content: center; font: 600 13px/1 var(--font); flex: none; }
.avatar-lg { width: 44px; height: 44px; font-size: 16px; }
.avatar-link { display: grid; place-content: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-pill); text-decoration: none; margin-right: -4px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: var(--space-1) max(var(--space-1), env(safe-area-inset-right)) calc(var(--space-1) + env(safe-area-inset-bottom)) max(var(--space-1), env(safe-area-inset-left)); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--edge); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav, .topbar { background: var(--chrome); } }
.nav-brand, .nav-foot { display: none; }
.nav-main { display: contents; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: var(--radius-thumb); color: var(--ink-3); text-decoration: none; font: var(--t-tab); transition: color 160ms ease, background-color 160ms ease; }
.tab[aria-current="page"] { color: var(--coral-deep); }
.tab[aria-current="page"] .icon { color: var(--coral); }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--coral); box-shadow: 0 0 0 2px var(--chrome); }
.tab-count { display: none; }
.tab-wide { display: none; }
/* The page header: the title, a line of context, the page's one action. */
.phead-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--gutter) 0; }
.phead-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phead-title { font: var(--t-large); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.phead-meta { font: var(--t-body); color: var(--ink-2); }
.phead-meta:empty, .phead-actions:empty { display: none; }
.phead-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
#phead-sentinel { height: 1px; margin-bottom: -1px; }
/* The content: one centred container, as wide as this page's content wants. */
.page { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-5) var(--gutter) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--space-8)); }
.back { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); color: var(--ink-2); text-decoration: none; font: 500 15px/1 var(--font); align-self: flex-start; }
.back .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .app { padding-left: var(--sidebar-w); }
  .topbar { display: none; }
  .nav { top: 0; right: auto; width: var(--sidebar-w); display: flex; flex-direction: column; gap: 2px; padding: var(--space-5) var(--space-4); background: var(--chrome); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; border-right: 1px solid var(--edge); overflow-y: auto; }
  .nav-brand { display: flex; padding: 0 var(--space-3); margin-bottom: var(--space-5); }
  .nav-main { display: flex; flex-direction: column; gap: 2px; }
  .nav-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); }
  .tab { flex-direction: row; justify-content: flex-start; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-3); color: var(--ink-2); font: var(--t-row); }
  .tab[aria-current="page"] { background: var(--coral-tint); color: var(--coral-deep); font-weight: 600; }
  .tab-wide { display: flex; }
  .tab-dot { display: none; }
  .tab-count:not(:empty) { display: inline-grid; margin-left: auto; }
  .phead { position: sticky; top: 0; z-index: 15; background: var(--chrome); border-bottom: 1px solid var(--edge); transition: box-shadow 200ms ease; }
  .phead.is-stuck { box-shadow: 0 10px 20px -16px rgba(40, 28, 16, 0.35); }
  .phead-in { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; height: var(--phead-h); padding: 0 var(--gutter); }
  .phead-text { flex-direction: row; align-items: baseline; gap: var(--space-4); }
  /* A strut in the context line's type, so the title sits on the same line with or without one. */
  .phead-text::after { content: "\200b"; font: var(--t-body); margin-left: calc(-1 * var(--space-4)); }
  .phead-title { font: var(--t-title); letter-spacing: -0.02em; white-space: nowrap; }
  .phead-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page { gap: var(--space-5); padding: var(--space-8) var(--gutter) 72px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) { .tab:not([aria-current="page"]):hover { background: var(--well); color: var(--ink); } }

/* ================================================================== 9 page layouts */
/* Home: the hero, then orders beside addresses and the mailbox. First run: one card, centred. */
.cols { display: grid; gap: var(--space-4); align-items: start; min-width: 0; }
.setup-card { width: 100%; max-width: 720px; margin: 0 auto; }
.setup-card > .card-foot { border-top: 1px solid var(--line); margin-top: var(--space-4); padding-top: var(--space-3); }
@media (min-width: 1024px) { .cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-5); } .cols > .stack { gap: var(--space-5); } }
/* Orders and Decisions: the list, and the selected one beside it. On a phone the detail takes the list's place. */
.md { display: grid; gap: var(--space-4); align-items: start; min-width: 0; }
/* What the agent wrote that was not sent because it held a stored detail: above the list, with room under it. */
.mail-refused { margin-bottom: var(--space-4); }
.md-detail { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.md-list .row[aria-current="true"] { background: var(--well); }
.md-list .row[aria-current="true"] .row-title { font-weight: 600; }
/* A second list in a master list's card (the offers under the orders): its own small heading, set apart by a rule. */
.list-part { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.list-part-title { margin-bottom: var(--space-1); }
.md.is-empty { max-width: 560px; margin: 0 auto; width: 100%; }
.md.is-empty .md-detail { display: none; }
@media (max-width: 1023px) {
  .md.has-detail .md-list { display: none; }
  .md:not(.has-detail) .md-detail { display: none; }
}
@media (min-width: 1024px) {
  .md { grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-5); }
  .md.is-empty { grid-template-columns: minmax(0, 1fr); }
  .md-list { position: sticky; top: calc(var(--phead-h) + var(--space-8)); max-height: calc(100dvh - var(--phead-h) - 2 * var(--space-8)); overflow-y: auto; }
  .md-detail { gap: var(--space-5); }
  .md-detail .back { display: none; }
  .md-list .row { margin: 0 calc(-1 * var(--space-3)); padding-left: var(--space-3); padding-right: var(--space-3); width: calc(100% + 2 * var(--space-3)); }
  .md-list .rows > li + li { border-top-color: transparent; }
}
/* Addresses: cards in one column. A task address is one compact row. */
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 var(--space-3); min-height: 56px; padding: var(--space-2) 0; }
.task-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-end { display: flex; align-items: center; gap: var(--space-1); }
.task-end .btn-sm { min-height: 36px; }
@media (max-width: 599px) { .task { grid-template-columns: minmax(0, 1fr); } .task-end { justify-content: space-between; } }
/* Agents: keys, then three steps side by side in a card of the same width. */
.steps3 { display: grid; gap: var(--space-5); }
.steps3 > li { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.step-head { display: flex; align-items: center; gap: var(--space-3); }
.step-head .setup-title { color: var(--ink); font-weight: 600; }
.step-head .mark { box-shadow: inset 0 0 0 2px var(--edge); }
.step-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); }
.steps3 details.more > .more-body { padding-bottom: 0; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
/* Identity's flows: the one that is open takes the overview's place. */
.strip { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); padding: 0 var(--space-1); min-width: 0; }
.strip .row-title { font-weight: 600; }
.strip-icon { display: grid; place-content: center; flex: none; color: var(--ink-2); }
.strip-icon .icon { width: 22px; height: 22px; }
.strip-icon.is-ok { color: var(--green); }
.strip-icon.is-due { color: var(--coral-deep); }
/* Information with nothing to press sits on the canvas, without a card. */
.flat { padding: 0 var(--space-1); min-width: 0; }
.pair { display: grid; gap: var(--space-4); }
.choice { gap: var(--space-4); }
.choice-head { display: flex; align-items: flex-start; gap: var(--space-3); }
.choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice > .btn { margin-top: auto; align-self: flex-start; }
.flow:focus { outline: none; }
#cloud { display: flex; flex-direction: column; gap: var(--space-4); }
#cloud-form { align-items: center; }
@media (min-width: 720px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
@media (max-width: 599px) { .strip { flex-wrap: wrap; } .strip .actions { width: 100%; } }

/* ================================================================== 10 sheet and toast */
dialog.sheet { width: 100%; max-width: 480px; margin: auto auto 0; padding: var(--space-6) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom)); border: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift); transition: transform 170ms ease, opacity 170ms ease; }
dialog.sheet::backdrop { background: var(--scrim); animation: fade 200ms ease; transition: opacity 170ms ease; }
dialog.sheet[open] { display: flex; flex-direction: column; gap: var(--space-4); animation: sheet-up 300ms var(--ease-drawer); }
dialog.sheet.is-leaving { transform: translateY(100%); opacity: 0.6; }
dialog.sheet.is-leaving::backdrop { opacity: 0; }
.sheet-title { font: var(--t-section); letter-spacing: -0.015em; }
.sheet-body { color: var(--ink-2); display: flex; flex-direction: column; gap: var(--space-3); }
.sheet-actions { display: flex; flex-direction: column-reverse; gap: var(--space-2); margin-top: var(--space-2); }
@media (min-width: 768px) {
  dialog.sheet { margin: auto; border-radius: var(--radius-card); padding: var(--space-8); }
  dialog.sheet[open] { animation: sheet-pop 220ms var(--ease-out); }
  dialog.sheet.is-leaving { transform: scale(0.97); opacity: 0; }
  .sheet-actions { flex-direction: row; justify-content: flex-end; }
}
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--space-4)); z-index: 40; display: flex; align-items: center; gap: var(--space-2); width: max-content; max-width: min(520px, calc(100vw - 2 * var(--gutter))); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5); border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lift); opacity: 0; transform: translate(-50%, 16px) scale(0.98); pointer-events: none; transition: opacity 180ms ease, transform 240ms var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.toast p { font: 500 15px/1.4 var(--font); padding: var(--space-1) 0; }
.toast-close { display: grid; place-content: center; width: 36px; height: 36px; border-radius: var(--radius-pill); color: color-mix(in srgb, var(--bg) 70%, var(--ink)); flex: none; }
.toast-close .icon { width: 16px; height: 16px; }
.toast-close:focus-visible { outline-color: var(--bg); }
.out .toast { bottom: var(--space-6); }
@media (min-width: 1024px) { .app .toast { left: calc(50% + var(--sidebar-w) / 2); bottom: var(--space-8); } }

/* ================================================================== 11 motion */
/* Motion says what happened. Transform and opacity only; nothing moves on things seen all day. */
.is-arriving > * { animation: arrive 240ms var(--ease-out) both; }
.is-arriving > :nth-child(2) { animation-delay: 30ms; }
.is-arriving > :nth-child(3) { animation-delay: 60ms; }
.is-arriving > :nth-child(4) { animation-delay: 90ms; }
.is-arriving > :nth-child(n + 5) { animation-delay: 120ms; }
.arrive:not([hidden]), .setup-detail:not([hidden]), details.more[open] > .more-body { animation: arrive 240ms var(--ease-out) both; }
.step:not([hidden]) { animation: step-in 240ms var(--ease-out) both; }
[data-dir="back"] .step:not([hidden]) { animation-name: step-back; }
.is-going { transition: opacity 180ms ease, transform 180ms ease; opacity: 0; transform: scale(0.98); pointer-events: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { from { opacity: 0; transform: translateY(-2px) rotate(-45deg) scale(0.9); } to { opacity: 1; transform: translateY(-2px) rotate(-45deg) scale(1); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes mark-in { from { transform: scale(0.8); } 60% { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes skel { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* Reduced motion keeps the changes of colour and opacity that say what happened, and drops the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn, .icon-btn, .toast, dialog.sheet, .copy-btn .icon, .otp-slots span, .mark, .dot, .segs > span { transition-property: opacity, background-color, color, box-shadow !important; }
  .btn:active:not(:disabled), .icon-btn:active { transform: none; }
  .toast { transform: translate(-50%, 0); }
  .btn[aria-busy="true"]::after { animation-duration: 600ms !important; animation-iteration-count: infinite !important; }
  .skel { animation: none; opacity: 0.8; }
}

/* ================================================================== 12 what an agent may do */
/* Two cards side by side that end together. */
@media (min-width: 1024px) {
  .cols-even { align-items: stretch; }
  /* A column of cards beside another: its last card takes what is left, so both columns end on one line. */
  .cols-even > .stack > :last-child { flex: 1 0 auto; }
  #agents { justify-content: center; }
  /* A card under both columns, as wide as the two together: nothing is left beside it. */
  .cols > .cols-wide { grid-column: 1 / -1; }
  /* Two cards that each need room for a full line: equal halves. */
  .cols-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A view that takes the overview's place: one decision, at a width its fields want. */
.view { max-width: 680px; width: 100%; margin: 0 auto; }
.view > .ink-2 { max-width: 40em; }
/* One fixed choice among a few: a radio with what it means beside it. */
.picks { display: flex; flex-direction: column; }
.pick { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; min-height: var(--row-min); }
.pick + .pick, .pick-more + .pick { border-top: 1px solid var(--line); }
.pick input { appearance: none; flex: none; width: 24px; height: 24px; margin: 2px 0 0; border: 1.5px solid var(--field-line); border-radius: var(--radius-pill); background: var(--card); display: grid; place-content: center; cursor: pointer; transition: border-color 140ms ease; }
.pick input::after { content: ""; width: 12px; height: 12px; border-radius: var(--radius-pill); background: var(--coral-strong); transform: scale(0); transition: transform 140ms var(--ease-out); }
.pick input:checked { border-color: var(--coral-strong); }
.pick input:checked::after { transform: scale(1); }
.pick input:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 2px; }
.pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); padding: 0 0 var(--space-4) calc(24px + var(--space-3)); }
.pick-more .input, .pick-more .select { height: var(--tap); }
/* A setting with a few fixed answers: its name on the left, the answers on the right; stacked on a phone. */
.opts { display: flex; flex-direction: column; }
.opts + .opts { border-top: 1px solid var(--line); }
.opt { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) 0; min-width: 0; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt .seg { align-self: flex-start; flex-wrap: wrap; }
/* Four answers do not fit a phone side by side at their own widths: they share the row evenly instead of dropping the last one to a second line. */
@media (max-width: 719px) { .opt .seg:has(> button:nth-child(4)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: stretch; } .opt .seg:has(> button:nth-child(4)) button { padding: 0 var(--space-1); } }
@media (min-width: 720px) { .opt { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--row-min); } .opt .seg { align-self: center; flex: none; flex-wrap: nowrap; } }
.view .card-foot { justify-content: flex-end; }
.view .card-foot .hint { margin-right: auto; }
/* A message a business was allowed to show: its words open under its row. */
.rows > li > .quote { margin: 0 0 var(--space-3); }
.card-end { margin-top: auto; padding-top: var(--space-4); }
.row-meta:empty { display: none; }
/* A meta line that holds one address: kept on one line, cut with an ellipsis only when the screen is too narrow for it. */
.row-meta-one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Two facts on one meta line ("a business's domain · what it may send"): side by side with a dot where there is room. */
.meta-pair > span + span::before { content: " · "; white-space: pre; }
/* On a phone a row with a lot to say keeps its text at full width: each fact has its own line, an address is never broken in two, and the row's action sits under the text, in line with it. */
@media (max-width: 599px) {
  .meta-pair { display: flex; flex-direction: column; gap: 2px; }
  .meta-pair > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .meta-pair > span + span::before { content: none; }
  .row-wrap { flex-wrap: wrap; row-gap: 0; }
  .row-wrap > .tile { align-self: flex-start; margin-top: var(--space-1); }
  .row-wrap > .row-body { flex: 1 1 calc(100% - var(--thumb) - var(--space-3)); }
  .row-wrap > .btn, .row-wrap > .pill { margin: var(--space-2) 0 var(--space-1) calc(var(--thumb) + var(--space-3)); }
  .row-wrap > .btn-quiet { margin-left: calc(var(--thumb)); margin-top: 0; }
  .row-wrap.is-settled > .pill { margin-left: 0; }
}

/* Where an agent key sends notices: under its key, in line with the key's words, its address whole and wrapping. */
.row-notices { min-height: 0; margin: 0 0 var(--space-3) calc(var(--thumb) + var(--space-3)); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); border-radius: var(--radius-thumb); background: var(--well); align-items: flex-start; }
.row-notices .row-title { font: var(--t-meta); color: var(--ink); font-weight: 500; }
.row-notices .mono { overflow-wrap: anywhere; }
.row-notices > .pill { background: var(--card); align-self: center; }
.row-notices > .btn { align-self: center; }
/* Everything said under one key is one panel: its sections share one ground, divided by a hairline, and what needs the person
   (a copy was tried, the key is paused) comes first, its title in coral. */
.key-panel { margin: 0 0 var(--space-3) calc(var(--thumb) + var(--space-3)); border-radius: var(--radius-thumb); background: var(--well); }
.key-panel > .row-notices { margin: 0; border-radius: 0; background: none; }
.key-panel > .row-notices + .row-notices { border-top: 1px solid var(--line); }
.key-panel > .row-notices.is-alert .row-title { color: var(--coral-deep); }
@media (max-width: 599px) {
  .key-panel { margin-left: 0; }
  .row-notices { margin-left: 0; }
  .row-notices > .row-body { flex: 1 1 100%; }
  .row-notices > .btn, .row-notices > .pill { margin: var(--space-2) var(--space-2) 0 0; }
}

/* ================================================================== 13 mail */
/* The list wants a little more room than an order's: a sender, a subject and what became of it. */
@media (min-width: 1024px) {
  .md.md-mail:not(.is-empty) { grid-template-columns: 420px minmax(0, 1fr); }
  /* The filters stay put; the messages scroll under them. The scroller keeps room at its sides for a row's hover ground. */
  .md-mail .md-list { overflow: hidden; }
  .mail-scroll { overflow-y: auto; min-height: 0; margin: 0 calc(-1 * var(--space-3)); padding: 0 var(--space-3); scrollbar-color: var(--edge) transparent; }
}
.mail-tools { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
/* Four answers share the card's width evenly, at any width. */
.seg-fill { display: flex; align-self: stretch; }
.seg-fill button { flex: 1 1 auto; padding: 0 var(--space-2); }
.mail-find { display: flex; gap: var(--space-2); min-width: 0; }
.mail-find .input, .mail-find .select { height: var(--tap); font-weight: 400; min-width: 0; }
.mail-find .input { flex: 1 1 0; }
.mail-find .select { flex: 0 1 164px; width: auto; text-overflow: ellipsis; background-position: calc(100% - 22px) 19px, calc(100% - 16px) 19px; }
/* A row: who and when, the subject, then what became of it and where it arrived. Each on one line. */
.mail-row { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.mail-top { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.mail-from { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-beside { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--t-meta); color: var(--ink-3); }
.mail-beside.is-kept { flex: none; }
.mail-when { flex: none; margin-left: auto; white-space: nowrap; }
.mail-subject { font: var(--t-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-gone { color: var(--ink-3); }
/* What became of a message, told apart at a glance: a small sign in front and a calm colour. What needs the person is an
 * arrow on strong ink, one treatment for every such thing; settled is a green tick on quiet words; held is the action colour's
 * round sign on ink; refused alone is the colour of a problem. Ordinary mail has no sign. */
.mail-state.is-due { color: var(--ink); font-weight: 600; }
.is-due > .mail-sign { color: var(--coral); }
svg.mail-sign { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; stroke-width: 2.25; }
.is-good > .mail-sign { color: var(--green); }
.is-held > .mail-sign { color: var(--coral); }
.is-refused > .mail-sign { color: var(--coral-deep); }
.mail-state.is-held { color: var(--ink); font-weight: 500; }
.mail-state.is-refused { color: var(--coral-deep); font-weight: 500; }
.mail-more { display: flex; justify-content: center; padding-top: var(--space-2); border-top: 1px solid var(--line); }
/* No mail at all: what to do next, and beside it a picture of what will come. The picture sits in a well, as the
 * check page in small does, because it is not something to press. */
.md.is-empty.is-first { max-width: 920px; }
.mail-first { display: grid; gap: var(--space-6); padding: var(--space-2) 0; }
.mail-first-say { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.mail-first-say .hero-sub { max-width: 26em; text-wrap: pretty; }
.mail-first-say .actions { margin-top: var(--space-2); }
.mail-first-address { align-self: stretch; padding: var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); color: var(--ink); font-size: 13px; line-height: 1.5; user-select: all; }
.btn-primary.link-btn .link-b, .btn-primary.link-btn.is-copied { color: var(--on-coral); }
.mail-eg { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-media); background: var(--well); min-width: 0; }
.mail-eg-rows { display: grid; }
.mail-eg-row { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0; min-width: 0; font: var(--t-meta); color: var(--ink-2); }
.mail-eg-row + .mail-eg-row { border-top: 1px solid var(--edge); }
.mail-eg-row:last-child { padding-bottom: var(--space-1); }
.mail-eg-who { font-weight: 500; color: var(--ink); }
@media (min-width: 1024px) {
  .md.is-empty.is-first { margin-top: clamp(0px, 6vh, 56px); }
  .md.is-first .md-list { padding: var(--space-8); }
  .mail-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10); align-items: center; padding: 0; }
  .mail-first-say .hero-statement { font: var(--t-large); letter-spacing: -0.025em; }
  .mail-eg { padding: var(--space-5); }
}
/* One message: its subject, what became of it in plain type, who and when, then its words as text. */
.mail-head { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.mail-head .hero-statement { overflow-wrap: anywhere; text-wrap: pretty; }
.mail-head .hero-statement:focus { outline: none; }
.mail-became { color: var(--ink-2); max-width: 44em; }
.mail-became b { font-weight: 600; color: var(--ink); }
.mail-became.is-refused b { color: var(--coral-deep); }
.mail-facts .dl-row { min-height: 44px; }
.mail-facts dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.mail-note { font: var(--t-meta); color: var(--ink-2); max-width: 46em; }
.mail-text { font-weight: 400; }
.mail-text:focus { outline: none; }
.mail-given-note { margin-top: var(--space-3); }

/* ================================================================== shared spaces */
/* No space yet: what it is and the one thing to do, beside a picture of what will come. The picture sits in a well, because it is not something to press. */
.first { display: grid; gap: var(--space-6); }
.first-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.first-text .ink-2 { max-width: 30em; text-wrap: pretty; }
.first-text .actions { margin-top: var(--space-2); }
.first-example { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-4) var(--space-2); border-radius: var(--radius-media); background: var(--well); min-width: 0; }
.first-example .rows > li + li { border-top-color: var(--edge); }
.first-example .tile:not(.tile-green) { background: var(--card); }
.eyebrow { font: var(--t-meta); color: var(--ink-3); }
@media (min-width: 900px) { .first { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; } }
/* Another agent's address, and what its check says: the check page in small, in a well. */
.lookup-row { display: flex; align-items: center; gap: var(--space-2); }
.lookup-row .input { flex: 1; min-width: 0; }
.lookup-row .btn { flex: none; min-height: var(--button-h); }
.lookup-says { display: flex; flex-direction: column; gap: var(--space-2); }
.lookup-says .proof { padding: var(--space-4); border-radius: var(--radius-thumb); background: var(--well); }
.group { display: flex; flex-direction: column; min-width: 0; }
.group-title { font: var(--t-row); font-weight: 600; padding-top: var(--space-2); }
.pick-more.named:not([hidden]) { display: flex; flex-direction: column; gap: var(--space-2); }
.named-list .row { min-height: var(--tap); padding: var(--space-1) 0; }
.named-list:empty { display: none; }
/* One space: its posts beside the agents in it. A post is what was said, its typed parts, who and when, then the words as text. */
.posts .row { align-items: flex-start; }
.posts .row-end { padding-top: 2px; }
.post-by { display: flex; flex-wrap: wrap; color: var(--ink-3); margin-top: 2px; }
.post-by .mono { font-size: 13px; }
.post-by > span + span::before { content: " · "; white-space: pre; }
.post-words { margin-top: var(--space-2); padding: var(--space-3) var(--space-4); font-weight: 400; }
/* Where things stand, in plain type: words kept from agents, and a business name that reads as someone else's. */
.post-held, .caution-line { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--ink); }
.post-held { margin-top: var(--space-2); }
/* Waiting to be checked is a plain status, in the quiet colour of other facts about a post. */
.post-checking { margin-top: var(--space-2); color: var(--ink-2); }
.caution-line { margin: var(--space-3) 0 0; font: var(--t-meta); }
.post-held .icon, .caution-line .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--coral-deep); }
/* What saving will do that cannot be taken back, said above the button that does it: the caution mark, ink at weight, each agreement named. */
.consequences { display: grid; gap: var(--space-3); }
.consequence { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-thumb); background: var(--coral-tint); color: var(--ink); }
.consequence > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--coral-deep); }
.consequence-body { display: grid; gap: var(--space-2); min-width: 0; }
.consequence-title { font: var(--t-row); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.consequence-list { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; font: var(--t-body); color: var(--ink); }
.consequence-list strong { font-weight: 600; overflow-wrap: anywhere; }
.consequence-after { font: var(--t-meta); color: var(--ink); }
.dl-tight .dl-row { grid-template-columns: 132px minmax(0, 1fr); min-height: 44px; }
.dl-tight .dl-row > span { display: none; }
@media (max-width: 599px) { .dl-tight .dl-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--space-2) 0; } }
.pick input[type="checkbox"] { border-radius: 7px; }
.pick input[type="checkbox"]::after { border-radius: 3px; }
/* An agent in the space: one row, its address on one line (cut with an ellipsis, never broken), and what can be done to it as a quiet button at the row's end. On a phone the button sits under the text, in line with it, as on Agents. */
.members .row { align-items: center; }
.members .row-title.mono { overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.members .row > .btn { flex: none; min-height: 36px; padding: 0 var(--space-3); }
@media (min-width: 600px) { .members .row { flex-wrap: nowrap; } .members .row-body { flex: 1 1 0; min-width: 0; } }
@media (min-width: 1024px) { .cols-space { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); } }
.optional { margin-left: var(--space-1); font-weight: 400; color: var(--ink-3); }
.says { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.note-row { align-items: center; }
.note-row .note-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); }
.note-row .note-words { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.note-row .actions { margin-top: 0; }
.setting-in { border-top: 1px solid var(--line); margin-top: var(--space-2); padding-top: var(--space-3); }
.space-foot { display: flex; flex-direction: column; gap: var(--space-2); }
.space-foot .actions { margin-top: var(--space-1); }
.phead-back { min-height: 28px; font-size: 13px; }
@media (min-width: 1024px) { .phead-back { align-self: baseline; min-height: 0; font-size: 15px; } .phead-back .icon { align-self: center; } .phead-back + .phead-title { padding-left: var(--space-4); border-left: 1px solid var(--edge); } }
@media (max-width: 599px) { .posts .row-wrap > .row-end { flex-direction: row; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-1) calc(var(--thumb) + var(--space-3)); } }
.post-by { gap: 0 var(--space-3); }
.post-by > span + span::before { content: none; }
.post-by .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.note-row { align-items: flex-start; }
@media (min-width: 720px) { .note-row { align-items: center; } }

/* Three rungs of proof do not fit on one line of a phone: they stack, each the full width, instead of breaking after the second. */
@media (max-width: 599px) { #lim-minLevel, #lim-ruleLevel { display: flex; flex-direction: column; flex-wrap: nowrap; align-self: stretch; } #lim-minLevel button, #lim-ruleLevel button { justify-content: flex-start; text-align: left; } }
/* An agent a person named: its address and "Remove" on one line, at every width. */
.named-list .row { flex-wrap: nowrap; align-items: center; }
.named-list .row > .row-body { flex: 1 1 0; min-width: 0; }
.named-list .row .row-title { overflow-wrap: anywhere; }
.named-list .row > .btn { flex: none; margin: 0; }
/* A space in the list, on a phone: what there is to say about it ("Your agent is paused", "1 invitation out") goes under its lines, so it never squeezes them. */
@media (max-width: 599px) { #space-list .row:has(.row-end > .pill) { flex-wrap: wrap; row-gap: var(--space-2); } #space-list .row-end:has(> .pill) { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: flex-start; padding-left: calc(var(--thumb) + var(--space-3)); } #space-list .row-end:has(> .pill) .row-chev { display: none; } }
/* A conversation: the answers under what the agent sent, and the note a person can add for their agent. */
.mail-answers { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-4); border-top: 1px solid var(--line); min-width: 0; }
.mail-answers .row { min-height: 56px; }
/* The answers to "a store replied": each one with what it does, one under the other at every width. */
.answers { gap: 0; max-width: var(--field-max); }
.answers legend { margin-bottom: var(--space-1); }
.answer { align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; }
.answer + .answer { border-top: 1px solid var(--line); }
.answer-text { display: flex; flex-direction: column; gap: 2px; }
.answer-text b { font-weight: 600; color: var(--ink); }
.answer-text span { font: var(--t-meta); font-weight: 400; color: var(--ink-2); }
textarea.input.dec-note { height: auto; min-height: 76px; padding: var(--space-3) var(--space-4); font-weight: 400; line-height: 1.45; resize: vertical; }

/* My details, and the two decisions about them. */
/* Two short fields side by side where there is room; one under the other on a phone. Neither is wider than a field may be. */
.field-pair { display: grid; gap: var(--space-4); width: 100%; max-width: var(--field-max); }
@media (min-width: 600px) { .field-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* A way to do something, inside a sentence: it reads as a link and is a button. */
.linklike { font: inherit; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; padding: 0; min-height: 0; }
.linklike:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 2px; border-radius: 4px; }
/* A row with several quiet things to do: they sit together at its end, and under its text on a phone. */
.row-acts { flex: none; gap: 0; }
@media (max-width: 599px) { .row-wrap > .row-acts { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; margin-left: calc(var(--thumb)); } }
.row-meta.is-shown { color: var(--ink); font-weight: 500; }
/* A select or a field small enough to sit inside a line of a decision. */
.select-sm, .input-sm { height: var(--tap); width: auto; max-width: 100%; min-width: 132px; font-size: 15px; }
.answer .row-meta .select-sm { margin-left: var(--space-1); }
.answer-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); min-height: var(--row-min); }
.answers > .answer + .answer { border-top: 1px solid var(--line); }
.answers > .answer { padding: var(--space-2) 0; }
/* The lines of one decision about several things: each with its own yes or no. */
.lines { display: flex; flex-direction: column; }
.lines > * + * { border-top: 1px solid var(--line); }
.line > .choices { padding: 0 0 var(--space-3); }
.line > .choices[hidden] { display: none; }
.lines > .field { padding: var(--space-3) 0; max-width: none; }
/* Inside the lines of one decision, the hairline between lines is the list's own: a line's heading adds none. */
.lines .setting-in { border-top: 0; margin-top: 0; padding-top: var(--space-2); }
/* What is picked for each thing asked spans the card, as the facts above it do. */
#dec-card .answers { max-width: none; }
/* A tick for a detail, with the address to send beside it when there is more than one: one control for each thing. */
.answer-q > .check { flex: 1 1 240px; min-width: 0; align-items: flex-start; min-height: 0; }
.answer-q > .check input { margin-top: 1px; }
.answer-q > .select-sm:disabled { opacity: 0.5; }
/* The address form: the card is as wide as its fields want, and the fields fill it. No empty strip beside them. */
.view-form { max-width: 560px; }
.view-form .field, .view-form .field-pair { max-width: none; }
/* By mail, the one address the answer is written to: said plainly, above the button that sends it. */
.goes-to { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); min-width: 0; }
.goes-to-line { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; font: var(--t-body); font-weight: 500; color: var(--ink); min-width: 0; }
.goes-to-line .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink-2); }
.goes-to .row-meta { margin: 0; }
.break { overflow-wrap: anywhere; }
/* A title with one plain word about its state beside it ("Usual address", "Could not be sent"). */
.title-pill { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
/* What was picked changed before the yes: the card says so where its buttons were. */
.card-foot > .problem { flex: 1 1 240px; margin: 0; }

/* ---- A phone's bar is fixed over the page: nothing that matters sits under it --------------------------------------------
   The page already ends below the bar (.page's bottom padding). Two more things hold on every page: whatever is scrolled into
   view (a focused control, a selected item's title) stops clear of both bars, and the actions of a selected item (the foot of
   its card: Accept and Decline, Send, Skip) stay in sight just above the bar while the rest of the card scrolls behind them. */
html { scroll-padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + var(--space-4)); scroll-padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--space-4)); }
@media (max-width: 1023px) {
  .md-detail .card > .card-foot { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 5; margin: 0 calc(-1 * var(--space-5)); padding: var(--space-3) var(--space-5); background: var(--card); box-shadow: 0 -1px 0 var(--line); }
  .md-detail .card > .card-foot:last-child { margin-bottom: calc(-1 * var(--space-5)); border-radius: 0 0 var(--radius-card) var(--radius-card); }
}

/* ---- An offer: where it stands, what to look at first, and what the store was told ----------------------------------- */
.is-open > .mail-sign { color: var(--ink-2); }
.is-past > .mail-sign { color: var(--ink-3); }
.mail-state.is-past { color: var(--ink-2); }
.look-first { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); }
.look-first > .label { margin: 0; }
.look-first .caution-line { margin: 0; font: var(--t-body); }
.told { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; color: var(--ink); font: var(--t-body); }
.told .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.told.is-told .icon { color: var(--green); }
.settled-head { display: flex; align-items: center; gap: var(--space-3); }
.settled-head .card-title { margin: 0; }
.md-list .rows > li > .row.is-settled[aria-current="true"] { background: var(--well); border-radius: var(--radius-thumb); }
#buy-tell[hidden] { display: none; }
#offer-detail[hidden], #order-cards[hidden] { display: none; }
#order-cards { display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 1024px) { #order-cards { gap: var(--space-5); } }
#offer-list .row[aria-current="true"] { background: var(--well); }
#offer-list .row[aria-current="true"] .row-title { font-weight: 600; }
/* Account: closing the account, and the daily summary's hours. */
.when { display: flex; flex-direction: column; gap: var(--space-1); }
.when-title { font: var(--t-row); font-weight: 600; color: var(--ink); }
.when .points { margin-top: 0; }
.settings-in { border-top: 1px solid var(--line); }
.setting .select-sm { flex: none; }
.quiet-form .select-sm { min-width: 0; width: 118px; }
@media (max-width: 599px) {
  #quiet-range { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* Addresses: the person's lists of who is blocked and who is allowed. */
.list-group { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.more-body > .list-group:first-child { border-top: 0; padding-top: var(--space-1); }
.list-rows .row { min-height: var(--tap); padding-block: 2px; }
.list-none { color: var(--ink-3); font: var(--t-meta); }
.list-add { display: flex; gap: var(--space-2); width: 100%; max-width: var(--field-max); }
.list-add .input { flex: 1 1 auto; min-width: 0; width: auto; }

/* Account, in a few sections: each has a plain heading, and one card that holds its settings as rows. */
.acct { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.acct + .acct, .flat + .acct { margin-top: var(--space-2); }
.acct-title { font: var(--t-row); font-weight: 600; color: var(--ink-2); padding: 0 var(--space-1); }
.acct .card { padding-block: var(--space-3); }
.acct .setting > .btn, .acct .setting > .seg, .acct .setting > .select-sm { flex: none; }
.acct h3.row-title { font-weight: 600; }
/* Rows that belong to the setting above them: the passkeys, the entries of the record. */
.rows-in { border-top: 1px solid var(--line); }
.rows-in:empty { display: none; }
.setting-next { border-top: 1px solid var(--line); }
.codes-panel { padding: var(--space-2) 0 var(--space-3); }
/* A row of the record: its words wrap, its date and its mark never break. */
.acct .row-meta { text-wrap: pretty; }
/* What is wrong with the hours, said at the fields, with what would work. */
.field-problem { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); margin: var(--space-2) 0; border-radius: var(--radius-thumb); background: var(--coral-tint); }
.field-problem .problem { color: var(--coral-deep); }
.field-problem .actions { flex-wrap: wrap; }
.field-problem .btn-secondary { background: var(--card); }
.select[aria-invalid="true"] { border-color: var(--coral-deep); }
.digest-zone { padding: var(--space-2) 0; }
/* A setting that cannot be changed now looks it. */
.seg button:disabled { opacity: 0.45; cursor: default; }
.seg button:disabled[aria-pressed="true"] { box-shadow: none; }
.select:disabled { opacity: 0.5; cursor: default; }
/* Appearance is a preference of this device, not of the account: one small line at the foot. */
.acct-small { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-1) 0; }
.acct-small-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); font: var(--t-meta); font-weight: 600; color: var(--ink-2); }
.acct-small-label .hint { font-weight: 400; }
.hero-small { font: var(--t-meta); }
@media (max-width: 599px) {
  .acct .setting { flex-wrap: wrap; row-gap: var(--space-2); }
  .acct .setting > .setting-text { flex: 1 1 190px; }
}

/* The one line a page shows in place of what cannot be started now, with the way back. */
.stopped { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); color: var(--ink-2); font: var(--t-body); }
.stopped { text-wrap: wrap; }
.stopped .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); }
.stopped a { color: var(--coral-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.stopped a:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 2px; border-radius: 4px; }
.mail-first.is-stopped { display: block; }
.mail-first.is-stopped .stopped { margin-top: var(--space-3); max-width: 44em; }
.mail-first.is-stopped .mail-first-say { max-width: none; }
/* A message's own actions, together at its foot. */
.mail-foot { justify-content: flex-start; gap: var(--space-1) var(--space-3); }
.mail-foot .btn .icon { width: 16px; height: 16px; }
@media (max-width: 599px) {
  .acct #quiet-range > .setting-text { flex: none; }
}

/* Addresses for stores: the choice of what is sent on sits beside its words; on a phone it has a line of its own, wide enough for every choice. */
.store-pick { display: flex; align-items: center; gap: var(--space-2); }
.store-choice { width: auto; flex: none; }
@media (max-width: 599px) { .store-end { flex-wrap: wrap; } .store-pick { flex: 1 1 100%; } .store-choice { flex: 1 1 auto; } }

/* An (i) beside a title or a line: the explanation, one tap away (the brief's "few words", Nov 29, 2026). */
.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 2px; }
.tip-btn { position: relative; inline-size: 28px; block-size: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0; }
/* A 44px target around the 28px circle, so it is easy to tap and moves nothing. */
.tip-btn::before { content: ''; position: absolute; inset: -8px; }
.tip-btn .icon { inline-size: 16px; block-size: 16px; }
.tip-btn:hover, .tip-btn[aria-expanded="true"] { color: var(--ink); background: var(--well); }
.tip-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.tip-body { position: absolute; z-index: 40; top: calc(100% + 6px); left: -6px; inline-size: max-content; max-inline-size: min(300px, calc(100vw - 2 * var(--gutter))); padding: 10px 12px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); font: var(--t-meta); font-weight: 400; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; }
.tip-line { display: block; }
.tip-line + .tip-line { margin-top: 6px; }
.card-title-row { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.rung-head .tip { margin-right: auto; }
.tip-body[hidden] { display: none !important; }
.row-meta .tip, .row-title .tip, .note-title .tip { display: inline-flex; }
/* A title with its (i), outside the heading itself; and an (i) beside a choice, outside its label. */
.title-row { display: flex; align-items: center; gap: 2px; }
.pick-wrap { position: relative; }
.pick-wrap > .tip { position: absolute; top: 10px; right: 10px; }
.step-head > .tip { margin-left: -2px; }

/* ================================================================== 12 D-450: the console's pages, shown and not explained
 * Agents, Mail, Addresses, Shared spaces, Account, Identity, sign-in and the landing page. Status is a pill, a reason is behind
 * an (i), a choice that is made is marked in ink. Placeholders and titles are in the sans; the monospace is for values only. */

/* Type: a placeholder is a hint, never a value. */
.input.mono::placeholder { font-family: var(--font); font-weight: 400; letter-spacing: 0; }
.input::placeholder { color: var(--ink-3); opacity: 1; }

/* A choice that is made is marked in ink: the selected side of every small segmented control (Off/On, Never/Ask me). */
.seg-sm button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.seg-sm button[aria-pressed="true"]:disabled { background: var(--edge); color: var(--ink); }

/* Pills: a quiet one for what is not set up, one for what is held back, and a small one beside a name. */
.pill .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.pill-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.pill-held { background: var(--well); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.pill-xs { min-height: 20px; padding: 0 8px; font: var(--t-tab); }
.pill-ok .icon { color: var(--green); }

/* Illustrations (D-451): only where one replaces words. */
.art { display: block; width: 160px; height: auto; flex: none; }
@media (min-width: 1024px) { .art { width: 200px; } }

/* ---- Agents: keys beside what the agent may do. The shorter card does not stretch: it stays in view beside a long list. */
.cols-agents { align-items: start; }
@media (min-width: 1024px) { .cols-agents > .rules-card { position: sticky; top: calc(var(--phead-h) + var(--space-6)); } }
@media (max-width: 1023px) { .cols-agents > .rules-card { order: -1; } }
.key-row { align-items: center; min-height: var(--row-min); }
button.key-row .row-end { flex-direction: row; align-items: center; gap: var(--space-2); }
.key-row .row-chev { transition: transform 200ms var(--ease-out); }
.key-row[aria-expanded="true"] .row-chev { transform: rotate(90deg); }
.key-row.is-gone .row-title, .key-row.is-gone .row-meta { color: var(--ink-3); }
.key-panel:not([hidden]) { animation: arrive 240ms var(--ease-out) both; }
.key-panel-foot { display: flex; justify-content: flex-end; padding: var(--space-1) var(--space-2); border-top: 1px solid var(--line); }
.key-panel-foot .btn .icon { width: 16px; height: 16px; }
details.more-inline > summary { min-height: 32px; }
details.more-inline > .more-body { flex-direction: row; align-items: center; gap: var(--space-2); padding-bottom: 0; }
details.more-inline > .more-body .mono { flex: 1; min-width: 0; }
.keys-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-2) 0; }
.key-pills { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: 6px; }

/* ---- Mail: rows that lead with who, a status pill and an address chip, filed under the day. */
.mail-line { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin-top: 2px; }
.mstat { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px 0 7px; border-radius: var(--radius-pill); background: var(--well); font: 500 13px/1.2 var(--font); color: var(--ink-2); white-space: nowrap; overflow: hidden; max-width: 100%; flex: 0 1 auto; min-width: 0; }
.mstat > span { overflow: hidden; text-overflow: ellipsis; }
.mstat > svg.mail-sign { width: 14px; height: 14px; margin: 0; vertical-align: 0; flex: none; }
.mstat.is-due { background: var(--coral-tint); color: var(--ink); }
.mstat.is-good { background: var(--green-tint); color: var(--ink); }
.mstat.is-refused { background: var(--coral-tint); color: var(--coral-deep); }
.mchip { display: inline-flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; max-width: 45%; font: var(--t-meta); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.mchip > span { overflow: hidden; text-overflow: ellipsis; }
.mchip .icon { width: 14px; height: 14px; flex: none; }
.md-mail .rows > li.rows-head { padding: var(--space-3) 0 var(--space-1); }
.md-mail .rows > li.rows-head:first-child { padding-top: var(--space-2); }
.mail-became { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.mail-became .mstat { font-size: 15px; min-height: 30px; padding: 0 12px 0 10px; }
.mail-became .mstat > svg.mail-sign { width: 16px; height: 16px; }
.mail-code { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-thumb); background: var(--well); }
.mail-code .bigcode { flex: 1; min-width: 0; color: var(--ink); }
.mail-code .hint { flex: none; }
.mail-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.mail-foot .btn .icon { width: 16px; height: 16px; }
.mail-told { display: inline-flex; align-items: center; gap: var(--space-2); margin-right: auto; font: var(--t-meta); color: var(--ink-2); }
.mail-told > .icon { width: 16px; height: 16px; color: var(--ink-3); }
.mail-dock > .btn { flex: 1 1 auto; }
.mail-first .art { justify-self: center; }
/* The list stays beside the message while the page scrolls; what runs on below its edge fades rather than being cut. */
@media (min-width: 1024px) {
  .md-mail .mail-scroll { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); padding-bottom: var(--space-10); }
}
/* On a phone a message takes the whole page: the page's own head steps aside, "Mail" leads back, and the one filled button
   stays just above the bar. Download and Block stay with the message. */
@media (max-width: 1023px) {
  body.is-reading[data-page="mail"] .phead { display: none; }
  .md-mail .md-detail > .back { align-self: flex-start; min-height: var(--tap); display: inline-flex; align-items: center; gap: var(--space-1); }
}

/* ---- Addresses: one button for copy and link, a menu beside it. */
.address-line { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.address-line .address-big { min-width: 0; }
.address-line .copy-btn { margin: -6px 0; }
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; min-width: 196px; padding: var(--space-1); border-radius: var(--radius-thumb); background: var(--card); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-3); border-radius: 8px; font: 500 15px/1 var(--font); color: var(--ink); text-align: left; white-space: nowrap; }
.menu-item .icon { width: 18px; height: 18px; color: var(--ink-2); }
.menu-item:hover, .menu-item:focus-visible { background: var(--well); outline: none; }
.proof-line-text { display: inline-flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }

/* ---- Shared spaces: rows of one height, their end centred; the space's address and its ways out at the foot of its card. */
.space-row { min-height: var(--row-min); }
#space-list .row-end { flex-direction: row; align-items: center; gap: var(--space-2); }
.invite-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-1); }
.post-flag { display: inline-flex; align-items: center; }
.space-foot { flex-direction: column; align-items: stretch; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.space-foot-head { display: flex; align-items: center; gap: 2px; }
.space-foot .actions { gap: var(--space-1) var(--space-2); }

/* ---- Account: which clock the hours are on, as a chip on the field. */
.zone-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); margin-top: var(--space-1); }
.zone-line[hidden] { display: none; }
.zone-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px 0 7px; border-radius: var(--radius-pill); background: var(--well); color: var(--ink); font: 500 13px/1 var(--font); }
.zone-chip .icon { width: 14px; height: 14px; }

/* ---- Identity: a rung keeps its pill and one line; what a business sees is said once, then each address with its pill. */
.rung-note { font: var(--t-meta); color: var(--ink-2); margin-top: 2px; }
.seen-one { padding: var(--space-1) 0 var(--space-3); }
.seen-quote { font: var(--t-row); color: var(--ink); text-wrap: balance; }
.seen-pills { display: flex; align-items: center; gap: 2px; margin-top: 4px; }

/* ---- Sign-in: the hint above the button, and the other way in under a line. */
.signin-hint { display: flex; align-items: center; gap: 2px; margin-bottom: calc(-1 * var(--space-4)); }
.or { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-3); font: var(--t-meta); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join .form-title { font: var(--t-section); letter-spacing: -0.015em; }

/* ---- The wordmark: a coral tile holding a sealed envelope. */
.wordmark { font: 600 18px/1 var(--font); letter-spacing: -0.02em; gap: 9px; }
.wordmark-mark { width: 28px; height: 28px; flex: none; }
.wordmark-mark rect { fill: var(--coral); }
.wordmark-mark path { fill: none; stroke: #ffffff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- The landing page: the promise beside a drawing, the console in small, and the check below. */
.hero .actions { margin-top: var(--space-2); align-items: center; }
.hero .actions .btn { margin-top: 0; }
.hero-art { width: 100%; max-width: 520px; height: auto; display: block; }
.shots { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.hero-check { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space-8); }
@media (min-width: 1024px) {
  .hero-check .checker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-10); align-items: start; padding: var(--space-8); }
  .hero-check .checker > :not(.checker-shows) { grid-column: 1; }
  .hero-check .checker > .checker-shows { grid-column: 2; grid-row: 1 / span 4; }
}
.shot { margin: 0; min-width: 0; }
.shot-frame { display: grid; grid-template-columns: 132px minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-lift); font: var(--t-meta); color: var(--ink-2); user-select: none; }
.shot-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--chrome); border-right: 1px solid var(--line); }
.shot-brand { display: flex; align-items: center; gap: 7px; padding: 2px 6px 12px; font: 600 15px/1 var(--font); color: var(--ink); letter-spacing: -0.02em; }
.shot-brand .wordmark-mark { width: 22px; height: 22px; }
.shot-nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font: 500 13px/1 var(--font); color: var(--ink-2); }
.shot-nav .icon { width: 16px; height: 16px; }
.shot-nav.is-on { background: var(--coral-tint); color: var(--coral-deep); }
.shot-count { margin-left: auto; min-width: 18px; padding: 2px 5px; border-radius: 999px; background: var(--coral); color: var(--on-coral); font: 600 11px/1.2 var(--font); text-align: center; }
.shot-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0; }
.shot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shot-title { font: 600 18px/1.2 var(--font); color: var(--ink); letter-spacing: -0.015em; }
.shot-sub { color: var(--ink-3); white-space: nowrap; }
.shot-hero { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--hero-bg); color: var(--hero-ink); }
.shot-eyebrow { font: var(--t-tab); letter-spacing: 0.04em; text-transform: uppercase; color: var(--hero-sub); }
.shot-ask { font: 600 18px/1.2 var(--font); letter-spacing: -0.015em; }
.shot-from { color: var(--hero-sub); }
.shot-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.shot-money { font: 600 23px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.shot-btn { padding: 8px 16px; border-radius: 999px; background: var(--coral); color: var(--on-coral); font: 600 13px/1 var(--font); }
.shot-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shot-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.shot-card-title { font: 600 13px/1.2 var(--font); color: var(--ink); }
.shot-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shot-tile { display: grid; place-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--well); color: var(--ink-2); flex: none; }
.shot-tile .icon { width: 16px; height: 16px; }
.shot-tile.is-green { background: var(--green-tint); color: var(--green); }
.shot-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.shot-text b { font-weight: 500; color: var(--ink); }
.shot-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.shot-code { margin-left: auto; font: 600 13px/1 var(--font-code); letter-spacing: 0.06em; color: var(--ink); }
.shot-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.shot-pill { padding: 3px 8px; border-radius: 999px; background: var(--well); font: 500 11px/1.2 var(--font); color: var(--ink-2); }
.shot-pill.is-on { background: var(--green-tint); color: var(--green); }
@media (max-width: 599px) {
  .shot-frame { grid-template-columns: minmax(0, 1fr); }
  .shot-side { display: none; }
  .shot-cards { grid-template-columns: minmax(0, 1fr); }
}
.shot-band { width: 100%; max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space-10); }
.first-art { width: 100%; max-width: 360px; justify-self: center; }
.hero-art { justify-self: center; }
.mail-told { flex: 1 1 100%; }
.key-panel > .row-notices { flex-wrap: wrap; column-gap: var(--space-3); } .key-panel > .row-notices > .row-body { flex: 1 1 240px; }
/* The ink card on Home and the hero in small: in dark its ground sits near a coral note, so it carries a coral edge (D-450). */
.hero-card.is-due, .shot-hero { box-shadow: 0 0 0 1px var(--hero-edge), var(--shadow-lift); }

/* ---- The top of every page is one designed frame (D-450). The page header is a surface with an edge under it, never a title
 * floating on the canvas. On a desktop: the band on --card, a hairline under it, a soft shadow once the page scrolls beneath it.
 * On a phone: the bar and the header are one surface on --chrome; the large title scrolls away under the bar, and the bar
 * takes the page's name, small and centred, with its edge. */
.phead { background: var(--chrome); border-bottom: 1px solid var(--line); }
.phead-in { padding: var(--space-2) var(--gutter) var(--space-4); }
.app .topbar { border-bottom-color: transparent; background: var(--chrome); transition: border-color 200ms ease, box-shadow 200ms ease; }
.topbar-title { position: absolute; left: 50%; bottom: 0; height: var(--topbar-h); display: flex; align-items: center; transform: translate(-50%, 4px); max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
body.phead-off .topbar { border-bottom-color: var(--line); box-shadow: 0 8px 16px -14px rgba(16, 24, 40, 0.4); }
body.phead-off .topbar-title { opacity: 1; transform: translate(-50%, 0); }
body.phead-off .topbar .wordmark { font-size: 0; gap: 0; }
@media (prefers-reduced-motion: reduce) { .topbar-title { transition: none; } }
@media (min-width: 1024px) {
  .phead { background: var(--card); border-bottom: 1px solid var(--line); }
  .phead.is-stuck { box-shadow: 0 10px 20px -16px rgba(16, 24, 40, 0.35); }
  .phead-in { padding: 0 var(--gutter); }
}

/* ---- Addresses: the address is a title in the sans; the domain quieter. Everything that can be done to it is in its menu,
 * and ending it is the menu's last item, in the colour of what cannot be undone. */
.address-line .address-big { font: 600 18px/1.3 var(--font); letter-spacing: -0.01em; }
.address-line .address-domain { color: var(--ink-3); font-weight: 500; }
.menu-item.is-danger { margin-top: var(--space-1); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--coral-deep); }
.menu-item.is-danger .icon { color: var(--coral-deep); }
.address-foot { justify-content: flex-end; }

/* ---- One column, one grid (D-450). The header's title and action share the content's left and right edges on every page:
 * the band runs across the panel, its inside is as wide as the page's own content. The title is the page's largest type. */
.nav { border-color: var(--line); }
@media (min-width: 1024px) {
  .nav { background: var(--card); }
  .phead-in { max-width: calc(var(--container) + 2 * var(--gutter)); }
  .phead-title { font: var(--t-large); letter-spacing: -0.025em; }
  .phead-text::after { font: var(--t-large); }
}

/* ---- A card's header is set off from its body by a hairline. */
.card > .card-head:first-child { margin: calc(-1 * var(--space-1)) 0 var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.card > .card-head:first-child + .rows, .card > .card-head:first-child + .dl { margin-top: 0; }

/* ---- Underline tabs: Mail's filters. An accent bar under the one chosen, a hairline under the row. */
#mail-show { display: flex; gap: var(--space-4); padding: 0; border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
#mail-show button { flex: none; min-height: var(--tap); padding: 0 2px; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink-2); font: 500 15px/1 var(--font); border-bottom: 2px solid transparent; }
#mail-show button[aria-pressed="true"] { color: var(--ink); font-weight: 600; background: transparent; box-shadow: none; border-bottom-color: var(--coral); }
#mail-show button:hover { color: var(--ink); }
.mail-tools { border-bottom: 0; padding-bottom: var(--space-2); gap: var(--space-3); }

/* ---- Account is settings: a menu of its sections on the left, the active one marked, its cards on the right. */
.acct-nav { display: none; }
@media (min-width: 1024px) {
  .is-settings #account-overview { display: grid; grid-template-columns: 232px minmax(0, 1fr); column-gap: var(--space-6); row-gap: var(--space-5); align-items: start; }
  .is-settings #account-overview > * { grid-column: 2; }
  .is-settings #account-overview > .acct-nav { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: calc(var(--phead-h) + var(--space-8)); display: flex; flex-direction: column; padding: var(--space-2); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); }
  .is-settings #account-overview > .acct + .acct { margin-top: 0; }
  .is-settings .view { max-width: 680px; }
}
.acct-link { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-3); border-radius: 10px; color: var(--ink-2); text-decoration: none; font: 500 15px/1 var(--font); position: relative; }
.acct-link .icon { width: 20px; height: 20px; color: var(--ink-3); }
.acct-link:hover { background: var(--well); color: var(--ink); }
.acct-link[aria-current="true"] { background: var(--well); color: var(--ink); font-weight: 600; }
.acct-link[aria-current="true"] .icon { color: var(--coral-deep); }
.acct { scroll-margin-top: calc(var(--phead-h) + var(--space-6)); }
.acct-title { scroll-margin-top: calc(var(--phead-h) + var(--space-8)); }

/* ================================================================== 13 scan, don't read (D-449: Home, Decisions, Stores) */
/* The owner's three lenses: show rather than explain, lists built for scanning (tiles, monograms, figures, grouping), and an edge
 * case as a pill, an (i) or a muted row rather than a box of text. */

/* A store's or a business's monogram: its letters on one of six tones, picked by its domain (public/monogram.js). */
.tile-mg { font: 600 16px/1 var(--font); letter-spacing: 0.01em; }
.mg-1 { background: var(--mg-1); color: var(--mg-1-ink); }
.mg-2 { background: var(--mg-2); color: var(--mg-2-ink); }
.mg-3 { background: var(--mg-3); color: var(--mg-3-ink); }
.mg-4 { background: var(--mg-4); color: var(--mg-4-ink); }
.mg-5 { background: var(--mg-5); color: var(--mg-5-ink); }
.mg-6 { background: var(--mg-6); color: var(--mg-6-ink); }
.tile-mg-big { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }

/* Home: a row of the strip with its own button, the action at the row's end (under the text on a phone). */
.alert-row { display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); row-gap: var(--space-2); padding: var(--space-3) 0; }
.alert-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert-text .note-title { font: var(--t-row); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.alert-line { font: var(--t-meta); color: var(--ink-2); overflow-wrap: anywhere; }
.alert-act { display: flex; justify-content: flex-end; }
@media (max-width: 599px) {
  .alert-row { grid-template-columns: var(--thumb) minmax(0, 1fr); align-items: start; }
  .alert-act { grid-column: 2; justify-content: flex-start; margin-left: calc(-1 * var(--space-1)); }
}

/* The dark card that asks for the person: warm ink with a coral edge in the dark, so it never melts into a coral note. */
.hero-card.is-due { box-shadow: 0 0 0 1px var(--hero-edge), var(--shadow-lift); }

/* One of Home's two cards alone takes the whole width. */
.cols.cols-one { grid-template-columns: minmax(0, 1fr); }

/* Someone new: three steps in the identity card, the one in hand with its button. */
.start-steps { margin-top: var(--space-1); }
.start-steps > li:first-child { padding-top: 0; }
.start-steps .is-done > .setup-row .setup-title { color: var(--ink-2); font-weight: 500; }
.start-steps .is-done .setup-hint { color: var(--ink-3); }
.start-steps .setup-hint { grid-row: 2; }
@media (max-width: 599px) { .start-steps .setup-row > .setup-state:not(:empty) { grid-row: 3; margin-top: var(--space-2); margin-left: 0; } }

/* Decisions: a row is who, what in a few words, then the amount in figures and how long is left, at the end. Tiles are neutral;
 * coral is only the time running out. */
.dec-row { align-items: center; }
.row-meta-two { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.dec-row > .row-end { min-width: 64px; }
.dec-row > .row-end .row-amount { font-weight: 600; }
.dec-money { font: var(--t-title); letter-spacing: -0.02em; color: var(--ink); margin: 2px 0; font-variant-numeric: tabular-nums; }
.pill-new { background: var(--well); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.new-biz { display: flex; align-items: center; gap: var(--space-1); }
.says > .tip { margin-left: -4px; }
/* On a wide screen the queue keeps its place while the decision scrolls: its rows scroll under the tabs, and a fade says there
 * is more below until the end is reached. */
@media (min-width: 1024px) {
  .md-dec > .md-list { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
  .md-dec > .md-list > .card-head { flex: none; }
  .md-dec #approval-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--space-3) var(--space-5); margin: 0 calc(-1 * var(--space-3)); scrollbar-width: thin; }
  /* The two panes fill the screen under the header band: the queue and the decision each scroll on their own. */
  .page:has(> .md-dec) { padding-bottom: var(--space-8); }
  .md-dec { height: max(520px, calc(100dvh - var(--phead-h) - 1px - 2 * var(--space-8))); align-items: stretch; }
  .md-dec.is-empty { height: auto; }
  .md-dec > .md-list { position: static; top: auto; height: 100%; max-height: none; }
  .md-dec.is-empty > .md-list { height: auto; }
  .md-dec > .md-detail { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 6px; margin: -4px -6px -6px; scrollbar-width: thin; }
  .md-dec.has-more #approval-list { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
}
/* On a phone, the two answers share the foot equally, above the bar. */
@media (max-width: 1023px) {
  .md-dec .md-detail .card > .card-foot { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .md-dec .md-detail .card > .card-foot > :not(.actions):empty { display: none; }
  .md-dec .md-detail .card > .card-foot > .actions { display: flex; flex-wrap: wrap; width: 100%; }
  .md-dec .md-detail .card > .card-foot > .actions > .btn { flex: 1 1 0; min-width: 120px; justify-content: center; }
}

/* Stores: a monogram beside the store's name in its header; a live code as the thing itself, large, with copy beside it. */
.store-title { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; }
.store-mark:empty { display: none; }
@media (min-width: 1024px) { .store-mark .tile-mg-big { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; } .store-title { align-self: center; } }
.code-chip { align-self: flex-start; max-width: 100%; padding: 4px 12px; border-radius: 10px; background: var(--well); color: var(--ink); font: 600 19px/1.3 var(--font-code); letter-spacing: 0.06em; overflow-wrap: anywhere; }
.code-row .row-body { gap: var(--space-1); }
.live-none { padding: var(--space-3) 0; color: var(--ink-3); font: var(--t-meta); }
/* What ended is the card's last, quiet row, folded. */
.ended-fold { margin-top: var(--space-2); padding-top: var(--space-1); border-top: 1px solid var(--line); }
.card > details.more.ended-fold { margin-bottom: calc(-1 * var(--space-2)); }

/* Amail's own drawings (D-451), only where one takes the place of words: the first step, nothing waiting, an empty list. */
.art { display: block; width: 160px; max-width: 100%; height: auto; flex: none; }
.empty-art { align-items: center; text-align: center; padding: var(--space-6) 0; }
.empty-art .art { margin-bottom: var(--space-3); }
.empty-art p:not(.row-title) { margin: 0 auto; }
.art-start { width: 120px; margin-bottom: calc(-1 * var(--space-2)); }
.art-inline { width: 96px; }
@media (min-width: 1024px) { .art { width: 200px; } .art-start { width: 132px; } .art-inline { width: 104px; } }
/* Between 1024 and 1280 the sidebar leaves the decision little room: a narrower queue, and each detail's label over its value. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .md-dec { grid-template-columns: 340px minmax(0, 1fr); }
  .md-dec .md-detail .dl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .md-dec .md-detail .dl-row > dt, .md-dec .md-detail .dl-name { grid-column: 1 / -1; margin-bottom: -6px; }
}

/* Precision pass (D-449, against the owner's reference of a professional app): underline tabs, hairline rows, a detail page with
 * a narrow side card of actions, and an empty state as a drawing and one sentence centred in its card. */
.utabs { display: flex; align-items: stretch; gap: var(--space-6); width: 100%; border-bottom: 1px solid var(--line); }
.utabs > button { position: relative; min-height: var(--tap); padding: 0 2px; color: var(--ink-2); font: 500 15px/1 var(--font); }
.utabs > button:hover { color: var(--ink); }
.utabs > button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.utabs > button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--coral); }
.md-dec .md-list > .card-head { min-height: 0; margin-bottom: var(--space-1); }
.md-dec .md-list .rows > li + li { border-top-color: var(--line); }
.md-dec .md-list .rows > li.rows-head + li, .md-dec .md-list .rows > li + li.rows-head { border-top-color: transparent; }
.dec-row { min-height: 68px; }
.empty-line { font: var(--t-body); color: var(--ink-2); max-width: 30em; }
.empty-art .empty-line { margin: 0 auto; }

/* A store's page is a detail page: what it holds in the main column, and a narrow card of what you can do with it beside. */
.detail-grid { display: grid; gap: var(--space-4); align-items: start; min-width: 0; }
#store-problem:empty { display: none; }
.side-card { padding: var(--space-5); gap: 0; }
.side-sec + .side-sec { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 28px; margin-bottom: var(--space-2); }
.side-title { font: 600 15px/1.3 var(--font); letter-spacing: -0.01em; }
.side-link { font: 500 14px/1 var(--font); color: var(--coral-deep); text-decoration: none; }
.side-link:hover { text-decoration: underline; }
.side-rows { display: flex; flex-direction: column; gap: var(--space-3); }
.side-addr { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-line { font: var(--t-meta); color: var(--ink-2); margin-bottom: var(--space-3); }
.side-acts { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.side-acts .btn { justify-content: center; }
.side-sec .problem:empty { display: none; }
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-5); }
  .detail-grid > .stack-page { gap: var(--space-5); }
  .side-card { position: sticky; top: calc(var(--phead-h) + var(--space-8)); }
}
/* Home: everything on the content column's edges, the calm line included. */
.hero-card.is-calm { padding: 0; }
.store-mark .tile-mg::before { content: attr(data-letter); }
/* Decisions' tabs carry their own hairline: the card header's is not drawn twice. */
.md-dec .md-list > .card-head:first-child { border-bottom: 0; padding-bottom: 0; margin-bottom: var(--space-1); }
.row-meta .is-soon { color: var(--coral-deep); font-weight: 500; }

/* ================================================================== 13 D-454: one container, one detail header, fixed chips
 * Every console page sits in one container, left-aligned 48px from the sidebar and 1040px wide at most on every page (D-469), so
 * the title starts at the same x and the right edge stays put from page to page. On a phone a detail page has one
 * header, the bar with a back chevron and the page's name; Addresses, Agents and Shared spaces are in the avatar's menu. */
@media (min-width: 1024px) {
  :root { --rail: 48px; }
  .page { margin: 0; max-width: calc(var(--container) + var(--rail) + var(--gutter)); padding-left: var(--rail); padding-right: var(--gutter); }
  .phead-in { margin: 0; max-width: calc(var(--container) + var(--rail) + var(--gutter)); padding-left: var(--rail); padding-right: var(--gutter); }
  .view { margin: 0; }
}

/* The avatar's menu: where a phone reaches what is not in its bar. On a desktop the sidebar holds them, so it is Account alone. */
.me-menu { position: relative; }
.me-menu > summary { list-style: none; cursor: pointer; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-sheet { position: absolute; right: -4px; top: calc(100% + 6px); z-index: 40; min-width: 220px; padding: var(--space-1); border-radius: var(--radius-thumb); background: var(--card); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; }
.me-link { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); padding: 0 var(--space-3); border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 15px/1 var(--font); }
.me-link .icon { width: 20px; height: 20px; color: var(--ink-2); }
.me-link:hover, .me-link:focus-visible { background: var(--well); outline: none; }
.me-link[aria-current="page"] { background: var(--well); font-weight: 600; }
.me-link[aria-current="page"] .icon { color: var(--coral-deep); }

/* One detail header on a phone. */
.topbar-back { display: none; }
.topbar-title { color: var(--ink); font-weight: 600; }
@media (max-width: 1023px) {
  body.is-detail .topbar-back:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin-left: -10px; border-radius: var(--radius-pill); color: var(--ink); }
  body.is-detail .topbar-back .icon { width: 24px; height: 24px; }
  body.is-detail .topbar .wordmark { display: none; }
  body.is-detail .topbar-title { opacity: 1; transform: translate(-50%, 0); }
  body.is-detail .topbar { border-bottom-color: var(--line); }
  body.is-detail .phead { display: none; }
  body.is-detail .md-detail > .back { display: none; }
}

/* Shared spaces: every row the same padding, every row with its chevron. */
#space-list .row, #invite-list .row { padding-top: var(--space-3); padding-bottom: var(--space-3); }
@media (max-width: 599px) { #space-list .row-end:has(> .pill) .row-chev { display: inline-block; } }

/* Identity: a rung that is done is a solid green mark. */
.rung.is-done > .mark { background: var(--green); color: var(--card); box-shadow: none; }

/* The landing page's promise breaks where a reader would. */
.hero-title { max-width: 15em; text-wrap: balance; }

/* The dark ink card is the same raised slab as in light: no coloured edge. */
.hero-card.is-due, .shot-hero { box-shadow: var(--shadow-lift); }
.mail-became-line { font: var(--t-body); font-weight: 500; color: var(--ink); }

/* The public pages' one foot (D-454): the mark, one line on what Amail is, and the links, above a hairline, as on /check. */
.out > .foot, .out main > .foot { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin: var(--space-4) auto 0; padding: var(--space-6) var(--gutter) max(var(--space-6), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font: var(--t-meta); }
.foot .foot-in { display: grid; gap: var(--space-5); }
.foot .foot-brand { display: flex; flex-direction: column; gap: var(--space-2); max-width: 36em; }
.foot .foot-brand .wordmark { font-size: 15px; min-height: 0; }
.foot .foot-brand .wordmark-mark { width: 22px; height: 22px; }
.foot .foot-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.foot .foot-links a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 32px; }
@media (min-width: 900px) { .foot .foot-in { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } .foot .foot-links { justify-content: flex-end; } }

/* A shared space's row keeps its end at the right on a phone too: the pill, then the chevron, never on a line of their own. */
@media (max-width: 599px) { #space-list .row:has(.row-end > .pill) { flex-wrap: nowrap; } #space-list .row-end:has(> .pill) { flex: none; flex-direction: row; padding-left: 0; } }

/* ---- D-453: one row height, one name, the decision's answers always in reach. */
/* Decisions' queue is 408 wide; a row is one line of who and one of the domain and what is asked, each cut with an ellipsis and
 * never broken inside an address, so every row is the same height. */
@media (min-width: 1280px) { .md-dec { grid-template-columns: 408px minmax(0, 1fr); } }
.dec-row { height: 68px; min-height: 68px; }
.dec-row .row-who, .row-one { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.dec-row .row-meta-one { display: block; overflow-wrap: normal; }
/* On a wide screen the decision's answers stay at the foot of its pane while the rest scrolls, as on a phone. */
@media (min-width: 1024px) {
  .md-dec .md-detail .card > .card-foot { position: sticky; bottom: -6px; z-index: 5; margin: 0 calc(-1 * var(--space-6)); padding: var(--space-3) var(--space-6); background: var(--card); box-shadow: 0 -1px 0 var(--line); }
  .md-dec .md-detail .card > .card-foot:last-child { margin-bottom: calc(-1 * var(--space-6)); border-radius: 0 0 var(--radius-card) var(--radius-card); }
}
/* A business's domain under its one name, in a decision's details. */
.says-domain { flex-basis: 100%; font: var(--t-meta); color: var(--ink-2); }
/* The store's side card: one Download with its two files behind it, and erasing as a quiet text action at the foot. */
.side-menu { width: 100%; }
.side-menu > .btn { width: 100%; justify-content: center; }
.side-menu .menu { left: 0; right: 0; min-width: 0; }
.menu-chev { width: 16px; height: 16px; transform: rotate(90deg); margin-left: 2px; }
.erase-line { display: flex; align-items: center; gap: 2px; }
.link-danger { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0; color: var(--coral-deep); font: 600 14px/1 var(--font); }
.link-danger .icon { width: 18px; height: 18px; }
.link-danger:hover { text-decoration: underline; text-underline-offset: 3px; }
.side-erase .side-line { margin: 0; }

/* A side card whose first section is hidden starts at its next one, with no rule above it. */
.side-sec[hidden] + .side-sec { margin-top: 0; padding-top: 0; border-top: 0; }

/* One frame for every page (D-469, in place of one width per kind of page). An overview whose second thing is short (what is on
 * the way, the rule for who may connect) puts it in a side column on a wide screen (from 1280: below it, beside the sidebar, the list would be narrower than the side card), so a list
 * page never sits in a narrow strip beside empty space. On a phone the order is the markup's. */
@media (min-width: 1280px) {
  .side-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-5); align-items: start; }
  .side-split > * { grid-column: 1; }
  .side-split > :empty { display: none; }
  #stores-overview > #progress { grid-column: 2; grid-row: 1; }
  #stores-overview > #stores-card { grid-row: 1; }
  #stores-overview:has(> #progress[hidden]) { grid-template-columns: minmax(0, 1fr); }
  #spaces-overview > #rule-card { grid-column: 2; grid-row: 1 / span 3; }
  #spaces-overview > #rule-card .row { flex-wrap: wrap; row-gap: var(--space-3); }
  #spaces-overview > #rule-card .row > .row-body { flex: 1 1 calc(100% - var(--thumb) - var(--space-3)); }
  #spaces-overview > #rule-card .row > .btn { margin-left: calc(var(--thumb) + var(--space-3)); }
  #spaces-overview:has(> #spaces-first:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  #spaces-overview:has(> #spaces-first:not([hidden])) > #rule-card { grid-column: 1; grid-row: auto; }
  #spaces-overview:has(> #spaces-first:not([hidden])) > #rule-card .row { flex-wrap: nowrap; }
  #spaces-overview:has(> #spaces-first:not([hidden])) > #rule-card .row > .btn { margin-left: 0; }
}

/* ================================================================== Home (D-467) */
/* One strip of what needs the person, the page's one focal element: a card with a row each. Nothing waiting, it is one calm line
 * on the canvas with its drawing; switched off or closing, it turns to ink, the page's only dark block. */
.needs { gap: 0; box-shadow: var(--shadow-lift); }
.needs-head { display: flex; align-items: center; gap: var(--space-4); min-height: var(--tap); }
.needs .card-title { font: var(--t-title); letter-spacing: -0.02em; }
.needs-head + .rows { margin-top: var(--space-1); }
.needs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.needs-foot > .btn { margin: 0 calc(-1 * var(--space-3)); }
.needs-foot > #needs-all { margin-left: auto; }
.needs.is-calm { background: transparent; box-shadow: none; padding: var(--space-1) var(--space-1) 0; }
.needs.is-lead-only .needs-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.needs.is-lead-only .needs-head + .rows { margin-top: 0; }
.need-when-line { display: none; }
.need-when-line.is-soon { color: var(--coral-deep); font-weight: 500; }
@media (max-width: 599px) { .needs .need-when { display: none; } .need-when-line { display: inline; } }
.needs.is-off { background: var(--hero-bg); color: var(--hero-ink); box-shadow: 0 0 0 1px var(--hero-edge), var(--shadow-lift); }
.needs.is-off .card-title, .needs.is-off .note-title { color: var(--hero-ink); }
.needs.is-off .alert-line, .needs.is-off .row-meta, .needs.is-off .tip-btn { color: var(--hero-sub); }
.needs.is-off .rows > li + li, .needs.is-off .needs-foot { border-color: color-mix(in srgb, var(--hero-ink) 14%, transparent); }
.needs.is-off .tile-ink { background: color-mix(in srgb, var(--hero-ink) 12%, transparent); color: var(--hero-ink); }
.needs.is-off .btn-primary { background: var(--coral); color: var(--on-coral); }
/* Every row of the strip on ink, whatever it holds (review fixes, Dec 1): in light mode the rows' own ink would be ink on ink. */
.needs.is-off .row-title, .needs.is-off .who-name, .needs.is-off .row-amount, .needs.is-off .row-chev { color: var(--hero-ink); }
.needs.is-off .who-mark, .needs.is-off .row-when, .needs.is-off .needs-foot .btn, .needs.is-off .dom-end { color: var(--hero-sub); }
.needs.is-off .is-soon, .needs.is-off .row-caution, .needs.is-off .need-when-line.is-soon, .needs.is-off .row-when.is-soon { color: var(--hero-coral); }
@media (hover: hover) and (pointer: fine) { .needs.is-off a.row:hover, .needs.is-off button.row:hover { background: color-mix(in srgb, var(--hero-ink) 8%, transparent); } }
.needs .alert-row { min-height: var(--row-min); padding: var(--space-2) 0; }
.needs .row-end + .row-chev, .needs .row-when + .row-chev { margin-left: calc(-1 * var(--space-1)); }
.art-inline { width: 88px; }
@media (min-width: 1024px) { .art-inline { width: 96px; } }
/* Someone new: the three steps, with the drawing of a blank name card before the first. */
.start { gap: var(--space-3); }
.start > .art-start { margin-bottom: 0; }
/* At most two suggestions, quiet: small tiles, a small heading, and a way to put each away for a while. */
.suggest { padding-top: var(--space-4); padding-bottom: var(--space-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.suggest-title { font: var(--t-meta); font-weight: 600; color: var(--ink-2); }
.suggest-list { margin-top: var(--space-1); }
.suggest-list > li { display: flex; align-items: center; gap: var(--space-1); }
.suggest-list > li > .row { flex: 1; min-width: 0; min-height: 56px; }
.suggest-list .tile { width: 36px; height: 36px; }
.suggest-list .tile .icon { width: 18px; height: 18px; }
.suggest-list .row-title { font-weight: 500; }
.suggest-away { color: var(--ink-3); }
.suggest-away .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) { .card.suggest { padding-top: var(--space-5); padding-bottom: var(--space-4); } }
/* On a phone, where there is no sidebar: Addresses, Agents and Shared spaces, one tap from Home. */
.home-more { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.home-more .pill-link { min-height: 40px; padding: 0 var(--space-3); font-size: 14px; }
@media (max-width: 599px) { #from-list > li:nth-child(n+3) { display: none; } }
@media (min-width: 1024px) { .home-more { display: none; } }
/* Home's header: the date, then the main address with its copy button. */
.phead-meta.has-address { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: visible; }
.phead-meta.has-address > .phead-address { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.phead-meta.has-address > .phead-sep { color: var(--ink-3); }
.phead-meta.has-address > .copy-btn { margin: -10px 0 -10px -6px; }
/* On a phone the address alone: the date is on the phone itself, and both would not fit. */
@media (max-width: 599px) { .phead-meta.has-address > .phead-date, .phead-meta.has-address > .phead-sep { display: none; } }
/* ================================================================== 14 D-469: names told apart, choices that wait, one frame
 * A business that proved nothing is its typed name, quoted, with "Not checked by Amail" attached: on one line when it fits, the
 * mark under the name when it does not, never cut off. A caution about a name leads the line under the title and is never cut. */
.row-who.who-line, .row-title.who-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2); row-gap: 2px; white-space: normal; overflow: visible; }
/* Up to two lines, so two long typed names are still told apart on a phone; the mark is never cut. */
.who-name { min-width: 0; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.who-mark { flex: none; display: inline-flex; align-items: center; gap: 4px; font: 500 13px/1.4 var(--font); color: var(--ink-2); white-space: nowrap; }
.who-mark .icon { width: 14px; height: 14px; flex: none; align-self: center; }
.row-caution { display: flex; align-items: flex-start; gap: 4px; color: var(--coral-deep); font-weight: 500; white-space: normal; }
.row-caution .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.dec-row:has(.who-line), .dec-row:has(.row-caution) { height: auto; }
.row-meta-one.has-caution { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.row-meta-rest { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Who checked the agent: one line each, the rest one tap down. */
details.check { display: block; width: 100%; min-width: 0; }
details.check > summary { list-style: none; cursor: pointer; margin: 0 calc(-1 * var(--space-3)); padding-left: var(--space-3); padding-right: var(--space-3); width: calc(100% + 2 * var(--space-3)); }
details.check > summary::-webkit-details-marker { display: none; }
.check-end { flex: none; display: flex; align-items: center; gap: var(--space-2); }
/* A row that opens in place points down, and up once open; a row that leads to another page keeps the right chevron (review fixes, Dec 1). */
.check-chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; transform: rotate(90deg); transition: transform 200ms var(--ease-out); }
details.check[open] .check-chev { transform: rotate(-90deg); }
.check-facts { display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--space-3); padding: 0; font: var(--t-meta); color: var(--ink-2); max-width: 44em; }
@media (hover: hover) and (pointer: fine) { details.check > summary:hover { background: var(--well); } }
details.check > summary { border-radius: var(--radius-thumb); }
@media (max-width: 599px) { .check-row { flex-wrap: wrap; row-gap: var(--space-1); } .check-row > .row-body { flex: 1 1 calc(100% - 60px); } .check-row > .check-end { margin-left: auto; } }
/* A yes or no still to give: two plain buttons, neither filled; the one pressed is filled and ticked. */
.seg.seg-ask { background: none; padding: 0; gap: var(--space-2); flex: none; }
.seg-ask button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--field-line); background: var(--card); color: var(--ink); font-weight: 600; }
.seg-ask .seg-tick { display: none; width: 16px; height: 16px; }
.seg-ask button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg-ask button[aria-pressed="true"] .seg-tick { display: inline-block; }
.seg-ask button[aria-pressed="true"]:disabled { background: var(--well); border-color: var(--edge); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .seg-ask button:not([aria-pressed="true"]):not(:disabled):hover { background: var(--well); } }
/* Decide says what it waits for, beside it. */
.card-foot > .dec-waits { margin-left: auto; color: var(--ink-2); font-weight: 500; }
@media (max-width: 1023px) { .md-dec .md-detail .card > .card-foot > .dec-waits { margin-left: 0; text-align: center; } }
/* Between 1024 and 1279 the pane is too narrow for the count and both answers on one line: the count goes above them, both to the right. */
@media (min-width: 1024px) and (max-width: 1279px) { .md-dec .md-detail .card > .card-foot:has(> .dec-waits:not(:empty)) { flex-direction: column; align-items: flex-end; gap: var(--space-2); } }
/* A page action that does not fit beside the title on a phone goes under it, never squeezing the title. */
@media (max-width: 1023px) { .phead-in { flex-wrap: wrap; row-gap: var(--space-3); } .phead-text { flex: 1 1 10em; } }
/* A yes or no goes under its words when the pane is too narrow for both side by side (a sidebar beside two panes, 1024 to 1279). */
.lines .setting-in:has(> .seg-ask) { flex-wrap: wrap; row-gap: var(--space-2); }
.lines .setting-in:has(> .seg-ask) > .setting-text { flex: 1 1 16em; }
