/* ==========================================================================================================
   Mandate UI: a soft "statement" look. Rounded but restrained surfaces, light hairlines, gentle shadows, serif headings,
   one deep Midnight section for the budget. Motion is expressive but purposeful (entrances, glides, count-ups,
   feedback) and is fully governed by the user's Motion setting (data-motion: full / reduced / off).
   Tokens first (palette, roles, accents, density, motion), then layout, then components, then keyframes.
   PayPal's own buttons are rendered by PayPal's SDK inside .pp-slot: nothing here styles, filters, scales, tints or
   transforms them (rows that hold them get no lift, no spotlight and no transform animation).
   ========================================================================================================== */

/* ---------- brand palette (the only raw colors; everything else is a role below or a derived tint)
   Sky Blue #60cdff   hero accent (always with INK text: white on sky is only 1.8:1)
   Midnight #002991   the budget section; accent text on light surfaces
   Ink Black #000000  wordmark + primary text      Pure White #ffffff  canvas      Warm Ivory #f1efea  feature surfaces
   Link Blue #0070e0  hyperlinks and focus rings (white canvas only: 4.8:1; on ivory it is 4.2:1, so no link text on ivory)
   Success #007a56    positive actions            Error #c0212b      failures
   Gold #ffd140       legacy accent, used only for "awaiting approval" stripes and warning tints
   Legacy Pay Blue #00457C / Pal Blue #0079C1 are not used. */
:root {
  --sky: #60cdff; --midnight: #002991; --ivory: #f1efea; --link-blue: #0070e0; --success: #007a56; --error: #c0212b; --gold: #ffd140;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* roles: light */
  --bg: #ffffff; --surface: #ffffff; --surface-2: var(--ivory); --surface-3: #e8e5dd;
  --line: #ebe8e0; --line-strong: #d6d2c6;
  --ink: #000000; --ink-2: #262626; --muted: #595959;
  --link: var(--link-blue); --focus: var(--link-blue);
  --ok: var(--success); --warn: #7a5200; --warn-bg: color-mix(in srgb, var(--gold) 26%, #fff); --bad: var(--error); --bad-bg: color-mix(in srgb, var(--error) 8%, #fff);
  --held: var(--gold);
  --hero: var(--midnight); --hero-2: color-mix(in srgb, var(--midnight) 80%, #2a6cff); --hero-ink: #ffffff; --hero-muted: #c9d6ff; --hero-line: rgb(255 255 255 / .2);
  --toast-bg: #000000; --toast-ink: #ffffff; --toast-action: var(--sky); --toast-bad: var(--error); --toast-bad-ink: #ffffff;
  --shadow-1: 0 1px 2px rgb(16 22 38 / .05), 0 2px 10px rgb(16 22 38 / .05);
  --shadow-2: 0 8px 28px rgb(16 22 38 / .11);
  --shadow-3: 0 24px 64px rgb(16 22 38 / .24);
  --radius-s: 8px; --radius: 12px; --radius-l: 20px;
  --pad: 16px; --gap: 24px; --ctl-y: 9px; --ctl-x: 15px;
  /* motion (see the data-motion overrides below) */
  --move: 14px; --t-fast: 140ms; --t: 240ms; --t-slow: 520ms; --ease: cubic-bezier(.2, .75, .2, 1); --spring: cubic-bezier(.34, 1.45, .5, 1);
  color-scheme: light;
  font-family: var(--font-sans);
}
html { font-size: 100%; scroll-behavior: smooth; }
html[data-text="large"] { font-size: 112.5%; }

/* roles: dark = deeper shades of Midnight; text on dark uses lightened tints of the semantic colors (all >= 7:1) */
:root[data-scheme="dark"] {
  --bg: #000b2e; --surface: #001245; --surface-2: #001a5c; --surface-3: #002375;
  --line: #0e2a78; --line-strong: #284a9e;
  --ink: #ffffff; --ink-2: #dbe3ff; --muted: #a9b7e6;
  --link: var(--sky); --focus: var(--sky);
  --ok: #3fd6a6; --warn: var(--gold); --warn-bg: rgb(255 209 64 / .14); --bad: #ff8088; --bad-bg: rgb(255 128 136 / .14);
  --toast-bg: #ffffff; --toast-ink: #000000; --toast-action: var(--link-blue); --toast-bad: #ff8088; --toast-bad-ink: #000000;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 2px 10px rgb(0 0 0 / .25);
  --shadow-2: 0 10px 30px rgb(0 0 0 / .5);
  --shadow-3: 0 28px 70px rgb(0 0 0 / .65);
  color-scheme: dark;
}

/* ---------- accent choices (Settings). --accent-ink is the text color ON the accent; --accent-text is accent-colored text on the surface */
:root, :root[data-accent="sky"] { --accent: var(--sky); --accent-ink: #000000; --accent-hover: #47c2f8; --accent-text: var(--midnight); }
:root[data-accent="midnight"] { --accent: var(--midnight); --accent-ink: #ffffff; --accent-hover: #0036b8; --accent-text: var(--midnight); }
:root[data-accent="blue"] { --accent: var(--link-blue); --accent-ink: #ffffff; --accent-hover: #005ec2; --accent-text: #005ec2; }
:root[data-accent="green"] { --accent: var(--success); --accent-ink: #ffffff; --accent-hover: #006747; --accent-text: #006747; }
:root[data-accent="ink"] { --accent: #000000; --accent-ink: #ffffff; --accent-hover: #262626; --accent-text: #000000; }
:root[data-scheme="dark"], :root[data-scheme="dark"][data-accent="sky"] { --accent: var(--sky); --accent-ink: #000000; --accent-hover: #86d9ff; --accent-text: var(--sky); }
:root[data-scheme="dark"][data-accent="midnight"] { --accent: #2b5fe0; --accent-ink: #ffffff; --accent-hover: #4a78ea; --accent-text: #9db9ff; }
:root[data-scheme="dark"][data-accent="blue"] { --accent: var(--link-blue); --accent-ink: #ffffff; --accent-hover: #2a89ee; --accent-text: #7ec0ff; }
:root[data-scheme="dark"][data-accent="green"] { --accent: var(--success); --accent-ink: #ffffff; --accent-hover: #00946a; --accent-text: #3fd6a6; }
:root[data-scheme="dark"][data-accent="ink"] { --accent: #ffffff; --accent-ink: #000000; --accent-hover: #e6e6e6; --accent-text: #ffffff; }
:root { --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

/* ---------- tokens: density, motion */
:root[data-density="compact"] { --pad: 12px; --gap: 18px; --ctl-y: 6px; --ctl-x: 12px; }
:root[data-motion="reduced"] { --move: 0px; --t-fast: 80ms; --t: 100ms; --t-slow: 160ms; }
:root[data-motion="off"] { --move: 0px; --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after {
  animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
}
:root[data-motion="reduced"] { scroll-behavior: auto; }
:root[data-motion="reduced"] .dots i, :root[data-motion="reduced"] .caret, :root[data-motion="reduced"] .sk, :root[data-motion="reduced"] .statement::after, :root[data-motion="reduced"] .progress i { animation: none; }
:root[data-motion="reduced"] .reveal { transform: none; }

/* ---------- base */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: .9375rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.005em; }
h2 { font-size: 1.25rem; line-height: 1.25; }
h3 { font-size: .95rem; }
a { color: var(--link); }
a.btn, a.nav-item, a.brand { text-decoration: none; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: .8rem; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow-2); transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); font-size: .8125rem; }
.lede { max-width: 62ch; color: var(--ink-2); margin-bottom: var(--gap); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- top progress bar (searching, the assistant working) */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; pointer-events: none; opacity: 0; transition: opacity var(--t); overflow: hidden; }
.progress.on { opacity: 1; }
.progress i { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, transparent, var(--sky), var(--midnight)); border-radius: 3px; animation: slide 1.15s ease-in-out infinite; }

/* ---------- masthead */
.masthead { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.25) blur(14px); -webkit-backdrop-filter: saturate(1.25) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t), background var(--t); animation: drop var(--t-slow) var(--ease) backwards; }
.masthead.scrolled { box-shadow: var(--shadow-1); border-bottom-color: transparent; }
.masthead-inner { display: flex; align-items: stretch; gap: 28px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { border-radius: 9px; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent); transition: transform var(--t) var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark path { stroke-dasharray: 64; stroke-dashoffset: 64; animation: draw 900ms .25s var(--ease) forwards; }
.wordmark { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink); }
.primary-nav { position: relative; display: flex; flex: 1; align-items: stretch; justify-content: space-between; gap: 16px; }
.primary-nav ul { display: flex; align-items: stretch; gap: 22px; }
.primary-nav li { display: flex; align-items: stretch; }
.nav-meta li:last-child { align-items: center; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 2px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color var(--t-fast); }
.nav-meta .nav-item { font-weight: 500; font-size: .84rem; }
.nav-item:hover { color: var(--ink); }
.nav-item[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-text); }
.has-ink .nav-item[aria-current="page"] { border-bottom-color: transparent; }
.nav-ink { position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--accent-text); border-radius: 3px 3px 0 0; transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.nav-badge { min-width: 20px; text-align: center; padding: 0 7px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .72rem; font-weight: 800; line-height: 1.55; animation: pop var(--t-slow) var(--spring) backwards; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; border-radius: 10px; transition: background var(--t-fast), transform var(--t-fast) var(--spring), box-shadow var(--t-fast); }
.icon-btn:hover { background: var(--surface-2); box-shadow: var(--shadow-1); transform: rotate(14deg); }
.icon-btn:active { transform: scale(.92); }
.menu-btn { display: none; margin-left: auto; align-self: center; font: inherit; font-weight: 700; padding: 7px 15px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; border-radius: 10px; }

.banner { max-width: 1240px; margin: var(--gap) auto 0; width: calc(100% - 48px); padding: 11px 16px; background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); font-size: .875rem; animation: rise var(--t-slow) var(--ease) backwards; }
.setup-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--accent); animation: rise var(--t-slow) var(--ease) backwards; }
.setup-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; font-size: .875rem; }
.setup-bar-inner p { flex: 1; min-width: 240px; }
main { padding-bottom: 72px; outline: none; }
.page-head { padding: 30px 0 20px; }
.page-head h1 { font-size: 2.05rem; line-height: 1.15; outline: none; }
.page-head p { margin-top: 4px; }

/* ---------- parts shared by many pages */
.block-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-strong); padding-top: 12px; margin-bottom: 8px; }
.block-head::before { content: ""; position: absolute; left: 0; top: -2px; width: 38px; height: 3px; border-radius: 3px; background: var(--accent); }
.count { font-size: .8rem; font-weight: 700; color: var(--accent-text); }
.eyebrow { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hint-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 12px 16px; margin-bottom: var(--gap); background: var(--surface-2); border-radius: var(--radius); font-size: .875rem; box-shadow: inset 4px 0 0 var(--accent); animation: rise var(--t-slow) var(--ease) backwards; animation-delay: .25s; }
.hint-line > span { flex: 1; min-width: 220px; }
.hint-line a { color: var(--ink); font-weight: 600; }
.text-btn { font: inherit; font-size: .8125rem; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.notice { padding: 12px 16px; background: var(--surface-2); border-radius: var(--radius); font-size: .875rem; display: grid; gap: 8px; justify-items: start; }
.notice.warn { background: var(--warn-bg); color: var(--ink); }
.notice ul { display: grid; gap: 3px; padding-left: 18px; list-style: disc; }
.error { color: var(--bad); font-size: .8125rem; margin-bottom: 8px; }
.bad-text { color: var(--bad); }
.hint { font-size: .75rem; color: var(--muted); }
.facts { display: grid; margin: 12px 0; border-radius: var(--radius); background: var(--surface-2); padding: 4px 14px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-strong); font-size: .875rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.facts .mono, .req-amt, .offer-price { font-family: var(--font-mono); }

/* ---------- buttons, fields */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .875rem; border-radius: 10px; border: 1px solid var(--line-strong); padding: var(--ctl-y) var(--ctl-x); cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--spring); }
.btn:hover { background: var(--surface-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.975); box-shadow: var(--shadow-1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .38) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.btn.primary:hover::after, .btn.positive:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.positive { background: var(--success); color: #fff; border-color: transparent; box-shadow: 0 4px 16px color-mix(in srgb, var(--success) 32%, transparent); }
.btn.positive:hover { background: #006747; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.danger-solid { background: var(--error); color: #fff; border-color: transparent; }
.btn.danger-solid:hover { background: #a21c25; }
.btn.small { padding: calc(var(--ctl-y) - 3px) calc(var(--ctl-x) - 4px); font-size: .8rem; border-radius: 9px; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: color-mix(in srgb, currentColor 24%, transparent); transform: scale(0); animation: ripple .65s ease-out forwards; }
input[type=text], input[type=number], input[type=date], input:not([type]), textarea, select, .select { font: inherit; color: var(--ink); background: var(--surface); padding: var(--ctl-y) 12px; border-radius: 10px; border: 1px solid var(--line-strong); transition: border-color var(--t-fast), box-shadow var(--t) var(--ease); }
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
textarea { resize: vertical; min-height: 2.8em; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); box-shadow: 0 0 0 5px color-mix(in srgb, var(--focus) 16%, transparent); }
.field { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; }
.field span { color: var(--muted); }
.field.grow { flex: 1; min-width: 220px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; font-weight: 500; margin: 10px 0 !important; }
.check-row input { margin-top: 3px; }

/* ---------- tags: soft tinted chips (status is also spelled out in words, never color alone) */
.tag, .status { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, currentColor 11%, transparent); }
:is(.req, .offer):is(.enter, .enter-fade) :is(.tag, .status) { animation: pop var(--t-slow) var(--spring) backwards; animation-delay: calc(var(--i, 0) * 70ms + 240ms); }
.tag { margin-left: 8px; }
.tag.ok, .status.captured { color: var(--ok); }
.tag.warn, .status.cancelled, .status.expired, .status.refunded, .status.refunding { color: var(--warn); }
.status { color: var(--ink-2); }
.status.pending, .status.capturing, .status.reserving { color: var(--accent-text); }
.status.blocked, .status.declined, .status.failed { color: var(--bad); }
.cat { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); }
.chips-inline { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.checks { display: flex; gap: 2px 14px; flex-wrap: wrap; font-size: .75rem; font-weight: 600; }
.check { color: var(--ok); }
.check.fail { color: var(--bad); }
.check.skip { color: var(--muted); font-weight: 500; }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
:root[data-motion="full"] .dot.ok { animation: breathe 2.8s ease-in-out infinite; }

/* ---------- account: the statement (Midnight), then requests + assistant */
.statement { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hero) 0%, var(--hero-2) 100%); color: var(--hero-ink); padding: 22px 26px 26px; margin-bottom: var(--gap); border-radius: var(--radius-l); box-shadow: var(--shadow-2); }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgb(255 255 255 / .09) 50%, transparent 68%); background-size: 260% 100%; animation: sheen 10s ease-in-out infinite; pointer-events: none; }
.statement > * { position: relative; z-index: 1; }
.statement-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.statement .eyebrow { color: var(--hero-muted); }
.statement .btn { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .35); box-shadow: none; }
.statement .btn:hover { background: rgb(255 255 255 / .2); }
.statement .btn.primary { background: var(--sky); color: #000000; border-color: transparent; box-shadow: 0 4px 18px rgb(96 205 255 / .35); }
.statement .btn.primary:hover { background: #86d9ff; }
.statement :focus-visible { outline-color: var(--sky); }
.statement-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 48px; align-items: end; margin-top: 8px; }
.st-name { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 4px; }
.st-label { font-size: .78rem; color: var(--hero-muted); }
.figure { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; transform-origin: left center; }
.figure small { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--hero-muted); margin-left: 8px; }
.figure.pulse { animation: bump 700ms var(--spring); }
.bar { display: flex; height: 10px; background: var(--hero-line); border-radius: 99px; margin: 14px 0 8px; overflow: hidden; transition: box-shadow var(--t); }
.bar.glow { animation: glow 900ms ease-out; }
.bar i { display: block; height: 100%; transition: width 1.1s var(--ease); }
.bar .spent { background: var(--sky); border-radius: 99px; }
.bar .held { background: repeating-linear-gradient(135deg, var(--held) 0 6px, color-mix(in srgb, var(--held) 70%, #fff) 6px 12px); }
.legend { display: flex; gap: 2px 18px; flex-wrap: wrap; font-size: .76rem; color: var(--hero-muted); }
.legend b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-spent { background: var(--sky); } .sw-held { background: var(--held); }
.terms { display: grid; gap: 7px; font-size: .86rem; }
.term { display: flex; align-items: baseline; gap: 10px; }
.term dt { flex: 1; display: flex; align-items: baseline; color: var(--hero-muted); }
.term dt::after { content: ""; flex: 1; margin-left: 8px; border-bottom: 1px dotted var(--hero-line); transform: translateY(-3px); }
.term dd { font-weight: 600; text-align: right; }
.term .cat { color: #fff; margin-left: 4px; background: rgb(255 255 255 / .16); }
.statement .bad-text { color: #ffb3b8; }
.st-empty .figure { opacity: .72; }
.st-empty-text { margin-top: 12px; max-width: 46ch; color: var(--hero-muted); font-size: .9rem; }
.st-cta { margin-top: 16px; }
.term.todo dd { color: var(--hero-muted); font-weight: 500; font-style: italic; }
.statement .sk { background: linear-gradient(90deg, rgb(255 255 255 / .1), rgb(255 255 255 / .24), rgb(255 255 255 / .1)); background-size: 200% 100%; }

.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: var(--gap) 40px; align-items: start; }
.dock { position: sticky; top: 80px; background: var(--surface-2); border-radius: var(--radius-l); padding: 0 18px 18px; display: flex; flex-direction: column; max-height: calc(100dvh - 100px); box-shadow: var(--shadow-1); }
.dock .block-head { margin-top: 0; border-top-color: transparent; padding-top: 18px; }
.dock .block-head::before { display: none; }
.messages { flex: 1; min-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 2px; scroll-behavior: smooth; }
.msg { max-width: 94%; padding: 9px 13px; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 14px; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.msg.assistant { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; box-shadow: var(--shadow-1); }
.msg.user.enter { animation: from-right var(--t-slow) var(--ease) backwards; }
.msg.enter:not(.user), .msg-wrap.enter { animation: from-left var(--t-slow) var(--ease) backwards; }
.msg.thinking { display: flex; align-items: center; gap: 10px; color: var(--muted); font-style: italic; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); animation: wave 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.msg-wrap { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; max-width: 94%; }
.trace { font-size: .78rem; color: var(--muted); margin-left: 2px; }
.trace summary { cursor: pointer; font-weight: 600; }
.trace ol { margin: 6px 0 0; padding-left: 18px; list-style: decimal; display: grid; gap: 3px; }
.trace li.fail { color: var(--bad); }
.trace[open] ol { animation: fade var(--t) var(--ease); }
.suggest { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 0; font-size: .8rem; }
.suggest-label { color: var(--muted); font-weight: 600; }
.suggest button { font: inherit; color: var(--ink); background: none; border: 0; border-radius: 6px; padding: 2px 6px; margin: 0 -6px; cursor: pointer; text-align: left; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0 3px; background-position: 6px 100%; transition: background-size var(--t) var(--ease), background-color var(--t-fast); }
.suggest button:hover { background-size: calc(100% - 12px) 3px; background-color: color-mix(in srgb, var(--accent) 10%, transparent); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; }

/* requests (awaiting approval + recent) and search offers: soft cards */
.req-list, .offer-list { display: grid; gap: 12px; margin-top: 12px; }
.empty { color: var(--muted); font-size: .875rem; padding: 22px 18px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.req, .offer { position: relative; display: grid; gap: 8px; padding: 14px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.req:not(.pending):hover, .offer:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.req.pending { border-color: color-mix(in srgb, var(--sky) 55%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--sky) 9%, var(--surface)), var(--surface) 55%); }
.req.pending:hover { box-shadow: var(--shadow-2); }
.req.enter, .offer.enter { animation: rise var(--t-slow) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.req.enter-fade { animation: fade var(--t-slow) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); } /* rows that hold PayPal's buttons only fade: no transform near the SDK iframe */
.req.flash { animation: flash 1.8s ease-out; }
.req.leaving { animation: leave .3s var(--ease) forwards; pointer-events: none; }
.req-head, .offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.req-title, .offer-title { font-weight: 600; font-size: .95rem; }
.req-amt, .offer-price { font-weight: 700; white-space: nowrap; }
.req-meta, .offer-meta { font-size: .8rem; color: var(--muted); }
.req-why { font-size: .84rem; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 7px 11px; }
.req-pay { max-width: 420px; }
.pp-slot { min-height: 44px; }
.req-actions, .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-title { margin-top: 20px; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }
.offer { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 24px; }
.offer .offer-body { display: grid; gap: 6px; }
.offer-side { display: grid; gap: 8px; justify-items: end; align-content: start; }
.offer.outside { opacity: .9; }
.offer-note { font-size: .8rem; color: var(--bad); }
#search-locked { margin-bottom: var(--gap); }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px 18px; background: var(--surface-2); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.search-form .btn { align-self: end; }
.skeleton { gap: 9px; }
.sk { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), color-mix(in srgb, var(--surface-3) 45%, #fff), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk.w60 { width: 60%; height: 14px; } .sk.w40 { width: 40%; } .sk.w80 { width: 80%; } .sk.big { width: 55%; height: 44px; border-radius: 10px; margin: 8px 0; }

/* suggestions from the assistant (a human applies them) */
.proposals { display: grid; gap: 12px; margin-bottom: var(--gap); }
.suggestion { display: grid; gap: 8px; padding: 14px 18px 16px; background: var(--surface-2); border-radius: var(--radius); box-shadow: var(--shadow-1), inset 4px 0 0 var(--accent); animation: rise var(--t-slow) var(--ease) backwards; }
.suggestion .eyebrow { color: var(--muted); }
.change-list { display: grid; gap: 3px; padding-left: 20px; list-style: disc; font-size: .9rem; margin: 8px 0; }

/* spotlight: a soft light follows the pointer over cards (never over rows that hold PayPal's buttons) */
:root[data-motion="full"] :is(.statement, .req:not(.pending), .offer, .doc-section, .steps-list li) { position: relative; }
:root[data-motion="full"] :is(.statement, .req:not(.pending), .offer, .doc-section, .steps-list li)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--sky) 18%, transparent), transparent 70%); }
:root[data-motion="full"] :is(.statement, .req:not(.pending), .offer, .doc-section, .steps-list li):hover::before { opacity: 1; }
:root[data-motion="full"] .statement::before { z-index: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .15), transparent 70%); }

/* scroll reveal (classes are added by JS only when motion is on) */
.reveal { opacity: 0; transform: translateY(var(--move)); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(min(var(--i, 0), 8) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ledger */
.ledger-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ledger-bar .tabs { flex: 1; min-width: 220px; margin-bottom: 0; }
.export-btns { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { position: relative; font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; padding: 8px 0; cursor: pointer; color: var(--muted); transition: color var(--t-fast); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab.active::after { transform: scaleX(1); }
.grid-box { height: clamp(320px, calc(100dvh - 300px), 780px); width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); animation: fade var(--t-slow) var(--ease); }

/* how it works */
.steps-list { display: grid; gap: 14px; margin-bottom: 36px; max-width: 860px; }
.steps-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 16px; padding: 18px 22px; background: var(--surface-2); border-radius: var(--radius-l); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.steps-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-1); }
.step-no { font-family: var(--font-serif); font-size: 2.8rem; line-height: 1; font-weight: 700; color: var(--accent-text); }
.steps-list p { margin-top: 4px; color: var(--ink-2); max-width: 62ch; }
.how-cols { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.how-cols p { margin-top: 10px; color: var(--ink-2); font-size: .9rem; }
.plain-list { display: grid; gap: 8px; margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.plain-list b { color: var(--ink); margin-right: 8px; }
.plain-list.defs li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.plain-list.defs b { margin-right: 0; }
.plain-list.tick li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.plain-list.cross li::before { content: "\2717"; color: var(--bad); font-weight: 800; margin-right: 8px; }
.can-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.can-grid h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* information + settings: soft document sections (title and description left, content right) */
.info-content, .settings { display: grid; gap: 16px; }
.doc-section { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 8px 40px; padding: 22px 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.doc-title p { margin-top: 4px; }
.info-row { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row dt { color: var(--muted); }
.info-row dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.info-row .val { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.info-row dd .btn { margin-left: auto; flex: none; }
.info-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.settings { max-width: 980px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:first-child { padding-top: 0; }
.set-row:last-child { border-bottom: 0; padding-bottom: 0; }
.set-text { display: grid; gap: 1px; min-width: 200px; flex: 1; }
.set-label { font-weight: 600; font-size: .9rem; }
.set-text small { color: var(--muted); font-size: .78rem; }
.set-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-3); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: block; padding: 6px 13px; border-radius: 9px; font-size: .8125rem; font-weight: 600; color: var(--muted); transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t-fast) var(--spring); }
.seg-opt:hover span { color: var(--ink); }
.seg-opt:active span { transform: scale(.95); }
.seg-opt input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 38%, transparent); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: grid; place-items: center; width: 32px; height: 32px; background: var(--sw); color: var(--sw-ink, #fff); border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); transition: transform var(--t) var(--spring), box-shadow var(--t); }
.swatch:hover span { transform: scale(1.12); }
.swatch svg { opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity var(--t-fast), transform var(--t) var(--spring); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch input:checked + span svg { opacity: 1; transform: none; }
.swatch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 4px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background var(--t); }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); transition: transform var(--t) var(--spring), width var(--t-fast); }
.switch:active .thumb { width: 24px; }
.switch input:checked ~ .track { background: var(--accent); box-shadow: none; }
.switch input:checked ~ .track .thumb { transform: translateX(18px); }
.switch input:checked:active ~ .track .thumb { transform: translateX(14px); }
.switch input:focus-visible ~ .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.select { min-width: 150px; }
.motion-preview { gap: 14px; }
.motion-demo { display: flex; gap: 7px; }
.motion-demo span { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); opacity: .35; }
.motion-demo.play span { animation: demo 900ms var(--ease) both; }
.motion-demo.play span:nth-child(2) { animation-delay: 120ms; } .motion-demo.play span:nth-child(3) { animation-delay: 240ms; }

/* dialogs + toast */
dialog { border: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius-l); padding: 26px; width: min(520px, 92vw); box-shadow: var(--shadow-3); }
dialog[open] { animation: dialog-in var(--t-slow) var(--spring); }
dialog::backdrop { background: rgb(0 8 30 / .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade var(--t) both; }
dialog h3 { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 8px; }
dialog label { display: grid; gap: 4px; font-size: .8125rem; font-weight: 600; margin-bottom: 10px; }
dialog label.check-row { display: flex; }
dialog input, dialog textarea { font-weight: 400; }
fieldset { border: 1px solid var(--line-strong); border-radius: var(--radius); margin: 0 0 12px; }
legend { font-size: .8125rem; font-weight: 600; padding: 0 6px; }
.cat-boxes { display: flex; flex-wrap: wrap; gap: 12px; font-size: .875rem; }
.cat-boxes label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.dlg-intro { margin-bottom: 14px; font-size: .86rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cat-field { padding-bottom: 6px; }
.cat-tools { display: flex; gap: 14px; margin-top: 8px; }
.summary { padding: 10px 14px; background: var(--accent-soft); border-radius: var(--radius); font-size: .86rem; color: var(--ink-2); margin-bottom: 12px; }
.summary.warn { background: var(--warn-bg); color: var(--ink); }
.more-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 14px; margin-bottom: 12px; }
.more-box summary { cursor: pointer; font-weight: 600; font-size: .86rem; padding: 10px 0; }
.more-box[open] summary { margin-bottom: 8px; }
.more-box label:last-child { margin-bottom: 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 0; }
.toast { position: fixed; bottom: 24px; left: 24px; display: flex; align-items: center; gap: 14px; background: var(--toast-bg); color: var(--toast-ink); padding: 12px 18px; border-radius: 14px; font-size: .875rem; max-width: min(92vw, 560px); z-index: 60; box-shadow: var(--shadow-3); }
.toast.show { animation: toast-in var(--t-slow) var(--spring) both; }
.toast.bad { background: var(--toast-bad); color: var(--toast-bad-ink); }
.toast-action { font: inherit; font-weight: 700; color: var(--toast-action); background: transparent; border: 0; cursor: pointer; padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
.toast.bad .toast-action { color: inherit; }
.toast .tick { flex: none; color: var(--sky); }
.toast .tick path { stroke-dasharray: 28; stroke-dashoffset: 28; animation: draw 600ms .15s var(--ease) forwards; }
:root[data-scheme="dark"] .toast .tick { color: var(--success); }

/* welcome tour: a modal walkthrough. The illustration plays on the Midnight band; text and controls sit below. */
dialog.tour { width: min(640px, 94vw); padding: 0; overflow: hidden; }
dialog.tour[open] { display: flex; flex-direction: column; max-height: min(94dvh, 800px); }
.tour-art { position: relative; flex: none; display: grid; place-items: center; min-height: 214px; padding: 28px 22px; overflow: hidden; color: var(--hero-ink); background: linear-gradient(135deg, var(--hero) 0%, var(--hero-2) 100%); }
.tour-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgb(255 255 255 / .09) 50%, transparent 68%); background-size: 260% 100%; animation: sheen 9s ease-in-out infinite; pointer-events: none; }
.tour-art > * { position: relative; z-index: 1; }
.tour-body { padding: 22px 30px 4px; overflow-y: auto; }
.tour-step { color: var(--muted); }
.tour-body h3 { font-size: 1.55rem; margin: 4px 0 8px; outline: none; }
.tour-body > p:not(.tour-step) { color: var(--ink-2); max-width: 60ch; }
.tour-points { display: grid; gap: 9px; margin-top: 14px; font-size: .9rem; }
.tour-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.tour-points svg { flex: none; margin-top: 3px; color: var(--ok); }
.tour-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 24px 22px; }
.tour-foot .text-btn { justify-self: start; padding: 8px 4px; }
.tour-nav { display: flex; justify-content: flex-end; gap: 8px; }
.tour-dots { display: flex; align-items: center; }
.tour-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.tour-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width var(--t) var(--ease), background var(--t); }
.tour-dot:hover::before { background: var(--muted); }
.tour-dot[aria-current="step"]::before { width: 20px; background: var(--accent-text); }
.swap-fwd { animation: swap-fwd var(--t-slow) var(--ease) both; }
.swap-back { animation: swap-back var(--t-slow) var(--ease) both; }

.art-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.art-stack { display: grid; gap: 9px; width: min(390px, 100%); }
.mock { color: #ffffff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .24); border-radius: 14px; padding: 9px 14px; font-size: .84rem; animation: art-in var(--t-slow) var(--ease) backwards; animation-delay: calc(var(--k, 0) * 110ms + 120ms); }
.mock.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 8px 15px; font-weight: 700; }
.mock.chip.hot { background: var(--sky); color: #000000; border-color: transparent; box-shadow: 0 6px 22px rgb(96 205 255 / .4); }
.mock.arrow { background: none; border: 0; padding: 0; opacity: .85; }
.mock.bubble { max-width: 84%; }
.mock.bubble.you { justify-self: end; background: var(--sky); color: #000000; border-color: transparent; border-bottom-right-radius: 4px; }
.mock.bubble.bot { justify-self: start; border-bottom-left-radius: 4px; }
.mock.searchbar { display: flex; align-items: center; gap: 8px; justify-self: center; border-radius: 99px; color: var(--hero-muted); }
.mock.row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mock.row b { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.mock.row.pass b { background: #3fd6a6; color: #00281b; }
.mock.row.fail b { background: #ff8088; color: #3a0005; }
.mock.row em { margin-left: auto; font-style: normal; font-weight: 500; font-size: .78rem; color: #ffd0d3; }
.mock.panel { display: grid; gap: 4px; padding: 14px 18px; }
.mock.panel small { color: var(--hero-muted); }
.art-figure { display: block; font-size: 2.3rem; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.caret { display: inline-block; width: 2px; height: 1.9rem; margin-left: 4px; vertical-align: -5px; background: var(--sky); animation: blink 1.05s steps(2, start) infinite; }
.art-bar { display: block; height: 8px; margin: 6px 0 4px; border-radius: 99px; background: rgb(255 255 255 / .2); }
.art-terms { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--hero-muted); }
.art-terms em { font-style: normal; color: #ffffff; text-decoration: underline dotted; text-underline-offset: 3px; }
.mock.ledger-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
.ledger-row .amt { font-family: var(--font-mono); }
.ledger-row .st { padding: 2px 8px; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ledger-row .st.paid { background: #3fd6a6; color: #00281b; }
.ledger-row .st.blocked { background: #ff8088; color: #3a0005; }

/* theme change: colors cross-fade for a moment (class added by JS only when motion is on) */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, fill .45s ease !important; }

/* ---------- keyframes: eased entrances, a spring for small elements, gentle ambient loops */
@keyframes rise { from { opacity: 0; transform: translateY(var(--move)); } }
@keyframes drop { from { opacity: 0; transform: translateY(calc(var(--move) * -1.6)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes from-right { from { opacity: 0; transform: translateX(calc(var(--move) * 1.6)) scale(.96); } }
@keyframes from-left { from { opacity: 0; transform: translateX(calc(var(--move) * -1.6)) scale(.96); } }
@keyframes leave { to { opacity: 0; transform: translateX(calc(var(--move) * 1.8)) scale(.98); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(calc(var(--move) * 1.4)) scale(.95); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(calc(var(--move) * 2)) scale(.94); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes sheen { 0% { background-position: 130% 0; } 55%, 100% { background-position: -130% 0; } }
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(300%); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes art-in { from { opacity: 0; transform: translateY(calc(var(--move) * 1.2)) scale(.94); } }
@keyframes swap-fwd { from { opacity: 0; transform: translateX(calc(var(--move) * 1.6)); } }
@keyframes swap-back { from { opacity: 0; transform: translateX(calc(var(--move) * -1.6)); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 6%, transparent); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sky) 70%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes flash { 0% { background-color: color-mix(in srgb, var(--ok) 22%, var(--surface)); } 100% { background-color: var(--surface); } }
@keyframes demo { 0% { opacity: .35; transform: translateY(0) scale(1); } 40% { opacity: 1; transform: translateY(calc(var(--move) * -1.2)) scale(1.3); } 100% { opacity: .35; transform: translateY(0) scale(1); } }

/* ---------- responsive */
@media (max-width: 1000px) {
  .workbench { grid-template-columns: 1fr; }
  .dock { position: static; max-height: none; order: -1; }
  .statement-body { grid-template-columns: 1fr; }
  .doc-section { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .masthead { position: relative; }
  .masthead-inner { flex-wrap: wrap; gap: 0 16px; }
  .brand { min-height: 58px; }
  .menu-btn { display: inline-block; }
  .primary-nav { flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; display: none; }
  .nav-open .primary-nav { display: flex; animation: rise var(--t) var(--ease); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .nav-ink { display: none; }
  .nav-item { padding: 12px 2px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .nav-item[aria-current="page"], .has-ink .nav-item[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--accent-text); padding-left: 12px; }
  .nav-meta { margin-top: 8px; }
  .nav-meta li:last-child { padding: 10px 0; }
}
@media (max-width: 640px) {
  .field-pair { grid-template-columns: 1fr; }
  .tour-art { min-height: 168px; padding: 20px 14px; }
  .tour-body { padding: 18px 20px 2px; }
  .tour-body h3 { font-size: 1.3rem; }
  .tour-foot { grid-template-columns: 1fr 1fr; padding: 12px 18px 18px; }
  .tour-dots { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  .banner { width: calc(100% - 28px); }
  .page-head h1 { font-size: 1.6rem; }
  .statement { padding: 18px; }
  .steps-list li { grid-template-columns: 44px 1fr; padding: 14px 16px; }
  .step-no { font-size: 2rem; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
  .can-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer-side { justify-items: start; }
  .doc-section { padding: 18px; }
  .toast { left: 14px; right: 14px; }
}
@media print { .masthead, .toast, .dock, .progress { display: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }
