/* Wizard Exchange — design system
   Identity: deep-space navy, arcane violet→cyan gradient, Space Grotesk numerals.

   Component vocabulary — new screens pick from this menu instead of forking:
     .card         content container (radius --r-lg)
     row cards     .quote-row / .list .item / .balance-row — one family:
                   12px 14px padding, radius --r-md, 60px row height
     .chip         coin/pair selector (display font); .saved-chips .chip is the
                   small tag variant
     .unit-chip    strictly the unit/currency switcher next to an amount
     .mini-btn     small tertiary action inside a row (Paste / MAX / Retry)
     .primary-btn  the screen's single terminal CTA, full width; .small = a
                   step/submit inside a card; never two full primaries at once
     .ghost-btn    secondary — dismiss or feature entry; .danger destructive
     .segmented    mode switch; selected state = gradient fill (--grad-ink)
   Tokens: type --fs-*, spacing --sp-* (4px grid), radii --r-*, icons --icon-*.
   The 7px gap under quote rows and every fixed quote/split height are coupled
   to QUOTE_ROW_PITCH in app.js — change them only together with app.js. */

:root {
  --bg0: #0B0E1A;
  --bg1: #131829;
  --bg2: #1B2138;
  --stroke: rgba(148, 163, 255, 0.13);
  --stroke-strong: rgba(148, 163, 255, 0.28);
  --text: #F2F4FF;
  --muted: #8A91B4;
  --brand-a: #7C5CFF;
  --brand-b: #4CC2FF;
  /* index.html's SVG <linearGradient id="g-brand"> is a third copy of these
     two hex values (SVG url() gradients can't read vars) — retune together. */
  --grad: linear-gradient(135deg, #7C5CFF 0%, #4CC2FF 100%);
  /* Deepened brand gradient for fills that carry small white text — the raw
     cyan end of --grad is ~2:1 against white. */
  --grad-ink: linear-gradient(135deg, #5B3FD9 0%, #0F7CB8 100%);
  --on-brand: #fff;
  --good: #3DDC97;
  --warn: #FFC24B;
  --bad: #FF6B81;

  /* Aliases — the deposit / where-is-my-money sections were written against
     this dialect; both vocabularies stay valid. */
  --line: var(--stroke);
  --surface-2: var(--bg2);
  --text-dim: var(--muted);

  /* Radii */
  --r-xl: 22px;             /* bottom sheets */
  --r-lg: 18px;             /* cards */
  --r-md: 12px;             /* interactive rows, inputs, buttons, chips */
  --r-sm: 8px;              /* tags, small pills, nested controls */
  --r-xs: 6px;              /* micro pills (BEST, net tag) */
  --radius: var(--r-lg);    /* legacy alias */

  /* Type scale — pick from these, do not invent sizes */
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 16px;
  --fs-2xl: 20px;           /* sheet titles */
  --fs-3xl: 22px;           /* page/brand titles */
  --fs-4xl: 26px;           /* amount input */

  /* Spacing — 4px grid (quote-area gaps exempt, see header note) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;

  /* Icons */
  --icon-sm: 16px;          /* chevrons, inline glyphs, button icons */
  --icon-md: 20px;          /* tabbar, headers, onboarding */
  --icon-lg: 28px;          /* empty states */

  /* Elevation */
  --shadow-brand: 0 12px 32px -12px color-mix(in srgb, var(--brand-a) 55%, transparent);
  --shadow-float: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  --scrim: rgba(5, 7, 15, 0.6);

  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

body.light {
  --bg0: #F3F5FC;
  --bg1: #FFFFFF;
  --bg2: #EDF0FA;
  --stroke: rgba(60, 70, 140, 0.10);
  --stroke-strong: rgba(60, 70, 140, 0.22);
  --text: #171B30;
  --muted: #6A7194;
  /* Brand cyan doubles as a text color; #4CC2FF is ~2:1 on white, so light
     mode ships a darker ink (≥4.5:1). Gradients keep literal colors. */
  --brand-b: #0674B4;
  --scrim: rgba(23, 27, 48, 0.42);
  --shadow-float: 0 14px 40px -12px rgba(23, 27, 48, 0.25);
  --shadow-brand: 0 12px 32px -12px color-mix(in srgb, var(--brand-a) 38%, transparent);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Author `display` rules outrank the UA stylesheet's [hidden], which silently
   revealed elements we meant to hide (e.g. the empty QR box). */
[hidden] { display: none !important; }

/* The UA tap highlight is disabled above — give keyboard / switch-control
   users a real focus indicator instead. */
:focus-visible { outline: 2px solid var(--brand-b); outline-offset: 2px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--brand-a) 16%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 8%, color-mix(in srgb, var(--brand-b) 10%, transparent), transparent 55%),
    var(--bg0);
  background-attachment: fixed;
  color: var(--text);
  /* Clears the tabbar plus the home-indicator inset (viewport-fit=cover). */
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-lg);
}

#app { max-width: 480px; margin: 0 auto; padding: var(--sp-4); }

/* Page-wide default icon size; new contexts size icons via --icon-* tokens. */
svg { width: var(--icon-md); height: var(--icon-md); }

.view { display: none; }
.view.active { display: block; animation: rise .26s cubic-bezier(.16,.84,.44,1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* --- brand header --- */

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand .logo { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-3xl); font-weight: 700; letter-spacing: .2px;
}
.brand-name span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 5px;
}
.brand-sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 1px; }

h1 { font-family: var(--font-display); font-size: var(--fs-3xl); margin: 4px 0 16px; letter-spacing: .2px; }
h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); margin: var(--sp-6) 0 var(--sp-3);
  color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.h-icon { width: var(--icon-sm); height: var(--icon-sm); }
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.card-title .h-icon { color: var(--brand-b); }

/* --- cards & fields --- */

.card {
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.stack > * + * { margin-top: var(--sp-3); }

.swap-stack { position: relative; }
.field-head {
  display: flex; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: var(--sp-3);
}
.net-tag { color: var(--brand-b); font-weight: 600; }

.row { display: flex; gap: 10px; align-items: center; }
.inline-arrow { width: 16px; height: 16px; color: var(--muted); flex: none; }

.chip {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: var(--fs-lg); font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s;
}
.chip:active { border-color: var(--stroke-strong); }
.chip.coin { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 9px; }
.coin-icon { border-radius: 50%; flex: none; display: block; }
.coin-icon.fallback {
  background: var(--bg1);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: var(--fs-xs); font-weight: 700;
  text-align: center;
}
.picker-list .item .coin-icon { margin-right: 2px; }

.rate-line {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 15px;
}

.amount-input, .amount-out {
  font-variant-numeric: tabular-nums;
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-4xl); font-weight: 600;
  text-align: right;
}
.amount-input::placeholder { color: var(--muted); opacity: .5; }
.amount-out.bumped { animation: bump .34s cubic-bezier(.2,.7,.3,1); }
@keyframes bump {
  0% { opacity: .45; transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}
.amount-out {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Strictly the unit/currency switcher ("what am I typing in") — small
   actions use .mini-btn instead. */
.unit-chip {
  flex: none;
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  color: var(--brand-b);
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .3px;
  padding: 8px 10px;
  cursor: pointer;
}
.unit-chip:active { border-color: var(--stroke-strong); }
.unit-chip.muted { color: var(--muted); font-size: var(--fs-base); padding: 8px 12px; }

/* Small tertiary action (Paste / MAX / Retry / balance-row Swap).
   #split-retry and [data-swap] are app.js-emitted .unit-chips restyled by
   hook until a JS pass can hand them this class. */
.mini-btn, #split-retry, [data-swap] {
  flex: none;
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0;
  padding: 8px 12px;
  cursor: pointer;
}
.mini-btn:active, #split-retry:active, [data-swap]:active { border-color: var(--stroke-strong); }
/* Invisible extended hit area — visible height is ~35px. */
.unit-chip::after, .mini-btn::after, #split-retry::after, [data-swap]::after {
  content: ""; position: absolute; inset: -5px;
}
.amount-hint {
  /* The fiat hint wraps to two lines on narrow screens — reserve its full
     height so the card never grows when the text appears. */
  min-height: 44px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.amount-hint b { color: var(--text); font-family: var(--font-display); }
/* Single-line variant (wallet send fiat line) — keeps the height-reservation
   idiom explicit instead of an inline min-height override. */
.amount-hint.short { min-height: 18px; }

.flip {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  margin: -16px auto;
  width: 40px; height: 40px;
  background: var(--bg2);
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  color: var(--brand-b);
  cursor: pointer;
  transition: transform .42s cubic-bezier(.34,1.4,.5,1), border-color .15s;
}
.flip.turned { transform: rotate(180deg); }
.flip:active { border-color: var(--brand-a); }
.flip svg { width: var(--icon-sm); height: var(--icon-sm); }
.flip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }

.text-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: 12px;
  outline: none;
  transition: border-color .15s;
}
.text-input:focus { border-color: var(--brand-a); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--fs-sm); }
/* Inputs inside a .row carry no outer margin (was inline style="margin:0"). */
.row .text-input { margin: 0; }

/* --- segmented --- */

.segmented {
  display: flex;
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 4px;
  margin: 12px 0;
}
.segmented button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none; border-radius: var(--r-sm);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: var(--fs-md); font-weight: 600;
  cursor: pointer;
  transition: color .15s;
}
.segmented button em { font-style: normal; opacity: .8; font-weight: 500; }
.segmented button.active { background: var(--grad-ink); color: var(--on-brand); }

/* --- quotes --- */

.quotes {
  margin: 6px 0;
  /* Height is reserved as soon as a pair is picked (see reserveQuoteSpace),
     so results replacing skeletons never move the button below. */
  transition: min-height .25s cubic-bezier(.2,.7,.3,1);
}
.quotes > * { animation: fade-in .22s ease-out both; }
/* Stagger only matters on first load — auto-refresh repaints rows in place. */
.quotes > *:nth-child(2) { animation-delay: .05s; }
.quotes > *:nth-child(3) { animation-delay: .1s; }
.quotes > *:nth-child(4) { animation-delay: .15s; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
/* A failed background refresh dims the old rows instead of erasing them. */
.quotes.stale > .quote-row { opacity: .8; filter: saturate(.5); }
.quote-row.placeholder {
  color: var(--muted);
  justify-content: center;
  text-align: center;
  font-size: var(--fs-sm);
  border-style: dashed;
}
.quote-row.placeholder .range {
  margin-top: 7px;
  color: var(--brand-b);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.quote-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 12px 14px;
  /* Fixed height + the 7px gap are the reserved-space invariant
     (QUOTE_ROW_PITCH = 67 in app.js) — never retune without app.js. */
  height: 60px;
  margin-bottom: 7px;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: border-color .15s;
}
.quote-row .provider { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.quote-row .amt {
  font-variant-numeric: tabular-nums; font-family: var(--font-display);
  font-weight: 600; font-size: var(--fs-lg);
  /* Two-line coin+fiat stack that stays inside the fixed 60px row. */
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15;
}
.quote-row .amt .fiat {
  font-style: normal; font-size: var(--fs-xs); color: var(--muted);
  font-weight: 500; font-family: var(--font-body);
}
.quote-row.best { border-color: transparent; background:
  linear-gradient(var(--bg1), var(--bg1)) padding-box,
  var(--grad) border-box; }
.best-pill {
  /* Solid violet, not the gradient: the cyan end is ~2:1 under white caps. */
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 1px;
  background: var(--brand-a); color: var(--on-brand);
  border-radius: var(--r-xs); padding: 3px 7px;
  position: relative; overflow: hidden;
}
/* One-shot sheen per render — a looping shimmer reads as cheap. */
.best-pill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: sheen 2.4s ease-in-out .2s 1 both;
}
@keyframes sheen { to { transform: translateX(110%); } }
.quote-row.chosen .amt { color: var(--brand-b); -webkit-text-fill-color: currentColor; }
.quote-row.err { color: var(--muted); font-size: var(--fs-sm); cursor: default; }

/* --- buttons ---
   Hierarchy: full-width .primary-btn = the screen's single terminal CTA
   (never two visible at once); .primary-btn.small = a step/submit inside a
   card; .ghost-btn = secondary dismiss / feature entry (.danger destructive);
   .mini-btn = small tertiary action inside a row. */

.primary-btn {
  width: 100%;
  background: var(--grad);
  color: var(--on-brand);
  border: none; border-radius: var(--r-md);
  padding: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-xl); font-weight: 700; letter-spacing: .3px;
  cursor: pointer;
  margin-top: var(--sp-2);
  box-shadow: var(--shadow-brand);
  transition: opacity .15s, transform .1s;
}
.primary-btn:disabled { opacity: .35; box-shadow: none; }
.primary-btn:not(:disabled):active { transform: scale(.985); }
.primary-btn.small { padding: var(--sp-3); font-size: var(--fs-base); }

.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg1);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 12px 16px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--fs-md); font-weight: 600;
  cursor: pointer;
  margin-top: var(--sp-2);
  text-decoration: none; /* also rendered as <a> ("View on explorer") */
}
.ghost-btn:active { border-color: var(--stroke-strong); }
.ghost-btn svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--brand-b); }
.ghost-btn.wide { width: 100%; }
.ghost-btn.danger { color: var(--bad); }
.ghost-btn.danger svg { color: var(--bad); }

.fineprint { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* --- lists --- */

.list .item, .picker-list .item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 7px;   /* matches the quote-row family gap */
  font-size: var(--fs-base);
  cursor: pointer;
}
.list .item { min-height: 60px; }        /* one row family with .quote-row */
.picker-list .item { min-height: 52px; } /* denser scroll list, still 44px+ */
.list .item .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; }
.item .chev { width: var(--icon-sm); height: var(--icon-sm); color: var(--muted); flex: none; }
.item-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.item-actions .icon-btn svg { color: var(--brand-b); }
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
  position: relative;
}
/* Invisible extended hit area — the visible glyph is ~25px. */
.icon-btn::after { content: ""; position: absolute; inset: -9px; }
.icon-btn svg { width: var(--icon-sm); height: var(--icon-sm); }
.icon-btn:active { color: var(--bad); }
.empty { color: var(--muted); font-size: var(--fs-md); padding: 8px 2px; }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px;
  background: var(--muted);
}
.status-dot.active { background: var(--brand-b); box-shadow: 0 0 8px var(--brand-b); }
.status-dot.good { background: var(--good); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad { background: var(--bad); }

.saved-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.field-explain {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  margin: -2px 0 var(--sp-3);
}
.field-explain b { color: var(--text); }
.field-explain.ok { color: var(--good); }
.field-explain.ok b { color: var(--good); }
.field-explain .dim { color: var(--warn); }
.saved-chips .chip { font-size: var(--fs-sm); padding: 8px 12px; font-family: var(--font-body); position: relative; }
.saved-chips .chip::after { content: ""; position: absolute; inset: -3px; }
/* One "this chip is selected/default" recipe — app.js emits `primary` for the
   default address and `active` for the picked send asset. */
.saved-chips .chip.primary, .saved-chips .chip.active {
  border-color: color-mix(in srgb, var(--brand-b) 45%, transparent);
  background: color-mix(in srgb, var(--brand-b) 10%, var(--bg2));
  color: var(--brand-b);
  font-weight: 600;
}

/* --- modal --- */

.modal {
  position: fixed; inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50;
}
.modal[hidden] { display: none; }
.modal-body {
  background: var(--bg0);
  border-top: 1px solid var(--stroke-strong);
  width: 100%; max-width: 480px;
  max-height: 84vh; overflow-y: auto;
  overscroll-behavior: contain; /* keep sheet scroll from collapsing the app */
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 16px 16px calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  animation: slideup .24s cubic-bezier(.2,.7,.3,1);
}
@keyframes slideup { from { transform: translateY(48px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-grip {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--stroke-strong);
  margin: 0 auto 12px;
}

.picker-list { margin: 10px 0; max-height: 56vh; overflow-y: auto; overscroll-behavior: contain; }
.picker-list .item { justify-content: flex-start; gap: 10px; }
.picker-list .code { font-family: var(--font-display); font-weight: 600; }
.picker-list .net {
  color: var(--brand-b); font-size: var(--fs-2xs); font-weight: 600;
  background: var(--bg2); border-radius: var(--r-xs); padding: 2px 7px;
}
.picker-list .name { color: var(--muted); font-size: var(--fs-sm); margin-left: auto; }

/* Section label inside the picker (e.g. "In your wallet" / "All coins"). */
.picker-group {
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.1px;
  padding: 12px 4px 8px;
}
.picker-list .item.holding {
  border-color: color-mix(in srgb, var(--brand-b) 34%, transparent);
  background: color-mix(in srgb, var(--brand-b) 7%, var(--bg1));
}
.picker-list .item.holding .bal {
  margin-left: auto;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--fs-lg);  /* amounts match .quote-row .amt */
  color: var(--brand-b);
}

/* --- deposit --- */

.deposit-title { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: 6px; }
.deposit-sub { font-size: var(--fs-base); color: var(--muted); }
.deposit-sub b { color: var(--text); }
.deposit-qr {
  display: block; margin: 16px auto;
  border-radius: var(--r-lg); background: #fff; padding: 10px; /* genuinely white — QR quiet zone */
  width: 186px; height: 186px;
  box-shadow: var(--shadow-brand);
}
.deposit-address {
  font-family: ui-monospace, Menlo, monospace;
  font-size: var(--fs-sm); word-break: break-all;
  background: var(--bg1);
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
}
.deposit-address:active { background: var(--bg2); } /* tap-to-copy feedback */
.tag-warn { font-size: var(--fs-sm); color: var(--warn); margin-top: 8px; }

.progress-track { display: flex; gap: 5px; margin: 16px 0 8px; }
.progress-track i {
  flex: 1; height: 5px; border-radius: 3px;
  background: var(--bg2);
}
.progress-track i.on { background: var(--grad); }
.status-line { display: flex; align-items: center; font-size: var(--fs-md); margin-bottom: 6px; }

/* --- referral / misc --- */

.ref-stats { font-size: var(--fs-md); color: var(--muted); margin-bottom: 8px; }
.ref-stats b { color: var(--text); font-family: var(--font-display); }
.ref-link {
  word-break: break-all;
  background: var(--bg2);
  border-radius: var(--r-sm);
  padding: 10px;
  margin: 8px 0;
  color: var(--brand-b);
}
.aml-result { font-size: var(--fs-md); margin-top: 10px; }
.aml-result.good { color: var(--good); }
.aml-result.bad { color: var(--bad); }

details.card summary { cursor: pointer; font-weight: 600; font-size: var(--fs-base); list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card p { margin-top: 10px; font-size: var(--fs-md); color: var(--muted); line-height: 1.55; }

/* --- wallet --- */

.wallet-copy { font-size: var(--fs-md); color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.wallet-copy b { color: var(--text); }
.wallet-copy.danger {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent);
  border-radius: var(--r-md);
  padding: 12px;
}
.wallet-copy.danger b { color: var(--warn); }

.seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin: 12px 0;
}
.seed-grid span {
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 8px 6px;
  font-size: var(--fs-sm);
  font-family: ui-monospace, Menlo, monospace;
  text-align: center;
}
.seed-grid span i {
  font-style: normal;
  color: var(--muted);
  font-size: var(--fs-2xs);
  margin-right: 4px;
}

.net-ok {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--stroke);
}
.net-ok .title {
  font-size: var(--fs-xs); color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: var(--sp-2);
}
.net-ok .nets { display: flex; flex-wrap: wrap; gap: 6px; }
.net-ok .net {
  display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, var(--good) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 32%, transparent);
  color: var(--good);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: var(--fs-sm); font-weight: 600;
}
.net-ok .net::before { content: "✓"; font-size: var(--fs-xs); }

.net-warn {
  margin-top: var(--sp-3);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bad) 34%, transparent);
  border-radius: var(--r-md);
  padding: 12px;
  font-size: var(--fs-sm);
  color: var(--bad);
  line-height: 1.5;
}
.net-warn b { color: var(--bad); }

.confirm-box {
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 12px;
  font-size: var(--fs-md);
}
.confirm-box .line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
}
.confirm-box .line + .line { border-top: 1px solid var(--stroke); }
.confirm-box .k { color: var(--muted); flex: none; }
.confirm-box .v { text-align: right; word-break: break-all; font-weight: 600; }
.confirm-box .v.mono { font-family: ui-monospace, Menlo, monospace; font-size: var(--fs-sm); font-weight: 400; }

.wallet-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.wallet-actions .primary-btn {
  margin-top: 0; flex: 2; padding: var(--sp-4);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.wallet-actions .primary-btn svg { width: var(--icon-sm); height: var(--icon-sm); }
.wallet-actions .ghost-btn { margin-top: 0; flex: 1; }

.balance-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 12px 14px;
  min-height: 60px;   /* one row family with .quote-row */
  margin-bottom: 7px;
}
.balance-row .chain { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.balance-row .bal { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }

/* --- loading primitives --- */

@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--bg1) 25%, var(--bg2) 50%, var(--bg1) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.3s linear infinite;
}
.skeleton-row { height: 60px; margin-bottom: 7px; }  /* matches .quote-row */
.skeleton-line { height: 14px; border-radius: var(--r-sm); }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px; flex: none;
  border: 2px solid var(--stroke-strong);
  border-top-color: var(--brand-b);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  vertical-align: -3px;
}
.loading-row {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: var(--fs-md);
  padding: 12px 4px;
}

.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
}
.empty-state svg { width: var(--icon-lg); height: var(--icon-lg); opacity: .55; }
.empty-state .sub { font-size: var(--fs-sm); }

.text-input.invalid { border-color: var(--bad); }
.input-hint { font-size: var(--fs-xs); color: var(--bad); margin-top: 5px; min-height: 14px; }
.input-hint.ok { color: var(--good); }

/* --- toast --- */

#toast {
  position: fixed;
  left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  z-index: 60;
  max-width: 88%;
  background: var(--bg2);
  border: 1px solid var(--stroke-strong);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: var(--fs-md); font-weight: 500;
  box-shadow: var(--shadow-float);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.good { border-color: var(--good); }
#toast.bad { border-color: var(--bad); }

/* --- tabbar --- */

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: color-mix(in srgb, var(--bg0) 88%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke);
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  z-index: 40;
}
.tabbar button {
  flex: 1;
  background: none; border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .15s;
}
.tabbar button svg { width: var(--icon-md); height: var(--icon-md); transition: transform .12s; }
.tabbar button:active svg { transform: scale(.9); }
.tabbar button span { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .3px; }
.tabbar button.active { color: var(--text); }
.tabbar button.active svg { color: var(--brand-b); }

/* Users who ask for less motion get state changes without the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .skeleton { animation: none !important; background: var(--bg2); }
}

/* Receive-address switcher: each chain has its own address, and picking the
   wrong one loses funds — so the choice is explicit, not buried. */
.addr-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.addr-tabs button {
  position: relative;
  flex: 1 1 auto; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer;
  font: inherit; font-size: var(--fs-md); font-weight: 600;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-dim);
  transition: background .15s, color .15s, border-color .15s;
}
.addr-tabs button::after { content: ""; position: absolute; inset: -3px; }
/* Selected tab = gradient fill, the same rule as .segmented. */
.addr-tabs button.active {
  background: var(--grad-ink); border-color: transparent; color: var(--on-brand);
}

/* Deposit sheet: paying from the built-in wallet is the lead action, so it
   gets the card; the copy-an-address route folds underneath. */
.pay-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 14px; margin: 12px 0;
}
/* 600, not 650 — Inter loads 400/500/600 only; 650 silently synthesizes. */
.pay-head { font-weight: 600; font-size: var(--fs-base); display: flex; align-items: center; gap: 8px; }
.pay-head.muted { color: var(--text-dim); font-weight: 500; }
.pay-sub { color: var(--text-dim); font-size: var(--fs-sm); margin: 4px 0 10px; }
.pay-sub.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pay-card .text-input { margin-bottom: 8px; }

.manual-pay { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.manual-pay > summary {
  cursor: pointer; font-size: var(--fs-md); color: var(--text-dim);
  font-weight: 600; list-style: none; padding: 10px 0;
}
.manual-pay > summary::-webkit-details-marker { display: none; }
.manual-pay > summary::before { content: "▸"; display: inline-block; margin-right: 7px; }
.manual-pay[open] > summary::before { content: "▾"; }

/* "Where is my money" — a plain statement of what we can and cannot see. */
.where-sec { margin: 14px 0; }
.where-h {
  font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700; margin-bottom: 6px;
}
.where-sec .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.where-sec .line.muted { color: var(--text-dim); font-size: var(--fs-md); }
.where-addr { padding: 8px 0; border-bottom: 1px solid var(--line); }
.where-addr:last-child { border-bottom: none; }
.where-addr .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm); word-break: break-all; color: var(--text); margin-top: 3px;
}
.sel { user-select: all; }
a.ext { color: var(--brand-b); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }

/* --- first-run onboarding (inline cards, CSS scroll-snap, no modal) --- */

.onboard-row {
  display: flex; gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.onboard-row::-webkit-scrollbar { display: none; }
.onboard-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  position: relative;
  margin-bottom: 0;
}
.onboard-card > svg { width: var(--icon-md); height: var(--icon-md); color: var(--brand-b); margin-bottom: 8px; }
.onboard-title { font-weight: 600; font-size: var(--fs-md); margin-bottom: 4px; }
.onboard-body { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.onboard-x {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
}
.onboard-x::after { content: ""; position: absolute; inset: -10px; }
.onboard-x svg { width: 13px; height: 13px; }
#onboard .onboard-got { margin: 0 0 14px; }

/* --- rate-mode explainer (reserved height — no shift when copy swaps) --- */

.mode-hint {
  min-height: 16px;
  font-size: var(--fs-xs); color: var(--muted);
  text-align: center;
  margin: -6px 0 8px;
  line-height: 1.4;
}

/* --- quote freshness countdown ---
   Always in the layout (fixed 3px), opacity-only show/hide: appearing or
   vanishing never moves the quote list below it. */

.quote-fresh {
  height: 3px; border-radius: 2px;
  background: var(--bg2);
  margin: 2px 2px 4px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s;
}
.quote-fresh.on { opacity: 1; }
.quote-fresh i {
  display: block; height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(1);
}
.quote-fresh.run i { transition: transform var(--ttl) linear; transform: scaleX(0); }

/* --- "best route saves you" line (permanent min-height, zero layout shift) --- */

.best-note {
  min-height: 18px;
  font-size: var(--fs-sm); color: var(--good);
  text-align: center;
  margin: -2px 0 6px;
  font-variant-numeric: tabular-nums;
}
.best-note.warn { color: var(--warn); }

/* --- trust strip under the Create button --- */

.trust-strip {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 12px; padding: var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--good) 25%, transparent);
  background: color-mix(in srgb, var(--good) 6%, transparent);
  border-radius: var(--r-md);
  font-size: var(--fs-xs); color: var(--muted); line-height: 1.5;
}
.trust-strip svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--good); flex: none; margin-top: 1px; }
.trust-strip b { color: var(--good); }

/* --- order-sheet explorer verification --- */

.verify-row {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.verify-cap { flex-basis: 100%; text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* --- fiat sub-lines beside crypto amounts --- */

.balance-row .fiat-sub, .picker-list .item .fiat-sub {
  display: block;
  font-size: var(--fs-xs); color: var(--muted);
  text-align: right;
  font-family: var(--font-body); font-weight: 500;
}
.bal-fail { color: var(--muted); font-size: var(--fs-sm); padding: 6px 2px; line-height: 1.5; }

/* --- micro-motion --- */

@keyframes pop { 0% { transform: scale(.92); } 100% { transform: none; } }
.chip.pop { animation: pop .28s cubic-bezier(.34,1.4,.5,1); }
.primary-btn.ok { background: var(--good); }

/* --- destination address affordances --- */

.addr-row .text-input { flex: 1; width: auto; min-width: 0; }

/* --- Smart Split card ---
   Separate reserved slot below the quote list (see checkSplit in app.js):
   the slot claims a fixed height when a check starts and keeps it for the
   whole quote session, so skeleton -> result -> "no split" never move the
   Create button. Expansion is user-initiated, like any <details>. */

.split-slot { min-height: 0; transition: min-height .25s cubic-bezier(.2,.7,.3,1); }
.split-slot.on { min-height: 76px; }
.split-skel { height: 62px; margin: 7px 0; }

.split-card {
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  margin: 7px 0;
  overflow: hidden;
}
.split-card.quiet {
  min-height: 62px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: var(--fs-sm);
  border-style: dashed;
  padding: 0 14px;
}
.split-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  background: none; border: none; color: var(--text);
  font: inherit; font-size: var(--fs-base); text-align: left;
  cursor: pointer;
}
.split-title { font-weight: 600; }
.split-gain {
  margin-left: auto;
  color: var(--good); font-weight: 600;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-md);
}
.split-head .chev {
  width: var(--icon-sm); height: var(--icon-sm); color: var(--muted); flex: none;
  transition: transform .18s;
}
.split-head .chev.open { transform: rotate(90deg); }
.split-body { padding: 0 14px 13px; }
.split-part {
  font-size: var(--fs-md);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.split-note {
  font-size: var(--fs-xs); color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 2px;
}
.split-note.warn { color: var(--warn); }
.split-body .primary-btn.small { margin-top: 10px; }

/* --- split payment stepper (deposit sheet) --- */

.split-step-head {
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--fs-md);
  letter-spacing: .6px; text-transform: uppercase;
  color: var(--brand-b);
  margin-bottom: 4px;
}

/* --- grouped split rows in the orders list --- */

.split-group .chev { transition: transform .18s; }
.split-group.open .chev { transform: rotate(90deg); }
.split-group-parts { margin: -3px 0 7px 14px; }
.split-group-parts .item { padding: 10px 12px; min-height: 48px; }

/* --- order timeline (flight recorder) --- */

.next-step { min-height: 18px; margin: 2px 0 4px; font-size: var(--fs-sm); line-height: 1.5; }
#dep-timeline-body { padding-top: 4px; }
.tl-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 6px 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--line);
}
.tl-row:last-child { border-bottom: none; }
.tl-row.muted { color: var(--muted); }
.tl-time { color: var(--muted); font-size: var(--fs-xs); flex: none; font-variant-numeric: tabular-nums; }
.tl-note { color: var(--muted); font-size: var(--fs-xs); flex-basis: 100%; }
.tl-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-xs); word-break: break-all; cursor: pointer;
}
/* Timeline rows read label-first. */
.tl-label { font-weight: 500; }

/* --- shared pressed state on tap surfaces (JS feedback lands a beat later) --- */
.quote-row:not(.err):not(.best):active,
.list .item:active, .picker-list .item:active,
.split-head:active { background: var(--bg2); }
.quote-row.best:active { opacity: .85; }

/* --- utilities --- */
.gap-top { margin-top: var(--sp-3); }

/* ===== Copied-from-the-masters pass (Uniswap / ChangeNOW / SideShift) ===== */

/* SideShift's step breadcrumb — the single strongest "organized" signal. */
.steps {
  display: flex; gap: 4px; align-items: center;
  list-style: none; margin: 0 0 12px; padding: 0;
  height: 24px; /* fixed: never shifts the layout below */
}
.steps li {
  flex: 1; text-align: center;
  font-size: var(--fs-xs, 11px); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); position: relative;
  counter-increment: step;
}
.steps li::before {
  content: ""; display: block; height: 3px; border-radius: 2px;
  background: var(--stroke); margin-bottom: 5px;
  transition: background .25s;
}
.steps li.done::before { background: var(--brand-b); }
.steps li.now::before { background: var(--grad, linear-gradient(90deg, var(--brand-a), var(--brand-b))); }
.steps li.now { color: var(--text); }
.steps li.done { color: var(--brand-b); }

/* ChangeNOW's decision-point strip + Uniswap's flippable rate. */
.fees-strip {
  display: block; width: 100%; margin: 2px 0 0; padding: 7px 10px;
  background: transparent; border: none; cursor: pointer;
  font: inherit; font-size: var(--fs-sm, 12.5px); color: var(--muted);
  text-align: center; min-height: 30px; /* fixed height incl. empty state */
}
.fees-strip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* SideShift's live ticker — quiet, right-aligned in the brand header. */
.brand { display: flex; align-items: center; gap: 10px; }
.ticker {
  margin-left: auto; display: flex; flex-direction: column; gap: 2px;
  font-size: var(--fs-xs, 11px); color: var(--muted); text-align: right;
  font-variant-numeric: tabular-nums; min-width: 90px;
}
.ticker b { color: var(--text); font-weight: 600; }

/* Uniswap's quick-pick chips at the top of the token picker. */
.picker-quick {
  display: flex; gap: 8px; margin: 10px 0 12px;
}
.picker-quick button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 7px; min-height: 56px;
  background: var(--bg2); border: 1px solid var(--stroke);
  border-radius: var(--radius, 12px); cursor: pointer;
  font: inherit; font-size: var(--fs-xs, 11px); font-weight: 700; color: var(--text);
  transition: border-color .15s, transform .1s;
}
.picker-quick button:active { transform: scale(.96); border-color: var(--brand-b); }

/* Uniswap's chain badge riding the coin icon. */
.icon-badged { position: relative; display: inline-flex; flex: none; }
.icon-badged i {
  position: absolute; right: -4px; bottom: -3px;
  font-style: normal; font-size: 7px; font-weight: 800; line-height: 1;
  padding: 2px 3px; border-radius: 5px;
  background: var(--bg0); color: var(--muted);
  border: 1px solid var(--stroke-strong);
  letter-spacing: .02em;
}
.icon-badged i[data-net="TRX"] { color: #FF6060; border-color: #FF606055; }
.icon-badged i[data-net="BSC"] { color: #F0B90B; border-color: #F0B90B55; }
.icon-badged i[data-net="ETH"] { color: #8CA3F5; border-color: #8CA3F555; }
.icon-badged i[data-net="BTC"] { color: #F7931A; border-color: #F7931A55; }
.icon-badged i[data-net="SOL"] { color: #7BE8C4; border-color: #7BE8C455; }
.icon-badged i[data-net="MATIC"] { color: #B58AF7; border-color: #B58AF755; }

/* ChangeNOW's color-coded network tag in the field headers. */
.net-tag[data-net="TRX"] { color: #FF6060; }
.net-tag[data-net="BSC"] { color: #F0B90B; }
.net-tag[data-net="ETH"] { color: #8CA3F5; }
.net-tag[data-net="BTC"] { color: #F7931A; }
.net-tag[data-net="SOL"] { color: #7BE8C4; }
.net-tag[data-net="MATIC"] { color: #B58AF7; }

/* Uniswap's output-as-hero: what you GET is the biggest number on screen. */
.amount-out { font-size: 30px; }

/* Rate tabs read as tabs, not chips (SideShift). */
.rate-tabs button em { opacity: .65; font-style: normal; font-weight: 500; }

/* Where a swap lands — the fact a swap screen must never hide. */
.dest-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; margin-bottom: 2px;
  border-bottom: 1px solid var(--stroke);
  font-size: var(--fs-sm, 12.5px);
}
.dest-line .k { color: var(--muted); }
.dest-line .v { color: var(--text); }
.dest-line .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dest-line .mini-btn { margin-left: auto; }

/* A saved address is a nickname the user chose — it must not read as a
   built-in option the way the wallet chip does. */
.saved-chips .chip.saved::before {
  content: "🔖"; margin-right: 5px; font-size: 11px; opacity: .75;
}

/* Fee disclosure — plain rows, so the free ones are unmissable. */
.fee-rows { margin: 4px 0 10px; }
.fee-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--stroke);
  font-size: var(--fs-sm, 12.5px); color: var(--muted);
}
.fee-row:last-child { border-bottom: none; }
.fee-row b { color: var(--text); font-weight: 600; }
.fee-row b.free { color: var(--good); }
