/* ==========================================================================
   Ledgerline Explorer Theme v1.0 — framework-free CSS
   Tokens → base → layout → components → data patterns → owner panel
   Requires: light-dark(), color-mix(), relative color syntax, container queries
   (Chrome 123+, Safari 17.5+, Firefox 128+). Wrap your SPA root in .app.
   ========================================================================== */

/* ---------- 1. Tokens -------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Neutral ramp — cool, low-chroma (11 steps) */
  --gray-0:  oklch(99.5% .002 255);
  --gray-1:  oklch(97.8% .003 255);
  --gray-2:  oklch(95.5% .004 255);
  --gray-3:  oklch(92% .006 255);
  --gray-4:  oklch(86% .008 255);
  --gray-5:  oklch(72% .01 255);
  --gray-6:  oklch(50% .012 255);
  --gray-7:  oklch(37% .012 255);
  --gray-8:  oklch(30% .011 255);
  --gray-9:  oklch(21% .009 255);
  --gray-10: oklch(16.5% .007 255);

  /* Surfaces & text (auto light/dark via color-scheme) */
  --bg:            light-dark(var(--gray-1), var(--gray-10));
  --surface:       light-dark(var(--gray-0), var(--gray-9));
  --surface-2:     light-dark(var(--gray-2), oklch(25.5% .01 255));
  --surface-hover: light-dark(oklch(97.2% .004 255), oklch(24% .01 255));
  --border:        light-dark(var(--gray-3), var(--gray-8));
  --border-strong: light-dark(var(--gray-4), var(--gray-7));
  --text:          light-dark(var(--gray-10), var(--gray-1));
  --text-muted:    light-dark(var(--gray-6), var(--gray-5));   /* ≥ 5.9:1 both modes */
  --tooltip-bg:    light-dark(var(--gray-10), var(--gray-2));
  --tooltip-fg:    light-dark(var(--gray-0), var(--gray-10));
  --scrim:         oklch(14% .01 255 / .55);

  /* Semantic — fg passes 4.5:1 on surface & on its own -bg */
  --success:        light-dark(oklch(48% .12 152), oklch(78% .14 152));
  --success-bg:     light-dark(oklch(96.5% .03 152), oklch(27% .05 152));
  --success-border: light-dark(oklch(86% .07 152), oklch(40% .08 152));
  --danger:         light-dark(oklch(51% .18 25),  oklch(76% .13 25));
  --danger-bg:      light-dark(oklch(96.5% .025 25), oklch(27% .06 25));
  --danger-border:  light-dark(oklch(86% .07 25),  oklch(42% .1 25));
  --danger-solid:   oklch(52% .19 25);
  --warning:        light-dark(oklch(50% .11 65),  oklch(83% .13 80));
  --warning-bg:     light-dark(oklch(96.5% .045 85), oklch(28% .05 75));
  --warning-border: light-dark(oklch(85% .09 80),  oklch(43% .08 75));
  --info:           light-dark(oklch(49% .14 250), oklch(78% .1 250));
  --info-bg:        light-dark(oklch(96.5% .025 250), oklch(27% .05 250));
  --info-border:    light-dark(oklch(86% .06 250), oklch(42% .08 250));

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-12: .75rem; --fs-13: .8125rem; --fs-14: .875rem; --fs-16: 1rem;
  --fs-18: 1.125rem; --fs-22: 1.375rem; --fs-28: 1.75rem; --fs-36: 2.25rem;
  --lh-tight: 1.2; --lh-snug: 1.35; --lh-base: 1.5;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;

  /* Spacing — 4px grid */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --gutter: 16px;

  /* Radius */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-full: 999px;

  /* Elevation — border-first; shadows only for floating layers */
  --shadow-color: light-dark(oklch(25% .02 255 / .08), oklch(0% 0 0 / .45));
  --shadow-1: 0 1px 2px var(--shadow-color);
  --shadow-2: 0 2px 4px var(--shadow-color), 0 8px 24px -8px var(--shadow-color);
  --shadow-3: 0 4px 8px var(--shadow-color), 0 24px 48px -12px var(--shadow-color);

  /* Motion */
  --dur-1: 100ms; --dur-2: 150ms; --dur-3: 200ms;
  --ease-out: cubic-bezier(.2, .7, .3, 1);

  /* Control sizes */
  --ctl-sm: 32px; --ctl-md: 40px; --ctl-lg: 48px;
}

/* Accent — ONE input. Set per coin at runtime: el.style.setProperty('--accent', '#F2C200').
   Derived tokens are re-declared on every element that sets an accent (custom properties
   resolve var() where declared), so nested coin scopes — e.g. a multi-coin landing — just work. */
:root {
  --accent: oklch(50% .13 255);
}
:root, [data-theme], [data-coin], [data-accent], [style*="--accent"] {
  /* Text on accent: white when accent L < .58, else near-black (both ≥ 4.5:1 outside the .55–.60 band) */
  --on-accent:     oklch(from var(--accent) clamp(.18, (.58 - l) * 1000, .995) 0 0);
  /* Accent as text/link on surfaces: clamped lightness → ≥ 4.5:1 for any coin color */
  --accent-text:   light-dark(oklch(from var(--accent) min(l, .5) c h), oklch(from var(--accent) max(l, .78) c h));
  /* Accent as UI mark (focus ring, bars, active tab): ≥ 3:1 for any coin color */
  --accent-ui:     light-dark(oklch(from var(--accent) min(l, .66) c h), oklch(from var(--accent) max(l, .62) c h));
  /* State variants mix toward the on-accent color → always visible (darker for yellow, lighter for navy) */
  --accent-hover:  color-mix(in oklch, var(--accent) 86%, var(--on-accent));
  --accent-active: color-mix(in oklch, var(--accent) 74%, var(--on-accent));
  --accent-subtle: color-mix(in oklch, var(--accent) 11%, var(--surface));
  --accent-subtle-hover: color-mix(in oklch, var(--accent) 18%, var(--surface));
  --accent-border: color-mix(in oklch, var(--accent) 40%, var(--surface));
}
[data-theme="light"] { color-scheme: light; }
[data-theme="dark"]  { color-scheme: dark; }
@media (pointer: coarse) { :root { --ctl-sm: 44px; --ctl-md: 44px; } }
@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Fallback when relative color syntax is missing — explorer-theme.js setAccent() fills --on-accent */
@supports not (color: oklch(from red l c h)) {
  :root { --on-accent: #fff; --accent-text: var(--accent); --accent-ui: var(--accent); }
}

/* Per-coin accent presets (demo; production sets --accent inline from the coin record) */
[data-coin="kestrel"] { --accent: #1F7A8C; }
[data-coin="saffron"] { --accent: #F2C200; }
[data-coin="harbor"]  { --accent: #1B2A4E; }
[data-coin="ember"]   { --accent: #E4572E; }
[data-coin="moss"]    { --accent: #4C7A34; }
[data-coin="iris"]    { --accent: #6E56CF; }

/* ---------- 2. Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body, .app {
  background: var(--bg); color: var(--text);
  font: var(--fw-regular) var(--fs-14)/var(--lh-base) var(--font-sans);
  font-feature-settings: "tnum" 1, "cv11" 1; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.app a { color: var(--accent-text); text-decoration: none; }
.app a:hover { text-decoration: underline; text-underline-offset: 2px; }
.app :focus-visible { outline: 2px solid var(--accent-ui); outline-offset: 2px; border-radius: var(--r-sm); }
.app h1, .app h2, .app h3 { margin: 0; text-wrap: balance; }
.app p { margin: 0; text-wrap: pretty; }
.app code, .mono { font-family: var(--font-mono); font-size: .93em; }
.app svg { display: block; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 14px; height: 14px; }
.i--lg { width: 20px; height: 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.row--wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--sp-4)); min-width: 0; }
.ml-auto { margin-left: auto; }
.hide-sm { display: none !important; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: var(--fw-medium) 11px/1 var(--font-mono); color: var(--text-muted); background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--r-sm); }

/* ---------- 3. Layout -------------------------------------------------- */
.app { container: app / inline-size; min-height: 100%; display: flex; flex-direction: column; }
.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page { flex: 1; padding-block: var(--sp-6) var(--sp-12); display: flex; flex-direction: column; gap: var(--sp-6); }
.grid-2, .split { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3) var(--sp-6); }
.page-head__main { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; flex: 1 1 320px; }
.page-head__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.eyebrow { font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--text-muted); display: flex; gap: var(--sp-2); align-items: center; }
.page-title { font-size: var(--fs-22); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: -.012em; }
.section-title { font-size: var(--fs-16); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-13); color: var(--text-muted); list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--border-strong); }

/* ---------- 4. Header, nav, footer ------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--accent); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); height: 60px; padding-top: 3px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: var(--fw-semibold); font-size: var(--fs-16); min-width: 0; }
.brand:hover { text-decoration: none !important; }
.brand__ticker { font: var(--fw-medium) var(--fs-12)/1 var(--font-mono); color: var(--text-muted); padding: 3px 6px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.coin-logo { width: 32px; height: 32px; flex: none; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: var(--fw-semibold); font-size: var(--fs-14); overflow: hidden; }
.coin-logo img { width: 100%; height: 100%; object-fit: cover; }
.coin-logo--sm { width: 24px; height: 24px; font-size: 11px; }
.coin-logo--lg { width: 48px; height: 48px; font-size: var(--fs-18); }
.coin-logo--xl { width: 64px; height: 64px; font-size: var(--fs-22); }
.nav { display: none; gap: 2px; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-md); color: var(--text-muted); font-weight: var(--fw-medium); }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-subtle); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.header-search { display: none; width: 320px; }
.subnav { display: flex; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); padding-block: 6px; }
.subnav a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-md); color: var(--text-muted); font-weight: var(--fw-medium); }
.subnav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-subtle); }
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--sp-6); font-size: var(--fs-13); color: var(--text-muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer__links a { color: var(--text-muted) !important; }
.powered { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text-muted) !important; }
.powered__mark { width: 14px; height: 14px; border-radius: 3px; border: 2px solid currentColor; }

/* ---------- 5. Buttons ------------------------------------------------- */
.btn { --h: var(--ctl-md); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: var(--h); min-width: var(--h); padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-md); font: var(--fw-medium) var(--fs-14)/1 var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.btn--primary { background: var(--accent); color: var(--on-accent) !important; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-active); }
.btn--secondary { background: var(--surface); color: var(--text) !important; border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--secondary:active { background: color-mix(in oklch, var(--surface-2), var(--text) 6%); }
.btn--ghost { background: transparent; color: var(--text) !important; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--ghost:active { background: color-mix(in oklch, var(--surface-2), var(--text) 6%); }
.btn--danger { background: var(--danger-solid); color: #fff !important; }
.btn--danger:hover { background: color-mix(in oklch, var(--danger-solid), black 12%); }
.btn--danger-ghost { background: transparent; color: var(--danger) !important; border-color: var(--danger-border); }
.btn--danger-ghost:hover { background: var(--danger-bg); }
.btn--sm { --h: var(--ctl-sm); padding: 0 12px; font-size: var(--fs-13); gap: 6px; }
.btn--lg { --h: var(--ctl-lg); padding: 0 20px; font-size: var(--fs-16); }
.btn--icon { padding: 0; width: var(--h); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ce-spin .7s linear infinite; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- 6. Search -------------------------------------------------- */
.search { position: relative; display: flex; align-items: center; width: 100%; }
.search__icon { position: absolute; left: 12px; color: var(--text-muted); pointer-events: none; }
.search__input { width: 100%; height: var(--ctl-md); padding: 0 44px 0 38px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: var(--fw-regular) var(--fs-16)/1.2 var(--font-sans); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.search__input::placeholder { color: var(--text-muted); }
.search__input:focus { outline: none; border-color: var(--accent-ui); box-shadow: 0 0 0 1px var(--accent-ui), 0 0 0 4px var(--accent-subtle); }
.search__kbd { position: absolute; right: 10px; pointer-events: none; }
.search__input:focus ~ .search__kbd { opacity: 0; }
.search--hero .search__input { height: 56px; padding-left: 48px; padding-right: 108px; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.search--hero .search__icon { left: 16px; width: 20px; height: 20px; }
.search--hero .search__submit { position: absolute; right: 6px; }
.search-hint { font-size: var(--fs-13); color: var(--text-muted); }

/* ---------- 7. Cards, tiles ------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); min-height: 52px; padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); }
.card__title { font-size: var(--fs-14); font-weight: var(--fw-semibold); }
.card__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.card__body { padding: var(--sp-4); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 10px var(--sp-4); border-top: 1px solid var(--border); font-size: var(--fs-13); color: var(--text-muted); }
.card > .table-wrap:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.tiles { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.tile__label { font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.tile__value { font-size: var(--fs-18); font-weight: var(--fw-semibold); line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__value small { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-muted); letter-spacing: 0; }
.tile__meta { font-size: var(--fs-12); color: var(--text-muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }

/* ---------- 8. Tables -------------------------------------------------- */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.table-wrap--scroll { max-height: var(--table-max-h, 560px); overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-14); }
.table caption { text-align: left; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--text-muted); padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px var(--sp-4); border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-hover); }
.table .num { text-align: right; }
.table td.wrap { white-space: normal; }
.table tr[aria-current] td { background: var(--accent-subtle); }
[data-density="compact"] .table { font-size: var(--fs-13); }
[data-density="compact"] .table th { padding: 6px var(--sp-3); }
[data-density="compact"] .table td { padding: 6px var(--sp-3); }
.table-state td { padding: var(--sp-10) var(--sp-4) !important; text-align: center; white-space: normal; }
.table-state:hover td { background: none !important; }

/* Segmented control (density toggle etc.) */
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font: var(--fw-medium) var(--fs-12)/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
@media (pointer: coarse) { .seg button { height: 38px; } }

/* Cursor pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.pager__info { font-size: var(--fs-13); color: var(--text-muted); text-align: center; }

/* ---------- 9. Key-value list ----------------------------------------- */
.kv { margin: 0; }
.kv__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px var(--sp-4); padding: 12px var(--sp-4); border-bottom: 1px solid var(--border); }
.kv__row:last-child { border-bottom: 0; }
.kv dt { font-size: var(--fs-13); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.kv dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }

/* ---------- 10. Hash / address / txid --------------------------------- */
/* Markup: <span class="hash"><a class="hash__text" data-tip="FULL" data-tip-mono><span class="hash__head">all-but-last-6</span><span class="hash__tail">last6</span></a><button class="copy" data-copy="FULL">…</button></span>
   Middle truncation is pure CSS and width-adaptive: the head ellipsizes, the tail never shrinks. */
.hash { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; font: var(--fw-regular) var(--fs-13)/1.4 var(--font-mono); vertical-align: middle; }
.hash__text { display: inline-flex; min-width: 0; color: inherit; border-radius: var(--r-sm); }
a.hash__text { color: var(--accent-text); }
.hash__head { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 4ch; max-width: var(--hash-head, none); }
.hash__tail { white-space: nowrap; flex: none; }
.hash--short { --hash-head: 8ch; }
.hash--full .hash__head { white-space: normal; overflow-wrap: anywhere; }
.hash--lg { font-size: var(--fs-14); }
.copy { position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color var(--dur-1), color var(--dur-1); }
.copy::before { content: ""; position: absolute; inset: -8px; }
.copy:hover { background: var(--surface-2); color: var(--text); }
.copy .i-check { display: none; }
.copy[data-state="copied"] { color: var(--success); }
.copy[data-state="copied"] .i-copy { display: none; }
.copy[data-state="copied"] .i-check { display: block; animation: ce-pop var(--dur-3) var(--ease-out); }

/* ---------- 11. Amounts, deltas, time --------------------------------- */
/* <span class="amt"><span class="amt__int">12,480</span><span class="amt__dec">.25</span><span class="amt__frac">000000</span><span class="amt__unit">KST</span></span> */
.amt { font-family: var(--font-mono); font-size: var(--fs-13); white-space: nowrap; font-weight: var(--fw-medium); letter-spacing: -.01em; }
.amt__frac { font-weight: var(--fw-regular); color: var(--text-muted); }
.amt__unit { margin-left: .4em; font: var(--fw-medium) .86em/1 var(--font-sans); color: var(--text-muted); letter-spacing: .02em; }
.amt--lg { font-size: var(--fs-28); font-weight: var(--fw-semibold); letter-spacing: -.03em; line-height: 1.15; }
.amt--lg .amt__unit { font-size: var(--fs-16); }
.amt--md { font-size: var(--fs-18); font-weight: var(--fw-semibold); }
.delta { font-family: var(--font-mono); font-size: var(--fs-13); font-weight: var(--fw-medium); white-space: nowrap; }
.delta--pos { color: var(--success); }
.delta--neg { color: var(--danger); }
.time { white-space: nowrap; color: inherit; text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px; cursor: default; }

/* ---------- 12. Status pills, dots ------------------------------------ */
.pill { --pf: var(--text-muted); --pb: var(--surface-2); --pbr: var(--border); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border: 1px solid var(--pbr); border-radius: var(--r-full); background: var(--pb); color: var(--pf); font: var(--fw-medium) var(--fs-12)/1 var(--font-sans); white-space: nowrap; vertical-align: middle; }
.pill .i { width: 14px; height: 14px; }
.pill--success { --pf: var(--success); --pb: var(--success-bg); --pbr: var(--success-border); }
.pill--danger  { --pf: var(--danger);  --pb: var(--danger-bg);  --pbr: var(--danger-border); }
.pill--warning { --pf: var(--warning); --pb: var(--warning-bg); --pbr: var(--warning-border); }
.pill--info    { --pf: var(--info);    --pb: var(--info-bg);    --pbr: var(--info-border); }
.pill--accent  { --pf: var(--accent-text); --pb: var(--accent-subtle); --pbr: var(--accent-border); }
.pill--lg { height: 28px; font-size: var(--fs-13); padding: 0 11px 0 9px; }
.spin { animation: ce-spin 1.2s linear infinite; }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); background: currentColor; flex: none; }

/* ---------- 13. Progress & sync banner -------------------------------- */
.progress { height: 6px; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.progress__bar { height: 100%; width: var(--value, 0%); background: var(--accent-ui); border-radius: inherit; transition: width var(--dur-3) var(--ease-out); }
.progress--warning .progress__bar { background: var(--warning); }
.progress--success .progress__bar { background: var(--success); }
.sync-banner { background: var(--warning-bg); border-bottom: 1px solid var(--warning-border); font-size: var(--fs-13); }
.sync-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-4); padding-block: 10px; }
.sync-banner__label { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-semibold); color: var(--warning); }
.sync-banner__meta { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text); }
.sync-banner .progress { flex: 1 1 160px; max-width: 360px; background: color-mix(in oklch, var(--surface), transparent 30%); box-shadow: inset 0 0 0 1px var(--warning-border); }
.sync-banner .progress__bar { background: var(--warning); }

/* ---------- 14. Tabs --------------------------------------------------- */
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-md); padding: 0 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font: var(--fw-medium) var(--fs-14)/1 var(--font-sans); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-ui); }
.tab__count { font-size: var(--fs-12); padding: 2px 6px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-muted); }
.card__head .tabs { border: 0; margin-block: -10px; align-self: stretch; }
.card__head .tab { height: 52px; }

/* ---------- 15. Lists (latest blocks / txs) --------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px var(--sp-3); align-items: center; padding: 12px var(--sp-4); border-bottom: 1px solid var(--border); }
.list__item:last-child { border-bottom: 0; }
.list__item:hover { background: var(--surface-hover); }
.list__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-muted); display: grid; place-items: center; }
.list__primary { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-weight: var(--fw-medium); }
.list__secondary { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-12); color: var(--text-muted); }
.list__end { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

/* ---------- 16. Transaction flow -------------------------------------- */
.flow { display: grid; gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); align-items: start; }
.flow__arrow { display: grid; place-items: center; height: 28px; color: var(--text-muted); }
.flow__arrow .i { transform: rotate(90deg); }
.flow__col { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; min-width: 0; }
.flow__head { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--text-muted); }
.io { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.io:last-child { border-bottom: 0; }
.io__idx { font: var(--fs-12)/1 var(--font-mono); color: var(--text-muted); min-width: 2ch; }
.io__meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-12); color: var(--text-muted); }
.io--self { background: var(--accent-subtle); }
.mark { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-12); color: var(--text-muted); white-space: nowrap; }
.mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; }
.mark--spent::before { background: var(--text-muted); }
.mark--unspent { color: var(--success); }
.mark--unspent::before { border: 2px solid var(--success); }

/* ---------- 17. Inline bars & charts ---------------------------------- */
.share { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.share__bar { width: 72px; height: 6px; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; flex: none; }
.share__fill { display: block; height: 100%; width: var(--v); min-width: 2px; background: var(--accent-ui); }
.share__val { font: var(--fs-13)/1 var(--font-mono); min-width: 6ch; text-align: right; }
.hbars { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.hbar { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 72px; gap: var(--sp-3); align-items: center; font-size: var(--fs-13); }
.hbar__label { font-family: var(--font-mono); font-size: var(--fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track { height: 10px; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.hbar__fill { display: block; height: 100%; width: var(--v); border-radius: var(--r-sm); background: color-mix(in oklch, var(--accent-ui) var(--mix, 100%), var(--border-strong)); }
.hbar__val { text-align: right; font-family: var(--font-mono); font-size: var(--fs-12); }

/* ---------- 18. Forms -------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font: var(--fw-medium) var(--fs-13)/1.3 var(--font-sans); color: var(--text); display: flex; gap: 6px; align-items: baseline; }
.label__opt { font-weight: var(--fw-regular); color: var(--text-muted); }
.input, .select, .textarea { width: 100%; height: var(--ctl-md); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: var(--fw-regular) var(--fs-16)/1.4 var(--font-sans); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in oklch, var(--border-strong), var(--text) 18%); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-ui); box-shadow: 0 0 0 1px var(--accent-ui), 0 0 0 4px var(--accent-subtle); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.input[readonly] { background: var(--surface-2); }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input--mono { font-family: var(--font-mono); font-size: var(--fs-14); }
.select-wrap { position: relative; }
.select { appearance: none; padding-right: 36px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.help { font-size: var(--fs-12); line-height: 1.45; color: var(--text-muted); }
.field-error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-12); line-height: 1.45; color: var(--danger); font-weight: var(--fw-medium); }
.field-error .i { width: 14px; height: 14px; margin-top: 1px; }
.field--invalid .input, .field--invalid .select, .field--invalid .textarea, .input[aria-invalid="true"] { border-color: var(--danger); }
.field--invalid .input:focus, .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--danger), 0 0 0 4px var(--danger-bg); }
.input-group { display: flex; min-width: 0; }
.input-group .input { border-radius: 0; min-width: 0; }
.input-group > :first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group > :last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.input-group > * + * { margin-left: -1px; }
.addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-13); white-space: nowrap; flex: none; }
.color-field { display: flex; gap: var(--sp-2); align-items: center; }
.color-swatch { width: var(--ctl-md); height: var(--ctl-md); flex: none; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.color-swatch::-webkit-color-swatch-wrapper { padding: 4px; }
.color-swatch::-webkit-color-swatch { border: 0; border-radius: 4px; }
.color-swatch::-moz-color-swatch { border: 0; border-radius: 4px; }
.contrast-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-md); padding: 0 12px; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); font-weight: var(--fw-semibold); font-size: var(--fs-13); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.dropzone { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-13); color: var(--text-muted); }
.form-section { display: grid; gap: var(--sp-4) var(--sp-8); padding-block: var(--sp-6); border-top: 1px solid var(--border); grid-template-columns: minmax(0, 1fr); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section__intro { display: flex; flex-direction: column; gap: 6px; }
.form-section__intro p { font-size: var(--fs-13); color: var(--text-muted); max-width: 44ch; }
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; padding-top: var(--sp-4); border-top: 1px solid var(--border); }

/* Node test results */
.results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--sp-3); align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.results li:last-child { border-bottom: 0; }
.results__host { font: var(--fs-13)/1.3 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results__msg { grid-column: 1 / -1; font-size: var(--fs-12); color: var(--text-muted); }

/* ---------- 19. Feedback: alert, toast, modal, empty, skeleton, tooltip */
.alert { --af: var(--info); --ab: var(--info-bg); --abr: var(--info-border); display: flex; gap: var(--sp-3); align-items: flex-start; padding: 12px var(--sp-4); border: 1px solid var(--abr); border-radius: var(--r-md); background: var(--ab); color: var(--text); font-size: var(--fs-14); }
.alert > .i { color: var(--af); margin-top: 2px; }
.alert__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.alert__title { font-weight: var(--fw-semibold); }
.alert--success { --af: var(--success); --ab: var(--success-bg); --abr: var(--success-border); }
.alert--warning { --af: var(--warning); --ab: var(--warning-bg); --abr: var(--warning-border); }
.alert--danger  { --af: var(--danger);  --ab: var(--danger-bg);  --abr: var(--danger-border); }
.toast-region { position: fixed; z-index: 60; inset: auto var(--sp-4) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); pointer-events: none; }
.toast-region--static { position: static; align-items: flex-start; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; width: min(380px, 100%); padding: 12px 12px 12px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-3); font-size: var(--fs-14); animation: ce-toast-in var(--dur-3) var(--ease-out); }
.toast > .i { margin-top: 2px; color: var(--text-muted); }
.toast--success > .i { color: var(--success); }
.toast--danger > .i { color: var(--danger); }
.toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast__title { font-weight: var(--fw-semibold); }
.toast__text { color: var(--text-muted); font-size: var(--fs-13); }
.toast .copy, .toast .btn--icon { margin: -4px -2px -4px 0; }
.modal { padding: 0; border: 0; background: transparent; width: min(480px, calc(100vw - 32px)); max-width: none; color: var(--text); }
.modal::backdrop { background: var(--scrim); }
.modal__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.modal__head { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-5) var(--sp-5) 0; }
.modal__icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.modal__title { font-size: var(--fs-18); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.modal__body { padding: var(--sp-2) var(--sp-5) var(--sp-5); color: var(--text-muted); display: flex; flex-direction: column; gap: var(--sp-4); }
.modal__body strong { color: var(--text); font-weight: var(--fw-semibold); }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); background: var(--surface-2); border-top: 1px solid var(--border); }
.modal-stage { display: grid; place-items: center; padding: var(--sp-8) var(--sp-4); background: var(--scrim); border-radius: var(--r-lg); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); padding: var(--sp-12) var(--sp-6); color: var(--text-muted); }
.empty__icon { width: 44px; height: 44px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); margin-bottom: var(--sp-2); }
.empty__title { color: var(--text); font-size: var(--fs-16); font-weight: var(--fw-semibold); }
.empty__text { max-width: 44ch; font-size: var(--fs-14); }
.empty .btn-group { margin-top: var(--sp-3); justify-content: center; }
.skel { display: block; height: 12px; width: var(--w, 100%); border-radius: var(--r-sm); background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in oklch, var(--surface-2), var(--surface) 70%) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: ce-skel 1.4s ease-in-out infinite; }
.skel--lg { height: 22px; }
.skel--circle { width: 36px; height: 36px; border-radius: var(--r-md); }
.tooltip { position: fixed; top: 0; left: 0; z-index: 80; max-width: min(360px, calc(100vw - 16px)); width: max-content; padding: 6px 8px; border-radius: var(--r-sm); background: var(--tooltip-bg); color: var(--tooltip-fg); font: var(--fw-regular) var(--fs-12)/1.4 var(--font-sans); box-shadow: var(--shadow-2); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity var(--dur-1) var(--ease-out); }
.tooltip[data-show] { opacity: 1; visibility: visible; }
.tooltip--mono { font-family: var(--font-mono); overflow-wrap: anywhere; }
.tooltip-demo { position: relative; top: auto; left: auto; opacity: 1; visibility: visible; display: inline-block; }

/* ---------- 20. Explorer patterns ------------------------------------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: var(--sp-8) var(--sp-6); }
.hero__inner { display: flex; flex-direction: column; gap: var(--sp-4); }
.hero__title { display: flex; align-items: center; gap: var(--sp-3); }
.hero__title h1 { font-size: var(--fs-22); font-weight: var(--fw-semibold); letter-spacing: -.015em; line-height: 1.15; }
.hero__sub { font-size: var(--fs-13); color: var(--text-muted); }
.qr { width: 160px; height: 160px; flex: none; border-radius: var(--r-md); border: 1px solid var(--border); background: repeating-linear-gradient(45deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); display: grid; place-items: center; font: var(--fs-12) var(--font-mono); color: var(--text-muted); }
.coin-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.coin-card { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text) !important; text-decoration: none !important; transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.coin-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-2); }
.coin-card__top { display: flex; gap: var(--sp-3); align-items: center; }
.coin-card__name { font-weight: var(--fw-semibold); font-size: var(--fs-16); }
.coin-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: var(--fs-12); color: var(--text-muted); }
.coin-card__stats b { display: block; color: var(--text); font: var(--fw-medium) var(--fs-14)/1.4 var(--font-mono); }
.state-page { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-16) 0; max-width: 560px; margin-inline: auto; width: 100%; }
.state-page__code { font: var(--fw-medium) var(--fs-13) var(--font-mono); color: var(--text-muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-full); }
.state-page h1 { font-size: var(--fs-28); letter-spacing: -.02em; }
.state-page .search { margin-top: var(--sp-3); }

/* ---------- 21. Owner panel patterns ---------------------------------- */
.panel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.sidenav { display: flex; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; }
.sidenav a { flex: none; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: var(--r-md); color: var(--text-muted) !important; font-weight: var(--fw-medium); }
.sidenav a:hover { background: var(--surface-2); color: var(--text) !important; text-decoration: none !important; }
.sidenav a[aria-current="page"] { background: var(--surface-2); color: var(--text) !important; }
.secret { display: flex; align-items: center; gap: var(--sp-2); padding: 14px var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); font: var(--fw-medium) var(--fs-14)/1.5 var(--font-mono); }
.secret__value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plans { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1); }
.plan:hover { border-color: color-mix(in oklch, var(--border-strong), var(--text) 20%); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--accent-ui); box-shadow: 0 0 0 1px var(--accent-ui); background: var(--accent-subtle); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent-ui); outline-offset: 2px; }
.plan__name { font-weight: var(--fw-semibold); display: flex; justify-content: space-between; gap: var(--sp-2); }
.plan__price { font: var(--fw-medium) var(--fs-13) var(--font-mono); color: var(--text-muted); }
.plan__desc { font-size: var(--fs-13); color: var(--text-muted); }
.upsell { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.upsell__icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); }
.upsell__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.upsell__title { font-weight: var(--fw-semibold); }
.upsell__text { color: var(--text-muted); font-size: var(--fs-13); max-width: 60ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-13); }
.ticks li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.ticks .i { color: var(--success); width: 14px; height: 14px; margin-top: 3px; }

/* ---------- 22. Responsive (container queries on .app) ---------------- */
@container app (min-width: 640px) {
  :where(.app) { --gutter: 24px; }
  .container { padding-inline: 24px; max-width: calc(1200px + 48px); }
  .hide-sm { display: revert !important; }
  .show-sm-only { display: none !important; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile__value { font-size: var(--fs-22); }
  .kv__row { grid-template-columns: 200px minmax(0, 1fr); align-items: center; min-height: 48px; }
  .input, .select, .textarea, .search__input { font-size: var(--fs-14); }
  .input--mono { font-size: var(--fs-13); }
  .header-search { display: flex; }
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { padding-block: var(--sp-8) var(--sp-16); }
  .hero { padding-block: var(--sp-12) var(--sp-8); }
  .hero__title h1 { font-size: var(--fs-28); }
  .card__body { padding: var(--sp-5); }
}
@container app (min-width: 960px) {
  .container { padding-inline: 32px; max-width: calc(1200px + 64px); }
  .nav { display: flex; }
  .subnav, .menu-btn { display: none !important; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) 340px; }
  .split--rev { grid-template-columns: 340px minmax(0, 1fr); }
  .page-title { font-size: var(--fs-28); }
  .flow { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); }
  .flow__arrow { height: auto; padding-top: 40px; }
  .flow__arrow .i { transform: none; }
  .form-section { grid-template-columns: 260px minmax(0, 1fr); }
  .panel-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .sidenav { flex-direction: column; position: sticky; top: 84px; align-self: start; }
  .hero__title h1 { font-size: var(--fs-36); }
}
@container app (min-width: 1200px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 23. Keyframes --------------------------------------------- */
@keyframes ce-spin { to { transform: rotate(360deg); } }
@keyframes ce-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes ce-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ce-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
