/* SEE — design system: Quiet Luxury, fidelity pass (v6).
   Spec: the approved preview (ux-round2/c-quiet-luxury.html) — its CSS
   values are the tokens below, verbatim where they exist.
   Flat warm off-white ground, ink text, hairlines instead of boxes,
   serif display + money numerals, letterspaced micro-labels, black
   letterspaced primary buttons, text secondaries.
   Blue #0B6CFF appears ONLY as the seal/check glyph and as a single
   focal verdict per screen — never as chrome, links, or focus rings. */

/* IBM Plex is SELF-HOSTED (Plex Ledger train, 2026-11-04; the font
   fix train's rule, DECISIONS #107/#109): every family named first in
   a design token is a font the product ships. Serif 500/600 is the
   display face, Sans 400/500/600 the body/UI face, Mono 400 the
   reference face (receipt numbers, dates, check codes, seller
   references). Files are the Fontsource latin woff2 builds; the SIL
   Open Font License 1.1 text ships beside them in
   assets/fonts/OFL.txt. Playfair Display survives only inside the
   logo/wordmark artwork (vector files, never text) — its @font-face
   files were removed when the last text consumer left. */
@font-face{
  font-family:"IBM Plex Serif";
  src:url("assets/fonts/ibm-plex-serif-500.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"IBM Plex Serif";
  src:url("assets/fonts/ibm-plex-serif-600.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"IBM Plex Sans";
  src:url("assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"IBM Plex Sans";
  src:url("assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"IBM Plex Sans";
  src:url("assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"IBM Plex Mono";
  src:url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}

:root{
  --bg:#FAFAF8;
  /* --ink is the unified design token #0B0B0C (UX build Stage 0,
     founder-approved unified system, 2026-11-02). The email shell
     keeps its own ink constant in see/notify.py (#16150F, pinned by
     the F119 email-design test) — the two are indistinguishable at
     a glance; aligning the email constant is a later stage's call,
     recorded in the Stage 0 DECISIONS entry. */
  --ink:#0B0B0C;
  --ink-2:#55534A;
  /* WCAG AA floor (legal-hardening): --ink-3 carries 13px fine print,
     11px micro-labels, form labels and status lines — and, since
     DECISIONS #42, the 11.5px tab-bar labels (on the bar's white
     surface its contrast only improves) — all normal text, so it
     must clear 4.5:1 on --bg. Measured: ink-3 4.81:1, ink-4 4.54:1
     (were 3.48:1 and 2.38:1). Same warm ramp, hierarchy preserved;
     --ink-4 now carries only the paused pill's dot (non-text). */
  --ink-3:#726F66;
  --ink-4:#76736A;
  --line:#E7E4DB;
  --line-2:#EDEAE2;
  --line-strong:#CFC9BA;
  /* UX-031 (founder ruling, 2026-11-05 — the palette lock amended
     for this one purpose): --field-line edges INPUT FIELDS ONLY.
     --line-strong measures 1.65:1 on the white field surface, below
     the 3:1 a field boundary must clear; #96907F is the approved
     unified system's own field colour (the ux1 scoped faces carried
     it literally for exactly this reason), measured 3.19:1 on
     #FFFFFF and 3.05:1 on --bg. Every other token keeps its locked
     value; cards, dividers and panels do not move. The permanent
     gate is scripts/ui_clickthrough_field_contrast.py. */
  --field-line:#96907F;
  --line-card:#B5AF9D; /* unified token (UX Stage 0): the bordered-card edge */
  --card:#FFFFFF;      /* unified token (UX Stage 0): card/drawer surface */
  --placeholder:#757165; /* unified token (UX Stage 0): input placeholder ink */
  --track:#ECE9E1;
  --seal:#0B6CFF;
  --red:#8F3B26; /* muted clay for form error text — no alarm red anywhere */
  --radius:16px;
  --radius-s:12px;
  --serif:"IBM Plex Serif",Georgia,"Times New Roman",serif;
  --sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* --mono hoisted to :root by the UX-match shell merge captain
     (2026-11-03): .kitblock/.paircode already consume it here, and
     the connect train had to define it scoped under #view.cxu
     because the shared sheet lacked it. The value is byte-identical
     to that scoped definition, so the hoist changes no rendering. */
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --ease:cubic-bezier(.28,.11,.22,1);
  /* Slice 0 type tokens (Founder Design Programme, 2026-11-06):
     the ONE type system, encoded once. Values are extracted from
     the founder prototype's src/styles.css — his CSS governs type
     (founder ruling, 2026-11-05); where his CSS is banded, the
     token carries the band's value and the band rules below
     re-point it. Family stacks stay LIVE's (prep flag F-T6 —
     post-font-incident engineering); sizes, weights, tracking and
     leading follow the prototype. Amounts take tabular figures on
     every amount role (F-T3: the spec sentence + DECISIONS #109
     complete the CSS's five starred roles to all of them). */
  --type-h1:38px; --type-h1-lh:1.23;
  --type-h2:26px; --type-h2-lh:32px;
  --type-h3:21px; --type-h3-lh:28px;
  --type-body:16px; --type-body-lh:24px;
  --type-lead:21px; --type-lead-lh:1.55;
  --type-desc:17px; --type-desc-lh:1.55;
  --type-small:14px; --type-small-lh:21px;
  --type-fine:13px; --type-fine-lh:20px;
  --type-label:14px;
  --type-eyebrow:12px;
  --type-badge:12px;
  --type-toast:14px;
  --type-modal:15px;
  --type-hero:57px; --type-hero-lh:1.12;
  --type-hero-lead:24px;
  --type-fig-lg:48px; --type-fig-md:40px; --type-fig-sm:32px;
  --type-paper-total:36px;
  --type-price:35px;
  --type-mono:13px;
  --type-rno:13px;
  --tabbar-h:calc(70px + env(safe-area-inset-bottom));
  --rail-w:224px;
}
@media(max-width:1199px){
  :root{
    --type-h1:38px;
    --type-hero:44px;
    --type-hero-lead:21px;
    --type-fig-lg:48px; --type-fig-md:34px;
    --type-modal:15px;
  }
}
@media(max-width:767px){
  :root{
    --type-h1:30px;
    --type-h2:25px; --type-h2-lh:31px;
    --type-h3:20px; --type-h3-lh:26px;
    --type-desc:15px;
    --type-label:13px;
    --type-toast:12px;
    --type-modal:14px;
    --type-hero:36px;
    --type-hero-lead:23px;
    --type-fig-lg:44px; --type-fig-md:38px;
    --type-paper-total:32px;
    --type-price:38px;
  }
}
@media(max-width:359px){
  :root{ --type-desc:15px; }
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--sans);
  background:var(--bg);color:var(--ink);
  font-size:16px;line-height:1.5;letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  /* End-of-page breathing room belongs to the signed-in shell
     alone: the tab bar's measured height (68px incl. border,
     UX-match shell train 2026-11-03) + the safe-area inset,
     reserved only while the bar can show (body.tabbed, set by
     setNav when a session exists — landing fix train D-0,
     Nov 3 2026: the reservation used to leak onto the
     signed-out landing as a ~150px void under the footer's
     motto). The 901px chrome breakpoint below swaps the base
     for 48px, where the bar hides. */
  padding-bottom:env(safe-area-inset-bottom);
  /* The sticky-footer floor (founder-reported 2026-11-05: the
     footer "is jumping up and down based on the content" —
     short faces left it floating mid-screen, long faces pushed
     it down, because nothing gave the page a height floor).
     The shell is a flex column at least one viewport tall; the
     content region (the SPA's #viewwrap, the server shells'
     main.doc) grows into the slack, and the footer — the last
     item, never shrinking — rests at the viewport bottom on
     short pages and follows the content on long ones. This is
     the ONE mechanism, at the shell level, for every surface
     that carries the footer; no page tunes its own. 100vh
     first: the founder's older Safari predates dvh. The global
     reset already sets border-box, so the shell's own bottom
     paddings (the tab-bar reservation, the safe-area inset)
     sit INSIDE the floor, never stacked below it. */
  display:flex;flex-direction:column;
  min-height:100vh;min-height:100dvh;
}
@media(max-width:767px){
  body.tabbed{padding-bottom:var(--tabbar-h)}
}
a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,select,textarea{font:inherit;color:var(--ink)}
::selection{background:#E9E4D8}
a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Sticky side columns (the limit form's review card, an approval's
   decision column, Help's links) sit 24px below whatever header is
   pinned above them. Founder UAT 2026-11-10: with a fixed 32px the
   review card slid under the 76px desktop header and was cut in half. */
:root{--sticky-top:24px}
body.tabbed{--sticky-top:80px}
@media(min-width:768px) and (max-width:1199px){ body.tabbed{--sticky-top:141px} }
@media(min-width:1200px){ body.tabbed{--sticky-top:100px} }

/* ---------- chrome ---------- */
/* The app header (Slice 0): his app-header anatomy — brand left,
   the workspace label beside it, the account avatar right. At
   desktop the rail carries the brand and the label hides; the
   header remains as the content column's head row so the avatar
   seat exists at every width (RP-03). */
#topbar{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;gap:16px;
  padding:0 max(20px, env(safe-area-inset-left));
  height:56px;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.workspace-label{font-size:15px;font-weight:500;color:var(--ink);white-space:nowrap}
/* The label sits beside the brand, never across the row: the
   auto margin belongs AFTER the label so brand + label travel
   together at the left edge (the founder's header anatomy). */
#ws-label{margin-right:auto}
@media(min-width:768px) and (max-width:1199px){
  /* His tablet header: brand left; label + avatar right-aligned
     as a group (the label carries its right hairline), 68px row,
     the brand lockup at 113px wide. */
  #topbar{height:68px;padding:0 32px;justify-content:space-between;gap:20px}
  #topbar .wordmark{margin-right:auto}
  #topbar .wordmark-img{width:113px;height:auto}
  .workspace-label{font-size:14px;padding-right:20px;border-right:1px solid var(--line);color:var(--ink-2)}
  #ws-label{margin-right:0}
  #tabnav{top:68px}
}
@media(min-width:1200px){
  /* His desktop header: the brand hides (the rail carries it),
     the row right-aligns the workspace label + avatar at the
     content column's head (prototype .app-header >=1200). */
  #topbar{height:76px;padding:0 48px;border-bottom:0;justify-content:flex-end;gap:24px}
  #topbar .wordmark{display:none}
  .workspace-label{padding-right:22px;border-right:1px solid var(--line);color:var(--ink-2)}
  #ws-label{margin-right:0}
}
/* At phone widths the header stays inside the viewport: the
   brand + label + avatar row must compress, never push the page
   sideways (the workspace label yields first). */
@media(max-width:767px){
  #topbar{min-width:0}
  #topbar .wordmark{flex:none;min-width:0}
  /* His phone header carries NO workspace label (prototype
     @media(max-width:767px): .workspace-label{display:none}) —
     brand + avatar only. */
  .workspace-label{display:none}
  #acct-cluster{flex:none}
}
/* The header brand: the Sealgraf compact lockup artwork itself
   (assets/sealgraf-lockup-compact.svg) — the brush-ring icon and
   the hand-kerned Playfair Bold wordmark, composed as one file by
   the brand suite. Never typeset or redrawn. One lockup, everywhere
   a header carries the brand; the icon alone
   (assets/sealgraf-favicon.svg) is the favicon / icon-only form,
   with the ring-only variant at 16px (the inside S dissolves at
   that size — the suite's documented rule). */
.wordmark{display:inline-flex;align-items:center;text-decoration:none}
.wordmark-img{height:30px;width:auto;display:block}
/* The app header's lockup renders at the approved design's 26px
   (unified.css .apphead img.lockup; UX-match shell train,
   2026-11-03). Scoped to #topbar: the 30px base size still serves
   the lockup's other surfaces (signed-out views, receipt faces),
   which belong to their own pages. */
#topbar .wordmark-img{height:30px}
.brand-row{display:flex;justify-content:flex-start}
.brand-center{display:flex;justify-content:center}
/* The full motto lockup (brand suite, T1 setting): the icon and
   wordmark artwork in a row, with the motto set under them as live
   text — Playfair Medium capitals, letterspaced to span the
   lockup's width, in Motto Grey #6E6A61 — as in the approved T1
   lockup artwork. Display sizes only: the hero and the auth
   screens. Headers keep the compact lockup (icon + wordmark, no
   motto): at header height the motto would be illegible. */
.lockup{display:inline-flex;flex-direction:column}
.lockup-top{display:flex;align-items:center;justify-content:space-between}
.lockup-top .lockup-icon{display:block;width:25.5%;height:auto}
.lockup-top .lockup-word{display:block;width:68.8%;height:auto}
.lockup .motto{
  margin-top:12px;text-align:center;white-space:nowrap;
  font-family:var(--serif);font-weight:500;text-transform:uppercase;color:#6E6A61;
}
.lockup.lockup-hero{width:min(340px,86vw)}
.lockup.lockup-hero .motto{font-size:10px;letter-spacing:.32em;padding-left:.32em}
.lockup.lockup-auth{width:min(300px,78vw)}
.lockup.lockup-auth .motto{font-size:9px;letter-spacing:.30em;padding-left:.30em}
/* The tablet top-nav (Slice 0): at 768-1199 the signed-in chrome
   is this compact row under the app header — Overview /
   Approvals / Limits / Activity / More at 14px, the current one
   ink + semibold + a 2px underline. One chrome system per band:
   bottom nav below 768, this row 768-1199, the rail at 1200+. */
#tabnav{display:none}
@media(min-width:768px) and (max-width:1199px){
  body.tabbed #tabnav{display:block;position:sticky;top:58px;z-index:29;background:var(--bg);border-bottom:1px solid var(--line-2)}
}
#tabnav .tabnav-in{max-width:1000px;margin:0 auto;padding:0 32px;display:flex;justify-content:space-between;gap:16px;align-items:center}
#tabnav a{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:58px;flex:1;color:var(--ink-2);font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap}
#tabnav a.on{color:var(--ink);font-weight:600;box-shadow:inset 0 -2px 0 var(--ink)}
/* Task mode (Slice 0): on his task routes the phone bottom nav
   hides — the face's own bottom action region is the only fixed
   bar (prep §3.3 contract 6; route() seats the class). */
body.task-mode #tabbar{display:none !important}

/* The tab bar (DECISIONS #42): its own object, never a footer
   tier — solid white surface against the warm ground, a hairline
   and a soft upward shadow, icons + sentence-case labels (the
   labels were letterspaced uppercase until #42: at 11px tracked
   capitals, "Permissions" could not fit its flex slot at phone
   widths and the words touched edge-to-edge, F79). Targets are
   56px and up, never the ~22px text rows of before. The anchors
   carry the approved design's own padding and label metrics
   (unified.css .tabbar; UX-match shell train, 2026-11-03); the
   white surface, shadow, 24px sprite icons and the active
   underline bar are #42's, kept. */
/* The phone bottom nav (Slice 0): his bottom-nav anatomy — a
   5-column grid on the ground colour, 24px sprite icons over
   11px labels, the current item ink + semibold (no indicator
   bar). The count badge rides the Approvals tab (STOP-05). */
#tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:30;
  display:grid;grid-template-columns:repeat(5,1fr);
  padding:8px 10px calc(7px + env(safe-area-inset-bottom));
  background:var(--bg);
  border-top:1px solid var(--line);
}
#tabbar a{
  position:relative;min-width:0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:3px;padding:2px 4px 0;min-height:48px;
  text-align:center;text-decoration:none;color:var(--ink-3);
}
#tabbar .tab-ic{position:relative;display:block;line-height:0}
#tabbar .tab-ic svg{width:24px;height:24px;display:block}
#tabbar .badge{position:absolute;top:0;left:calc(50% + 4px)}
#tabbar .tab-label{
  font-size:11px;line-height:1.5;font-weight:500;letter-spacing:0;
  white-space:nowrap;color:var(--ink-3);
}
@media(max-width:359px){ #tabbar .tab-label{font-size:10px} }
#tabbar a.on{color:var(--ink)}
#tabbar a.on .tab-label{color:var(--ink);font-weight:600}
.badge[hidden]{display:none} /* the class display below would otherwise defeat the hidden attribute */
.badge{
  display:inline-block;min-width:20px;height:20px;padding:0 5px;
  border-radius:99px;background:var(--ink);color:var(--bg);
  font-size:12px;font-weight:600;line-height:20px;text-align:center;vertical-align:2px;
  letter-spacing:0;
}
/* The bottom nav is the phone band's chrome only (Slice 0):
   at 768+ the tablet top-nav or the rail carries navigation. */
@media(min-width:768px){
  #tabbar{display:none !important}
}
/* ---------- account: avatar + profile menu (DECISIONS #42) ----------
   The bar carries ONE object on the right: a 44px avatar button
   (the account initial in the serif face; a key glyph for a
   key-only visit). Identity and the way out live in the profile
   menu it opens — a white card anchored under the avatar over a
   light scrim: the full email, whole — it wraps onto a second line
   when an address is long (overflow-wrap:anywhere; no max-width,
   no ellipsis, no clipping at any length — a sliced address was
   the F79 cold-review catch on this build's first cut), then the
   Pause all and Sign out rows at 54px. The menu's sign-out
   row is the signed-in UI's ONE sign-out affordance (F79). */
/* ---------- account: avatar + account modal ----------
   The bar carries ONE object on the right: the avatar button
   (the account initial in the serif face; a key glyph for a
   key-only visit). It opens the account modal (Slice 0 — the
   profile menu's successor, on the same layer mechanism): the
   identity header, the nav rows, Pause all agent spending (with
   its confirming second tap) and Sign out — the signed-in UI's
   ONE sign-out affordance (F79). */
#acct-cluster{display:flex;align-items:center;flex:none}
#acct-avatar{
  /* 44px, not his CSS's 38px: his own spec text mandates every
     target at least 44px (design-spec.json acceptance rules),
     and the gates pin it — the spec sentence governs this one
     value, recorded in the Slice 0 ship report. */
  width:44px;height:44px;border-radius:50%;flex:none;padding:0;
  background:var(--track);border:1px solid var(--line);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:19px;font-weight:500;line-height:1;
}
#acct-avatar svg{width:20px;height:20px;display:block}
#acct-layer{position:fixed;inset:0;z-index:40}
#acct-scrim{position:absolute;inset:0;background:rgba(20,20,30,.30)}
#acct-menu{
  position:absolute;top:70px;right:20px;width:min(340px,calc(100vw - 32px));
  background:var(--card);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 24px 60px rgba(20,20,30,.18);
  padding:20px;
}
@media(min-width:768px) and (max-width:1199px){ #acct-menu{right:32px} }
@media(min-width:1200px){ #acct-menu{top:24px;right:48px} }
.acct-ident{display:flex;gap:12px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid var(--line)}
#acct-avatar-lg{
  width:44px;height:44px;border-radius:50%;flex:none;
  background:var(--track);border:1px solid var(--line);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:20px;font-weight:500;line-height:1;
}
#acct-avatar-lg svg{width:22px;height:22px;display:block}
.acct-ident-text{display:grid;flex:1;min-width:0}
.acct-ident-text strong{font-size:16px;overflow-wrap:anywhere}
#acct-email{color:var(--ink-2);font-size:13.5px;overflow-wrap:anywhere}
.acct-status{color:var(--ink-3);font-size:12.5px;margin-top:3px}
.modal-close{flex:none;color:var(--ink-2);font-size:13px;font-weight:600;padding:6px}
.acct-nav{display:grid;margin-top:8px}
.acct-row{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  min-height:52px;padding:10px 4px;
  font-size:15px;font-weight:500;color:var(--ink);text-decoration:none;
}
.acct-row-text{display:grid}
.acct-row-desc{color:var(--ink-2);font-size:12.5px;font-weight:400}
.acct-chev{margin-left:auto;color:var(--ink-3);font-size:20px}
.acct-sep{height:1px;background:var(--line);margin:10px 0}
#acct-pause.confirm span{font-weight:600}
.acct-row.danger{color:var(--red)}

/* ---------- unified design system — base layer (UX Stage 0) ----------
   The founder-approved unified system (ux-unified-20261102/unified.css)
   enters the product here, as the base layer every later stage builds
   on: the token additions in :root above, the icon-sprite host, and
   the ONE drawer component. Deliberately NOT imported in this stage:
   the unified .btn (pill) and .card (bordered box) shapes — the
   product's own button and flat-section forms above stay the live
   forms until the stage that rebuilds each page adopts the new shapes
   page by page; swapping them globally here would re-dress every
   page's content in a chrome-only stage. The drawer below is the
   unified component verbatim in values; no page wires it yet
   (Stages 1–2 do), and its JS half (openDrawer/closeDrawer) lives in
   web/app.js beside the profile-menu code it patterns on. */
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
/* Tab icon states (final icon set): each mapped tab anchor carries
   the outline symbol (.ic-def) and its filled twin (.ic-act); the
   .on class — setNav's existing law — shows the filled one. The
   chrome's colour shift rides with it: quiet ink at rest, full ink
   on the active tab (the #tabbar rules above). */
#tabbar .tab-ic .ic-act{display:none}
#tabbar a.on .ic-act{display:block}
#tabbar a.on .ic-def{display:none}
.scrim{position:fixed;inset:0;background:rgba(11,11,12,.46);z-index:60}
.drawer{position:fixed;left:0;right:0;bottom:0;z-index:61;background:var(--card);border-radius:20px 20px 0 0;max-height:82vh;display:flex;flex-direction:column;box-shadow:0 -12px 40px rgba(11,11,12,.18);animation:sheetup .28s ease-out}
@keyframes sheetup{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
/* The grab takes the approved design's line-strong value
   (#96907F, unified.css) directly: the shared --line-strong
   token itself stays at its deferred value (DECISIONS #61 —
   it edges every input on every page and lands page by page),
   but the drawer is verbatim-law shell, so its one use of the
   token renders the approved colour now (UX-match shell train,
   2026-11-03). */
.drawer .grab{width:40px;height:4.5px;border-radius:99px;background:#96907F;margin:12px auto 4px;flex:none}
.drawer .dhead{display:flex;align-items:flex-start;gap:12px;padding:12px 20px 4px}
.drawer .dtitle{font-family:var(--serif);font-weight:500;font-size:22px;line-height:28px;flex:1}
.drawer .dclose{flex:none;background:none;border:0;font:inherit;font-size:14px;font-weight:600;color:var(--ink-2);cursor:pointer;padding:13px 10px;margin:-9px -6px 0 0;text-decoration:underline;text-underline-offset:3px}
.drawer .dbody{overflow-y:auto;padding:8px 20px 32px;font-size:16px;line-height:24px}
.drawer .dbody p{margin-top:10px}
.drawer .dbody p:first-child{margin-top:2px}
@media (min-width:900px){
  .drawer{left:auto;top:0;bottom:0;width:440px;max-height:none;border-radius:0;animation:slidein .28s ease-out}
  @keyframes slidein{from{transform:translateX(32px);opacity:.4}to{transform:none;opacity:1}}
  .drawer .grab{display:none}
}
/* the labelled links whose wording lives in the drawer */
.dlinks{margin-top:16px;border-top:1px solid var(--line-2)}
.dlink{display:flex;align-items:center;gap:10px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line-2);background:none;font:inherit;font-size:16px;font-weight:600;color:var(--ink);text-align:left;cursor:pointer;text-decoration:none}
.dlink:last-child{border-bottom:0}
.dlink .chev{margin-left:auto;color:var(--ink-3);font-size:18px;flex:none}

/* ---------- layout & type ---------- */
/* The view's inset is the approved design's .wrap inset — 20px
   sides, 32px top, 110px bottom (the specimen's 22px top
   snapped to the spacing system's s8 — spacing pass,
   2026-11-04; UX-match shell train, 2026-11-03). The 660 max-width stays: DECISIONS #48's
   rail scheme (660 flow / 880 data via .w-wide) superseded the
   design package's 560 specimen. */
/* The growing content region of the sticky-footer floor (see
   the body rule): it wraps #view and the #coach slot so both
   keep their exact in-flow geometry while the region absorbs
   the slack. */
/* The workspace frame (Slice 0): #viewwrap is his
   .workspace-main — max-width 1280 centred (1220 at 1680+),
   gutters 48/32/20 by band, frame-top 36/34/30 (RP-28), the
   bottom room his shell carries. #view itself is the plain
   region inside it; face measures belong to the face slices. */
#viewwrap{
  flex:1 0 auto;width:100%;max-width:1280px;margin:0 auto;
  padding:36px 48px 80px;
}
@media(min-width:1680px){ #viewwrap{max-width:1220px} }
@media(max-width:1199px){ #viewwrap{max-width:1000px;padding:34px 32px 72px} }
@media(max-width:767px){ #viewwrap{padding:30px 20px 96px} }
/* Signed out, the footer's own 44px margin is the whole
   content-to-footer separation (the separation law in the
   new shell): the frame's bottom room stands down when the
   footer follows. Signed-in views never show the footer
   (RP-06) and keep the frame's bottom room. */
body:not(.tabbed) #viewwrap{padding-bottom:0}
#view{animation:rise .22s var(--ease)}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* The app title size: view titles are real <h1>s (DECISIONS #48)
   at exactly the size <h2> always gave them — a semantics change,
   not a visual one. Public doc pages override to their own 32px
   H1 under .doc; the landing hero keeps its .l-title class size. */
/* Heading dialect (approved unified design; UX-match shell
   train, 2026-11-03): bold serif — h1 30/700, h2 21/700 —
   left-aligned by default. The pre-unification 500-weight
   headings were the old dialect's lighter serif. */
/* Slice 0: headings and text roles read the ONE type system
   (the --type-* tokens above; the founder prototype's CSS
   governs — prep §1). The old unified 28/36 H1 and 22/28 H2 are
   superseded; per-seat H3 values live with their seats (F-T8). */
h1{font-family:var(--serif);font-size:var(--type-h1);line-height:var(--type-h1-lh);font-weight:500;letter-spacing:-.025em}
h2{font-family:var(--serif);font-size:var(--type-h2);line-height:var(--type-h2-lh);font-weight:500;letter-spacing:-.02em}
h3{font-size:var(--type-h3);line-height:var(--type-h3-lh);font-weight:600;letter-spacing:-.01em}
/* F-T1: inside a heading-line the narrow-band H1 is 28px. */
@media(max-width:359px){ .heading-line h1{font-size:28px} }
.lede{font-size:var(--type-desc);color:var(--ink-2);line-height:var(--type-desc-lh);margin-top:12px}
.small{font-size:var(--type-small);color:var(--ink-2);line-height:var(--type-small-lh)}
.fine{font-size:var(--type-fine);color:var(--ink-3);line-height:var(--type-fine-lh)}
.agree{display:flex;gap:12px;align-items:flex-start;text-align:left}
.agree input{width:24px;height:24px;margin:0;flex:none;accent-color:var(--ink)}
.agree label{font-size:14px;color:var(--ink);line-height:24px}
/* 2026-11-19: tap targets at least 24px tall (WCAG 2.5.8) without changing the look. */
.agree label a{display:inline-block;min-height:24px;line-height:24px}
.micro{font-size:12px;line-height:16px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
/* Fact nowrap (spacing pass, 2026-11-04): a "·"-separated fact
   — "Asks you above $50.00", "Receipt № 000030", a date — is
   one unit of meaning and never breaks mid-fact; text wraps
   only between facts. Carried by the fact spans in the Home
   limits card, the receipt rows and the shared budget line. */
.fnw{white-space:nowrap}
.center{text-align:center}
.stack>*+*{margin-top:16px}
.stack-lg>*+*{margin-top:24px}
.rowline{display:flex;align-items:center;justify-content:space-between;gap:16px}
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}.mt48{margin-top:48px}
.rule{height:1px;background:var(--line)}

/* ---------- sections ----------
   Container dialect (approved unified design; UX-match shell
   train, 2026-11-03): rows live in rounded container cards —
   white ground, hairline card border, 16px radius, 24px
   padding (spacing system s6, spacing pass 2026-11-04). This supersedes the pre-unification "flat:
   hairlines, never boxes" section form and DECISIONS #61's
   deferral of the bordered .card shape: the founder's
   approved-UX directive (2026-11-03) puts the dialect in the
   shared layer once, and the page trains retire the .flat
   opt-out screen by screen where the design wants the box. */
.card{
  background:var(--card);border:1px solid var(--line-card);border-radius:16px;
  padding:24px;
}
/* Heading→card junction rule (Diagnosis 3): a card that directly
   follows an h1 gets the standard 16px gap from the shared layer,
   so no view has to remember an inline margin. :where() keeps the
   rule at the lowest possible precedence — it is a DEFAULT, never
   an override: any gap a view chose on purpose (an inline margin,
   or a .mt8/.mt16/.mt24 spacing utility) still wins, and the rule
   only supplies the gap a view forgot. Before this rule, Home's
   no-ask limits card sat at 0px under the H1 and the serif
   descenders crossed its top border. */
h1 + :where(.card){margin-top:16px}
/* .flat is the explicit opt-out: the old hairline section form,
   kept whole for the faces that chose it; page trains retire it
   per screen where the approved design wants the box. */
.card.flat{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:24px 0 4px}
.hairline{border:0;border-top:1px solid var(--line);margin:24px 0}
.fact{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:16px 0;border-bottom:1px solid var(--line-2)}
.fact:last-child{border-bottom:0}
.fact .k{
  color:var(--ink-2);font-size:16px;font-weight:400;letter-spacing:0;
  flex:none;
}
.fact .v{
  font-family:var(--sans);font-weight:500;font-size:17px;line-height:24px;text-align:right;
  font-variant-numeric:tabular-nums;
}
.fact .v.plain{font-family:var(--sans);font-size:14px;font-weight:500}
/* The ONE fact-row form (DECISIONS #48): one component, everywhere
   it appears. At 560px and up the label sits in a fixed 250px
   column and the value beside it, left-aligned — the same column
   on the slips list, the slip detail, Keys, everywhere, so labels
   line up across pages. Below 560px the value restacks UNDER the
   label, left-aligned, full width. A value wraps inside its own
   column or restacks — it never squeezes into a right-aligned
   cliff, and a money figure (a single token to the wrap rules)
   never breaks mid-value. */
@media(min-width:560px){
  .fact{display:grid;grid-template-columns:250px 1fr;column-gap:24px;align-items:baseline}
  .fact .v{text-align:left}
}
@media(max-width:559px){
  .fact{display:block}
  .fact .k{display:block;margin-bottom:8px}
  .fact .v{display:block;text-align:left}
}

/* ---------- buttons ----------
   Button dialect (approved unified design; UX-match shell
   train, 2026-11-03): PILL shape, sentence case as written —
   "Allow $120.00", "Set your first limit". The pre-unification
   form (12px-radius rectangle, letterspaced uppercase label)
   was the old dialect; the case lived in CSS, so this one
   change re-dresses every button in the product. Primary:
   black fill. Quiet: hairline outline pill. Text: underlined
   text. Ghost: inline text. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;padding:0 24px;border-radius:999px;
  font-size:16px;font-weight:500;letter-spacing:0;
  transition:transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), opacity .15s;
  user-select:none;-webkit-tap-highlight-color:transparent;
}
.btn:active{transform:scale(.98)}
.btn.primary{
  background:var(--ink);color:var(--bg);
  font-size:16px;font-weight:600;letter-spacing:.02em;
}
.btn.primary:hover{background:#2A2820}
.btn.quiet{background:transparent;border:1px solid var(--line-strong);color:var(--ink)}
.btn.quiet:hover{border-color:var(--ink)}
.btn.textbtn{
  width:100%;min-height:48px;padding:0 8px;border-radius:0;
  font-size:16px;font-weight:500;color:var(--ink);
  text-decoration:underline;text-underline-offset:3px;
}
.btn.textsm{
  min-height:40px;padding:0 4px;border-radius:0;
  font-size:14px;font-weight:500;color:var(--ink-2);
}
.btn.textsm:hover{color:var(--ink)}
.btn.ghost{color:var(--ink-2);min-height:44px;padding:0 10px}
.btn.ghost:hover{color:var(--ink)}
.btn.danger-quiet{background:transparent;border:1px solid var(--line-strong);color:var(--ink)}
.btn.danger-quiet:hover{border-color:var(--ink)}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;pointer-events:none}
/* A disabled primary is the design's beige pill (track ground,
   ink-2 text), not a faded black one. */
.btn.primary[disabled]{background:var(--track);color:var(--ink-2);opacity:1}
.btn.sm{min-height:40px;padding:0 16px;font-size:14px}
.btn.ghost.sm,.btn.textsm.sm{min-height:40px;font-size:14px}
.btn.primary.sm{font-size:12px}

/* ---------- the seal glyph (the one blue object) ---------- */
.seal{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border:1.5px solid var(--seal);border-radius:50%;flex:none;
}
.seal.sm{width:16px;height:16px;border-width:1.2px}

/* ---------- landing (preview composition) ---------- */
.landing{display:flex;flex-direction:column;min-height:calc(100dvh - 176px)}
.l-top{display:flex;justify-content:space-between;align-items:center}
.l-signin{font-size:14px;line-height:20px;color:var(--ink-2);font-weight:500;padding:8px 0}
.l-signin:hover{color:var(--ink)}
.l-hero{margin-top:64px;text-align:center}
.l-title{font-family:var(--serif);font-size:40px;line-height:44px;font-weight:500;letter-spacing:0;margin-top:16px}
@media(min-width:760px){.l-title{font-size:48px;line-height:52px}}
.l-sub{margin-top:16px;font-size:17px;line-height:24px;color:var(--ink-2)}
.l-ledger{margin-top:48px}
.ledger-row{display:flex;align-items:center;gap:12px;padding:16px 0}
.l-actions{margin-top:auto;padding-top:48px;display:flex;flex-direction:column;gap:4px}
.l-links{display:flex;align-items:center;justify-content:center;gap:8px}
.l-dev{margin-top:24px}
.l-devlinks{margin-top:8px;display:flex;gap:20px;justify-content:center;flex-wrap:wrap}
.l-devlinks a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line-strong);padding-bottom:2px;font-size:16px}
.l-foot{margin-top:32px;text-align:center}
.r-head{font-family:var(--serif);font-size:28px;font-weight:500;line-height:36px;letter-spacing:0}

/* ---------- allow (preview composition) ---------- */
.a-title{font-family:var(--serif);font-size:28px;font-weight:500;letter-spacing:0;line-height:36px;margin-top:24px}
.hero{margin-top:48px;display:flex;align-items:flex-end;gap:16px}
/* Flex children keep their min-content width unless told
   otherwise — the rule .rowline's children already live under
   (below) — so on a 320px rail the hero's side block wraps and
   the numeral breaks before the ROW can push the page sideways
   (F144; the review measured a 329px document at 320px). */
.hero>*{min-width:0}
.hero-num{
  font-family:var(--serif);font-size:32px;line-height:40px;font-weight:500;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
/* The numeral sits at the scale's Big-figure step (32/40) at
   every width — small enough to stay whole on the narrowest
   rail beside the side block. (overflow-wrap above remains the
   net for amounts too long even for this.) */
.hero-side{padding-bottom:8px}
.hero-side .micro{color:var(--ink-2);margin-top:8px;line-height:16px}
.slip{margin-top:48px;border-top:1px solid var(--line)}

/* ---------- agent & slips ---------- */
.agent-face{
  width:56px;height:56px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--ink);color:var(--bg);
  font-family:var(--serif);font-size:24px;font-weight:500;
}
.agent-face.sm{width:40px;height:40px;font-size:17px}
.pill{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-2);white-space:nowrap;
}
.pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ink-3);flex:none}
.pill.on{color:var(--ink)} .pill.on::before{background:var(--ink)}
.pill.paused{color:var(--ink-2)} .pill.paused::before{background:var(--ink-4)}
.pill.off{color:var(--ink-3)} .pill.off::before{background:var(--ink-3)}
.chip{
  display:inline-flex;align-items:center;min-height:38px;padding:0 16px;
  border-radius:980px;border:1px solid var(--line-strong);font-size:14px;color:var(--ink);
  transition:all .15s var(--ease);user-select:none;
}
/* Selected chips stay OUTLINE in the approved dialect (an ink
   border + weight, never a black fill). */
.chip[aria-pressed="true"]{background:var(--card);color:var(--ink);border-color:var(--ink);font-weight:600}
/* ---------- timeline / receipt book (preview composition) ---------- */
.sim{border-top:1px solid var(--line);padding-top:24px;margin-top:32px}
.dayhead{
  margin-top:48px;display:flex;justify-content:space-between;align-items:baseline;
  padding-bottom:12px;border-bottom:1px solid var(--ink);
}
.dayhead .micro{color:var(--ink-2)}
.dayhead .t{font-family:var(--serif);font-size:22px;line-height:28px;font-weight:500;font-variant-numeric:tabular-nums}
.rows{border-bottom:1px solid var(--line)}
.trow{
  display:flex;align-items:baseline;gap:12px;padding:16px 0;
  border-bottom:1px solid var(--line-2);
  width:100%;text-align:left;
}
.trow:last-child{border-bottom:none}
button.trow{cursor:pointer}
.tname{font-size:16px;font-weight:600}
.tstat{font-size:13px;line-height:20px;color:var(--ink-3);margin-top:4px;display:flex;align-items:center;gap:8px}
.tamt{
  margin-left:auto;white-space:nowrap;
  font-family:var(--sans);font-weight:500;font-size:17px;font-variant-numeric:tabular-nums;
}

/* ---------- forms ---------- */
/* Form labels are sentence case in the approved dialect
   (unified .flabel: 13px/600, ink-2, no caps, no tracking). */
label.flabel{
  display:block;margin:16px 0 8px;
  /* Slice 0 type token (prep F-T4: the prototype CSS governs —
     14px weight 500 desktop/tablet, 13px phone; the spec prose's
     "semibold" is NOT adopted). */
  font-size:var(--type-label);font-weight:500;letter-spacing:0;color:var(--ink-2);
}
/* A money field's problem line (F144): sits under its field in
   the clay red — form error text, never an alarm. */
.fielderr{color:var(--red);margin-top:8px}
.input{
  width:100%;min-height:50px;padding:0 16px;border-radius:var(--radius-s);
  border:1px solid var(--field-line);background:transparent;font-size:16px;
  outline:none;transition:border-color .15s;
}
/* One focus language everywhere (DECISIONS #48): inputs take the
   same 2px ink outline links and buttons have always had, over the
   ink border — before this, a focused input changed only its
   border shade and keyboard focus was effectively invisible. */
.input:focus{outline:2px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
/* ONE dropdown (founder, 2026-11-13): every select.input becomes the
   Sealgraf field + card menu drawn by sgEnhanceSelect in app.js. The
   field is the .input itself (same border, height, focus ring); the
   menu is the account menu's card (card surface, hairline, soft
   shadow) with the list rows' hover tint and a check on the pick.
   The real <select> stays underneath, invisible, for its value. */
.sgsel{position:relative}
.sgsel select{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.sgsel-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;color:var(--ink);background:var(--card)}
.sgsel-btn:disabled{cursor:default;color:var(--ink-3)}
.sgsel-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.sgsel-chev{width:16px;height:16px;flex:none;color:var(--ink-2);transition:transform .15s}
.sgsel.open .sgsel-chev{transform:rotate(180deg)}
.sgsel.open .sgsel-btn{border-color:var(--ink)}
.sgsel-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;margin:0;padding:6px;list-style:none;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius-s);
  box-shadow:0 16px 40px rgba(20,20,30,.14);max-height:320px;overflow:auto;outline:none}
.sgsel-list.up{top:auto;bottom:calc(100% + 6px)}
.sgsel-list[hidden]{display:none}
.sgsel-opt{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:8px;font-size:16px;color:var(--ink);cursor:pointer;user-select:none}
.sgsel-opt.active{background:var(--track)}
.sgsel-opt[aria-selected="true"]{font-weight:600}
.sgsel-opt[aria-disabled="true"]{color:var(--ink-3);cursor:default}
.sgsel-check{width:16px;height:16px;flex:none;visibility:hidden}
.sgsel-opt[aria-selected="true"] .sgsel-check{visibility:visible}

/* Password visibility (DECISIONS #55): the field keeps its full
   width; the Show/Hide word sits inside its right edge, in ink —
   the seal blue stays reserved for the seal. */
.pw-wrap{position:relative}
.pw-wrap .input{padding-right:64px}
.pw-toggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  background:none;border:0;padding:6px 8px;cursor:pointer;
  font-size:13px;color:var(--ink-2);text-decoration:underline;
}
/* Slice 0: input text unifies at 16px (the prototype's .field
   input value; live's textarea sat at 14 — prep §1.2). */
textarea.input{padding:12px 16px;min-height:110px;resize:vertical;font-size:16px;line-height:1.5}
.money{display:flex;align-items:center;gap:8px}
.money .cur{font-family:var(--sans);font-size:17px;font-weight:500;color:var(--ink-2)}
.money .input{font-family:var(--sans);font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}
.seg{display:flex;background:transparent;border:1px solid var(--line);border-radius:12px;padding:4px;gap:4px}
.seg button{
  flex:1;min-height:40px;border-radius:9px;font-size:14px;font-weight:500;color:var(--ink-2);
  transition:all .15s var(--ease);padding:0 8px;
}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.chips{display:flex;flex-wrap:wrap;gap:8px}

/* ---------- verdicts, toast, misc ---------- */
.verdict{display:flex;gap:14px;align-items:flex-start;padding:20px 0;border-bottom:1px solid var(--line-2)}
.verdict:last-child{border-bottom:0}
.verdict .mark{font-size:22px;line-height:1.2;flex:none;width:30px;text-align:center}
.verdict .mark.ok{color:var(--ink)} .verdict .mark.no{color:var(--ink)} .verdict .mark.mid{color:var(--ink-3)}
/* the blue seal colour is spent once per screen: the first verdict only */
#verify-zone .verdict:first-child .mark.ok,
#bundle-result .verdict:first-child .mark.ok,
#id-result .verdict:first-child .mark.ok{color:var(--seal)}
details.checks{margin-top:8px}
details.checks summary{font-size:14px;color:var(--ink-2);cursor:pointer;padding:8px 0;text-decoration:underline;text-underline-offset:3px}
details.checks li{font-size:13px;color:var(--ink-2);margin:8px 0 8px 16px;line-height:20px}
#toast{
  position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);
  z-index:50;max-width:min(92vw,480px);
  background:rgba(11,11,12,.94);color:var(--bg);font-size:var(--type-toast);font-weight:500;
  padding:12px 20px;border-radius:14px;
  animation:rise .2s var(--ease);text-align:center;
}
/* the toast clears the fixed tab bar wherever the bar exists —
   the chrome breakpoint (DECISIONS #43), not the old 760 */
@media(min-width:768px){#toast{bottom:40px}}
/* Install coaching (approval delivery, H-3): the dismissible
   home-screen hint card. It lives in the shell's #coach slot below
   #view — outside the view, so a post-decision repaint cannot
   destroy it mid-read, but IN FLOW, so it can never float over a
   screen's own controls (the fixed-overlay first version covered
   the Connected screen's action stack; the F81 gate caught it). */
.install-hint{
  width:min(92vw,420px);margin:24px auto 48px;
  background:#fff;color:var(--ink);border:1px solid var(--line-strong);border-radius:14px;
  padding:20px;box-shadow:0 12px 32px rgba(11,11,12,.14);
  animation:rise .2s var(--ease);text-align:left;
}
.empty{padding:48px 24px;text-align:center}
.empty .big{font-family:var(--serif);font-size:40px;line-height:44px;font-weight:500;margin-bottom:12px;color:var(--ink-3)}
.spinner{
  width:20px;height:20px;border-radius:50%;flex:none;
  border:2.5px solid var(--line-strong);border-top-color:var(--ink);
  animation:spin .7s linear infinite;display:inline-block;vertical-align:-4px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-line{display:flex;gap:10px;align-items:center;color:var(--ink-2);font-size:16px;padding:24px 0}
.big-check{
  width:84px;height:84px;border-radius:50%;margin:8px auto;
  border:1.5px solid var(--seal);color:var(--seal);background:transparent;
  display:flex;align-items:center;justify-content:center;font-size:40px;
  animation:pop .3s var(--ease);
}
@keyframes pop{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}
.pause-banner{
  background:transparent;border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);
  border-radius:0;padding:20px 0;
}
.keybox{
  font-family:var(--mono); font-size:13px;line-height:20px;
  word-break:break-all; background:transparent;
  border:1px solid var(--line-strong); border-radius:12px; padding:12px 16px;
}

/* ---------- long-content stress ----------
   Real agent names, shop names and amounts get long. Text wraps or
   breaks — it never pushes the page sideways at phone width.
   NOTE: `break-word` alone does not stop a flex row overflowing —
   it leaves a long unbroken word's min-content at full word width,
   so the row (and the page) still grows sideways (breaker MINOR:
   approvals card hit 818px at a 390px viewport with a 50-char
   counterparty + 120-char description). `anywhere` counts the break
   opportunities in min-content sizing, which is what actually lets
   the flex item shrink — every text element inside a flex row needs
   it, not just headings. */
h2,h3,.tname,.r-head,.l-title{overflow-wrap:break-word}
.rowline h3,.rowline p{overflow-wrap:anywhere}
.rowline>div,.ledger-row>div,.verdict>div{min-width:0}
.fact .v{min-width:0;overflow-wrap:break-word}
.tstat{flex-wrap:wrap}
details.checks li{overflow-wrap:break-word}

/* number fields: no native spinner arrows (they read as clutter, not craft) */
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- responsive: the class rails (Responsive Option A as
   unified by DECISIONS #48) ----------
   Width belongs to the page CLASS, never to the page's content
   state: data/list/detail screens (slips, slip detail, receipt
   book, receipt detail, keys, approvals — and the no-workspace
   empty state of those same screens) are the 880px data rail at
   desktop widths; forms (slip create), auth, the checker and the
   connected confirmation keep the 660px column. A page is the
   same width empty as full — it never widens the day the first
   slip lands. Every rule below sits behind min-width:760px, so
   phone widths are pixel-identical to before this pass.
   Form-shaped blocks inside wide views (the simulate panel, the
   slip editor, card stacks) keep the readable measure instead of
   billboard inputs, and verdict prose keeps a reading width. The
   .fact rows are NOT re-ruled here: the fact component carries its
   one form at every width, in wide and narrow views alike. */
@media(min-width:760px){
  #view.w-wide{max-width:880px}
  #view.w-wide .sim{max-width:640px}
  /* #edit-form's 640px cap retired 2026-11-10 (UAT): the editor is now the unified
     two-column LimitForm (fields + review card), sized like #/slips/new; the cap
     squeezed it into half the page beside an empty right side. */
  #view.w-wide .card.flat .stack{max-width:640px}
  #view.w-wide .verdict p{max-width:640px}
}

/* ---------- legal & trust (legal-trust-pages) ----------
   One footer for every surface: the app shell carries it, and the
   standalone legal/contact/feedback pages use the same class. The
   .doc prose styles serve the rendered canonical texts — same ground,
   hairlines and serif headings as the app, long-form line length. */
/* The footer form is direction C, "Ends like a receipt"
   (founder pick, 2026-11-03; see-plan/footer-designs-20261103),
   as corrected by the founder the same day: NO card — no
   outline border, no rounded corners, no white box. The footer
   is a full-width section of the page: its dashed dividers (the
   footer's own top border; the stub bar's) run full-bleed, edge
   to edge, as content divisions, while the content — centred
   lockup, the promise in serif as the loudest element, the
   Product / Help / Legal groups as the receipt's rows, and the
   tear-off stub (the operator line; the motto as the sign-off)
   — stays on the page's rail: the app shell's 20px inset, the
   server pages' 32px, pricing's 1120 rail (three-across there).
   ONE component on every public surface: the server pages
   (.footc, emitted by see/sessionchrome.py — its content box
   keeps the sitefoot class, where F83 measures the rail) and
   the app shell (#sitefoot, web/index.html) carry the same
   markup. Where a footer appears at all is a shell policy
   (syncFoot() in web/app.js): never on signed-in views below
   768px (DECISIONS #42 — the phone law), never on the bare step
   faces (forgot / reset / verify / change-email); at 768px and
   up the signed-in app carries it too, seated in the content
   column by body.tabbed's padding like every in-flow box
   (founder directive 2026-11-04, amending #42 for wide widths).
   The correction is gated by scripts/ui_clickthrough_footer.py
   (no left/right border, no radius, full-bleed dividers). */
/* flex:0 0 auto — the footer's half of the sticky-footer floor
   (see the body rule): last item in the column, never shrunk,
   never grown; its 44px margin stays the one separation. */
/* The public footer (Slice 0; §14 R-02): the founder
   prototype's single-row footer — brand, the promise line, his
   six links, and the closing operator line — on a solid
   border-top, inside the public measure (content 1120 at
   desktop). It replaces the Direction-C component in BOTH
   shells (this sheet serves the SPA's #sitefoot and, via
   see/sessionchrome.py's markup, the server pages' footer —
   one component, one set of rules). The Direction-C content
   facts survive inside it verbatim (RP-19): the promise
   "Every dollar, seen and sealed." and the operator line
   "Sealgraf is run by Sai Arun Labs." */
/* flex:0 0 auto — the footer's half of the sticky-footer floor
   (see the body rule): last item in the column, never shrunk. */
/* The footer is a stretched flex item of the body column, so
   margin:0 auto cannot centre it — align-self:center shrinks
   it to its content width (~888px at desktop, which is also
   what stops the 44px top margin from collapsing through).
   width:100% (capped by max-width) makes the auto margins the
   centring mechanism again — the same pattern #viewwrap uses. */
#sitefoot,.public-footer{flex:0 0 auto;align-self:center}
.public-footer{
  max-width:1120px;width:100%;margin:0 auto;
  padding:32px 0 35px;border-top:1px solid var(--line);
  display:flex;align-items:center;gap:20px 28px;flex-wrap:wrap;
  font-size:13px;color:var(--ink-2);
}
.public-footer .brand{display:inline-flex}
.public-footer .brand img{width:110px;height:auto;display:block}
.public-footer p{color:var(--ink-2)}
.public-footer nav{display:flex;gap:20px;flex-wrap:wrap;margin-left:auto}
.public-footer nav a{color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.public-footer nav a:hover{color:var(--ink)}
/* UX sweep 2026-11-10: on phones the footer links were 20px tall to tap; an invisible layer
   12px above and below gives each a 44px tap height. The link's own box is unchanged, so
   nothing moves and the footer's measured end padding stays as designed. */
@media(max-width:767px){ .public-footer nav a{position:relative} .public-footer nav a::after{content:"";position:absolute;left:0;right:0;top:-12px;bottom:-12px} }
.public-footer>.minor{flex-basis:100%;font-size:12px}
/* His tablet band (max-width:1199px): side margins, box unchanged. */
@media(max-width:1199px){ .public-footer{margin:0 32px;width:auto} }
/* The footer spans its band's measure below desktop (layout gate):
   it is centred in a flex column, so with align-self:center its width
   followed its content — and once the operator line left the footer
   (founder ruling #135) the box and its divider shrank to the links. */
@media(max-width:1199px){ #sitefoot,.public-footer{align-self:stretch} }
/* His phone band (max-width:767px): the footer stacks as a
   left-aligned column; the nav drops its auto margin; the
   shortened operator line ("Sealgraf is run by Sai Arun Labs.")
   fits one line at his 11px, so the old <=374px step is gone. */
@media(max-width:767px){
  .public-footer{margin:0 20px;width:auto;padding:28px 0;flex-direction:column;align-items:flex-start;gap:18px}
  .public-footer nav{margin-left:0;gap:15px 20px}
  .public-footer>.minor{font-size:11px}
}

/* flex:1 0 auto — the server shells' growing content region
   for the sticky-footer floor (see the body rule); on any
   element that is not a shell child the declaration is inert. */
/* Slice 0: the article measure is his 680px reading rail
   (RP-23); article type follows his legal-article values
   (prep §1.5) — body leading 1.7 at desktop/tablet. */
.doc{max-width:680px;margin:0 auto;padding:24px 32px 72px;animation:rise .22s var(--ease);flex:1 0 auto}
.doc h1{margin-bottom:8px}
.doc h2{margin:32px 0 12px}
.doc h3{margin:32px 0 8px}
.doc p{margin-top:12px;font-size:16px;line-height:1.7;color:var(--ink)}
.doc .lede{font-size:17px;line-height:24px}
.doc ul,.doc ol{margin-top:12px;padding-left:24px}
.doc li{font-size:15px;line-height:1.65;margin:8px 0}
@media(max-width:767px){
  .doc p{font-size:15px;line-height:1.65}
  .doc li{font-size:14px}
  .doc h2{font-size:25px}
  .doc h3{font-size:20px}
}
.doc code{
  font-family:var(--mono);font-size:.92em;
  background:transparent;border:1px solid var(--line-2);border-radius:6px;padding:0 4px;
}
/* Inside a code block the box is the <pre>: the inline-code outline
   would otherwise draw a line under every wrapped code line. */
.doc pre code{border:0;border-radius:0;padding:0;background:none}
/* Same containment as the developer docs (DECISIONS #48): a long
   unbreakable inline token breaks instead of pushing the page
   sideways. */
.doc p code,.doc li code{overflow-wrap:anywhere}
/* honeypot: rendered off-screen, never display:none (bots skip those) */
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* ---- Connect cluster (UX Stage 3, feat/ux-connect) ----
   Additive only: the stepped connect faces (picker, per-agent steps,
   keys-new, consent in-full card) use the unified design vocabulary
   (ux-unified-20261102/unified.css) where the base sheet had no class.
   Values mirror the design file so foundation reconciliation is a
   dedupe, not a restyle. */
.steplabel{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2);font-weight:600}
.bar{height:8px;background:var(--track,#ECE9E1);border-radius:99px;overflow:hidden;margin-top:8px}
.bar>i{display:block;height:100%;background:var(--ink);border-radius:99px}
.backlink{display:inline-block;text-decoration:none;color:var(--ink-2);font-size:14px;margin-bottom:16px}
.sumrow{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.sumrow:last-child{border-bottom:0}
.sumrow .grow{flex:1;min-width:0}
.sumrow .chev{color:var(--ink-3);font-size:20px;flex:none}
/* UX-match account cluster: card VARIANTS on the shell's unified
   .card (the boxed card itself is the shell layer's since the
   UX-match shell train, 2026-11-03 — .uxcard no longer carries the
   base box, only the row-card geometry the account faces use). */
.uxcard.rows{padding-top:4px;padding-bottom:4px}
.uxcard .sumrow{padding:12px 0}
.strongval{color:var(--ink);font-weight:600}
/* UX-match: the approved .btn geometry (pill, 15.5px/600, 14px 26px)
   for the standard buttons on matched faces; the shell .btn keeps
   its v6 rounded-rect geometry elsewhere until the shell adopts
   the unified button wholesale. */
.btn.uxbtn{border-radius:999px;font-size:16px;font-weight:600;letter-spacing:.02em;text-transform:none;text-decoration:none;padding:14px 26px;min-height:52px}
/* Inside a matched card, form furniture takes the unified values:
   labels are sentence-case 13.5px/600 (the shell label is the v6
   uppercase micro-label) and card headings are 16.5px/700. */
.uxcard .input,.uxform .input{min-height:52px}
.helper{font-size:14px;color:var(--ink-2);margin-top:8px;line-height:20px}
.uxcard h3{font-size:17px;line-height:24px;font-weight:600}
/* UX-match: unified component patterns the shell never imported —
   switch rows, the hairline accordion, and numbered steps, values
   verbatim from unified.css. */
.swrow{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line-2)}
.swrow:last-child{border-bottom:0}
.swrow .grow{flex:1;min-width:0}
/* The real switch inputs wear the approved .toggle's geometry —
   same input, same change events, the design's face. */
.swrow input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:none;width:48px;height:28px;border-radius:99px;background:var(--track);border:1px solid var(--line-strong);position:relative;cursor:pointer;margin:0}
.swrow input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:var(--card);border:1px solid var(--line-strong);transition:left .15s}
.swrow input[type=checkbox]:checked{background:var(--ink);border-color:var(--ink)}
.swrow input[type=checkbox]:checked::after{left:22px;background:var(--bg);border-color:var(--bg)}
.swrow input[type=checkbox]:disabled{opacity:.45;cursor:default}
details.acc{border-top:1px solid var(--line)}
details.acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:16px 0}
details.acc>summary::-webkit-details-marker{display:none}
details.acc>summary .chev{transition:transform .15s}
details.acc[open]>summary .chev{transform:rotate(90deg)}
details.acc .accbody{padding:0 0 16px}
.steps{counter-reset:st;margin-top:6px}
.step{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.step:last-child{border-bottom:0}
.step .n{flex:none;width:27px;height:27px;border-radius:50%;border:1.5px solid var(--ink);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;margin-top:1px}
.step p{margin:0}
/* More unified components the shell never imported (verbatim):
   the status dot/line, the waiting strip, and the bordered kind
   pill — the shell's own .pill is a different, borderless label
   other faces depend on, so the pill ships as .uxpill. */
.dot{width:7px;height:7px;border-radius:50%;background:var(--seal);display:inline-block;flex:none}
.statusline{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--ink-2)}
.waitstrip{display:flex;align-items:center;gap:12px;background:var(--card);border:1.5px solid var(--ink);border-radius:14px;padding:12px 16px;margin-top:16px;text-decoration:none;color:var(--ink)}
.waitstrip .grow{flex:1;min-width:0}
.waitstrip .chev{color:var(--ink-3);font-size:20px;flex:none}
.uxpill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);border-radius:999px;padding:3px 11px;font-size:12px;font-weight:600;white-space:nowrap}
.uxpill.on{border-color:var(--ink)}
.btn.uxlink{width:auto;min-height:0;padding:0;border-radius:0;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.uxcard.rows .sumrow:last-of-type{border-bottom:0}
/* Inside a matched card the text button is the unified inline
   underlined link; the shell's .textbtn is a full-width block
   button other faces depend on. */
.uxcard .btn.textbtn{width:auto;min-height:0;padding:0;border-radius:0;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.kitblock{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-family:var(--mono);font-size:13px;line-height:20px;white-space:pre-wrap;word-break:break-all;margin-top:8px}
.copybtn{display:inline-block;background:var(--card);border:1px solid var(--line-strong);border-radius:999px;padding:8px 16px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;color:var(--ink);white-space:nowrap}
.copyrow{display:block;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-top:8px}
.copyrow .val{display:block}
.cellbtn{display:block;text-align:right;margin-top:8px}
.cxbtn{text-decoration:none}
.cxradio{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line-strong);border-radius:12px;padding:16px;margin-top:8px;background:var(--card);cursor:pointer;width:100%;text-align:left;font:inherit;color:var(--ink)}
.cxradio.sel{border-color:var(--ink);border-width:1.5px}
.cxradio .rdot{width:19px;height:19px;border-radius:50%;border:1.5px solid var(--ink);flex:none;margin-top:2px;display:flex;align-items:center;justify-content:center}
.cxradio.sel .rdot::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--ink)}
.cxradio .grow{flex:1;min-width:0}
.cxcheck{display:flex;gap:11px;padding:9px 0}
.cxcheck .mark{flex:none;font-weight:600;width:20px;text-align:center}
.cxcheck .grow{flex:1;min-width:0}

/* ---------- the desktop rail (Slice 0, Founder Design
   Programme) ----------
   At 1200px and up, while signed in, the app shell trades the
   tablet top-nav for this LEFT RAIL — the founder prototype's
   sidebar at its own values: 224px, the 135px brand lockup, the
   four primary sections as plain-text links, and the foot group
   (Agents / Verify / divider / Settings / the workspace
   caption) pinned at the bottom. NO identity block and NO
   account-section rows live here (RP-02/RP-09 — the #117 rail
   is reversed by name in DECISIONS at merge). The signed-in
   signal is setNav's own body.tabbed; the element follows the
   chrome visibility law in app.js (ships hidden, revealed after
   the session verdict, F67). The middle region scrolls with a
   hidden scrollbar as a safety valve on short viewports — the
   brand and the foot stay pinned (the rail-scroll gate's valve
   legs, re-pointed: scripts/ui_clickthrough_rail_anatomy.py). */
#rail{display:none}
@media(min-width:1200px){
  body.tabbed #rail{
    position:fixed;left:0;top:0;z-index:30;
    width:var(--rail-w);height:100vh;height:100dvh;
    display:flex;flex-direction:column;
    padding:28px 20px 22px;
    background:var(--bg);border-right:1px solid var(--line);
  }
  body.tabbed{padding-left:var(--rail-w)}
  /* The toast and the fixed action bars centre/start on the
     content column, past the rail. */
  body.tabbed #toast{left:calc(50% + 112px)}
}
#rail .rail-brand{align-self:flex-start;text-decoration:none}
#rail .rail-lockup{width:135px;height:auto;display:block}
#rail .rail-scroll{
  flex:1;min-height:0;display:flex;flex-direction:column;
  overflow-y:auto;scrollbar-width:none;
}
#rail .rail-scroll::-webkit-scrollbar{display:none}
#rail .rail-links{display:grid;gap:4px;margin-top:40px}
#rail .rail-bottom{margin-top:auto;display:grid;gap:4px;padding-top:28px}
#rail .rail-links a,#rail .rail-bottom a{
  position:relative;display:flex;align-items:center;gap:15px;
  min-height:44px;padding:10px 12px;border-radius:10px;
  border:1px solid transparent;text-decoration:none;color:var(--ink-2);
  font-size:15px;font-weight:500;
}
#rail .rail-links a:hover,#rail .rail-bottom a:hover{background:var(--card);border-color:var(--line)}
#rail .rail-links a.on,#rail .rail-bottom a.on{color:var(--ink);font-weight:600;background:var(--card);border-color:var(--line)}
#rail-badge{margin-left:auto}
/* Rail icons (the founder's evidence anatomy): the four primary
   links carry his sprite symbols beside their labels at his
   24px seat — the same .ic-def/.ic-act pair mechanism as the tab
   bar, switched by setNav's .on. Agents and Verify stay
   text-only, as his evidence renders them; the Settings dots
   seat the plain symbol only (his rail-bottom renders the more
   icon with no active twin). */
#rail .rail-ic{position:relative;display:block;line-height:0;flex:none}
#rail .rail-ic svg{width:24px;height:24px;display:block}
#rail .rail-ic .ic-act{display:none}
#rail a.on .rail-ic .ic-act{display:block}
#rail a.on .rail-ic .ic-def{display:none}
#rail .rail-sep{height:1px;background:var(--line);margin:10px 12px}
#rail .rail-caption{padding:14px 12px 0;color:var(--ink-3);font-size:12.5px}

/* The wide measures inside the frame (faces keep their live
   compositions in Slice 0; the frame is #viewwrap's, above).
   The auth stage keeps its capped measure inside the column. */
@media(min-width:768px){
  #view:has(> .ux1.authface){max-width:820px;margin:0 auto}
}
@media(min-width:1120px){
  #view:has(> .ux1.landing){max-width:1120px;margin:0 auto}
  #view:has(> .ux1.authface){max-width:1120px;margin:0 auto}
  body.tabbed #view:has(> .ux1.authface){max-width:1020px}
}

/* ==== Slice 2: limits list, detail, unified LimitForm (founder prototype) ==== */
.heading-line{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.heading-action{flex:none}
.page-description{max-width:720px;font-size:17px;line-height:1.55;color:var(--ink-2);margin-top:14px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:26px 0 8px;flex-wrap:wrap}
.tabs button{appearance:none;border:0;background:none;min-height:48px;padding:12px 18px 14px;font-size:15px;font-weight:500;color:var(--ink-2);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button .cnt{font-size:12px;color:var(--ink-3);margin-left:5px}
.tabs button[aria-pressed="true"]{color:var(--ink);font-weight:600;border-bottom-color:var(--ink)}
.limit-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(260px,1.5fr) auto;gap:24px;align-items:center;
  padding:26px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.limit-row:first-child{border-top:1px solid var(--line)}
.limit-row:hover{background:var(--track)}
.row-title h2{font-size:23px;line-height:1.25;margin:0}
.row-title .minor{font-size:14px;color:var(--ink-2);margin-top:5px}
.badge.state{display:inline-block;margin-left:10px;padding:2px 10px;border:1px solid var(--line-strong);
  border-radius:99px;font-size:12px;font-weight:600;color:var(--ink-2);vertical-align:3px;white-space:nowrap}
.limit-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.limit-facts>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.limit-facts span{font-size:12px;color:var(--ink-2)}
.limit-facts strong{font-size:14px;white-space:nowrap}
.row-open{font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap}
.notice{display:flex;gap:16px;padding:20px;border:1px solid var(--line-card);border-radius:12px;margin:22px 0;background:var(--card)}
.notice p{margin:0}
.notice .minor{font-size:14px;color:var(--ink-2);margin-top:5px}
.empty-state{padding:60px 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  text-align:center;max-width:900px;margin:14px auto}
.empty-state h2{margin:0 0 10px}
.empty-state p{color:var(--ink-2);max-width:520px;margin:0 auto 20px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:48px;align-items:start}
.detail-aside{border-left:1px solid var(--line);padding-left:30px}
.aside-divider{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.aside-divider:first-child{margin-top:0;padding-top:0;border-top:0}
.rule-summary{font-size:14px;color:var(--ink-2);margin-top:12px;line-height:1.55}
.category-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.category-tag{display:inline-flex;align-items:center;min-height:35px;padding:7px 12px;border-radius:30px;
  font-size:13px;border:1px solid var(--line-strong);color:var(--ink)}
.facts-list{margin:0}
.facts-list .kv{display:flex;justify-content:space-between;gap:24px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}
.facts-list .kv span.k{color:var(--ink-2)}
.facts-list .kv span:last-child{font-weight:500;text-align:right}
.progress-track{height:7px;background:var(--track);border-radius:8px;overflow:hidden;margin:10px 0 4px}
.progress-track>i{display:block;height:100%;background:var(--ink);border-radius:8px}
.form-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:64px;align-items:start;
  /* UAT 2026-11-10: the heading block no longer sits on the first section's hairline,
     and the review card no longer touches it (sign-up step 2, New / Change limits). */
  margin-top:32px}
.form-sections>section{padding:25px 0 8px;border-top:1px solid var(--line)}
.form-sections h2{margin:0 0 24px}
.form-review{position:sticky;top:var(--sticky-top);background:var(--card);border:1px solid var(--line-card);border-radius:16px;padding:25px;max-height:calc(100vh - var(--sticky-top) - 24px);overflow-y:auto}
.form-review .review-amount{font-family:var(--serif,serif);font-size:40px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums;margin:6px 0 2px}
.form-review .facts-list .kv{padding:9px 0}
.form-review .minor{font-size:14px;color:var(--ink-2)}
.form-action{display:flex;gap:24px;align-items:center;margin-top:28px;flex-wrap:wrap}
.form-error{padding:12px 16px;margin:20px 0;border-left:2px solid var(--red);color:var(--red);font-size:14px}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.field{margin:0 0 24px}
.field>label{display:block;font-size:14px;font-weight:500;color:var(--ink-2);margin-bottom:9px}
.field input.input{display:block;width:100%;min-height:50px;padding:12px 15px;background:var(--card);
  border:1px solid var(--field-line);border-radius:8px;font-size:16px;color:var(--ink)}
.field input.input[readonly]{background:var(--bg);color:var(--ink-2)}
/* DECISIONS #48 focus language on the unified form: the .field block's
   border shorthand above outranks .input:focus, so the ink border half
   of the focus language is restated at this specificity (L-3d). */
.field input.input:focus{border-color:var(--ink)}
.field .field__help{margin-top:8px}
.radio-stack{display:flex;flex-direction:column;margin:0 0 22px;padding:0;border:0}
.radio-stack>legend{font-size:14px;font-weight:500;color:var(--ink-2);margin-bottom:9px;padding:0}
.radio-stack label{display:flex;gap:12px;align-items:center;min-height:48px;padding:12px 0 14px;font-size:15px;cursor:pointer}
.radio-stack input[type="radio"]{width:20px;height:20px;accent-color:var(--ink);flex:none}
.category-picker{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 25px}
.category-picker .chip{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:9px 14px;border-radius:30px;
  font-size:14px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);cursor:pointer}
.category-picker .chip[aria-pressed="true"]{background:var(--ink);color:var(--card);border-color:var(--ink)}
.category-picker .chip img{width:15px;height:15px;display:block}
.chip-groups .chip{margin:0 8px 8px 0}
.details-advanced{margin-top:20px;font-size:14px}
.details-advanced summary{cursor:pointer;font-weight:600;padding:6px 0}
.details-advanced .details-body{padding-top:12px}
.ux-modal-scrim{position:fixed;inset:0;background:rgba(11,11,12,.45);display:flex;align-items:center;justify-content:center;z-index:60;padding:20px}
.ux-modal{background:var(--card);border-radius:16px;max-width:440px;width:100%;padding:28px;box-shadow:0 18px 48px rgba(11,11,12,.28)}
.ux-modal h2{margin:0 0 10px;font-size:22px}
.ux-modal p{color:var(--ink-2);margin:0}
.modal-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Slice 2 board fixes (rendered comparison vs the prototype evidence):
   row titles carry the badge inline; tab counts are muted spans; the
   state badge is the prototype's light outlined pill on Slice 2 faces;
   the review card's facts sit as dt/dd rows. */
.row-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tabs button{display:inline-flex;align-items:center;gap:8px}
.tabs button>span{font-size:12px;color:var(--ink-3);font-weight:400}
.limit-row .badge,.heading-line .badge{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid var(--line-strong);border-radius:99px;background:transparent;color:var(--ink-2);font-size:12px;line-height:1.4;white-space:nowrap}
.form-review .facts-list>div{display:flex;justify-content:space-between;gap:24px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.form-review .facts-list dt{color:var(--ink-2)}
.form-review .facts-list dd{margin:0;font-weight:500;text-align:right}
.limit-row .row-open{font-weight:400;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1199px){
  .detail-grid{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:32px}
  .detail-aside{padding-left:24px}
  .form-grid{grid-template-columns:1fr;max-width:780px;gap:30px}
  .form-review{position:static;max-height:none;overflow:visible}
}
@media(max-width:767px){
  .tabs{justify-content:space-between}
  .tabs button{font-size:13px;padding:10px 12px}
  .tabs button .cnt{font-size:11px}
  .tabs button>span{font-size:11px}
  /* The form's action rides the prototype's fixed task bar on phone
     (above the shell tab bar unless the shell is in task mode); the
     sign-up presentation keeps its in-flow action. */
  .form-action.task-action{position:fixed;left:0;right:0;bottom:var(--ux-tabbar-h,0px);background:var(--bg);border-top:1px solid var(--line);padding:14px 20px calc(14px + env(safe-area-inset-bottom));z-index:28;margin-top:0;gap:12px}
  body.task-mode .form-action.task-action{bottom:0}
  .form-action.task-action .btn.primary{flex:1 1 auto;min-width:0;font-size:13.5px;padding-inline:10px}
  form.form-grid{padding-bottom:150px}
  #cl-form .form-action.task-action{position:static;background:none;border-top:0;padding:0;margin-top:28px;z-index:auto}
  #cl-form.form-grid{padding-bottom:0}
  .form-action.task-action .btn{white-space:nowrap}
  .form-action.task-action a{white-space:nowrap}
  .limit-row{display:block;padding:24px 0}
  .form-grid{margin-top:24px}
  .limit-facts{margin-top:22px;gap:12px}
  .limit-facts span{font-size:11px}
  .limit-facts strong{font-size:13px}
  .row-open{display:inline-block;margin-top:16px}
  .detail-grid{display:block}
  .detail-aside{border-left:0;border-top:1px solid var(--line);padding:28px 0 0;margin-top:32px}
  .notice{padding:16px;background:var(--bg);border-color:var(--line)}
  .empty-state{padding:40px 0}
  .two-fields{grid-template-columns:1fr}
  .field>label{font-size:13px}
  .form-review{padding:22px}
  .form-review .review-amount{font-size:38px}
}
@media(max-width:359px){
  .tabs button{padding-inline:8px}
  .form-action.task-action{padding-inline:16px;gap:12px}
  .form-action.task-action .btn.primary{font-size:14px}
  .limit-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-review .review-amount{font-size:34px}
}
/* ============ Slice 3 — Approvals (screen 5 + decision annex) ========
   The founder's prototype values (src/styles.css) seated at the live
   shell's bands: his .approval-card, .decision-grid (his name for the
   detail composition; the live .detail-grid twin keeps its own
   faces), .decision-actions, .display-amount, .badge, .notice
   anatomy, .empty-state and the confirm modal. Class names are his;
   tokens are the live system's. */
/* The list card: a whole-card link (his <a class="approval-card">). */
.approval-card{display:flex;justify-content:space-between;gap:24px;
  border:1px solid var(--line-card);border-radius:16px;padding:28px;
  background:var(--card);color:inherit;text-decoration:none;margin-top:16px}
.approval-card h2{margin:18px 0 12px}
.approval-card .minor{margin-top:16px}
.approval-card .badge{display:inline-flex;align-items:center;padding:5px 10px;
  border:1px solid var(--line-strong);border-radius:99px;background:transparent;
  color:var(--ink-2);font-size:12px;line-height:1.4;white-space:nowrap;text-transform:capitalize}
.approval-card-action{text-align:right;display:flex;flex-direction:column;
  align-items:flex-end;justify-content:space-between;gap:16px;flex:none}
.approval-card-action .display-amount{font-size:36px;margin:0}
.review-span{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:12px 25px;border-radius:999px;font-weight:600;font-size:15px;
  background:transparent;color:var(--ink);border:1px solid var(--line-strong);white-space:nowrap}
/* The display amount (his .display-amount): the amount appears
   exactly once as a number on the detail face — in this seat. */
.display-amount{font-family:var(--serif);font-weight:500;font-size:48px;line-height:1.2;
  font-variant-numeric:tabular-nums;margin-bottom:18px}
/* The decision composition (annex): facts left, decision right. */
.decision-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:48px;align-items:start}
.decision-actions{border-left:1px solid var(--line);padding-left:30px;align-self:start;position:sticky;top:var(--sticky-top)}
.decision-actions h2{margin-bottom:16px}
.decision-actions p{font-size:15px;color:var(--ink-2);line-height:1.5}
.decision-actions>.btn{margin-top:14px;width:100%}
.decision-actions .minor{margin-top:16px}
/* The notice anatomy (his .notice + .notice-mark + .notice-copy):
   the live .notice is the flex box; Slice 3 seats add the mark and
   copy columns the Why and DecisionResult notices carry. */
.notice-mark{flex:none;width:24px;display:flex;justify-content:center;padding-top:2px}
.notice-mark img{width:24px;height:24px;display:block}
.notice-body{min-width:0}
.notice-copy{font-size:14px;color:var(--ink-2);margin-top:7px;line-height:1.5}
.notice-copy p{margin:0}
/* The confirm modal (his .modal anatomy on the shell's drawer host):
   the drawer becomes a centred card when it carries the confirm. */
.drawer.modal-card{left:50%;right:auto;bottom:auto;top:50%;
  transform:translate(-50%,-50%);width:min(520px,calc(100vw - 32px));
  max-height:calc(100dvh - 40px);border:1px solid var(--line-card);
  border-radius:18px;padding:28px;animation:none;box-shadow:0 24px 60px rgba(20,20,30,.18)}
.drawer.modal-card .grab{display:none}
.drawer.modal-card .dhead{padding:0;margin-bottom:22px}
.drawer.modal-card .dtitle{font-size:26px;line-height:1.25}
.drawer.modal-card .dbody{padding:0;overflow-y:auto;font-size:15px}
.drawer.modal-card .dbody p{color:var(--ink-2);line-height:1.55}
.modal-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}
.modal-actions .btn{width:100%}
/* Held review rows (storm): the held ask as a review card inside the
   storm section — no decision controls (STOP-3-06); the whole row is
   the link to the ask's own detail. */
.held-card{display:flex;justify-content:space-between;gap:24px;align-items:center;
  padding:18px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.held-card:last-child{border-bottom:0}
.held-card .display-amount{font-size:30px;margin:0}
.held-card .review-span{min-height:44px;padding:10px 15px;font-size:13px}
/* The DecisionResult reading column (his .reading). */
.reading{max-width:680px}
.text-action{display:inline-flex;align-items:center;min-height:44px;margin-top:20px;
  font-weight:500;color:var(--ink);text-decoration:none}
.empty-seal{width:44px;height:44px;margin:0 auto 14px;display:block}
@media(max-width:1199px){
  .decision-grid{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:32px}
  .decision-actions{padding-left:24px}
}
@media(max-width:767px){
  .approval-card{display:block;padding:22px}
  .approval-card-action{margin-top:24px;text-align:left;display:flex;flex-direction:row;
    gap:20px;align-items:center;justify-content:space-between}
  .approval-card-action .display-amount{font-size:30px}
  .approval-card-action .review-span{padding:10px 15px;min-height:44px;font-size:13px}
  .display-amount{font-size:44px}
  .decision-grid{display:block}
  .decision-actions{position:static;border-left:0;border-top:1px solid var(--line);
    padding:28px 0 0;margin-top:32px}
  .decision-actions .btn{min-height:50px}
  .notice{padding:18px 15px;gap:12px}
  .drawer.modal-card{padding:22px;width:calc(100vw - 28px);border-radius:15px}
  .drawer.modal-card .dtitle{font-size:24px}
  .text-action{margin-top:12px;font-size:14px}
  .empty-state h2{font-size:26px}
  .empty-state p{font-size:14px}
  .held-card{display:block}
  .held-card .held-right{margin-top:14px;display:flex;gap:20px;align-items:center;justify-content:space-between}
}
/* The held row's badge + merchant seat (the approval-card anatomy,
   compressed for the storm card's row list). */
.held-card .badge{display:inline-flex;align-items:center;padding:5px 10px;
  border:1px solid var(--line-strong);border-radius:99px;background:transparent;
  color:var(--ink-2);font-size:12px;line-height:1.4;white-space:nowrap;text-transform:capitalize}
/* Slice 3 heading action (screen 5): his Header seats the action
   in .heading-action; on phone his sheet makes it a full-width row
   under the H1 (.heading-action{width:100%} + .heading-line wrap).
   The action itself is his .button.secondary shape (pill, 48px,
   transparent, line-strong border) — carried here because the live
   .btn.quiet is the light bordered link used across the app. */
.heading-action{flex:none}
.heading-action .header-action{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 25px;border:1px solid var(--line-strong);border-radius:999px;background:transparent;color:var(--ink);font-weight:600;text-decoration:none}
.heading-action .header-action:hover{background:var(--track)}
@media(max-width:767px){
  .heading-action{width:100%}
  .heading-action .header-action{width:100%}
}
.held-card h2{margin:10px 0 6px;font-size:19px}
.held-card .held-right{text-align:right;display:flex;flex-direction:column;
  align-items:flex-end;justify-content:space-between;gap:12px;flex:none}
@media(max-width:767px){
  .held-card .held-right{margin-top:14px;flex-direction:row;align-items:center;justify-content:space-between}
}
