/* JERRYCAN — app.css (shell). Tokens + page scale + page frame + atmosphere + nav/footer chrome + rule classes + motion.
   Route bodies: use these tokens/classes; NO border/outline declarations, NO own max-width / side padding / page background.
   Scale (LUAT 50): build width 1920; ≥1280 every size = N * var(--u) where --u = 100vw/1920 (1:1 with the mockup at 1920).
   <1280 (LUAT 71): one phone layout, content column capped at 760px and centred; --u is a fixed 0.62px there and routes add
   their own phone rules (max-width:1279.98px) with px floors. Per-element animation vars use their own names (--fill, --i, --sdk), never --u. */

:root {
  --u: calc(100vw / 1920);

  /* colour tokens — DESIGN.md §3 */
  --paper: #17100D;
  --paper-2: #17120F;
  --surface: #211812;
  --surface-top: #241A15;
  --surface-bot: #1F1710;
  --surface-2: #2C221C;
  --text: #F5EDE6;
  --secondary: #B3A498;
  --hairline: #3B302A;
  --hairline-2: #645242;
  --frame: #5E4B3D;
  --frame-hi: #A59284;
  --action: #F82348;
  --action-ink: #FFFFFF;
  --gas: #FB8900;
  --success: #39D98D;
  --warn: #F5C542;
  --brand-grad: linear-gradient(90deg, #F82348, #FB8900);

  /* fonts — DESIGN.md §2 (nav keeps the chrome face: Big Shoulders Display 800) */
  --f-sans: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-poster: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-fine: "Barlow", "Barlow Condensed", sans-serif;

  /* type scale @1920 (×--u), floors keep body ≥12px */
  --t-hero: calc(80.6 * var(--u));
  --t-title: calc(72 * var(--u));
  --t-section: calc(44 * var(--u));
  --t-range: calc(190 * var(--u));
  --t-big: calc(42.3 * var(--u));
  --t-body: max(14px, calc(25 * var(--u)));
  --t-label: max(13px, calc(23.3 * var(--u)));
  --t-data: max(12px, calc(21 * var(--u)));
  --t-small: max(12px, calc(17 * var(--u)));
  --t-nav: max(13px, calc(15 * var(--u)));

  /* spacing + materials */
  --gutter-l: calc(46 * var(--u));
  --gutter-r: calc(44 * var(--u));
  --gap: calc(32 * var(--u));
  --gap-s: calc(16 * var(--u));
  --section-gap: calc(72 * var(--u));
  --r-panel: calc(14 * var(--u));
  --r-card: calc(16 * var(--u));
  --r-box: calc(10 * var(--u));
  --r-ctl: calc(6 * var(--u));
  --shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, .35);

  /* rule tokens — widths from BORDER_TABLE (CSS px @1920), every hairline max(1px, …) */
  --rule-w: max(1px, calc(2.3 * var(--u)));
  --rule-w-mid: max(1px, calc(1.6 * var(--u)));
  --rule-w-thin: max(1px, calc(1.1 * var(--u)));
  --rule-w-strong: max(1.5px, calc(3.3 * var(--u)));
  --rule-w-sel: max(2px, calc(4.1 * var(--u)));
  --rule-c-panel: var(--frame);
  --rule-c-input: var(--frame-hi);
  --rule-c-line: var(--hairline);
  --rule-c-ink: var(--text);
  --rule-c-sel: var(--action);
  --rule-c-ok: var(--success);

  /* motion — DESIGN.md §10 */
  --m-ease: cubic-bezier(.2, .8, .2, 1);
  --m-snap: cubic-bezier(.5, 0, .1, 1);
  --m-fast: 180ms;
  --m-mid: 320ms;
  --m-pour: 650ms;
  --rt-dur: 220ms;
  --rt-nudge: 14px;

  color-scheme: dark;
  accent-color: var(--action);
  scrollbar-color: #4A3A2E var(--paper);
}
html[data-rt-dir=back] { --rt-nudge: -14px; }

@media (max-width: 1279.98px) {
  :root {
    --u: 0.62px;
    --t-hero: 44px; --t-title: 40px; --t-section: 28px; --t-range: 96px; --t-big: 26px;
    --t-body: 17px; --t-label: 16px; --t-data: 14px; --t-small: 13px; --t-nav: 14px;
    --gutter-l: 16px; --gutter-r: 16px; --gap: 16px; --gap-s: 10px; --section-gap: 48px;
    --r-panel: 12px; --r-card: 14px; --r-box: 8px; --r-ctl: 6px;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(button, input, select, textarea, fieldset, iframe, img) { border: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100vh; position: relative; overflow-x: clip;
  background: var(--paper); color: var(--text);
  font-family: var(--f-sans); font-size: var(--t-body); font-weight: 500; line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main p, main li { text-wrap: pretty; }
::selection { background: var(--action); color: #fff; }
:focus-visible { outline: max(2px, calc(2.3 * var(--u))) solid var(--gas); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono, .num { font-family: var(--f-mono); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- page atmosphere (DESIGN.md §3b): paper + one amber halo per route + faint edge vignette ---------- */
.atm {
  position: absolute; inset: 0 0 auto 0; height: calc(1150 * var(--u)); z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #160F0C 0, rgba(22, 15, 12, 0) 5%, rgba(22, 15, 12, 0) 95%, #160F0C 100%),
    radial-gradient(calc(480 * var(--u)) calc(220 * var(--u)) at calc(520 * var(--u)) calc(170 * var(--u)),
      #36200B 0%, #28180D 42%, rgba(23, 16, 13, 0) 100%);
}
body[data-route="home"] .atm, body:not([data-route]) .atm {
  background:
    linear-gradient(90deg, #160F0C 0, rgba(22, 15, 12, 0) 5%, rgba(22, 15, 12, 0) 95%, #160F0C 100%),
    radial-gradient(calc(560 * var(--u)) calc(420 * var(--u)) at calc(380 * var(--u)) calc(420 * var(--u)),
      #3E2008 0%, #351C09 28%, #2F190A 46%, #20140C 72%, rgba(23, 16, 13, 0) 100%);
}
@media (max-width: 1279.98px) {
  .atm { height: 720px; background: radial-gradient(70vw 260px at 30% 140px, #36200B 0%, #28180D 45%, rgba(23, 16, 13, 0) 100%); }
  body[data-route="home"] .atm, body:not([data-route]) .atm { background: radial-gradient(90vw 380px at 40% 300px, #3E2008 0%, #2F190A 45%, rgba(23, 16, 13, 0) 100%); }
}
.nav, main, .foot { position: relative; z-index: 1; }
.nav { z-index: 2; } /* the nav paints above main: a route's big type never swallows nav clicks */

/* ---------- ONE page frame ---------- */
main.frame {
  display: block; width: 100%; min-height: 60vh;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
  transition: opacity var(--m-fast) linear;
}
main.frame.is-leaving { opacity: .35; }
@media (max-width: 1279.98px) {
  main.frame { max-width: 760px; margin-inline: auto; }
}

/* ---------- NAV (chrome N13 — mockup/v1/chrome/nav.html, scaled) ---------- */
.nav {
  height: calc(73 * var(--u)); width: 100%;
  display: flex; align-items: center; gap: calc(20 * var(--u));
  padding: 0 calc(48 * var(--u));
  background: var(--paper-2); color: var(--text);
  font-family: var(--f-poster); font-size: var(--t-nav); font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  margin-bottom: calc(11 * var(--u));
}
.nav::after { /* second line of the double nav rule (y 73 / 84 @1920) */
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(-11 * var(--u)); height: 0; pointer-events: none;
}
.nav .brand {
  display: flex; align-items: center; gap: calc(12 * var(--u)); margin-right: calc(28 * var(--u));
  color: var(--text); text-decoration: none; font-size: calc(30 * var(--u)); letter-spacing: .01em; line-height: 1;
}
.nav .brand.is-active { background: none; color: var(--text); }
.nav .brand img { width: calc(52 * var(--u)); height: calc(50 * var(--u)); object-fit: contain; }
.nav nav { display: flex; align-items: center; justify-content: space-between; gap: calc(18 * var(--u)); flex: 1; }
.nav nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(38 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(5 * var(--u));
  color: var(--text); text-decoration: none; line-height: 1;
  transition: background-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease), transform var(--m-fast) var(--m-ease);
}
.nav nav a:hover { background: rgba(248, 35, 72, .16); }
.nav nav a.is-active, .nav nav a[aria-current="page"] { background: var(--action); color: #fff; }
.nav nav a:active { transform: translateY(1px); }
.nav .social { display: contents; }
.nav .soc { cursor: pointer; }
.nav .soc.rule-col-left { padding-left: calc(18 * var(--u)); border-radius: 0; }
.nav .soc[aria-disabled="true"] { color: var(--secondary); cursor: default; }
.nav .soc[aria-disabled="true"]:hover { background: none; }

@media (max-width: 1279.98px) {
  .nav {
    height: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
    padding: 10px max(12px, calc((100vw - 760px) / 2 + 16px)) 12px; margin-bottom: 8px;
  }
  .nav::after { bottom: -8px; }
  .nav .brand { grid-column: 1 / span 4; margin: 0; gap: 10px; font-size: 26px; min-height: 44px; }
  .nav .brand img { width: 40px; height: 38px; }
  .nav nav { display: contents; }
  .nav nav a { grid-column: span 2; min-height: 40px; padding: 0 4px; border-radius: 5px; font-size: var(--t-nav); }
  .nav .soc { grid-column: span 1; grid-row: 1; min-height: 44px; }
  .nav .soc[data-launch="x"] { grid-column: 5; }
  .nav .soc[data-launch="tg"] { grid-column: 6; }
  .nav .soc.rule-col-left { padding-left: 4px; }
}

/* ---------- FOOTER (chrome F1 — mockup/v1/chrome/footer.html, scaled) ---------- */
.foot {
  width: 100%; margin-top: var(--section-gap);
  padding: calc(18 * var(--u)) calc(48 * var(--u)) 0;
  background: var(--paper-2); color: var(--text); font-family: var(--f-fine);
}
.foot p { margin: 0 0 calc(7 * var(--u)); color: var(--secondary); font-size: max(12px, calc(14 * var(--u))); line-height: 1.35; }
.foot .wordmark {
  display: flex; align-items: center; justify-content: center; gap: calc(24 * var(--u));
  height: calc(342 * var(--u)); overflow: hidden;
  font-family: var(--f-poster); font-size: calc(210 * var(--u)); font-weight: 800; line-height: .86; letter-spacing: -.035em; color: var(--text);
}
.foot .wordmark img { width: calc(210 * var(--u)); height: calc(210 * var(--u)); object-fit: contain; flex: 0 0 auto; }
@media (max-width: 1279.98px) {
  .foot { padding: 16px max(16px, calc((100vw - 760px) / 2 + 16px)) 0; }
  .foot p { font-size: 13px; margin-bottom: 6px; }
  .foot .wordmark { height: auto; padding: 28px 0 36px; gap: 3vw; font-size: min(150px, calc((100vw - 48px) / 4.5)); }
  .foot .wordmark img { width: 1em; height: 1em; }
}

/* ---------- shared type ---------- */
.t-hero { font-family: var(--f-sans); font-weight: 800; font-size: var(--t-hero); line-height: .98; letter-spacing: .03em; }
.t-title { font-family: var(--f-sans); font-weight: 800; font-size: var(--t-title); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.t-section { font-family: var(--f-sans); font-weight: 800; font-size: var(--t-section); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.t-big { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-big); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.t-body { font-size: var(--t-body); font-weight: 500; line-height: 1.3; color: var(--secondary); }
.t-label { font-size: var(--t-label); font-weight: 400; line-height: 1.3; letter-spacing: .01em; color: var(--secondary); }
.t-data { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-data); line-height: 1.35; font-variant-numeric: tabular-nums; }
.t-small { font-size: var(--t-small); line-height: 1.35; color: var(--secondary); }
.c-action { color: var(--action); } .c-gas { color: var(--gas); } .c-ok { color: var(--success); } .c-warn { color: var(--warn); } .c-dim { color: var(--secondary); }

/* ---------- shared materials (no borders here — frames come from the rule classes below) ---------- */
.panel {
  background: linear-gradient(180deg, var(--surface-top), var(--surface) 40%, var(--surface-bot));
  border-radius: var(--r-panel); box-shadow: var(--shadow);
}
.surface-2 { background: var(--surface-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--u));
  min-height: calc(56 * var(--u)); padding: 0 calc(26 * var(--u)); border-radius: var(--r-ctl);
  font-family: var(--f-sans); font-weight: 600; font-size: var(--t-label); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform var(--m-fast) var(--m-ease), background-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: #FF3A5C; }
.btn[disabled], .btn[aria-disabled="true"] { background: #3A302B; color: #9C8F86; cursor: not-allowed; transform: none; }
.btn[data-launch-done] { background: var(--action); color: #fff; cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); min-height: calc(36 * var(--u)); padding: 0 calc(12 * var(--u));
  border-radius: calc(8 * var(--u)); font-family: var(--f-sans); font-weight: 600; font-size: var(--t-small); line-height: 1; white-space: nowrap;
}
.chip-ok { color: var(--success); background: rgba(57, 217, 141, .10); }
.chip-warn { color: var(--warn); background: rgba(245, 197, 66, .10); }
.chip-err { color: var(--action); background: rgba(248, 35, 72, .10); }
.code { font-family: var(--f-mono); font-size: var(--t-data); line-height: 1.45; white-space: pre; overflow: auto; }
@media (max-width: 1279.98px) {
  .btn { min-height: 44px; padding: 0 16px; }
  .chip { min-height: 30px; padding: 0 10px; }
}

/* ---------- MOTION (DESIGN.md §10): pour · flip · pump-meter count · sign-tick reveal ---------- */
/* reveal: a sign panel clicks in from the left, ends by itself (app.js 2 s safety timer adds .is-in) */
.m-reveal { opacity: 0; transform: translateX(calc(-12 * var(--u))); transition: opacity var(--m-mid) var(--m-snap), transform var(--m-mid) var(--m-snap); transition-delay: calc(var(--i, 0) * 40ms); }
.m-reveal.is-in { opacity: 1; transform: none; }
/* pour: a gauge/bar fills from E to its level (--fill 0..1) */
.m-fill { transform-origin: left center; transform: scaleX(0); transition: transform var(--m-pour) var(--m-ease); }
.m-fill.is-in { transform: scaleX(var(--fill, 1)); }
.m-fill-y { transform-origin: center bottom; transform: scaleY(0); transition: transform var(--m-pour) var(--m-ease); }
.m-fill-y.is-in { transform: scaleY(var(--fill, 1)); }
/* flow: SVG pipe strokes run toward the gauge (decoration) */
.m-flow { stroke-dasharray: 14 10; animation: m-flow 900ms linear infinite; }
@keyframes m-flow { to { stroke-dashoffset: -24; } }
/* flip: a status chip turns over (reverted → went through, Stuck ↔ Has gas) */
.m-flip { transform-origin: center; animation: m-flip var(--m-fast) var(--m-snap); }
@keyframes m-flip { 0% { transform: perspective(400px) rotateX(0); } 50% { transform: perspective(400px) rotateX(90deg); } 100% { transform: perspective(400px) rotateX(0); } }
/* tick: a live number just refreshed — a short gas-amber sweep under it */
.m-tick { position: relative; }
.m-tick::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gas); transform-origin: left; transform: scaleX(0); opacity: 0; pointer-events: none; }
.m-tick.is-ticked::after { animation: m-tick 700ms var(--m-ease); }
@keyframes m-tick { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* hover lift for clickable cards/rows: 2px nudge right like a dial pointer */
.m-hover { transition: transform var(--m-fast) var(--m-ease); }
.m-hover:hover { transform: translateX(2px); }
/* data that is old: grey + "snapshot" */
[data-stale="1"] { color: var(--secondary); }

@media (prefers-reduced-motion: reduce) {
  .m-reveal, .m-reveal.is-in { opacity: 1; transform: none; transition: none; }
  .m-fill, .m-fill.is-in { transform: scaleX(var(--fill, 1)); transition: none; }
  .m-fill-y, .m-fill-y.is-in { transform: scaleY(var(--fill, 1)); transition: none; }
  .m-flow, .m-flip, .m-tick.is-ticked::after { animation: none; }
  .m-hover:hover, .btn:active, .nav nav a:active { transform: none; }
  main.frame { transition: none; }
}

/* ---------- RULES (LUAT 56): the ONLY border declarations of the site — one class per framed component of DESIGN.md §4b ---------- */
/* generated from DESIGN.md §4b by the shell job — widths: --rule-w 2.3 · --rule-w-mid 1.6 · --rule-w-thin 1.1 · --rule-w-strong 3.3 · --rule-w-sel 4.1 (CSS px @1920) */
:root { --rule-w-ok: max(1px, calc(2.6 * var(--u))); --rule-c-none: transparent; }
.nav { border-bottom: var(--rule-w-thin) solid var(--rule-c-line); }
.nav::after { border-top: 0; } /* one nav rule: 5 of 6 route mockups draw a single line (pre_send doubled-line check) */
.rule-col-left { border-left: var(--rule-w-thin) solid var(--rule-c-line); }
.rule-top { border-top: var(--rule-w-thin) solid var(--rule-c-line); }
.rule-row { border-bottom: var(--rule-w-thin) solid var(--rule-c-line); }
.rule-row-strong { border-bottom: var(--rule-w) solid var(--rule-c-panel); }
.rule-col { border-right: var(--rule-w-thin) solid var(--rule-c-line); }
.rule-col-strong { border-right: var(--rule-w) solid var(--rule-c-panel); }
.rule-row:last-child, .rule-row-strong:last-child { border-bottom-color: transparent; }
.rule-col:last-child, .rule-col-strong:last-child { border-right-color: transparent; }
.rule-none { border: 0; }
.rule-fillup-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-gas-card { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(16 * var(--u))); }
.rule-ca-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-step-value-box { border: var(--rule-w) solid var(--rule-c-ink); border-radius: max(6px, calc(8 * var(--u))); }
.rule-step-through-box { border: var(--rule-w-ok) solid var(--rule-c-ok); border-radius: max(6px, calc(8 * var(--u))); }
.rule-check-band { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-tx-reverted-chip { border: var(--rule-w) solid var(--rule-c-sel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-tx-through-chip { border: var(--rule-w) solid var(--rule-c-ok); border-radius: max(6px, calc(10 * var(--u))); }
.rule-addr-input { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-secondary-button { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-balances-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-verdict-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-balance-row { border: var(--rule-w) solid var(--rule-c-none); border-radius: max(6px, calc(8 * var(--u))); }
.rule-token-select { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-stuck-card { border: var(--rule-w) solid var(--rule-c-sel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-hasgas-card { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-cost10-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-token-toggle { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-token-chip { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(8 * var(--u))); }
.rule-note-card { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-status-strip { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-wallet-dialog { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(8 * var(--u))); }
.rule-tx-panel { border: var(--rule-w-mid) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-field-input { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-quote-grid { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-paywith-toggle { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-tx-rail { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-tx-reverted-row { border: var(--rule-w) solid var(--rule-c-sel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-tx-through-row { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(8 * var(--u))); }
.rule-quote-path-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-receipt-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-quote-states-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-status-through-chip { border: var(--rule-w-strong) solid var(--rule-c-ok); border-radius: max(6px, calc(8 * var(--u))); }
.rule-only-gas-band { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-flow-node { border: var(--rule-w-strong) solid var(--rule-c-ink); border-radius: calc(999px); }
.rule-range-controls-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-stepper-input { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-custom-gas-details { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-can-size-strip { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-can-size-option { border: var(--rule-w-strong) solid var(--rule-c-none); border-radius: max(6px, calc(8 * var(--u))); }
.rule-runway-card { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-congestion-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-team-panel { border: var(--rule-w-thin) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-agents-segmented { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(8 * var(--u))); }
.rule-team-result-box { border: var(--rule-w) solid var(--rule-c-ink); border-radius: max(6px, calc(10 * var(--u))); }
.rule-assumptions-band { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-issue-drawer { border: var(--rule-w-thin) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-shared-can-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-card-row { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-cancel-button { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-card-states-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-fill-log-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-run-day-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-can-balance-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-card-rules-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-npx-pill { border: var(--rule-w-thin) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-mcp-config-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-console-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-tool-tab { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-config-code { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-request-box { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-copy-button { border: var(--rule-w-thin) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-schema-panel { border: var(--rule-w-mid) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-response-box { border: var(--rule-w-mid) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-chain-inputs-panel { border: var(--rule-w-mid) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-tool-doc-card { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-quote-run-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-client-setup-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-client-tab { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-run-request-box { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-client-code { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-run-response-box { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-status-row { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-agent-boundary-band { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(12 * var(--u))); }
.rule-panel { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(14 * var(--u))); }
.rule-card { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(10 * var(--u))); }
.rule-input { border: var(--rule-w) solid var(--rule-c-input); border-radius: max(6px, calc(6 * var(--u))); }
.rule-box { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-ink-box { border: var(--rule-w) solid var(--rule-c-ink); border-radius: max(6px, calc(8 * var(--u))); }
.rule-toggle { border: var(--rule-w) solid var(--rule-c-panel); border-radius: max(6px, calc(6 * var(--u))); }
.rule-error { border: var(--rule-w) solid var(--rule-c-sel); border-radius: max(6px, calc(8 * var(--u))); }
.rule-ok { border: var(--rule-w) solid var(--rule-c-ok); border-radius: max(6px, calc(8 * var(--u))); }
.rule-balance-row.is-selected, .rule-balance-row[aria-pressed="true"], .rule-balance-row[aria-selected="true"], .rule-balance-row[aria-checked="true"], .rule-token-toggle.is-selected, .rule-token-toggle[aria-pressed="true"], .rule-token-toggle[aria-selected="true"], .rule-token-toggle[aria-checked="true"], .rule-token-chip.is-selected, .rule-token-chip[aria-pressed="true"], .rule-token-chip[aria-selected="true"], .rule-token-chip[aria-checked="true"], .rule-paywith-toggle.is-selected, .rule-paywith-toggle[aria-pressed="true"], .rule-paywith-toggle[aria-selected="true"], .rule-paywith-toggle[aria-checked="true"], .rule-can-size-option.is-selected, .rule-can-size-option[aria-pressed="true"], .rule-can-size-option[aria-selected="true"], .rule-can-size-option[aria-checked="true"], .rule-runway-card.is-selected, .rule-runway-card[aria-pressed="true"], .rule-runway-card[aria-selected="true"], .rule-runway-card[aria-checked="true"], .rule-card-row.is-selected, .rule-card-row[aria-pressed="true"], .rule-card-row[aria-selected="true"], .rule-card-row[aria-checked="true"], .rule-tool-tab.is-selected, .rule-tool-tab[aria-pressed="true"], .rule-tool-tab[aria-selected="true"], .rule-tool-tab[aria-checked="true"], .rule-tool-doc-card.is-selected, .rule-tool-doc-card[aria-pressed="true"], .rule-tool-doc-card[aria-selected="true"], .rule-tool-doc-card[aria-checked="true"], .rule-client-tab.is-selected, .rule-client-tab[aria-pressed="true"], .rule-client-tab[aria-selected="true"], .rule-client-tab[aria-checked="true"], .rule-card.is-selected, .rule-card[aria-pressed="true"], .rule-card[aria-selected="true"], .rule-card[aria-checked="true"], .rule-toggle.is-selected, .rule-toggle[aria-pressed="true"], .rule-toggle[aria-selected="true"], .rule-toggle[aria-checked="true"] { border-color: var(--rule-c-sel); }
.rule-runway-card.is-selected, .rule-runway-card[aria-pressed="true"], .rule-runway-card[aria-checked="true"], .rule-can-size-option.is-selected, .rule-can-size-option[aria-pressed="true"], .rule-can-size-option[aria-checked="true"] { border-width: var(--rule-w-sel); }
[class*="rule-"].is-error { border-color: var(--rule-c-sel); }
[class*="rule-"].is-ok { border-color: var(--rule-c-ok); }
[class*="rule-"].is-ink { border-color: var(--rule-c-ink); }
/* a frame around a control wraps the whole control: inner input has no border of its own, padding sits inside the frame */
:where([class*="rule-"]) > :where(input, select, textarea) { border: 0; background: transparent; }

/* shell-only: spacing of the stub fragments (route jobs replace routes/*.html; delete this rule with the last stub) */
[data-shell-stub] { display: grid; gap: calc(24 * var(--u)); padding: calc(80 * var(--u)) 0 calc(120 * var(--u)); min-height: 40vh; align-content: start; }
