:root {
  /* HELIX · pure black + soft pearl + single mint accent */
  --bg: #000000;
  --bg-2: #060608;
  --bg-3: #0a0a0c;
  --panel: #07070a;
  --panel-2: #0d0d10;
  --line: #1a1a1d;
  --line-soft: #111114;

  /* soft pearl off-white · never bright */
  --ink: #d4d4d8;
  --ink-dim: #8e8e96;
  --ink-mute: #5a5a62;
  --ink-faint: #2e2e34;

  /* SINGLE mint accent · used sparingly · CTAs, live data, pulse */
  --amber: #97fce4;  /* legacy var name kept · value is mint */
  --amber-a10: #97fce418;
  --amber-a20: #97fce433;
  --amber-a40: #97fce466;

  --lime: #97fce4;   /* legacy var name kept · value matches mint */
  --lime-a10: #97fce418;
  --lime-a20: #97fce433;
  --lime-a40: #97fce466;

  --green: #4ade80;
  --green-a10: #4ade8018;
  --green-a20: #4ade8033;

  --red: #f87171;
  --red-a10: #f8717118;
  --red-a20: #f8717133;

  --cyan: #97fce4;
  --cyan-a10: #97fce418;
  --cyan-a20: #97fce433;

  --brand: var(--amber);
  --brand-soft: var(--amber-a10);

  --r-1: 1px;
  --r-2: 2px;
  --r-4: 4px;
  --r-6: 6px;
  --r-10: 10px;
  --r-13: 13px;

  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Schibsted Grotesk", "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.003em;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
}

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }
code {
  font-family: var(--mono);
  color: var(--green);
  background: var(--green-a10);
  padding: 1px 5px;
  border-radius: var(--r-2);
  font-size: .9em;
  letter-spacing: -.01em;
}
strong { color: #fff; font-weight: 600; }
em { color: var(--brand); font-style: normal; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}

/* background fx */
.scanlines {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.vignette {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, rgba(0,0,0,.55) 100%);
}

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(10,10,13,.95), rgba(10,10,13,.78));
  backdrop-filter: blur(12px);
}
.brand-row { display: flex; align-items: baseline; gap: 14px; }
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
  letter-spacing: .02em;
}
.brand .logo { width: 20px; height: 20px; color: var(--brand); }
.brand-ver {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
  margin-left: 6px;
  font-weight: 500;
}
.brand-sub { color: var(--ink-mute); font-size: 12px; }
.brand-sub:hover { color: var(--ink-dim); }
.brand-row > .brand-sub + .brand-sub { margin-left: 4px; }
.nav { display: flex; gap: 22px; justify-content: center; }
.nav a { color: var(--ink-dim); font-size: 12px; }
.nav a:hover { color: var(--ink); }
.topbar-actions { display: flex; gap: 8px; }
.btn-outline {
  display: inline-flex; align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-4);
  border: 1px solid;
  transition: all .15s ease;
}
.btn-amber { color: var(--amber); border-color: var(--amber); background: var(--amber-a10); }
.btn-amber:hover { background: var(--amber-a20); }
.btn-cyan { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-a10); }
.btn-cyan:hover { background: var(--cyan-a20); }

/* ca tracker bar */
.ca-bar {
  position: relative; z-index: 5;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.ca-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex; align-items: center; gap: 14px;
}
.ca-label {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.ca-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.ca-input:focus {
  border-color: var(--amber-a40);
  background: var(--panel);
}
.ca-input::placeholder { color: var(--ink-faint); }
.ca-btn {
  height: 30px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all .15s ease;
}
.ca-btn:hover { background: var(--amber-a20); }
.ca-state {
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.ca-state-live { color: var(--green); }
.ca-state-pending { color: var(--amber); }
.ca-state-error { color: var(--red); }
@media (max-width: 768px) {
  .ca-inner { flex-wrap: wrap; gap: 8px; }
  .ca-state { flex-basis: 100%; }
}

/* live ticker */
.live-ticker {
  position: relative; z-index: 5;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.lt-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  flex-wrap: wrap;
  color: var(--ink);
}
.lt-k { color: var(--ink-mute); }
.lt-v { color: var(--ink); font-weight: 600; }
.lt-green { color: var(--green); }
.lt-amber { color: var(--amber); }
.lt-red { color: var(--red); }
.lt-cyan { color: var(--cyan); }
.lt-faint { color: var(--ink-faint); }
.lt-sep { color: var(--ink-faint); padding: 0 4px; }
.lt-status {
  margin-left: auto;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px;
}
.lt-dot {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

main {
  position: relative; z-index: 4;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

/* h-ribbon · single-line bloomberg-style headline strip */
.h-ribbon {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  margin: 12px 0 12px;
  background: linear-gradient(90deg, var(--amber-a10) 0%, transparent 38%);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--r-4);
  font-family: var(--mono);
  flex-wrap: wrap;
}
.hr-tag {
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  padding: 3px 8px;
  border-radius: var(--r-2);
  font-weight: 700;
}
.hr-h {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: #fff;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.hr-em { color: var(--ink-dim); font-weight: 500; }
.hr-meta {
  font-size: 11px;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: .02em;
}
.hr-pulse {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.hr-ctas { display: inline-flex; gap: 6px; }
.hr-cta {
  display: inline-flex; align-items: center;
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .02em;
  border-radius: var(--r-2);
  background: var(--amber);
  color: #0a0518;
  border: 1px solid var(--amber);
  transition: background .15s ease;
}
.hr-cta:hover { background: #c4abff; color: #0a0518; }
.hr-cta-ghost {
  background: transparent;
  color: var(--ink-dim);
  border-color: var(--line);
}
.hr-cta-ghost:hover { background: var(--panel); color: var(--ink); }

/* hero ribbon — single horizontal anchor above the dashboard (LEGACY, unused) */
.ribbon {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.ribbon-left .eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 3px 9px;
  border: 1px solid var(--amber-a20);
  background: var(--amber-a10);
  border-radius: var(--r-2);
  margin-bottom: 14px;
}
.ribbon-left h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -.028em;
  margin: 0;
  color: #fff;
}
.ribbon-right {
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.ribbon-lede {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
  font-family: var(--mono);
}
.ribbon-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* trading-terminal hero ──────────────────────────────────────────── */
.dash {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 12px;
  padding: 0 0 18px;
  align-items: stretch;
}
.dash-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  display: flex; flex-direction: column;
  min-width: 0;
}

/* CTA sizing variants used across hero ribbon and dashboard */
.cta-sm {
  height: 36px;
  padding: 0 18px;
  font-size: 12px;
}

/* col 1 — market stats (denser layout for terminal feel) */
.dash-stats { padding: 14px 14px 16px; }
.ds-sec {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line-soft);
}
.ds-sec:first-of-type { margin-top: 6px; }
.ds-sec-tight { margin-top: 12px; }

/* sub-tab nav · hyperliquid-style segmented */
.ds-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin: 10px 0 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-4);
}
.ds-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  padding: 5px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: var(--r-2);
  transition: all .15s ease;
}
.ds-tab:hover { color: var(--ink); }
.ds-tab-on {
  color: var(--amber);
  background: var(--amber-a10);
  box-shadow: inset 0 0 0 1px var(--amber-a20);
}

/* multi-timeframe stat-layer table */
.ds-tf-tbl {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-4);
  overflow: hidden;
}
.dsf-head, .dsf-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr 1.2fr;
  background: var(--panel);
  align-items: baseline;
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.dsf-head {
  background: var(--panel-2);
  color: var(--ink-mute);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dsf-tf {
  color: var(--ink-mute);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.dsf-v {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.dsf-amber { color: var(--amber); }
.dsf-red { color: var(--red); }
.dsf-green { color: var(--green); }
.ds-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.ds-pair { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ds-pair-base { color: var(--amber); }
.ds-pair-sep { color: var(--ink-faint); margin: 0 4px; }
.ds-pair-quote { color: var(--ink-dim); }
.ds-net {
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.ds-price {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 4px;
}
.ds-price-v {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  font-family: var(--mono);
  letter-spacing: -.01em;
}
.ds-price-chg {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-2);
}
.ds-chg-up { color: var(--green); background: var(--green-a10); border: 1px solid var(--green-a20); }
.ds-chg-down { color: var(--red); background: var(--red-a10); border: 1px solid var(--red-a20); }
.ds-sub {
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-family: var(--mono);
}
.ds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-4);
  overflow: hidden;
}
.ds-cell {
  background: var(--panel);
  padding: 9px 10px;
  display: flex; flex-direction: column;
  gap: 3px;
}
.ds-k {
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ds-v {
  font-size: 13px;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
}
.ds-v-green { color: var(--green); }
.ds-v-red { color: var(--red); }
.ds-v-amber { color: var(--amber); }
.ds-v-cyan { color: var(--cyan); }

/* col 2 — chart */
.dash-chart { padding: 0; overflow: hidden; }
.dc-head {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(21,21,31,.92), rgba(21,21,31,.78));
  backdrop-filter: blur(8px);
}

/* pool-depth strip · borrow capacity across LTV bands */
.dc-depth {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-dim);
}
.dcd-k {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.dcd-bars {
  flex: 1;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  min-width: 0;
}
.dcd-bars span {
  flex: 1;
  background: var(--cyan);
  opacity: .55;
  border-radius: 1px 1px 0 0;
}
.dcd-tail { color: var(--ink-mute); }
.dcd-tail strong { color: var(--cyan); font-weight: 600; }

/* L/S sentiment strip */
.dc-sent {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px;
  background: var(--panel-2);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-dim);
}
.dcs-k {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.dcs-bar {
  flex: 1;
  display: inline-flex;
  height: 6px;
  min-width: 140px;
  background: var(--bg);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-soft);
}
.dcs-bar-l { background: var(--green); opacity: .85; transition: width .5s ease; }
.dcs-bar-r { background: var(--red); opacity: .85; transition: width .5s ease; }
.dcs-leg {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-mute);
  font-size: 10.5px;
}
.dcs-dot { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; }
.dcs-dot-g { background: var(--green); box-shadow: 0 0 4px var(--green); }
.dcs-dot-r { background: var(--red); box-shadow: 0 0 4px var(--red); }
.dcs-leg strong { color: var(--ink); font-weight: 600; }
.dcs-tail { color: var(--ink-mute); }
.dcs-tail strong { color: var(--green); font-weight: 600; }
.dc-tfs { display: flex; gap: 4px; }
.dc-tf {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-mute);
  padding: 4px 9px;
  font-size: 11px;
  font-family: var(--mono);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all .15s ease;
}
.dc-tf:hover { color: var(--ink); background: var(--panel); }
.dc-tf-on {
  color: var(--amber);
  background: var(--amber-a10);
  border-color: var(--amber-a20);
}
.dc-meta {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}
.dc-meta-k {
  color: var(--ink-mute);
  margin-left: 6px;
}
.dc-meta-k:first-child { margin-left: 0; }
.dc-meta-v-green { color: var(--green); }
.dc-meta-v-red { color: var(--red); }
.dc-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dc-pulse {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
.dc-chart-wrap {
  position: relative;
  flex: 1;
  min-height: 280px;
  background:
    radial-gradient(900px 400px at 50% 60%, rgba(167,139,250,.03), transparent 70%),
    var(--panel);
}
.dc-tv {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
.dc-tv:not(:empty) ~ .dc-svg,
.dc-tv:not(:empty) ~ .dc-grid { opacity: 0; pointer-events: none; }
.dc-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.dc-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 80px 40px;
  pointer-events: none;
}
.dc-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--panel-2);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.dc-foot-k { color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.dc-foot-v { color: var(--ink); }
.dc-foot-amber { color: var(--amber); }
.dc-foot-red { color: var(--red); }
.dc-foot-sep { color: var(--ink-faint); }

/* col 3 — order form */
.dash-order { padding: 16px; }
.do-label {
  display: flex; align-items: baseline; justify-content: space-between;
}
.do-bal {
  font-size: 10px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: .02em;
  text-transform: none;
}
.do-bal span { color: var(--cyan); }
.do-presets {
  display: flex; gap: 4px;
  margin-top: 6px;
}
.do-preset {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 5px 0;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all .12s ease;
}
.do-preset:hover {
  border-color: var(--amber-a40);
  color: var(--ink);
  background: var(--panel);
}
.do-preset-max {
  color: var(--amber);
  border-color: var(--amber-a20);
  background: var(--amber-a10);
}
.do-preset-max:hover {
  background: var(--amber-a20);
  border-color: var(--amber-a40);
}
.do-presets-ltv { margin-top: 8px; }
.do-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.do-title { font-size: 13px; font-weight: 600; color: #fff; }
.do-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-2);
}
.do-tag-green { color: var(--green); background: var(--green-a10); border: 1px solid var(--green-a20); }
.do-tag-cyan { color: var(--cyan); background: var(--cyan-a10); border: 1px solid var(--cyan-a20); }

/* LONG / SHORT side toggle */
.do-side {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
}
.do-side-btn {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: var(--r-2);
  transition: all .15s ease;
}
.do-side-btn:hover { color: var(--ink); }
.do-side-long.do-side-on {
  color: var(--green);
  background: var(--green-a10);
  box-shadow: inset 0 0 0 1px var(--green-a20);
}
.do-side-short.do-side-on {
  color: var(--red);
  background: var(--red-a10);
  box-shadow: inset 0 0 0 1px var(--red-a20);
}

/* perp opos columns */
.oc-mkt {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .02em;
}
.oc-side {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: var(--r-2);
  text-align: center;
}
.oc-side-long { color: var(--green); background: var(--green-a10); border: 1px solid var(--green-a20); }
.oc-side-short { color: var(--red); background: var(--red-a10); border: 1px solid var(--red-a20); }

/* lime accent variants */
.ds-v-lime { color: var(--lime); }
.rt-v-lime { color: var(--lime); }

.do-row { margin-bottom: 14px; }
.do-label {
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.do-input {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 0 10px 0 12px;
  height: 38px;
  transition: border-color .15s ease;
}
.do-input:focus-within { border-color: var(--amber-a40); }
.do-amt {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
}
.do-unit {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .04em;
  font-weight: 600;
}
.do-helper {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 6px;
  font-family: var(--mono);
}
.do-slider input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 22px;
}
.do-slider input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--amber) var(--p, 100%), var(--line) var(--p, 100%));
  border-radius: 2px;
}
.do-slider input[type=range]::-moz-range-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}
.do-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 0 0 3px rgba(167,139,250,.18);
  cursor: pointer;
}
.do-slider input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--amber);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.do-ltv-readout {
  font-size: 11px;
  color: var(--ink-dim);
  font-family: var(--mono);
  margin-top: 4px;
}
.do-readout {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 12px;
  margin-bottom: 14px;
}
.do-rr {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.do-rr:last-child { border-bottom: none; }
.do-rr > span:first-child { color: var(--ink-mute); }
.do-rr-v { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.do-rr-green { color: var(--green); }
.do-rr-red { color: var(--red); }
.do-rr-amber { color: var(--amber); }
.do-cta {
  width: 100%;
  height: 42px;
  border-radius: var(--r-4);
  background: var(--amber);
  color: #0a0518;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  transition: all .15s ease;
}
.do-cta:hover { background: #c4abff; box-shadow: 0 6px 22px -8px var(--amber-a40); }
.do-cta-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  font-size: 10px;
  font-family: var(--mono);
}
.do-secondary {
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: .04em;
}
.do-secondary:hover { color: var(--amber); }
.do-cta-net {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-mute);
}
.do-cta-dot {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--red);
  box-shadow: 0 0 5px var(--red);
}
.do-foot {
  margin-top: 12px;
  font-size: 10px;
  color: var(--ink-mute);
  line-height: 1.45;
  font-family: var(--mono);
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}

/* open positions · simulated mock positions table */
.opos {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  overflow: hidden;
  margin-bottom: 8px;
}
.opos-head {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(21,21,31,.92), rgba(21,21,31,.78));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.opos-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .06em;
}
.opos-c {
  display: inline-block;
  margin-left: 4px;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  padding: 1px 7px;
  border-radius: var(--r-2);
  font-size: 10px;
  font-weight: 600;
}
.opos-tabs {
  display: flex; gap: 2px;
  padding: 2px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-4);
  margin-left: auto;
}
.opos-tab {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: var(--r-2);
  transition: all .12s ease;
}
.opos-tab:hover { color: var(--ink); }
.opos-tab-on {
  color: var(--amber);
  background: var(--amber-a10);
  box-shadow: inset 0 0 0 1px var(--amber-a20);
}
.opos-meta {
  font-size: 10px;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.opos-pulse {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
.opos-tbl { font-family: var(--mono); }
.opos-row {
  display: grid;
  grid-template-columns: .5fr 1.2fr 1fr 1fr 1.5fr 1fr 1fr 1fr .6fr;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink-dim);
  transition: background .12s ease;
}
.opos-row:hover { background: rgba(167,139,250,.04); }
.opos-row:last-child { border-bottom: 0; }
.opos-row-head {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  background: var(--panel-2);
  padding-top: 8px;
  padding-bottom: 8px;
}
.opos-row-head:hover { background: var(--panel-2); }
.oc-id { color: var(--amber); font-weight: 700; letter-spacing: .04em; }
.oc-col { color: var(--ink); }
.oc-draw { color: var(--cyan); font-weight: 600; }
.oc-ltv {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink);
}
.oc-ltv-bar {
  display: inline-block;
  width: 38px;
  height: 4px;
  background: var(--line);
  border-radius: 9999px;
  overflow: hidden;
}
.oc-ltv-bar span {
  display: block; height: 100%;
  background: var(--amber);
}
.oc-px { color: var(--ink-mute); }
.oc-px strong { color: var(--ink); font-weight: 600; }
.oc-liq { color: var(--red); }
.oc-dist { font-weight: 600; }
.oc-pnl { font-weight: 600; }
.oc-up { color: var(--green); }
.oc-dn { color: var(--red); }
.oc-warn { color: var(--amber); }
.oc-h-pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: var(--r-2);
}
.oc-h-ok { color: var(--green); background: var(--green-a10); border: 1px solid var(--green-a20); }
.oc-h-warn { color: var(--amber); background: var(--amber-a10); border: 1px solid var(--amber-a20); }
.oc-h-risk { color: var(--red); background: var(--red-a10); border: 1px solid var(--red-a20); }
.opos-foot {
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--panel-2);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
}
.opos-foot-k {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.opos-foot-v {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: var(--ink-mute);
}
.opos-foot-v strong { color: var(--ink); font-weight: 600; }
.opos-red strong, .opos-foot-v strong.opos-red { color: var(--red); }
.opos-amber strong, .opos-foot-v strong.opos-amber { color: var(--amber); }

/* trade tape · rolling event feed below hero */
.tape {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  margin-bottom: 8px;
  overflow: hidden;
}
.tape-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
}
.tape-eyebrow {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .06em;
}
.tape-status {
  font-size: 10px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 6px;
}
.tape-pulse {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
.tape-body {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-dim);
  white-space: pre;
  overflow-x: auto;
  max-height: 180px;
}
.tape-body::-webkit-scrollbar { height: 6px; }
.tape-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.tape-body .t-amber { color: var(--amber); }
.tape-body .t-green { color: var(--green); }
.tape-body .t-red { color: var(--red); }
.tape-body .t-cyan { color: var(--cyan); }
.tape-body .t-mute { color: var(--ink-mute); }
.tape-body .t-w { color: #fff; font-weight: 600; }

@media (max-width: 1280px) {
  .dash { grid-template-columns: 1fr; gap: 12px; }
  .ribbon { grid-template-columns: 1fr; gap: 14px; padding: 22px 0 18px; }
  .ribbon-left h1 { font-size: 34px; }
}

/* legacy hero kept hidden — replaced by .dash above */
.hero {
  display: none;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  padding: 56px 0 72px;
  align-items: center;
}
.hero-text { min-width: 0; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 4px 10px;
  border: 1px solid var(--amber-a20);
  background: var(--amber-a10);
  border-radius: var(--r-2);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.02;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.028em;
}
.hero .lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 0 26px;
}
.hero .lede strong { color: var(--amber); }

.asset-flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.asset-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-4);
  font-size: 12px;
}
.asset-chip-brand {
  border-color: var(--amber-a40);
  background: var(--amber-a10);
}
.asset-dot {
  width: 7px; height: 7px; border-radius: 9999px;
}
.asset-dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.asset-dot-red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.asset-dot-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.asset-tk { font-weight: 700; color: #fff; }
.asset-meta { color: var(--ink-mute); font-size: 11px; }
.asset-arrow { color: var(--ink-faint); font-size: 14px; }
.asset-arrow-mid { color: var(--ink-mute); }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-4);
  border: 1px solid;
  transition: all .15s ease;
}
.cta.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #0a0518;
}
.cta.primary:hover {
  background: #c4abff;
  border-color: #c4abff;
  box-shadow: 0 6px 28px -8px var(--amber-a40);
}
.cta.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.cta.ghost:hover { background: var(--panel); border-color: var(--ink-faint); }

/* terminal panel */
.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.02);
}
.term-head {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 11px;
  color: var(--ink-mute);
}
.term-dot {
  width: 9px; height: 9px; border-radius: 9999px;
  display: inline-block;
}
.term-dot-red { background: var(--red); }
.term-dot-amber { background: var(--amber); }
.term-dot-green { background: var(--green); }
.term-title { margin-left: 10px; color: var(--ink-dim); }
.term-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
}
.term-pulse {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.term-body {
  margin: 0;
  padding: 18px 22px 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
  white-space: pre;
  min-height: 420px;
  overflow-x: auto;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.015) 22px 23px);
}
.term-body::-webkit-scrollbar { height: 6px; }
.term-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.term-body .t-amber { color: var(--amber); }
.term-body .t-green { color: var(--green); }
.term-body .t-red { color: var(--red); }
.term-body .t-cyan { color: var(--cyan); }
.term-body .t-mute { color: var(--ink-mute); }
.term-body .t-w { color: #fff; font-weight: 600; }

/* sections */
.section {
  padding: 22px 0 30px;
  border-top: 1px solid var(--line-soft);
}
.section:first-of-type { padding-top: 12px; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-eyebrow {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .1em;
  font-weight: 500;
  margin-bottom: 10px;
}
.section h2 {
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 8px;
  letter-spacing: -.012em;
}
.section-lede {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

/* panel bar — terminal-style section header with live stats baked in */
.panel-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px;
  margin-bottom: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--r-4);
  font-family: var(--mono);
  font-size: 12px;
  flex-wrap: wrap;
}
.pb-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  padding: 2px 7px;
  border-radius: var(--r-2);
}
.pb-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
}
.pb-sub {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.pb-stat {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 11px;
  padding: 2px 8px;
  border-left: 1px solid var(--line-soft);
}
.pb-stat:first-of-type { border-left: 0; }
.pb-k { color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; font-size: 9.5px; }
.pb-stat strong { font-weight: 600; color: var(--ink); font-family: var(--mono); }
.pb-amber { color: var(--amber); }
.pb-red { color: var(--red); }
.pb-green { color: var(--green); }
.pb-mute { color: var(--ink-faint); }
.pb-link {
  font-size: 11px;
  color: var(--amber);
  text-decoration: none;
  border: 1px solid var(--amber-a20);
  background: var(--amber-a10);
  padding: 3px 8px;
  border-radius: var(--r-2);
  transition: background .15s ease;
}
.pb-link:hover { background: var(--amber-a20); color: var(--amber); }
.pb-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
}
.pb-pulse {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}

/* global metrics rail — 8 KPI tiles, GMX-style */
.rail {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  overflow: hidden;
  margin: 10px 0 18px;
}
.rail-tile {
  background: var(--panel);
  padding: 11px 14px 9px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  min-width: 0;
}
.rt-k {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  font-family: var(--mono);
}
.rt-v {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1;
}
.rt-v-amber { color: var(--amber); }
.rt-v-red { color: var(--red); }
.rt-v-green { color: var(--green); }
.rt-u {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  position: absolute;
  top: 11px; right: 12px;
}
.rt-d {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .02em;
}
.rt-d-up { color: var(--green); }
.rt-d-dn { color: var(--red); }
.rt-spark {
  width: 100%;
  height: 12px;
  display: block;
}
.rt-bar {
  width: 100%; height: 3px;
  background: var(--line);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}
.rt-bar-f {
  display: block; height: 100%;
  background: var(--amber);
  width: 24.6%;
  transition: width .5s ease;
}

/* twin feeds — recent liquidations + recent burns */
.feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.feed-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  overflow: hidden;
}
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
}
.feed-title {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .06em;
  font-family: var(--mono);
}
.feed-meta {
  font-size: 10px;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.feed-pulse {
  width: 5px; height: 5px; border-radius: 9999px;
  animation: pulse 1.6s ease-in-out infinite;
}
.feed-pulse-red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.feed-pulse-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.feed-tbl { padding: 4px 0; }
.ft-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--ink);
  border-bottom: 1px dashed var(--line-soft);
}
.ft-row:last-child { border-bottom: none; }
.ft-head {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.ft-blk { color: var(--cyan); }
.ft-red { color: var(--red); }
.ft-amber { color: var(--amber); }
.ft-cyan { color: var(--cyan); }
.ft-mute { color: var(--ink-mute); }

/* position invariants pill row */
.pn-k { color: var(--ink-mute); margin-right: 4px; }
.pn-v { color: var(--ink); }
.pn-sep { color: var(--ink-faint); margin: 0 6px; }

/* system status bar — bloomberg-style sticky strip above footer */
.sysbar {
  position: sticky; bottom: 0; z-index: 9;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px;
  background: linear-gradient(180deg, rgba(13,13,18,.78), rgba(13,13,18,.95));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  overflow-x: auto;
  white-space: nowrap;
}
.sb-k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  padding: 3px 8px;
  border-radius: var(--r-2);
}
.sb-g {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding-right: 14px;
  border-right: 1px solid var(--line-soft);
}
.sb-g:last-child { border-right: 0; padding-right: 0; }
.sb-l {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.sb-v {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.sb-u {
  font-size: 9.5px;
  color: var(--ink-mute);
  letter-spacing: .04em;
}
.sb-amber { color: var(--amber); }
.sb-green { color: var(--green); }
.sb-red { color: var(--red); }
.sb-cyan { color: var(--cyan); }
.sb-status {
  margin-left: auto;
  color: var(--amber);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
}
.sb-dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
.sb-build {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: .04em;
}
.sysbar::-webkit-scrollbar { height: 0; }

@media (max-width: 1280px) {
  .rail { grid-template-columns: repeat(4, 1fr); }
  .panel-bar { gap: 10px; }
  .panel-bar .pb-stat { border-left: 0; padding: 2px 0; }
}
@media (max-width: 768px) {
  .rail { grid-template-columns: repeat(2, 1fr); }
  .feeds { grid-template-columns: 1fr; }
  .h-ribbon { gap: 8px; }
  .hr-h { font-size: 12.5px; }
  .ft-row { grid-template-columns: 1fr 1fr 1fr; }
  .ft-row > span:nth-child(4),
  .ft-row > span:nth-child(5) { display: none; }
  .sysbar { font-size: 10px; gap: 10px; padding: 6px 14px; }
  .sb-status { display: none; }
}

/* matrix */
.matrix {
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  background: var(--panel);
  overflow: hidden;
}
.matrix-head, .matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 12px 18px;
  font-size: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.matrix-head {
  background: var(--panel-2);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.matrix-row { color: var(--ink); }
.matrix-row:last-child { border-bottom: none; }
.matrix-row .m-venue { font-weight: 700; color: var(--amber); letter-spacing: .04em; }
.matrix-row .m-f, .matrix-row .m-m, .matrix-row .m-t, .matrix-row .m-r { color: var(--ink-dim); }
.m-edge { text-align: right; font-weight: 600; }
.m-edge-pos { color: var(--green); }
.m-edge-neg { color: var(--red); }
.matrix-row-highlight {
  background: linear-gradient(90deg, var(--amber-a10) 0%, transparent 100%);
  position: relative;
}
.matrix-row-highlight::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--amber);
}

.matrix-note {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  font-size: 12px;
  color: var(--ink-dim);
}
.matrix-note > span:first-child { color: var(--ink-mute); }
.route-leg { color: var(--ink); }
.route-leg strong { color: var(--cyan); }
.route-sep { color: var(--ink-faint); }
.route-edge { color: var(--green); }
.route-edge strong { color: var(--green); }
.route-out { color: var(--amber); }

/* bands (lending) */
.bands {
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  background: var(--panel);
  overflow: hidden;
}
.bands-head, .bands-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 18px;
  font-size: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.bands-head {
  background: var(--panel-2);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bands-row { color: var(--ink); transition: background .15s ease; }
.bands-row:hover { background: rgba(255,255,255,.022); }
.bands-row:last-child { border-bottom: none; }
.bands-row .b-num { font-weight: 700; color: var(--amber); letter-spacing: .04em; font-size: 11px; }
.bands-row .b-px { color: var(--ink-dim); }
.bands-row .b-lk { color: var(--ink); }
.bands-row .b-av { color: var(--cyan); }
.bands-row .b-br { color: var(--ink-dim); }
.b-edge { text-align: right; }
.bands-row-highlight {
  background: linear-gradient(90deg, var(--amber-a10) 0%, transparent 100%);
  position: relative;
}
.bands-row-highlight::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--amber);
}
.util {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-2);
  font-size: 11px;
  font-weight: 600;
}
.util-low { color: var(--green); background: var(--green-a10); border: 1px solid var(--green-a20); }
.util-mid { color: var(--amber); background: var(--amber-a10); border: 1px solid var(--amber-a20); }
.util-high { color: var(--red); background: var(--red-a10); border: 1px solid var(--red-a20); }

/* band-skyline chart */
.bands-skyline {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  padding: 18px;
}
.bs-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.bs-title {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bs-legend {
  font-size: 11px;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 12px;
}
.bs-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 9999px;
  margin-right: 5px; vertical-align: middle;
}
.bs-dot-amber { background: var(--amber); }
.bs-dot-cyan { background: var(--cyan); }
.bs-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 180px;
  padding: 18px 0 8px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  /* dashed gridlines at 25/50/75% — feels like a bloomberg terminal */
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(25% - 1px),
      var(--line-soft) calc(25% - 1px),
      var(--line-soft) 25%
    );
  background-size: 100% 100%;
}
.bs-col {
  flex: 1;
  display: flex; flex-direction: column-reverse;
  height: 100%;
  position: relative;
  min-width: 0;
  transition: opacity .2s ease;
  cursor: default;
}
.bs-col-locked, .bs-col-available {
  width: 100%;
  transition: height .6s cubic-bezier(.4,0,.2,1);
  position: relative;
}
/* long = bright mint, sits on top — has a real top-edge highlight and a
   subtle glow to suggest depth without going jeety 3D. */
.bs-col-locked {
  background: linear-gradient(
    180deg,
    #b3ffec 0%,
    #97fce4 18%,
    color-mix(in srgb, #97fce4 55%, transparent) 100%
  );
  border-top: 1px solid #d6fff3;
  box-shadow:
    0 -2px 8px rgba(151, 252, 228, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-top-left-radius: 1px;
  border-top-right-radius: 1px;
}
/* short = deep slate/cyan, sits at bottom — visually demoted relative to
   long so the eye reads net OI bias at a glance. */
.bs-col-available {
  background: linear-gradient(
    180deg,
    #2a4554 0%,
    #1a2e3a 100%
  );
  border-top: 1px solid #3d6679;
  box-shadow:
    inset 0 1px 0 rgba(151, 252, 228, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
/* breathing animation — bars pulse subtly so the chart reads as live even
   between drift ticks. Only on long since that's the eye-anchor. */
@keyframes bs-col-breathe {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.08); }
}
.bs-col-locked {
  animation: bs-col-breathe 2.4s ease-in-out infinite;
  animation-delay: var(--bs-delay, 0s);
}
.bs-col-label {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-mute);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.bs-col:hover .bs-col-label { opacity: 1; color: var(--ink); }
.bs-col.active .bs-col-locked {
  box-shadow: 0 0 12px color-mix(in srgb, var(--amber) 55%, transparent), inset 0 0 0 1px var(--amber);
}
.bs-col.active .bs-col-label { opacity: 1; color: var(--amber); }
/* tooltip on hover — shows long/short notional */
.bs-col-tip {
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: #0a0a10;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
  z-index: 5;
  border-radius: 2px;
}
.bs-col-tip-l { color: var(--amber); }
.bs-col-tip-s { color: var(--cyan); }
.bs-col-tip-sep { color: var(--ink-faint); margin: 0 4px; }
.bs-col:hover .bs-col-tip { opacity: 1; }
/* y-axis tick labels — 0 / 25 / 50 / 75 / 100% */
.bs-yticks {
  position: absolute;
  left: -32px;
  top: 0; bottom: 0;
  width: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  color: var(--ink-faint);
  letter-spacing: .08em;
  pointer-events: none;
}
.bs-bars { padding-left: 0; }
.bs-axis {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-mute);
}
.bs-axis span:last-child { color: var(--ink-faint); font-style: italic; }
/* readout strip below chart — total OI/long/short summary */
.bs-readout {
  margin-top: 14px;
  display: flex; gap: 20px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.bs-readout strong { color: var(--ink); font-weight: 500; margin-left: 4px; }
.bs-readout-amber strong { color: var(--amber); }
.bs-readout-cyan strong { color: var(--cyan); }
.bs-readout-sep { color: var(--line); }

/* position cards */
.position-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.pos-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  padding: 18px 22px;
  display: flex; flex-direction: column;
}
.pos-card-warn { border-color: var(--red-a20); background: linear-gradient(180deg, var(--red-a10) 0%, var(--panel) 50%); }
.pos-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.pos-step {
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  padding: 3px 8px;
  border-radius: var(--r-2);
  letter-spacing: .08em;
}
.pos-card-warn .pos-step { color: var(--red); background: var(--red-a10); border-color: var(--red-a20); }
.pos-title {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  text-transform: lowercase;
}
.pos-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.pos-row:last-child { border-bottom: none; }
.pos-k { color: var(--ink-mute); }
.pos-v { color: var(--ink); font-weight: 500; }
.pos-v-cyan { color: var(--cyan); }
.pos-v-green { color: var(--green); }
.pos-v-red { color: var(--red); }
.pos-arrow {
  display: flex; align-items: center;
  color: var(--ink-faint);
  font-size: 18px;
  padding: 0 4px;
}
.position-note {
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  font-size: 12px;
  color: var(--ink-mute);
}

/* cards / thesis */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-6);
  padding: 24px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--amber-a40);
  transform: translateY(-2px);
}
.card-num {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
.card-foot { display: flex; gap: 6px; }
.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  background: var(--amber-a10);
  border: 1px solid var(--amber-a20);
  padding: 3px 8px;
  border-radius: var(--r-2);
}

/* flow */
.flow {
  display: flex; flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 760px;
}
.flow-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  align-items: start;
}
.flow-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.flow-icon-amber { background: var(--amber-a10); color: var(--amber); border: 1px solid var(--amber-a20); }
.flow-icon-green { background: var(--green-a10); color: var(--green); border: 1px solid var(--green-a20); }
.flow-icon-cyan { background: var(--cyan-a10); color: var(--cyan); border: 1px solid var(--cyan-a20); }
.flow-icon-red { background: var(--red-a10); color: var(--red); border: 1px solid var(--red-a20); }
.flow-body h4 {
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: -.005em;
}
.flow-body p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 0 0 10px;
}
.flow-code {
  display: inline-block;
  font-size: 11.5px;
  color: var(--cyan);
  background: var(--cyan-a10);
  border-radius: var(--r-2);
  padding: 4px 8px;
}
.flow-link {
  text-align: center;
  color: var(--ink-faint);
  padding: 6px 0;
  font-size: 12px;
}

/* vault */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vault-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  padding: 20px 22px;
}
.vp-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.vp-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.vp-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: var(--r-2);
}
.vp-tag-green { color: var(--green); background: var(--green-a10); border: 1px solid var(--green-a20); }
.vp-tag-cyan { color: var(--cyan); background: var(--cyan-a10); border: 1px solid var(--cyan-a20); }
.vp-tag-amber { color: var(--amber); background: var(--amber-a10); border: 1px solid var(--amber-a20); }
.vp-list { list-style: none; padding: 0; margin: 0; }
.vp-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.vp-list li:last-child { border-bottom: none; }
.vp-list li > span:first-child { color: var(--ink-mute); }
.vp-list li > span:last-child { color: var(--ink); text-align: right; }

/* supply */
.supply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.supply-spec, .supply-chart {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  padding: 22px;
}
.ss-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
}
.ss-row:last-child { border-bottom: none; }
.ss-k { color: var(--ink-mute); }
.ss-v { color: var(--ink); font-weight: 500; }
.ss-v-mute { color: var(--ink-faint); }
.ss-v-amber { color: var(--amber); }

.supply-chart { display: flex; flex-direction: column; }
.sc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sc-title { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.sc-legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-mute); align-items: center; }
.sc-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 9999px;
  margin-right: 5px; vertical-align: middle;
}
.sc-dot-amber { background: var(--amber); }
.sc-dot-cyan { background: var(--cyan); }
.sc-svg {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 180px;
  display: block;
}
.sc-foot {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-mute);
}
.sc-foot-mid { color: var(--amber); }

/* spec */
.spec-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.sp-k { color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.sp-v { color: var(--ink); }
.sp-v-mute { color: var(--ink-faint); }

/* faq */
.faq-list {
  display: flex; flex-direction: column;
  gap: 8px;
  max-width: 880px;
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-4);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: "+";
  color: var(--amber);
  font-size: 18px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 20px 18px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
  margin-top: 0;
  padding-top: 16px;
}

/* footer */
.site-foot {
  position: relative; z-index: 4;
  max-width: 1360px;
  margin: 24px auto 0;
  padding: 36px 32px 24px;
  border-top: 1px solid var(--line);
}
.foot-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  margin-bottom: 24px;
}
.foot-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--amber);
  font-weight: 700;
}
.foot-brand .logo { width: 20px; height: 20px; color: var(--amber); }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 40px;
  justify-content: end;
}
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.foot-col a {
  color: var(--ink-dim);
  font-size: 12px;
}
.foot-col a:hover { color: var(--amber); }
.foot-disclaim {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-faint);
}
.foot-build { color: var(--ink-mute); }

/* responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 56px;
  }
  .hero h1 { font-size: 44px; }
  .cards { grid-template-columns: 1fr; }
  .vault-grid { grid-template-columns: 1fr; }
  .supply-grid { grid-template-columns: 1fr; }
  .matrix-head, .matrix-row {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 11px;
  }
  .matrix-head span:nth-child(3),
  .matrix-head span:nth-child(4),
  .matrix-row span:nth-child(3),
  .matrix-row span:nth-child(4) { display: none; }
  .bands-head, .bands-row {
    grid-template-columns: 0.6fr 1fr 1fr 1fr;
    font-size: 11px;
  }
  .bands-head span:nth-child(5),
  .bands-head span:nth-child(6),
  .bands-row span:nth-child(5),
  .bands-row span:nth-child(6) { display: none; }
  .position-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pos-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .foot-row { grid-template-columns: 1fr; gap: 24px; }
  .foot-cols { grid-template-columns: 1fr 1fr; justify-content: start; }
  .nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  main { padding: 0 18px; }
  .topbar { padding: 12px 18px; }
  .lt-inner { padding: 10px 18px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
  .flow-step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .flow-icon { width: 36px; height: 36px; font-size: 11px; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .foot-disclaim { flex-direction: column; gap: 6px; }
  .foot-cols { grid-template-columns: 1fr; }
  /* sub-links and the ticker were overflowing on phones — turn them into horizontal-scroll strips */
  .brand-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .brand-row::-webkit-scrollbar { display: none; }
  .brand-sub { font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .live-ticker .lt-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding-right: 18px; scrollbar-width: none; }
  .live-ticker .lt-inner::-webkit-scrollbar { display: none; }
  .panel-bar { flex-wrap: wrap; gap: 8px; }
  .panel-bar .pb-stat { border-left: 0; padding: 2px 0; }
  /* ensure CTAs hit 44px tap target */
  .btn-outline { min-height: 38px; }
  /* prevent any html-table or wide grids from blowing out the viewport */
  main img, main svg { max-width: 100%; height: auto; }
  body { overflow-x: hidden; }
}

/* ─── wallet-connect stub modal (trade page) ─────────────────────────── */
.wc-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.wc-modal[hidden] { display: none; }
.wc-card {
  width: 420px; max-width: calc(100vw - 32px);
  background: #0a0a0c; border: 1px solid rgba(151,252,228,.18);
  padding: 22px 22px 18px; font-family: "IBM Plex Mono", monospace;
}
.wc-head { color: #97fce4; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.wc-sub  { color: #8e8e96; font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
#wc-form input {
  width: 100%; background: #050507; border: 1px solid #2a2a30; color: #d4d4d8;
  padding: 11px 12px; font-family: inherit; font-size: 13px;
  letter-spacing: .02em; outline: none;
}
#wc-form input:focus { border-color: rgba(151,252,228,.45); }
.wc-row { display: flex; gap: 8px; margin-top: 10px; }
.wc-go, .wc-x {
  flex: 1; padding: 9px 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.wc-go { border: 1px solid #97fce4; color: #97fce4; }
.wc-go:hover { background: rgba(151,252,228,.08); }
.wc-x  { border: 1px solid #2a2a30; color: #8e8e96; }
.wc-x:hover { color: #d4d4d8; border-color: #5a5a62; }
.wc-hint { color: #5a5a62; font-size: 10px; margin-top: 10px; }

/* ─── order toast notification ───────────────────────────────────────── */
.helix-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 10000;
  min-width: 280px; max-width: 460px;
  background: #0a0a0c; border: 1px solid #2a2a30;
  color: #d4d4d8; padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}
.helix-toast.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.helix-toast.tx-ok  { border-color: rgba(151,252,228,.5); }
.helix-toast.tx-ok::before { content: "✓ "; color: #97fce4; }
.helix-toast.tx-err { border-color: rgba(239,68,68,.5); }
.helix-toast.tx-err::before { content: "✗ "; color: #ef4444; }
.helix-toast strong { color: #97fce4; font-weight: 600; }
.do-cta:disabled { opacity: .5; cursor: wait; }

/* ─── landing HLP stub modal ─────────────────────────────────────────── */
.hlp-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.hlp-modal[hidden] { display: none; }
.hlp-card {
  width: 460px; max-width: calc(100vw - 32px);
  background: #0a0a0c; border: 1px solid rgba(151,252,228,.18);
  padding: 22px 22px 18px;
  font-family: "IBM Plex Mono", monospace;
}
.hlp-head { color: #97fce4; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.hlp-sub  { color: #8e8e96; font-size: 11px; line-height: 1.5; margin-bottom: 14px; }
.hlp-label { display:block; color: #8e8e96; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.hlp-label span { color: #5a5a62; }
#hlp-amt {
  width: 100%; background: #050507; border: 1px solid #2a2a30; color: #d4d4d8;
  padding: 11px 12px; font-family: inherit; font-size: 14px; outline: none;
}
#hlp-amt:focus { border-color: rgba(151,252,228,.45); }
.hlp-meta { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; gap: 6px 10px; margin-top: 12px; font-size: 11px; }
.hlp-mk { color: #5a5a62; letter-spacing: .08em; }
.hlp-mv { color: #d4d4d8; text-align: right; }
.hlp-row { display: flex; gap: 8px; margin-top: 14px; }
.hlp-go, .hlp-x { flex: 1; padding: 10px 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.hlp-go { border: 1px solid #97fce4; color: #97fce4; }
.hlp-go:hover { background: rgba(151,252,228,.08); }
.hlp-go:disabled { opacity: .5; cursor: wait; }
.hlp-x  { border: 1px solid #2a2a30; color: #8e8e96; }
.hlp-x:hover { color: #d4d4d8; border-color: #5a5a62; }
.hlp-result { margin-top: 12px; font-size: 11px; color: #8e8e96; line-height: 1.5; min-height: 16px; }
.hlp-result.hlp-ok  { color: #97fce4; }
.hlp-result.hlp-err { color: #ef4444; }

/* CTAs on HLP panel */
.lp-vt-cta-row { display: flex; gap: 8px; margin-top: 16px; }
.lp-vt-cta {
  flex: 1; padding: 10px 0; background: transparent; cursor: pointer;
  border: 1px solid #2a2a30; color: #8e8e96;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.lp-vt-cta:hover { color: #d4d4d8; border-color: #5a5a62; }
.lp-vt-cta-primary { border-color: rgba(151,252,228,.45); color: #97fce4; }
.lp-vt-cta-primary:hover { background: rgba(151,252,228,.08); border-color: #97fce4; }

/* ─── mode badge (mock vs live) ──────────────────────────────────────── */
.mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .14em; padding: 4px 9px;
  border: 1px solid #2a2a30; color: #8e8e96;
  text-transform: uppercase;
}
.mode-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 8px #f59e0b88;
}
.mode-badge.mode-live { color: #97fce4; border-color: rgba(151,252,228,.5); }
.mode-badge.mode-live::before { background: #97fce4; box-shadow: 0 0 8px #97fce488; }
#lp-foot-mode { color: #8e8e96; }
#lp-foot-mode.mode-live { color: #97fce4; }
