/* Keyhold, "Story first": warm paper, ink type, one cobalt accent for "now", money hues only for
   PayPal state. Every colour is a token here, redefined for dark in both dark blocks.
   Amber = money on hold. Green = money captured. Grey = $0 (voided, no hold, expired, cancelled).
   Purple = refunded. Cobalt = the current step, a lent keyboard, focus. Red = Stop and failures. */

:root {
  color-scheme: light;
  --paper: #FAF7F2;
  --surface: #FFFFFF;
  --sunk: #F3EEE6;
  --tone: #EDE3D3;
  --line: #E6DDD0;
  --line-strong: #CDC1B0;
  --control-border: #857A6C;
  --ink: #1C1915;
  --ink-2: #463F37;
  --ink-3: #655C51;
  --on-ink: #FAF7F2;
  --accent: #2C45C4;
  --accent-soft: #E9ECFA;
  --accent-tone: #C8D0F3;
  --on-accent: #FFFFFF;
  --danger: #B42318;
  --danger-soft: #FCEBE8;
  --held: #8A4F00; --held-line: #BD7B16; --held-soft: #FCF1DC; --held-tone: #F4D193;
  --charged: #17683A; --charged-line: #2E9358; --charged-soft: #E3F1E6; --charged-tone: #A8D9B6;
  --voided: #575047; --voided-line: #978F83; --voided-soft: #EEEAE3; --voided-tone: #D9D2C7;
  --refunded: #5B3AA6; --refunded-line: #8C6BD6; --refunded-soft: #EFE9F9; --refunded-tone: #D7C9F2;
  --console: #0D0C0A;
  --console-bar: #1B1916;
  --console-ink: #EDE6DA;
  --console-dim: #A89D8F;
  --console-typed: #151310;
  --console-edge: 0 0 0 0 transparent;
  --shadow-1: 0 1px 2px rgba(64, 44, 20, .06), 0 1px 1px rgba(64, 44, 20, .03);
  --shadow-2: 0 1px 2px rgba(64, 44, 20, .05), 0 12px 32px -12px rgba(64, 44, 20, .20);
  --shadow-3: 0 2px 6px rgba(64, 44, 20, .06), 0 28px 56px -20px rgba(64, 44, 20, .30);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #14120F; --surface: #1D1A16; --sunk: #26221C; --tone: #352E25;
    --line: #342E27; --line-strong: #4C443A; --control-border: #8A8072;
    --ink: #F4EFE7; --ink-2: #D3CABD; --ink-3: #A99E90; --on-ink: #14120F;
    --accent: #95A8FF; --accent-soft: #1E2446; --accent-tone: #34407A; --on-accent: #0D1030;
    --danger: #FF8B7B; --danger-soft: #3A1B16;
    --held: #F4B860; --held-line: #B97C22; --held-soft: #2C2010; --held-tone: #5C4016;
    --charged: #80D9A2; --charged-line: #3C9E64; --charged-soft: #12271A; --charged-tone: #23523A;
    --voided: #C4BBAE; --voided-line: #7A7266; --voided-soft: #27231F; --voided-tone: #403A33;
    --refunded: #C5B0FF; --refunded-line: #8C6BD6; --refunded-soft: #241C3A; --refunded-tone: #45367A;
    --console: #080706; --console-bar: #1A1814; --console-typed: #12100D;
    --console-edge: 0 0 0 1px rgba(237, 230, 218, .10);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px -12px rgba(0, 0, 0, .6);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 56px -20px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14120F; --surface: #1D1A16; --sunk: #26221C; --tone: #352E25;
  --line: #342E27; --line-strong: #4C443A; --control-border: #8A8072;
  --ink: #F4EFE7; --ink-2: #D3CABD; --ink-3: #A99E90; --on-ink: #14120F;
  --accent: #95A8FF; --accent-soft: #1E2446; --accent-tone: #34407A; --on-accent: #0D1030;
  --danger: #FF8B7B; --danger-soft: #3A1B16;
  --held: #F4B860; --held-line: #B97C22; --held-soft: #2C2010; --held-tone: #5C4016;
  --charged: #80D9A2; --charged-line: #3C9E64; --charged-soft: #12271A; --charged-tone: #23523A;
  --voided: #C4BBAE; --voided-line: #7A7266; --voided-soft: #27231F; --voided-tone: #403A33;
  --refunded: #C5B0FF; --refunded-line: #8C6BD6; --refunded-soft: #241C3A; --refunded-tone: #45367A;
  --console: #080706; --console-bar: #1A1814; --console-typed: #12100D;
  --console-edge: 0 0 0 1px rgba(237, 230, 218, .10);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px -12px rgba(0, 0, 0, .6);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 56px -20px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* A fixed bar must not cover the item keyboard focus scrolls to. */
html.has-bottom-bar { scroll-padding-bottom: 88px; }
html.has-top-bar { scroll-padding-top: 68px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono, kbd { font-family: var(--mono); }
code { font-size: .88em; }
time, .tnum { font-variant-numeric: tabular-nums; }
/* Numbers that tick (timers, countdowns, the lock evidence, money) keep their width, so the text
   around them holds still. */
#elapsed, #deadline, .shot-empty .wait-note, .lockplate small, #lock-evidence, .stat b, .m-amt, .free-in,
.wait-note, .ticks-line { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
/* The console is dark in both themes: the light theme's cobalt ring would be under 3:1 there. */
.console :focus-visible, dialog.zoom :focus-visible, .console:focus-visible { outline-color: #95A8FF; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* sprite fills (classes, not style attributes): tone, surface, solid, danger stroke, brand mark */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tn { fill: var(--tone); }
.sf { fill: var(--surface); }
.fc { fill: currentColor; stroke: none; }
.o85 { opacity: .85; }
.sd { stroke: var(--danger); }
.mk-bg { fill: var(--ink); }
.mk-fg { fill: var(--paper); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.muted { color: var(--ink-3); }
.fine { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.wrap-anywhere { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.015em; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 16px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); font-weight: 650; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--control-border); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn .ic { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }

/* ---------- mode notes: full on / and /try, one line elsewhere ---------- */
.banners { display: grid; gap: 8px; margin-top: 20px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); background: var(--sunk); color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.banner .ic { width: 20px; height: 20px; margin-top: 1px; }
.banner strong { color: var(--ink); }
.banner-warn { background: var(--danger-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--danger); }
.banner-warn .ic { color: var(--danger); }
.modebar { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.modebar summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--sunk); cursor: pointer; list-style: none; }
.modebar summary::-webkit-details-marker { display: none; }
.modebar summary .ic { width: 18px; height: 18px; }
.modebar strong { color: var(--ink); }
.modebar .modebar-body { display: grid; gap: 6px; margin-top: 8px; max-width: 80ch; }
.modebar .modebar-body p { font-size: 14px; color: var(--ink-2); }
.modebar .mb-short { display: none; }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; line-height: 1.3; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.display { margin: 0; font-size: 58px; line-height: 1.05; letter-spacing: -.026em; font-weight: 760; text-wrap: balance; }
.display .soft { color: var(--ink-3); font-weight: 650; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--ink-3); min-width: 0; }
.crumb a { color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; margin: 0 -6px; }
.crumb .title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 650; color: var(--ink); letter-spacing: -.005em; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.status { margin-top: 2px; font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 740; }
.status.xl { font-size: 64px; line-height: 1.02; letter-spacing: -.04em; }
.status .tail { font-weight: 740; }
.substatus { margin-top: 12px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 68ch; }
.h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 720; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.012em; font-weight: 680; }

/* live / final flag */
.flag { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 650; color: var(--ink); white-space: nowrap; flex: none; }
.flag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.flag[data-final="1"] .dot { background: var(--ink-3); box-shadow: none; animation: none; }
.flag[data-final="1"] { color: var(--ink-2); }
.flag[data-conn="lost"] .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); animation: none; }
.flag-note { font-size: 14px; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 1.5px solid transparent; font: 650 16px/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink); background: var(--surface); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, var(--shadow-1); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--control-border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-stop { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-stop:hover { background: var(--danger-soft); }
.btn-stop .ic { stroke: none; fill: currentColor; }
.btn-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 15px; }
.btn-link:hover { color: var(--ink); }
.btn-copy { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-copy .ic { width: 16px; height: 16px; stroke-width: 1.8; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.inline-form { display: inline; margin: 0; }

/* ---------- the story strip (progress) ---------- */
.story { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); }
.st { position: relative; padding-right: 14px; min-width: 0; }
.st::after { content: ""; position: absolute; left: 62px; right: 14px; top: 24px; border-top: 2px dashed var(--line-strong); }
.st.outcome::after { display: none; }
.st-node { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px dashed var(--line-strong); color: var(--ink-3); --tone: var(--sunk); }
.st-node .ic { width: 26px; height: 26px; }
.st-label { display: block; margin-top: 12px; font-size: 17px; line-height: 1.3; font-weight: 680; letter-spacing: -.01em; color: var(--ink-3); }
.st-note { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.badge { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); border: 2.5px solid var(--paper); }
.badge .ic { width: 12px; height: 12px; stroke-width: 3; }
.st.done .st-node { border: 1.5px solid var(--ink-2); background: var(--surface); color: var(--ink); --tone: var(--tone); }
.st.done::after { border-top-style: solid; border-color: var(--ink-2); }
.st.done .st-label { color: var(--ink); }
.st.done .st-note { color: var(--ink-2); }
.st.done.held .st-node { border-color: var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.st.done.held .badge { background: var(--held); color: var(--held-soft); }
.st.done.held::after { border-color: var(--held-line); }
.st.done.held .st-note { color: var(--held); font-weight: 600; }
.st.current .st-node { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); --tone: var(--accent-tone); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); animation: ring-in .6s cubic-bezier(.2, .7, .2, 1) 1 both; }
.st.current .st-label { color: var(--ink); }
.st.current .st-note { color: var(--accent); font-weight: 650; }
.st.skipped .st-node { border-style: dashed; opacity: .75; }
.st.skipped .st-label { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.st.failed .st-node { border: 2px solid var(--danger); background: var(--danger-soft); color: var(--danger); --tone: var(--danger-soft); }
.st.failed .st-label { color: var(--ink); }
.st.failed .st-note { color: var(--danger); font-weight: 600; }
.st.outcome .st-node { width: auto; max-width: 100%; height: 48px; border-radius: var(--r-pill); padding: 0 18px 0 12px; display: inline-flex; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.st.outcome .st-node .ic { width: 24px; height: 24px; }
.st.outcome .st-note { margin-top: 12px; font-size: 15px; }
.st.outcome.pending .st-node { color: var(--ink-3); }
.st.outcome.charged .st-node { border: 1.5px solid var(--charged-line); background: var(--charged-soft); color: var(--charged); --tone: var(--charged-tone); animation: settle .5s ease-out 1 both; }
.st.outcome.charged .st-note { color: var(--charged); font-weight: 650; }
.st.outcome.capture_pending .st-node { border: 1.5px solid var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); animation: settle .5s ease-out 1 both; }
.st.outcome.refunded .st-node, .st.outcome.refunding .st-node { border: 1.5px solid var(--refunded-line); background: var(--refunded-soft); color: var(--refunded); --tone: var(--refunded-tone); animation: settle .5s ease-out 1 both; }
.st.outcome.refunded .st-note, .st.outcome.refunding .st-note { color: var(--refunded); font-weight: 650; }
.st.outcome.voided .st-node, .st.outcome.nohold .st-node, .st.outcome.expired .st-node, .st.outcome.cancelled .st-node,
.st.outcome.declined .st-node, .st.outcome.failed .st-node { border: 1.5px solid var(--voided-line); background: var(--voided-soft); color: var(--voided); --tone: var(--voided-tone); animation: settle .5s ease-out 1 both; }
.st.outcome:not(.pending):not(.charged):not(.capture_pending):not(.refunded):not(.refunding) .st-note { color: var(--ink-2); font-weight: 600; }

/* phone strip */
.story-m { display: none; }
.story-m .line { font-size: 15px; color: var(--ink-2); }
.story-m .line strong { color: var(--ink); }
.sm-row { display: flex; align-items: center; margin-top: 10px; }
.sm-node { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-strong); background: var(--paper); color: var(--ink-3); --tone: var(--sunk); flex: none; }
.sm-node .ic { width: 20px; height: 20px; }
.sm-node.done { border: 1.5px solid var(--ink-2); background: var(--surface); color: var(--ink); --tone: var(--tone); }
.sm-node.done.held { border-color: var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.sm-node.current { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); --tone: var(--accent-tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.sm-node.skipped { opacity: .7; }
.sm-node.failed { border: 2px solid var(--danger); background: var(--danger-soft); color: var(--danger); }
.sm-link { flex: 1 1 8px; min-width: 6px; max-width: 18px; border-top: 2px dashed var(--line-strong); }
.sm-link.done { border-top-style: solid; border-color: var(--ink-2); }
.sm-link.held { border-top-style: solid; border-color: var(--held-line); }
.sm-pill { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 0; padding: 0 12px 0 8px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1.5px dashed var(--line-strong); color: var(--ink-3); --tone: var(--sunk); }
.sm-pill .ic { width: 20px; height: 20px; }
.sm-pill.charged { border: 1.5px solid var(--charged-line); background: var(--charged-soft); color: var(--charged); --tone: var(--charged-tone); }
.sm-pill.capture_pending { border: 1.5px solid var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.sm-pill.refunded, .sm-pill.refunding { border: 1.5px solid var(--refunded-line); background: var(--refunded-soft); color: var(--refunded); --tone: var(--refunded-tone); }
.sm-pill.voided, .sm-pill.nohold, .sm-pill.expired, .sm-pill.cancelled, .sm-pill.declined, .sm-pill.failed { border: 1.5px solid var(--voided-line); background: var(--voided-soft); color: var(--voided); --tone: var(--voided-tone); }
.sm-row .badge { width: 16px; height: 16px; right: -4px; bottom: -4px; border-width: 2px; }
.sm-row .badge .ic { width: 9px; height: 9px; }
.sm-node.done.held .badge { background: var(--held); color: var(--held-soft); }

/* ---------- lock plate: locked or lent, and why (padlock changes once, then holds still) ---------- */
.lockplate { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 100%; min-height: 56px; padding: 7px 20px 7px 7px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-1); }
.lockplate .lk { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--paper); flex: none; }
.lockplate .lk svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lockplate .tx { display: grid; gap: 1px; min-width: 0; }
.lockplate b { font-size: 15.5px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.lockplate small { font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.lockplate[data-lock="lent"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.lockplate[data-lock="lent"] .lk { background: var(--accent); color: var(--on-accent); }
.lockplate[data-lock="lent"] b { color: var(--accent); }
.lockplate[data-lock="lent"] small { color: var(--ink-2); }
.lockplate .shackle { transform-box: fill-box; transform-origin: 0 100%; }
.lockplate[data-lock="lent"] .shackle { animation: unlatch .6s .2s cubic-bezier(.3, 1.5, .5, 1) 1 both; }
.lockplate[data-lock="locked"] .shackle { animation: latch .45s .2s cubic-bezier(.3, 1.5, .5, 1) 1 both; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 28px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.section-gap { margin-top: 28px; }

/* chips + pills */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 700 12.5px/1.4 var(--font); letter-spacing: .05em; white-space: nowrap; background: var(--sunk); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill.held { background: var(--held-soft); color: var(--held); box-shadow: inset 0 0 0 1px var(--held-line); }
.pill.charged { background: var(--charged-soft); color: var(--charged); box-shadow: inset 0 0 0 1px var(--charged-line); }
.pill.voided { background: var(--voided-soft); color: var(--voided); box-shadow: inset 0 0 0 1px var(--voided-line); }
.pill.refunded { background: var(--refunded-soft); color: var(--refunded); box-shadow: inset 0 0 0 1px var(--refunded-line); }
.pill.neutral { background: var(--sunk); color: var(--ink-2); box-shadow: none; }
.pill.none { background: var(--sunk); color: var(--ink-3); letter-spacing: 0; font-weight: 600; box-shadow: none; }
.pill.problem { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.pill.ok { background: var(--sunk); color: var(--ink-2); box-shadow: none; letter-spacing: 0; }

/* ---------- money box ---------- */
.money { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 22px; padding: 20px 24px 20px 20px; border-radius: var(--r-lg); border: 1.5px solid var(--line-strong); background: var(--surface); transition: background-color .24s ease, border-color .24s ease; }
.money .m-ill { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); --tone: var(--tone); }
.money .m-ill .ic { width: 40px; height: 40px; stroke-width: 1.5; }
.m-label { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.m-amt { margin-top: 2px; font-size: 36px; line-height: 1.1; font-weight: 760; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.m-amt .unit { font-size: 20px; font-weight: 620; letter-spacing: -.01em; color: var(--ink-2); margin-left: 6px; }
.m-sub { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.m-warn { margin-top: 8px; font-size: 15px; font-weight: 650; color: var(--danger); }
.m-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 380px; }
.m-act .fine { text-align: right; color: var(--ink-2); }
.money.held { background: var(--held-soft); border-color: var(--held-line); }
.money.held .m-ill { color: var(--held); --tone: var(--held-tone); }
.money.held .m-label { color: var(--held); }
.money.charged { background: var(--charged-soft); border-color: var(--charged-line); }
.money.charged .m-ill { color: var(--charged); --tone: var(--charged-tone); }
.money.charged .m-label { color: var(--charged); }
.money.refunded { background: var(--refunded-soft); border-color: var(--refunded-line); }
.money.refunded .m-ill { color: var(--refunded); --tone: var(--refunded-tone); }
.money.refunded .m-label { color: var(--refunded); }
.money.voided { background: var(--voided-soft); border-color: var(--voided-line); }
.money.voided .m-ill { color: var(--voided); --tone: var(--voided-tone); }
.money.voided .m-label { color: var(--voided); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat b { font-size: 22px; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { font-size: 15px; color: var(--ink-2); }
.next { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 300px; }
.next .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }

/* ---------- console ---------- */
.console { margin: 0; background: var(--console); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--console-edge), var(--shadow-2); color: var(--console-ink); }
.console-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px 10px 16px; background: var(--console-bar); color: var(--console-ink); font-size: 14px; }
.console-bar .ic { width: 18px; height: 18px; color: var(--console-dim); --tone: rgba(237, 230, 218, .12); }
.console-bar .t { font-weight: 650; white-space: nowrap; }
.console-bar time { color: var(--console-dim); white-space: nowrap; }
.kchip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 650; background: rgba(149, 168, 255, .16); color: #C9D3FF; white-space: nowrap; }
.kchip .ic { width: 16px; height: 16px; color: #C9D3FF; --tone: rgba(149, 168, 255, .25); }
.kchip.locked { background: rgba(237, 230, 218, .1); color: var(--console-ink); }
.kchip.locked .ic { color: var(--console-ink); --tone: rgba(237, 230, 218, .15); }
.shot { position: relative; display: block; margin: 12px 14px; border-radius: 6px; overflow: hidden; color: inherit; }
.shot img { display: block; width: 100%; height: auto; }
/* The crop never enlarges the stored pixels by more than 1.4 times (a short screen stays sharp). */
.shot.crop { aspect-ratio: var(--cw) / var(--ch); width: calc(100% - 28px); max-width: calc(var(--cw) * 1.4px); margin-left: auto; margin-right: auto; }
.shot.crop img { position: absolute; max-width: none; width: calc(var(--iw) / var(--cw) * 100%); left: calc(var(--cx) / var(--cw) * -100%); top: calc(var(--cy) / var(--ch) * -100%); }
.shot-empty { display: grid; place-items: center; gap: 10px; min-height: 140px; margin: 12px 14px; padding: 20px; border-radius: 8px; background: repeating-linear-gradient(180deg, rgba(237,230,218,.05) 0 14px, transparent 14px 22px); color: var(--console-dim); font-size: 15px; text-align: center; }
.shot-empty .wait-note { display: block; margin: 0; text-align: center; }
.shot-empty .wait-note .dot { display: inline-block; vertical-align: 1px; margin: 0 10px 0 0; }
.typed { padding: 16px 18px 18px; background: var(--console-typed); border-top: 1px solid #2A2621; color: var(--console-ink); }
.typed .lbl { display: flex; align-items: center; gap: 8px; font: 650 12px/1.2 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--console-dim); }
.typed .lbl .ic { width: 14px; height: 14px; }
.typed code { display: block; margin-top: 8px; font-size: 17px; line-height: 1.5; color: #F7F2EA; overflow-wrap: anywhere; white-space: pre-wrap; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--console-bar); color: var(--console-dim); font-size: 14px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--console-ink); display: grid; place-items: center; cursor: pointer; }
.stepper button[disabled], .stepper button[aria-disabled="true"] { opacity: .35; cursor: default; }
.step-nav { display: inline-flex; align-items: center; gap: 4px; }
.step-nav[hidden] { display: none; }
.stepper button .ic { width: 20px; height: 20px; }
.stepper .pos { color: var(--console-ink); font-weight: 600; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .full { margin-left: auto; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--console-ink); font: 600 14px/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; width: auto; }
.stepper .full .ic { display: none; }
dialog.zoom { width: fit-content; max-width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--console); color: var(--console-ink); box-shadow: var(--shadow-3); }
dialog.zoom::backdrop { background: rgba(10, 8, 6, .72); }
dialog.zoom .zoom-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; background: var(--console-bar); font-size: 14px; }
dialog.zoom .zoom-bar .grow { flex: 1; }
dialog.zoom .zoom-bar button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #5A5246; background: transparent; color: var(--console-ink); font: 600 14px/1 var(--font); cursor: pointer; }
/* The full screen at its stored size (never stretched); smaller only when the window is. */
dialog.zoom img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }

/* ---------- key moments ---------- */
.moments-card { padding: 24px 24px 12px; }
.moments { list-style: none; margin: 14px 0 0; padding: 0; }
.mo { display: grid; grid-template-columns: 66px 30px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.mo time { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.mo-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); --tone: var(--tone); }
.mo-ic .ic { width: 18px; height: 18px; }
.mo-ic.held { background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.mo-ic.charged { background: var(--charged-soft); color: var(--charged); --tone: var(--charged-tone); }
.mo-ic.refunded { background: var(--refunded-soft); color: var(--refunded); --tone: var(--refunded-tone); }
.mo-ic.danger { background: var(--danger-soft); color: var(--danger); --tone: var(--danger-soft); }
.mo .what { font-size: 15px; line-height: 1.5; min-width: 0; }
.mo .what strong { font-weight: 650; }
.mo code { font-size: 13.5px; line-height: 1.5; background: var(--sunk); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mo.newest time { color: var(--accent); font-weight: 650; }
.mo.arrive { animation: rise .32s ease-out 1 both; }
.moments-empty { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.callout { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--danger-soft); color: var(--ink); font-size: 15px; line-height: 1.5; }
.callout .ic { width: 22px; height: 22px; color: var(--danger); --tone: var(--danger-soft); margin-top: 1px; }
.callout code { font-size: 13.5px; background: var(--surface); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- PayPal card ---------- */
.pp-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.pp-table th { text-align: left; padding: 10px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.pp-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-table .obj { display: block; font-weight: 650; }
.pp-table .id { display: block; margin-top: 2px; font: 13px/1.4 var(--mono); color: var(--ink-3); }
.pp-table .amt { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.pp-table .final { display: block; font: 12.5px/1.4 var(--mono); color: var(--ink-3); }
.pp-table .muted { color: var(--ink-3); }
.ticks { display: grid; gap: 2px; }
.tick { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tick .ic { width: 16px; height: 16px; stroke-width: 2.4; color: var(--ink); }
.tick .tl { font-size: 13px; color: var(--ink-3); }
.pp-empty { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--sunk); color: var(--ink-2); }
.errors { margin: 10px 0 0; padding-left: 1.1rem; color: var(--danger); font-size: 14px; }
.errors:empty { display: none; }

/* ---------- disclosures ---------- */
.folds { margin-top: 36px; border-bottom: 1px solid var(--line); }
details.fold { border-top: 1px solid var(--line); }
details.fold > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; min-height: 60px; cursor: pointer; list-style: none; font-weight: 650; font-size: 17px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .ic { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s; }
details.fold[open] > summary .ic { transform: rotate(90deg); }
details.fold > summary .muted { font-weight: 400; color: var(--ink-3); font-size: 15px; }
.fold-body { padding: 4px 0 28px 34px; display: grid; gap: 22px; min-width: 0; }
.fold-body h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv code, .fold-body code { font-size: 13.5px; background: var(--sunk); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; word-break: break-all; }
.plan { white-space: pre-line; font-size: 15px; color: var(--ink-2); }
.log { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.log li { display: grid; grid-template-columns: 76px 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log time { color: var(--ink-3); }
.log .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.log .txt { min-width: 0; overflow-wrap: anywhere; }
.log .warn .tag, .log .firewall .tag { color: var(--danger); }
.log .muted-row .txt { color: var(--ink-3); font-style: italic; }
.table-plain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-plain th, .table-plain td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-plain th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.table-plain code { word-break: break-all; }

/* ---------- footer ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); }
.foot p { padding: 22px 0 36px; font-size: 14px; color: var(--ink-3); }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sunk); color: var(--ink); font-size: 16px; }
.alert .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--ink-2); --tone: var(--tone); }
.alert.warn { background: var(--danger-soft); box-shadow: inset 3px 0 0 var(--danger); }
.alert.warn .ic { color: var(--danger); }
.alert ul { margin: 6px 0 0; padding-left: 1.2rem; }

/* ---------- /try ---------- */
.try-hero { padding-top: 40px; }
.try-hero .display { margin-top: 14px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 18px; }
.try-hero .hero-row { margin-top: 28px; }
.mini-story { margin: 0; flex: none; }
.mini-story figcaption { text-align: right; }
.mini-story ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; }
.mini-story li { position: relative; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.mini-story li + li::before { content: ""; position: absolute; top: 19px; right: calc(50% + 22px); width: 26px; border-top: 2px dotted var(--line-strong); }
.mini-story .mn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--ink-2); color: var(--ink); --tone: var(--tone); }
.mini-story .mn .ic { width: 22px; height: 22px; }
.mini-story .h .mn { border-color: var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.mini-story .c .mn { border-color: var(--charged-line); background: var(--charged-soft); color: var(--charged); --tone: var(--charged-tone); }
.try-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.howto li { display: flex; align-items: center; gap: 12px; }
.howto li + li::before { content: ""; width: 36px; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }
.howto .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); font-size: 15px; font-weight: 750; flex: none; }
.howto li:first-child .n { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.howto .t { font-weight: 680; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.howto .d { color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.capacity { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.capacity .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.capacity.busy .dot { background: var(--ink-3); }
.busy-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; padding: 16px 18px; border-radius: var(--r-md); background: var(--sunk); border: 1px solid var(--line-strong); }
.busy-box p { font-size: 16px; color: var(--ink); max-width: 70ch; }
.busy-box .fine { margin-top: 2px; }
.resume { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 20px; margin-top: 22px; padding: 18px 20px; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.resume .resume-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); --tone: var(--accent-tone); }
.resume .resume-ic .ic { width: 30px; height: 30px; }
.resume .h3 { font-size: 19px; }
.faults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; align-items: start; }
.fault { position: relative; display: flex; flex-direction: column; gap: 0; padding: 26px 26px 10px; scroll-margin-top: 24px; }
.fault.start { border: 2px solid var(--ink); box-shadow: var(--shadow-3); }
.fault:target { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-2); }
.ribbon { position: absolute; top: -14px; left: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.fault-top { display: flex; align-items: center; gap: 16px; }
.fault-ill { width: 64px; height: 64px; border-radius: 18px; background: var(--sunk); display: grid; place-items: center; color: var(--ink); --tone: var(--surface); flex: none; }
.fault-ill .ic { width: 46px; height: 46px; stroke-width: 1.7; }
.fault-top .path { font-size: 13px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.fault-top .chip { margin-top: 6px; }
.fault .h3 { margin-top: 18px; font-size: 22px; }
.fault .blurb { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.fault .btn { margin-top: 20px; }
.fault .fine { margin-top: 10px; }
.fault details { margin-top: 6px; border-top: 1px solid var(--line); }
.fault details summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.fault details summary::-webkit-details-marker { display: none; }
.fault details summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.fault details[open] summary .ic { transform: rotate(90deg); }
.fault details label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.fault details input { width: 100%; margin-bottom: 14px; }
.short { margin-top: 26px; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.short a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--ink); }
input[type="password"], input[type="text"] { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--control-border); border-radius: 10px; padding: 0 12px; min-height: 48px; }
.pass-card { max-width: 560px; margin-top: 30px; }
.pass-form { display: grid; gap: 10px; margin-top: 16px; max-width: 380px; }
.pass-form label { font-weight: 650; font-size: 15px; }

/* ---------- checkout page ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "sum co" "ev co"; gap: 24px 32px; margin-top: 26px; align-items: start; }
.q-sum { grid-area: sum; display: grid; grid-template-columns: auto 1fr; gap: 4px 28px; align-items: end; }
.q-sum .eyebrow { grid-column: 1 / -1; margin-bottom: 10px; }
.q-ev { grid-area: ev; }
.checkout { grid-area: co; }
.price { font-size: 72px; line-height: .95; font-weight: 780; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price-meta { padding-bottom: 6px; }
.price-meta .fine { color: var(--ink-2); }
.diag { grid-column: 1 / -1; margin-top: 18px; font-size: 20px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.evidence { list-style: none; margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--sunk); border-left: 3px solid var(--danger); font: 14.5px/1.6 var(--mono); color: var(--ink); display: grid; gap: 4px; }
.evidence li { overflow-wrap: anywhere; white-space: pre-wrap; }
.evidence code { font-size: inherit; }
.q-ev .console { margin-top: 16px; }
.seal { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; color: var(--ink-2); --tone: var(--tone); }
.seal .ic { width: 26px; height: 26px; color: var(--ink); }
.owner-note { margin-top: 14px; font-size: 15px; overflow-wrap: anywhere; }
.checkout { border: 1.5px solid var(--line-strong); border-left: 6px solid var(--held-line); box-shadow: var(--shadow-3); padding: 26px 30px 22px; scroll-margin-top: 16px; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.co-head .ill { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--held-soft); color: var(--held); --tone: var(--held-tone); flex: none; }
.co-head .ill .ic { width: 40px; height: 40px; stroke-width: 1.5; }
.co-title { margin: 4px 0 0; font-size: 34px; line-height: 1.1; font-weight: 760; letter-spacing: -.03em; }
.co-money { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.co-money strong { color: var(--ink); }
.steps3 { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps3 li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; }
.steps3 .k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 750; background: var(--sunk); color: var(--ink); }
.buyer { display: grid; gap: 6px; margin-top: 8px; font-size: 15px; }
.buyer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.buyer code { font-size: 14px; background: var(--sunk); padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.copyrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.paypal-area { margin-top: 18px; display: grid; gap: 8px; min-height: 56px; }
.pp-slot { min-height: 56px; border-radius: var(--r-md); border: 2px dashed var(--control-border); display: grid; place-items: center; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--sunk) 70%, transparent) 10px 20px); color: var(--ink-2); font-size: 15px; font-weight: 650; text-align: center; padding: 8px; }
paypal-button { display: block; width: 100%; --paypal-button-border-radius: 12px; }
.offline-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.checkout-status { margin-top: 12px; min-height: 1.5em; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.checkout-status:empty { margin-top: 0; min-height: 0; }
.checkout-status[data-tone="warn"] { color: var(--danger); }
.checkout-status[data-tone="ok"] { color: var(--ink); }
.co-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; }
/* "Go to approve": any width, only while the approve button is off screen (run.js). */
.sticky-cta { position: fixed; left: 50%; bottom: 14px; z-index: 10; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-weight: 680; font-size: 16px; text-decoration: none; box-shadow: var(--shadow-3); --tone: rgba(244, 209, 147, .35); }
.sticky-cta .ic { width: 22px; height: 22px; color: var(--held-tone); }
.sticky-cta .arrow-down { transform: rotate(90deg); width: 18px; height: 18px; color: var(--on-ink); }
.sticky-cta[data-hidden="1"] { display: none; }
.paypal-area { scroll-margin: 30vh 0; }
.phone-only { display: none; }

/* ---------- run page: boot and free look ---------- */
.look-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.notes li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.notes time { color: var(--ink-3); }
/* The dot is still: the Live flag is the page's only loop. */
.wait-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.wait-note .dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* ---------- rescue page ---------- */
.rescue-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }

/* ---------- end page ---------- */
.end-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; margin-top: 44px; align-items: start; }
.end-grid aside .h3 { margin-bottom: 14px; }
.tale { list-style: none; margin: 22px 0 0; padding: 0; }
.tale li { position: relative; display: grid; grid-template-columns: 92px 48px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.tale li::before { content: ""; position: absolute; left: 131px; top: 48px; bottom: 0; border-left: 2px solid var(--ink-2); }
.tale li:last-child::before { display: none; }
.tale li.span-held::before { border-color: var(--held-line); }
.tale time { padding-top: 13px; text-align: right; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tale .node { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink-2); background: var(--surface); color: var(--ink); --tone: var(--tone); position: relative; z-index: 1; }
.tale .node .ic { width: 26px; height: 26px; }
.tale li.t-held .node { border-color: var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.tale li.t-charged .node { border-color: var(--charged-line); background: var(--charged-soft); color: var(--charged); --tone: var(--charged-tone); }
.tale li.t-voided .node { border-color: var(--voided-line); background: var(--voided-soft); color: var(--voided); --tone: var(--voided-tone); }
.tale li.t-refunded .node { border-color: var(--refunded-line); background: var(--refunded-soft); color: var(--refunded); --tone: var(--refunded-tone); }
.tale .txt { padding-top: 4px; min-width: 0; }
.tale .txt .h3 { font-size: 19px; }
.tale .txt p { margin-top: 3px; color: var(--ink-2); font-size: 16px; }
.tale .proof { margin-top: 6px; display: inline-block; font: 13px/1.5 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.figure-cap { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* ---------- no hold, and other $0 ends ---------- */
.nh-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.zero { font-size: 80px; line-height: 1; font-weight: 780; letter-spacing: -.05em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.cost-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.cost-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--voided-line); font-size: 16px; font-weight: 600; }
.cost-list .ic { width: 22px; height: 22px; color: var(--voided); --tone: var(--voided-tone); }
.cost { background: var(--voided-soft); border: 1.5px solid var(--voided-line); box-shadow: none; }
.cost .m-label { color: var(--voided); }
.cost .actions { display: grid; gap: 6px; margin-top: 22px; }
.why { margin-top: 28px; max-width: 72ch; }
.why p { margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* ---------- ledger ---------- */
.ledger-head { padding-top: 34px; }
.ledger-head .lede { margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.tile { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.tile-label { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.tile-value { font-size: 34px; line-height: 1.1; font-weight: 760; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.tile.held .tile-label { color: var(--held); }
.tile.charged .tile-label { color: var(--charged); }
.tile.refunded .tile-label { color: var(--refunded); }
.bookkeeping { margin-top: 14px; font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.bookkeeping .ic { width: 20px; height: 20px; color: var(--ink-2); --tone: var(--tone); }
.ledger { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.ledger th { text-align: left; padding: 10px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.ledger td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .run a { font-weight: 650; }
.ledger .run .id { display: block; margin-top: 2px; font: 13px/1.4 var(--mono); color: var(--ink-3); }
.ledger .amt { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .when { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ledger details summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.ledger details .kv { font-size: 13.5px; margin-top: 4px; }
.ledger .reason { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); max-width: 34ch; }
.ticks-line { white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.nohold-list { list-style: none; margin: 14px 0 0; padding: 0; }
.nohold-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.nohold-list .reason { color: var(--ink-2); }

/* ---------- home ---------- */
.hero { padding-top: 40px; }
.hero .display { margin-top: 14px; }
.hero .lede { margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.section-title { margin: 56px 0 18px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.flow-step { padding: 24px; }
.flow-step .h3 { margin-top: 12px; }
.flow-step p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.flow-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--ink-2); color: var(--ink); --tone: var(--tone); }
.flow-n .ic { width: 22px; height: 22px; }
.flow-step.h .flow-n { border-color: var(--held-line); background: var(--held-soft); color: var(--held); --tone: var(--held-tone); }
.flow-step.c .flow-n { border-color: var(--charged-line); background: var(--charged-soft); color: var(--charged); --tone: var(--charged-tone); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.plain-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; font-size: 16px; }
.plain-list .muted { display: block; margin-top: 2px; font-size: 15px; }

/* ---------- error ---------- */
.error-wrap { padding-top: 48px; max-width: 760px; }
.error-wrap .substatus { margin-top: 14px; }

/* ---------- motion: status changes animate once, then hold still ---------- */
@keyframes ring-in { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); } to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); } }
@keyframes settle { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); } 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
@keyframes latch { from { transform: translateY(-3px); } to { transform: none; } }
@keyframes unlatch { from { transform: none; } to { transform: translateY(-2px); } }
.badge { animation: pop .2s ease-out 1 both; }
.flag:not([data-final="1"]):not([data-conn="lost"]) .dot { animation: breathe 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .story { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); }
  .st::after { left: 58px; right: 8px; }
  .mini-story { display: none; }
}
@media (max-width: 960px) {
  .rescue-grid, .end-grid, .nh-grid, .look-grid, .two { grid-template-columns: minmax(0, 1fr); }
  .faults, .flow { grid-template-columns: minmax(0, 1fr); }
  .co-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sum" "co" "ev"; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money { grid-template-columns: auto minmax(0, 1fr); }
  .m-act { grid-column: 1 / -1; max-width: none; align-items: flex-start; }
  .m-act .fine { text-align: left; }
  .next { min-width: 0; }
  .next .links { justify-content: flex-start; }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { min-height: 60px; gap: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .mark { width: 28px; height: 28px; }
  .nav { gap: 0; }
  .nav a { padding: 0 7px; font-size: 14.5px; }
  .icon-btn { margin-left: 2px; }
  .banners { margin-top: 14px; }
  .banner { font-size: 14px; padding: 10px 12px; }
  .modebar { margin-top: 12px; }
  .crumb { font-size: 14px; }
  .head-row { margin-top: 8px; align-items: flex-start; }
  .display { font-size: 35px; line-height: 1.06; letter-spacing: -.028em; }
  .lede { font-size: 16.5px; line-height: 1.5; }
  .status { font-size: 30px; line-height: 1.12; }
  .status.xl { font-size: 42px; }
  .status .dotsep { display: none; }
  /* The second half of the status ("hold live", "checking your server, pass 1 of 2") is a smaller
     line under the headline, so the headline stays two lines at most. */
  .status .tail { display: block; margin-top: 6px; font-size: 19px; line-height: 1.35; font-weight: 560; color: var(--ink-2); letter-spacing: 0; }
  .status .tail::first-letter { text-transform: uppercase; }
  .substatus { font-size: 17px; margin-top: 8px; }
  .h2 { font-size: 24px; }
  .flag { min-height: 32px; padding: 0 12px; font-size: 13px; }
  .card { padding: 20px; border-radius: 16px; }

  .story { display: none; }
  .story-m { display: block; margin-top: 18px; }

  .lockplate { margin-top: 14px; padding-right: 14px; align-items: flex-start; }
  .lockplate b { font-size: 15px; }
  .lockplate small { font-size: 13.5px; }

  .money { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; margin-top: 16px; }
  .money .m-ill { width: 52px; height: 52px; border-radius: 16px; align-self: start; }
  .money .m-ill .ic { width: 32px; height: 32px; }
  .m-amt { font-size: 30px; }
  .m-amt .unit { display: block; margin: 2px 0 0; font-size: 16px; }
  .m-sub { font-size: 15px; }
  .m-act { grid-column: 1 / -1; max-width: none; align-items: stretch; }
  .m-act .fine { text-align: left; }
  .m-act .btn { width: 100%; }
  .stats { gap: 6px 18px; }
  .stat b { font-size: 19px; }
  .next .links { justify-content: center; }

  .rescue-grid, .end-grid, .nh-grid, .look-grid { gap: 20px; margin-top: 20px; }
  .typed code { font-size: 15px; }
  .shot { margin: 10px; }
  .shot.crop { aspect-ratio: var(--pcw, var(--cw)) / var(--pch, var(--ch)); width: calc(100% - 20px); max-width: calc(var(--pcw, var(--cw)) * 1.4px); }
  .shot.crop img { width: calc(var(--iw) / var(--pcw, var(--cw)) * 100%); left: calc(var(--pcx, var(--cx)) / var(--pcw, var(--cw)) * -100%); top: calc(var(--pcy, var(--cy)) / var(--pch, var(--ch)) * -100%); }
  .nh-grid > aside { order: -1; }
  .zero { font-size: 56px; margin-top: 6px; }
  .cost-list { margin-top: 12px; }
  .cost-list li { padding: 9px 0; font-size: 15px; }
  .cost .actions { margin-top: 16px; }
  .console { border-radius: 14px; }
  .console-bar { font-size: 13px; padding: 8px 8px 8px 12px; }
  .console-bar time { font-size: 12.5px; }
  .moments-card { padding: 18px 18px 6px; }
  .mo { grid-template-columns: 58px 28px minmax(0, 1fr); gap: 8px; }
  .mo-ic { width: 28px; height: 28px; }


  .foot { margin-top: 40px; }
  .foot p { padding-bottom: 88px; }
  details.fold > summary { padding: 10px 0; }
  details.fold > summary .muted { flex-basis: 100%; padding-left: 34px; font-size: 14px; }
  .fold-body { padding-left: 0; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .log li { grid-template-columns: 70px minmax(0, 1fr); }
  .log .txt { grid-column: 1 / -1; }
  .phone-only { display: inline; }

  /* try */
  .try-hero { padding-top: 22px; }
  .try-hero .display { margin-top: 10px; }
  .hero-row { margin-top: 12px; }
  .try-row { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
  .howto { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .howto li { gap: 6px; }
  .howto li + li::before { display: none; }
  .howto .n { width: 24px; height: 24px; font-size: 12.5px; }
  .howto .t { font-size: 14px; }
  .howto .d { display: none; }
  .capacity { font-size: 13.5px; line-height: 1.4; align-items: flex-start; }
  .capacity .dot { margin-top: 6px; }
  .faults { gap: 26px; margin-top: 26px; }
  .fault { padding: 22px 20px 6px; }
  .fault-ill { width: 52px; height: 52px; border-radius: 14px; }
  .fault-ill .ic { width: 38px; height: 38px; }
  .fault .h3 { margin-top: 14px; font-size: 20px; }
  .fault .btn { margin-top: 16px; }
  .resume { grid-template-columns: auto minmax(0, 1fr); }
  .resume .btn { grid-column: 1 / -1; }
  .busy-box .btn { width: 100%; }

  /* checkout */
  .co-grid { gap: 20px; margin-top: 20px; }
  .price { font-size: 52px; }
  .diag { font-size: 17px; margin-top: 12px; }
  .q-sum { gap: 2px 18px; }
  .checkout { padding: 22px 20px 18px; border-left-width: 5px; }
  .co-title { font-size: 26px; }
  .co-head .ill { width: 52px; height: 52px; border-radius: 14px; }
  .co-head .ill .ic { width: 32px; height: 32px; }
  .co-money { font-size: 16px; }
  .co-foot { flex-direction: column; align-items: flex-start; gap: 0; }

  /* end */
  .tale li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .tale li::before { left: 19px; top: 40px; }
  .tale time { grid-column: 2; grid-row: 1; text-align: left; padding: 0; font-size: 13px; }
  .tale .node { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .tale .node .ic { width: 22px; height: 22px; }
  .tale .txt { grid-column: 2; padding-top: 0; }
  .why p { font-size: 16px; }

  /* ledger: each row becomes a card */
  .tiles { gap: 10px; }
  .tile { padding: 14px 16px; }
  .tile-value { font-size: 26px; }
  .nohold-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .nohold-list li .reason { grid-column: 1 / -1; }
  .hero { padding-top: 22px; }
  .section-title { margin-top: 40px; }
  .error-wrap { padding-top: 24px; }
}
.fold-body .evidence + .plan { margin-top: 12px; }
.mt-12 { margin-top: 12px; }
.section-gap-sm { margin-top: 14px; }
/* / and /try: full mode banners on desktop, the one-line note on a phone */
.modebar-phone { display: none; }
@media (max-width: 600px) {
  .banner-note { display: none; }
  .modebar-phone { display: block; }
  .modebar summary { border-radius: var(--r-md); padding-top: 8px; padding-bottom: 8px; line-height: 1.35; }
}
@media (max-width: 600px) {
  .modebar .mb-long { display: none; }
  .modebar .mb-short { display: inline; }
  .modebar summary { border-radius: var(--r-md); }
}

/* ---------- review fixes ---------- */
.shot-empty .wait-note { color: var(--console-dim); margin-top: 0; }
.btn-block { white-space: normal; text-align: center; }
.more .btn-link { display: inline-block; line-height: 44px; }
.ledger .run a { display: inline-flex; align-items: center; min-height: 44px; }
.ledger .run .id { margin-top: -8px; }
.ledger details summary { min-width: 44px; padding: 0 6px; }
.nohold-list li { grid-template-columns: 200px minmax(0, 1fr) auto; align-items: start; }
.nohold-list .what .reason { display: block; margin-top: 4px; color: var(--ink-2); max-width: 70ch; }
.nohold-list .pill { align-self: start; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }
  .desk-only { display: none; }
  .mo { grid-template-columns: 64px 28px minmax(0, 1fr); }
  .mo time { font-size: 13px; }
  .nohold-list li { grid-template-columns: minmax(0, 1fr); }
  .nohold-list .pill { justify-self: start; }
}
.stat b { white-space: nowrap; }
@media (max-width: 600px) {
  .stats { gap: 2px 16px; }
  .stat { gap: 6px; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 14px; }
}
/* phone: the rescue page's thin Stop bar (hidden on wider screens) */
.sticky-stop { display: none; }
@media (max-width: 600px) {
  .sticky-stop { position: fixed; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px 6px 16px; background: var(--held-soft); border-bottom: 1.5px solid var(--held-line); box-shadow: var(--shadow-2); font-size: 15px; }
  .sticky-stop[data-hidden="1"] { display: none; }
  .sticky-stop .ss-money { font-weight: 750; color: var(--held); white-space: nowrap; }
  .sticky-stop .ss-lock { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sticky-stop .btn { margin-left: auto; min-height: 44px; padding: 0 16px; }
}

/* ---------- round 2: review fixes ---------- */
/* The PayPal table becomes stacked rows up to 900 px, so no width between phone and desktop
   scrolls sideways. Two equal columns keep "PayPal answered" and "Webhook" at the same x in every
   row; the amount sits under the status pill; a row whose object does not exist shows no ticks. */
@media (max-width: 900px) {
  .pp-table, .pp-table tbody, .pp-table tr, .pp-table td { display: block; width: 100%; }
  .pp-table thead { display: none; }
  .pp-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; }
  .pp-table tr:last-child { border-bottom: 0; }
  .pp-table td { padding: 0; border: 0; }
  .pp-table td.c-obj { grid-column: 1; grid-row: 1 / span 2; }
  .pp-table td.c-status { grid-column: 2; grid-row: 1; justify-self: end; width: auto; }
  .pp-table td.c-amt { grid-column: 2; grid-row: 2; justify-self: end; width: auto; font-size: 14px; }
  .pp-table td.c-mean { grid-column: 1 / -1; color: var(--ink-2); }
  .pp-table td.c-api { grid-column: 1; font-size: 14px; }
  .pp-table td.c-hook { grid-column: 2; font-size: 14px; }
  .pp-table td.c-api::before { content: "PayPal answered"; display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .pp-table td.c-hook::before { content: "Webhook"; display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .pp-table tr.absent td.c-api, .pp-table tr.absent td.c-hook, .pp-table tr.absent td.c-amt { display: none; }
}

/* Ledger: the run link and the ids summary are 44 px tall for touch; pull them up so their text
   lines up with the rest of the row. The ids summary reads as a control (chevron). */
.ledger .run a, .ledger td.c-ids summary { margin-top: -11px; }
.ledger details summary { list-style: none; gap: 4px; }
.ledger details summary::-webkit-details-marker { display: none; }
.ledger details summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.ledger details[open] summary .ic { transform: rotate(90deg); }
/* Up to 1023 px each ledger row is a card (no inner sideways scroll box). */
@media (max-width: 1023px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .ledger td { padding: 0; border: 0; }
  .ledger td.c-run { grid-column: 1; }
  .ledger td.c-amt { grid-column: 2; grid-row: 1; text-align: right; }
  .ledger td.c-when, .ledger td.c-outcome, .ledger td.c-ticks { grid-column: 1 / -1; }
  /* "ok" and "ids" share a line; an open ids fold takes the full width. */
  .ledger td.c-checks { grid-column: 1; align-self: center; }
  .ledger td.c-ids { grid-column: 2; width: auto; text-align: right; }
  .ledger td.c-ids summary { margin-top: 0; }
  .ledger td.c-ids:has(details[open]) { grid-column: 1 / -1; text-align: left; }
}
.end-next { margin-top: 40px; }
.end-next .fine { margin-top: 4px; }
.end-next .actions { margin-top: 16px; }

/* /try: actions inside the busy and run-limit boxes; the reason under a disabled button. */
.box-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fault .wait-reason { color: var(--ink-2); }

/* Checkout: the simulated approval's steps fold under the button. */
.how-sim { margin-top: 8px; }
.how-sim summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.how-sim summary::-webkit-details-marker { display: none; }
.how-sim summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.how-sim[open] summary .ic { transform: rotate(90deg); }
.how-sim .steps3 { margin-top: 4px; }
/* The test buyer's login: each Copy button on the row of its value. */
.buyer .row { flex-wrap: nowrap; gap: 8px; }
.buyer .row code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.buyer .row .btn-copy { flex: none; }
/* [FAILED] in the evidence, and file names in the diagnosis. */
.ev-fail { color: var(--danger); font-weight: 700; }
.diag code { font-size: .8em; font-weight: 600; background: var(--sunk); padding: 2px 8px; border-radius: 8px; letter-spacing: 0; }
/* The rescue page's console stays in view beside Key moments on a desktop. */
@media (min-width: 961px) {
  .rescue-grid > .console { position: sticky; top: 16px; }
}
@media (max-width: 600px) {
  .try-hero .lede { margin-top: 12px; }
  .box-actions .btn { width: 100%; }
}
/* A phone's checkout: the quote is one line, so the approve button is on the first screen. */
@media (max-width: 480px) {
  .q-sum { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 12px; }
  .q-sum .eyebrow { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price { font-size: 34px; }
  .price-meta { display: none; }
  .diag { grid-column: 2; margin-top: 0; font-size: 16px; line-height: 1.35; }
}
/* Very narrow phones: the header and the audit tables still fit. */
@media (max-width: 370px) {
  .nav a { padding: 0 5px; font-size: 14px; }
  .brand span { font-size: 16px; }
  .top-in { gap: 2px; }
  .howto { flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; }
}
@media (max-width: 600px) {
  .table-plain, .table-plain tbody, .table-plain tr, .table-plain th, .table-plain td { display: block; width: 100%; }
  .table-plain thead { display: none; }
  .table-plain tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table-plain th, .table-plain td { border: 0; padding: 2px 0; }
  .table-plain td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: 13px; }
}
/* Key moments: "Show all N rows" stays on the line of the filter note; the note wraps instead. */
.more { flex-wrap: nowrap; }
.more .fine { min-width: 0; }
.more .btn-link { flex: none; white-space: nowrap; }
@media (max-width: 600px) {
  .try-hero .hero-row { margin-top: 12px; }
  /* After Cancel, a one-line note, so Start here stays on the first screen. */
  .alert .more-words { display: none; }
  .alert { margin-top: 14px; padding: 10px 14px; font-size: 15px; }
}
/* 320 px: the brand keeps its mark only (the link is labelled "Keyhold home"). */
@media (max-width: 340px) {
  .brand span { display: none; }
}

/* ---------- round 3: review fixes ---------- */
/* Console: "Full screen" sits in the title bar (a 44 px target that does not make the bar taller);
   the stepper bar shows only once there are two screens. */
.console-bar .full { margin: -10px -6px -10px 0; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--console-ink); font: 600 13.5px/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.console-bar .kchip + .full { margin-left: 2px; }
.stepper[hidden] { display: none; }
/* The placeholder sits on the skeleton lines: give its words their own dark band. */
.shot-empty .wait-note { background: var(--console); padding: 4px 12px; border-radius: var(--r-pill); }
/* A phone shows the last lines in a narrower band; a line that runs past it fades out at the edge
   instead of stopping mid-word. */
@media (max-width: 600px) {
  .shot.crop[data-cut] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}
@media (min-width: 601px) {
  .shot.crop[data-dcut] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}

/* Key moments: a lent keyboard is "now" (cobalt), as on the lock plate and the console chip. */
.mo-ic.now { background: var(--accent-soft); color: var(--accent); --tone: var(--accent-tone); }

/* /try: the marked card ("Start here" or "Next") keeps its ink frame only while its button is the
   page's primary; blocked, it looks like the other cards. A done path says so. */
.fault.start.blocked { border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
.fault.start.blocked .ribbon { background: var(--ink-3); }
.ribbon.done { background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); letter-spacing: .06em; }
.ribbon .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.fault .done-note { margin-top: 8px; }
.fault .done-note a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; font-weight: 650; color: var(--ink); }
.howto li.done .n { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.howto li.done .n .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.howto li.done .t { color: var(--ink-2); }
.capacity .unl { color: var(--ink); font-weight: 700; }
/* Busy and run-limit boxes: the words take the room the button leaves, without a one-word line. */
.busy-box > div { flex: 1 1 32rem; min-width: 0; }
.busy-box p { max-width: none; text-wrap: pretty; }
.done-box { background: var(--surface); }
/* An end page's next path while the warranty keeps the server: "· opens in about 2 min". */
.btn .opens { font-weight: 560; opacity: .85; }

/* The PayPal table reads like a statement: amounts right-aligned. */
@media (min-width: 901px) {
  .pp-table th.c-amt, .pp-table td.c-amt { text-align: right; }
}

/* The ledger's run summary under the heading. */
.ledger-sum { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .ledger-sum { font-size: 16.5px; } }
.ledger-sum a { font-weight: 600; color: var(--ink-2); }
.card-only { display: none; }
@media (max-width: 1023px) {
  .ledger tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .card-only { display: inline; }
}

/* Words that only fit a wide screen, and their short forms. */
.narrow-only { display: none; }
@media (max-width: 600px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  /* Home: the hero's two buttons as wide as /try's. */
  .hero .actions .btn { width: 100%; }
  /* /try: the lede keeps its first sentence; after a Cancel, the note takes its place. */
  .try-hero .more-words { display: none; }
  .try-hero.after-cancel .lede { display: none; }
  /* The test buyer's login: each value on its own line, its Copy button under it. */
  .buyer .row { flex-wrap: wrap; }
  .buyer .row code { flex: 1 1 100%; }
  .buyer .row .btn-copy { width: 100%; }
}
/* /try on a 900 px tall desktop: the Start here button ends on the first screen. */
@media (min-width: 601px) {
  .try-hero .hero-row { margin-top: 22px; }
  .try-row { margin-top: 22px; }
  .faults { margin-top: 26px; }
}
/* After a Cancel the note sits under the hero: the lede drops its mode sentence so the marked card
   stays on the first screen. Below 960 px the cards are one column: the marked card comes first. */
.try-hero.after-cancel .desk-only { display: none; }
@media (max-width: 960px) {
  .fault.start { order: -1; }
}
/* After a page reloads itself, focus lands on its status sentence for a screen reader; it is not a
   control, so it shows no ring (nor does the checkout heading the "Go to approve" bar focuses). */
#status:focus, #checkout-title:focus { outline: none; }
/* A phone's checkout: the hold icon gives way so "Approve a $9.00 hold" is one line and the approve
   button sits higher on the first screen. */
@media (max-width: 480px) {
  .co-head .ill { display: none; }
}
