/* 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. */

:root{
  --bg:#FAFAF8;
  --ink:#16150F;
  --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;
  --track:#ECE9E1;
  --seal:#0B6CFF;
  --red:#8F3B26; /* muted clay for form error text — no alarm red anywhere */
  --radius:16px;
  --radius-s:12px;
  --serif:"Playfair Display",Didot,"Bodoni MT",Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --ease:cubic-bezier(.28,.11,.22,1);
}
*{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;
  padding-bottom:96px;
}
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}

/* ---------- chrome ---------- */
#topbar{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 max(20px, env(safe-area-inset-left));
  height:56px;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
/* 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}
.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}
#topnav{display:none;gap:28px}
#topnav a{
  color:var(--ink-3);padding:6px 2px;text-decoration:none;
  font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
}
#topnav a.on{color:var(--ink);border-bottom:2px solid var(--ink)}
/* The CHROME breakpoint is 901px (DECISIONS #43, F80): up to and
   including 900px the phone chrome treatment holds — the tab bar
   is the nav, the header is wordmark + avatar — and the desktop
   chrome starts at 901. The seven-link #topnav's intrinsic width
   (~871px of header) does not fit the 761-900 band (iPad portrait
   is 768/820): at 820 on the 760 breakpoint the page overflowed
   and the avatar — the only way out since #42 — sat off-viewport.
   Every chrome rule keys off this one number (here: #topnav and
   the body bottom padding, which swaps the tab bar's 96px
   clearance for the desktop 48px; below: the tab bar's own hide
   rule and the toast's resting offset). The 760px queries that
   remain in this file and in see/docpages.py are CONTENT layout
   (Responsive Option A shell widening; the pricing tier grid) —
   earlier founder decisions, not chrome, and they do not move. */
@media(min-width:901px){
  #topnav{display:flex}
  body{padding-bottom:48px}
}
/* The boundary band's spacing yield (DECISIONS #50 addendum,
   F121): the "Connected apps" label (#50) widened the seven-link
   nav's intrinsic width by ~41px, and at the band's narrow end
   (901px) the header row — wordmark, nav, avatar — no longer
   fit: the avatar, the only way out since #42, sat ~21px past
   the viewport edge, and the base row had zero slack there to
   begin with. The label stays; the row's ELASTIC spacing yields
   instead. In the 901–1023 band the nav gap (28px -> 14px) and
   the bar gap (16px -> 12px) return ~92px, so the row fits with
   slack to spare (the Approvals badge rides inside that slack
   when it shows). At 1024 and above the full-spacing row fits
   on its own and the desktop chrome is exactly as before; below
   901 the phone chrome is untouched. */
@media(min-width:901px) and (max-width:1023px){
  #topbar{gap:12px}
  #topnav{gap:14px}
}
/* 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 + bar padding, never the ~22px text rows of before. */
#tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:30;
  display:flex;
  padding:8px 4px calc(12px + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow:0 -10px 28px rgba(22,21,15,.07),0 -2px 6px rgba(22,21,15,.04);
}
#tabbar a{
  flex:1 1 0;min-width:0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:3px;padding-top:3px;min-height:56px;
  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 .tab-ic .badge{position:absolute;top:-6px;right:-12px}
#tabbar .tab-label{
  font-size:11.5px;line-height:1.15;font-weight:500;letter-spacing:0;
  white-space:nowrap;color:var(--ink-3);
}
#tabbar .tab-ind{width:16px;height:3px;border-radius:2px;background:transparent;margin-top:1px}
#tabbar a.on{color:var(--ink)}
#tabbar a.on .tab-label{color:var(--ink);font-weight:650}
#tabbar a.on .tab-ind{background:var(--ink)}
.badge[hidden]{display:none} /* the class display below would otherwise defeat the hidden attribute */
.badge{
  display:inline-block;min-width:18px;height:18px;padding:0 5px;
  border-radius:9px;background:var(--ink);color:var(--bg);
  font-size:11px;font-weight:700;line-height:18px;text-align:center;vertical-align:2px;
  letter-spacing:0;
}
/* after the base #tabbar rules so the cascade lets this win at equal specificity */
/* the chrome breakpoint (DECISIONS #43): the bar hides only above 900px */
@media(min-width:901px){
  #tabbar{display:none}
}
/* ---------- 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). */
#acct-cluster{display:flex;align-items:center;flex:none}
#acct-avatar{
  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:600;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(22,21,15,.16)}
#acct-menu{
  position:absolute;top:64px;right:12px;width:min(302px,calc(100vw - 24px));
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:0 18px 44px rgba(22,21,15,.16),0 3px 10px rgba(22,21,15,.07);
  overflow:hidden;
}
.acct-ident{padding:16px}
.acct-ident-top{display:flex;align-items:center;gap:12px}
#acct-avatar-lg{
  width:48px;height:48px;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:21px;font-weight:600;line-height:1;
}
#acct-avatar-lg svg{width:22px;height:22px;display:block}
#acct-email{margin-top:12px;font-size:15.5px;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.acct-row{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  min-height:54px;padding:0 16px;border-top:1px solid var(--line);
  font-size:16px;color:var(--ink);
}
.acct-row svg{width:21px;height:21px;display:block;flex:none}

/* ---------- layout & type ---------- */
#view{max-width:660px;margin:0 auto;padding:32px 32px 96px;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. */
h1{font-family:var(--serif);font-size:30px;line-height:1.25;font-weight:500;letter-spacing:0}
h2{font-family:var(--serif);font-size:30px;line-height:1.25;font-weight:500;letter-spacing:0}
h3{font-size:16px;font-weight:600;letter-spacing:-.01em}
.lede{font-size:15px;color:var(--ink-2);line-height:1.6;margin-top:12px}
.small{font-size:14px;color:var(--ink-2);line-height:1.55}
.fine{font-size:13px;color:var(--ink-3);line-height:1.5}
.agree{display:flex;gap:10px;align-items:flex-start;text-align:left}
.agree input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--ink)}
.agree label{font-size:14px;color:var(--ink);line-height:1.5}
.micro{font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
.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 (flat: hairlines, never boxes) ---------- */
.card{
  background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;
  padding:24px 0 4px;
}
.card.flat{background:transparent;border-top:1px solid var(--line)}
.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-3);font-size:11px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;flex:none;
}
.fact .v{
  font-family:var(--serif);font-weight:500;font-size:19px;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:6px}
  .fact .v{display:block;text-align:left}
}

/* ---------- buttons ----------
   Primary: black fill, letterspaced uppercase label (preview .btn-black).
   Text: plain centred text (preview .btn-text). Quiet: hairline outline,
   kept for small bounded actions. Ghost: inline text. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;padding:0 24px;border-radius:var(--radius-s);
  font-size:15px;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:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
}
.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:15px;font-weight:500;color:var(--ink);
}
.btn.textsm{
  min-height:40px;padding:0 4px;border-radius:0;
  font-size:15px;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}
.btn.sm{min-height:40px;padding:0 16px;font-size:13.5px}
.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;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:31px;line-height:1.25;font-weight:500;letter-spacing:.005em;margin-top:16px}
.l-sub{margin-top:16px;font-size:15px;line-height:1.6;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-honest{font-size:15px;line-height:1.6;color:var(--ink-2);text-align:center;margin-top:24px}
.l-dev{margin-top:24px}
.l-devlinks{margin-top:10px;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:15px}
.l-foot{margin-top:32px;text-align:center}
.r-head{font-family:var(--serif);font-size:26px;font-weight:500;line-height:1.3;letter-spacing:0}

/* ---------- allow (preview composition) ---------- */
.a-title{font-size:24px;font-weight:600;letter-spacing:-.015em;line-height:1.3;margin-top:24px}
.hero{margin-top:48px;display:flex;align-items:flex-end;gap:16px}
.hero-num{
  font-family:var(--serif);font-size:60px;line-height:.95;font-weight:500;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.hero-side{padding-bottom:8px}
.hero-side .micro{color:var(--ink-2);margin-top:8px;line-height:1.7}
.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:14.5px;color:var(--ink);
  transition:all .15s var(--ease);user-select:none;
}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
/* ---------- 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:21px;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:15px;font-weight:600}
.tstat{font-size:13px;color:var(--ink-3);margin-top:4px;display:flex;align-items:center;gap:6px}
.tamt{
  margin-left:auto;white-space:nowrap;
  font-family:var(--serif);font-weight:500;font-size:19px;font-variant-numeric:tabular-nums;
}

/* ---------- forms ---------- */
label.flabel{
  display:block;margin:24px 0 8px;
  font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);
}
.input{
  width:100%;min-height:50px;padding:0 16px;border-radius:var(--radius-s);
  border:1px solid var(--line-strong);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)}
textarea.input{padding:12px 16px;min-height:110px;resize:vertical;font-size:14px;line-height:1.5}
.money{display:flex;align-items:center;gap:6px}
.money .cur{font-family:var(--serif);font-size:20px;color:var(--ink-2)}
.money .input{font-family:var(--serif);font-size:20px;font-variant-numeric:tabular-nums}
.seg{display:flex;background:transparent;border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}
.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:6px 0;text-decoration:underline;text-underline-offset:3px}
details.checks li{font-size:13px;color:var(--ink-2);margin:6px 0 6px 18px;line-height:1.5}
#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(22,21,15,.94);color:var(--bg);font-size:15px;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:901px){#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(22,21,15,.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;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:15px;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:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px;
  word-break:break-all; background:transparent;
  border:1px solid var(--line-strong); border-radius:12px; padding:12px 14px;
}

/* ---------- 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}
  #view.w-wide #edit-form{max-width:640px}
  #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. */
.sitefoot,#sitefoot{
  max-width:660px;margin:0 auto;padding:24px 32px 8px;
  border-top:1px solid var(--line);text-align:center;
}
/* The footer sits on its page's rail exactly (DECISIONS #48):
   pricing's footer takes the 1120 marketing rail like its header
   and content. */
.sitefoot.rail-1120{max-width:1120px}
.sitefoot nav,#sitefoot nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px}
.sitefoot a,#sitefoot a{
  color:var(--ink-3);text-decoration:none;
  font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
}
.sitefoot a:hover,#sitefoot a:hover{color:var(--ink)}
.doc{max-width:660px;margin:0 auto;padding:24px 32px 72px;animation:rise .22s var(--ease)}
.doc h1{margin-bottom:8px;font-size:32px;font-weight:500;line-height:1.2}
.doc h2{font-size:24px;margin:32px 0 12px}
.doc h3{font-size:18px;line-height:1.5;margin:32px 0 8px}
.doc p{margin-top:12px;font-size:15.5px;line-height:1.65;color:var(--ink)}
.doc .lede{font-size:16.5px}
.doc ul,.doc ol{margin-top:12px;padding-left:24px}
.doc li{font-size:15.5px;line-height:1.6;margin:8px 0}
.doc code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em;
  background:transparent;border:1px solid var(--line-2);border-radius:6px;padding:0 4px;
}
/* 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}
