/* Liquid Reserve — design system.
   Jet black, Geist throughout, liquid metal (silver with HYPE mint and Elysium sky). */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000000; --bg-2: #050506;
  --frame: #1a1a1b; --surface: #111112; --surface-2: #18181a; --surface-3: #222225; --face: #060607;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13); --line-3: rgba(255, 255, 255, 0.3);
  --ink: #f5f5f6; --ink-2: #a6a6ae; --ink-3: #82828c;
  --accent: #97fce4; --accent-2: #5ec4f2; --accent-ink: #04110f;
  --good: #3fd08f; --warn: #f0b445; --bad: #f07070;
  /* liquid metal: pooled highlights over banded steel. Moved with --lm-x / --lm-y. */
  --liquid:
    radial-gradient(ellipse 36% 44% at 16% 20%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 30% 38% at 84% 80%, rgba(151, 252, 228, 0.9), rgba(151, 252, 228, 0) 70%),
    radial-gradient(ellipse 32% 30% at 66% 16%, rgba(94, 196, 242, 0.75), rgba(94, 196, 242, 0) 72%),
    radial-gradient(ellipse 26% 34% at 34% 88%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 70%),
    conic-gradient(from 140deg at 48% 52%, #17191b, #a3adb3, #2b3034, #f0f4f5, #3b4348, #bcc8cd, #111315, #838e94, #17191b);
  --liquid-soft: conic-gradient(from 150deg at 50% 50%, #1c1d1f, #5d666b, #1f2224, #8e999e, #232628, #4c5559, #1c1d1f);
  --chrome-text: linear-gradient(100deg, #ffffff 0%, #c8d0d4 16%, #97fce4 36%, #7b8a92 50%, #5ec4f2 68%, #eef3f4 88%, #ffffff 100%);
  --mark-a: #ffffff; --mark-b: #97fce4; --mark-c: #5ec4f2;
  /* chart series (validated on --surface) */
  --s1: #1fa888; --s2: #3d8fe0; --s3: #d9662c; --s4: #9085e9; --s5: #c98500; --s6: #d55181;
  --grid: #1c1c1f; --axis: #303035;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  --radius: 14px;
  --rail: 88px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3f3; --bg-2: #eaecec;
  --frame: #e1e4e4; --surface: #ffffff; --surface-2: #f3f5f5; --surface-3: #e6e9e9; --face: #ffffff;
  --line: rgba(10, 20, 22, 0.09); --line-2: rgba(10, 20, 22, 0.16); --line-3: rgba(10, 20, 22, 0.36);
  --ink: #0b0c0d; --ink-2: #474b50; --ink-3: #686d73;
  --accent: #0c8a70; --accent-2: #1c7fc0; --accent-ink: #ffffff;
  --good: #0a7a45; --warn: #8f6400; --bad: #b83232;
  --liquid:
    radial-gradient(ellipse 36% 44% at 16% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 30% 38% at 84% 80%, rgba(15, 154, 123, 0.85), rgba(15, 154, 123, 0) 70%),
    radial-gradient(ellipse 32% 30% at 66% 16%, rgba(42, 143, 214, 0.7), rgba(42, 143, 214, 0) 72%),
    conic-gradient(from 140deg at 48% 52%, #5b6468, #dfe5e7, #77848a, #f7f9f9, #8a969b, #c9d2d5, #4a5256, #aab5ba, #5b6468);
  --liquid-soft: conic-gradient(from 150deg at 50% 50%, #c4cbce, #eef1f2, #b4bdc1, #f6f8f8, #c9d0d3, #dde3e5, #c4cbce);
  --chrome-text: linear-gradient(100deg, #0b0c0d 0%, #0c8a70 34%, #3d4a50 52%, #1c7fc0 72%, #0b0c0d 100%);
  --mark-a: #0a3a32; --mark-b: #0f9a7b; --mark-c: #2a8fd6;
  --s1: #0f9a7b; --s2: #2a78d6; --s3: #e0622d; --s4: #6250d6; --s5: #b87d00; --s6: #d6457f;
  --grid: #eceeee; --axis: #cdd2d3;
  --shadow: 0 24px 60px rgba(10, 20, 22, 0.16);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, canvas { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); } .dim { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.xl { font: 500 12px var(--mono); color: var(--accent-2); text-decoration: none; }
.xl:hover { text-decoration: underline; }
.up { color: var(--good); } .down { color: var(--bad); }

/* ───────── liquid metal ─────────
   A metal rim around a dark face. The rim's texture slides toward the pointer
   (app.js sets --lm-x / --lm-y), which is what makes it read as liquid. */
.lq, .btn.primary, .btn.chrome, .seggroup button.active, .seggroup a.segl.active, .panel-tabs button.active {
  --lm-x: 26%; --lm-y: 34%;
  position: relative; isolation: isolate; border: 0;
  background: var(--liquid); background-size: 210% 210%; background-position: var(--lm-x) var(--lm-y);
  transition: background-position 0.52s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}
.lq::before, .btn.primary::before, .btn.chrome::before, .seggroup button.active::before, .seggroup a.segl.active::before, .panel-tabs button.active::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit;
  background: var(--face); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
:root[data-theme="light"] :is(.lq, .btn.primary, .btn.chrome, .seggroup button.active, .seggroup a.segl.active, .panel-tabs button.active) { box-shadow: 0 6px 16px rgba(10, 20, 22, 0.14); }
.liquid-text, h1 em, h2 em {
  font-style: normal; background: var(--chrome-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }

/* ───────── shell ───────── */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 0 14px; background: var(--bg); border-right: 1px solid var(--line);
}
.rail .brand { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; }
.rail .item, .tabbar .item {
  display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--ink-3);
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em; border-radius: 12px;
}
.rail .item { width: 70px; padding: 10px 0 8px; }
.rail .item svg, .tabbar .item svg { width: 20px; height: 20px; }
.rail .item:hover { color: var(--ink); background: var(--surface); }
.rail .item.active, .tabbar .item.active { color: var(--ink); }
.rail .item.active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.rail .item.active svg, .tabbar .item.active svg { color: var(--accent); }
.rail .spacer { flex: 1; }
.rail .net { display: grid; justify-items: center; gap: 5px; font: 500 9px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.shell { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 clamp(16px, 3.2vw, 44px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.tb-brand { display: none; align-items: center; gap: 9px; text-decoration: none; }
.wordmark { font: 600 18px/1 var(--sans); letter-spacing: -0.025em; white-space: nowrap; }
.wordmark em { font-style: normal; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The moving price bar. The movement itself is started from app.js (layoutTicker), by an exact distance in pixels. */
.ticker { position: relative; flex: 1; min-width: 0; overflow: hidden; transform: translateZ(0); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker .track { display: flex; width: max-content; white-space: nowrap; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ticker .grp { display: flex; flex: none; gap: 34px; padding-right: 34px; }
/* "reduce motion": it stands still and can be swiped sideways */
.ticker.still { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ticker.still::-webkit-scrollbar { display: none; }
.ticker .t { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ticker .t b { font: 500 11px var(--sans); letter-spacing: 0.1em; color: var(--ink-3); }
.ticker .t span { font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker .t i { font-style: normal; color: var(--ink-3); font-size: 12px; }
.actions { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); text-decoration: none;
}
.iconbtn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.iconbtn svg { width: 17px; height: 17px; }

.tabbar {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 30; justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar .item { flex: 1; padding: 4px 0; font-size: 10.5px; }

main { flex: 1; padding: 0 clamp(16px, 3.2vw, 44px); }
.page { max-width: 1180px; margin: 0 auto; padding-block: 34px 72px; }
.page > section { margin-bottom: 76px; }
.page > section:last-child { margin-bottom: 0; }
.foot {
  margin: 0 clamp(16px, 3.2vw, 44px); padding: 26px 0 34px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px; color: var(--ink-2);
}
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
.foot .fine { flex-basis: 100%; color: var(--ink-3); font-size: 12px; }

/* ───────── primitives ───────── */
h1, h2, h3, h4 { margin: 0; }
h1, h2 { font-weight: 600; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.96; letter-spacing: -0.04em; overflow-wrap: break-word; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -0.032em; margin-bottom: 14px; overflow-wrap: break-word; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.lede { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 580px; margin: 0; }
.eyebrow, .label { display: flex; align-items: center; gap: 9px; font: 500 11px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 14px var(--sans); letter-spacing: -0.005em; padding: 10px 18px; border-radius: 11px; border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.btn.primary:hover, .btn.chrome:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(151, 252, 228, 0.12); }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); padding: 6px 11px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap;
}
.pill.live { color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot.off { background: var(--bad); }
.dot.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Double frame: a 4px outer frame around an inner panel with a hairline ring. */
.card {
  position: relative; border: 4px solid var(--frame); border-radius: var(--radius); padding: 20px;
  background: var(--surface) padding-box; box-shadow: inset 0 0 0 1px var(--line);
}
.card.chrome { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--liquid-soft) border-box; }
.card.pad-lg { padding: clamp(20px, 3vw, 34px); }
.card > p { margin: 8px 0 0; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Stake page: the chart beside the stake box; on a narrow screen the box comes first */
.stk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 14px; align-items: start; }
.stk-two { align-items: start; }
@media (max-width: 1200px) { .stk-grid { grid-template-columns: minmax(0, 1fr); } .stk-grid > .stk-box { order: -1; max-width: 560px; } }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-label { margin: 0 0 12px 4px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 18px 14px 16px; display: grid; gap: 6px; align-content: center; justify-items: center; text-align: center; min-height: 104px; }
.tile .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tile .v { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tile .s { font-size: 12px; color: var(--ink-3); }
.tile .spark { margin-top: 4px; height: 26px; width: 100%; }

.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv > span:first-child { color: var(--ink-2); }
.kv .r { text-align: right; font-weight: 600; }
/* a row whose value is a sentence rather than a figure: reads left to right, and stacks on a phone */
.kv.say { align-items: flex-start; }
.kv.say > span:first-child { flex: 0 0 130px; }
.kv.say .r { flex: 1; text-align: left; font-weight: 500; }
@media (max-width: 560px) { .kv.say { flex-direction: column; gap: 4px; } .kv.say > span:first-child { flex: none; } }
.asset-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.asset-row.head { border-top: 0; padding-top: 0; }
.asset-row .r { text-align: right; }

.seg { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; }
.seg i { display: block; min-width: 2px; }
.seg.tall { height: 28px; border-radius: 0; overflow: visible; }
.seg.tall i { border-radius: 4px; display: flex; align-items: center; padding-left: 8px; overflow: hidden; }
.seg.tall span { font: 600 12px var(--sans); color: #fff; font-style: normal; white-space: nowrap; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: -0.5px; }
.legend em { font-style: normal; color: var(--ink-3); }

.empty { padding: 30px 18px; text-align: center; color: var(--ink-2); }
.skeleton { display: inline-block; color: transparent; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.tip {
  position: fixed; z-index: 80; pointer-events: none; min-width: 150px; max-width: 280px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); font-size: 12.5px;
}
.tip .tt { color: var(--ink-3); font: 500 11px var(--sans); letter-spacing: 0.04em; margin-bottom: 6px; }
.tip .tr { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.tip .tr i { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tip .tr b { font-weight: 600; margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.tip .tr span { color: var(--ink-2); }

/* ───────── hero ───────── */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 26px 0 8px; }
.hero .lede { margin: 26px 0 30px; }
/* the home heading is the brand lockup: the droplet beside a two-line wordmark ("Liquid" in chrome, like .wordmark) */
.hero-brand { display: flex; align-items: center; gap: 0.06em; }
.hero-brand .mark { flex: none; width: 1.9em; height: 1.9em; margin-left: -0.44em; filter: drop-shadow(0 0.08em 0.3em rgba(94, 196, 242, 0.25)); }
.hero .actions { flex-wrap: wrap; gap: 10px; }
.hero .actions.buy { margin-bottom: 12px; }
.pagehead .actions { flex-wrap: wrap; gap: 10px; }
.vessel { position: relative; aspect-ratio: 1 / 1.02; min-height: 380px; border-radius: 22px; overflow: hidden; padding: 0; }
.vessel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vessel .hud { position: absolute; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.vessel .hud.top { top: 20px; align-items: flex-start; }
.vessel .hud.bot { bottom: 18px; }
.vessel .hud .chips { display: grid; gap: 6px; justify-items: end; }
.vessel .fig { font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.vessel .fig small { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.chip { font: 500 11px var(--sans); letter-spacing: 0.04em; padding: 6px 9px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip b { color: var(--ink); font-weight: 600; }
.pagehead { padding: 22px 0 6px; margin-bottom: 34px !important; }
.pagehead h1 { font-size: clamp(40px, 6vw, 80px); }
.pagehead .lede { margin-top: 20px; }

/* ───────── home ───────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step { padding: 20px; display: grid; gap: 8px; align-content: start; }
.step .n { font: 500 11px var(--sans); color: var(--ink-3); letter-spacing: 0.14em; }
.step .big { font: 600 34px/1 var(--sans); letter-spacing: -0.04em; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.checks { display: grid; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.check svg { width: 16px; height: 16px; flex: none; color: var(--good); }
.check.no svg { color: var(--bad); }
.check.todo svg { color: var(--ink-3); }
.check.todo { color: var(--ink-2); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; overflow: hidden; }
.banner h2 { margin: 0 0 8px; }
.banner .rings { position: absolute; right: -60px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); opacity: 0.7; pointer-events: none; }
.banner > * { position: relative; }
.rings circle { fill: none; stroke: var(--line-2); stroke-width: 1; }
.log { display: grid; }
.log .row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.log .row:first-child { border-top: 0; }
.log .t { font: 500 11.5px var(--mono); color: var(--ink-3); }

/* ───────── charts ───────── */
.filters { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seggroup { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; }
.seggroup button { border: 0; background: none; cursor: pointer; padding: 6px 13px; border-radius: 8px; font: 600 12.5px var(--sans); color: var(--ink-3); white-space: nowrap; }
.seggroup button:hover { color: var(--ink); }
.seggroup button.active { color: var(--ink); }
.seggroup a.segl { padding: 6px 16px; border-radius: 8px; font: 600 12.5px var(--sans); color: var(--ink-3); white-space: nowrap; text-decoration: none; }
.seggroup a.segl:hover, .seggroup a.segl.active { color: var(--ink); }
.seggroup.sm button { padding: 4px 10px; font-size: 11.5px; letter-spacing: 0.04em; }
.chartcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.chartcard .sub { color: var(--ink-3); font-size: 12.5px; margin: 2px 0 10px; }
.chart { position: relative; width: 100%; min-height: 240px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font: 500 11px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart text.endlabel { fill: var(--ink); font-weight: 600; font-size: 12px; }
.chart .hover { opacity: 0; pointer-events: none; }
.chart .bar { transition: opacity 0.1s; }
.chart.dimmed .bar { opacity: 0.45; } .chart.dimmed .bar.on { opacity: 1; }
details.tableview { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
details.tableview summary { cursor: pointer; font: 500 12px var(--sans); color: var(--ink-2); width: max-content; list-style: none; }
details.tableview summary::-webkit-details-marker { display: none; }
details.tableview summary::before { content: "＋ "; color: var(--ink-3); }
details.tableview[open] summary::before { content: "－ "; }
.tablewrap { overflow-x: auto; margin-top: 10px; }
table.data { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: right; padding: 9px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--ink-3); font: 500 10.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; border-top: 0; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td.l, table.data th.l { text-align: left; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.model { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; align-items: end; }
.ctrl { display: grid; gap: 8px; }
.ctrl label { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.ctrl label b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-3); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-3); }
select { font: 500 13.5px var(--sans); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; width: 100%; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); font-size: 13.5px; color: var(--ink-2); }
.notice b { color: var(--ink); }
.notice .dot { margin-top: 7px; background: var(--warn); }

/* ───────── flywheel ───────── */
.wheel { display: grid; grid-template-columns: minmax(300px, 1fr) 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.ring { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .orbit { fill: none; stroke: var(--line-2); stroke-width: 1; }
.ring .orbit.dash { stroke: var(--line-3); stroke-dasharray: 2 10; animation: spin 80s linear infinite; transform-origin: 280px 280px; }
.ring .runner { transform-origin: 280px 280px; animation: spin 26s linear infinite; }
.ring .runner circle { fill: var(--accent); }
.ring .runner.b { animation-duration: 26s; animation-delay: -8.6s; } .ring .runner.c { animation-delay: -17.3s; }
.ring .runner.b circle, .ring .runner.c circle { fill: var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.ring .st { cursor: pointer; }
.ring .st circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.2; transition: stroke 0.15s; }
.ring .st:hover circle { stroke: var(--line-3); }
.ring .st.on circle { stroke: var(--ink); stroke-width: 1.6; fill: var(--surface-2); }
.ring .st text { font: 600 15px var(--sans); fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; }
.ring .st.on text { fill: var(--ink); }
.ring .st .cap { font: 500 10.5px var(--sans); letter-spacing: 0.14em; fill: var(--ink-3); text-transform: uppercase; }
.ring .st.on .cap { fill: var(--ink); }
.ring .core { position: absolute; inset: 27%; display: grid; place-content: center; text-align: center; gap: 4px; pointer-events: none; }
.ring .core .big { font: 600 clamp(36px, 5.4vw, 60px)/1 var(--sans); letter-spacing: -0.04em; }
.ring .core .cap { font: 500 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.panel h3 { font: 600 clamp(24px, 2.8vw, 34px)/1.08 var(--sans); letter-spacing: -0.03em; margin-bottom: 10px; }
.panel ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.panel li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); }
.panel li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.panel li b { color: var(--ink); font-weight: 600; }
.panel .nav { display: flex; gap: 8px; margin-top: 20px; }
.cascade { display: grid; gap: 0; }
.cas { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.cas:first-child { border-top: 0; }
.cas .what b { display: block; font-size: 14.5px; }
.cas .what span { font-size: 12.5px; color: var(--ink-3); }
.cas .what .amt { font: 600 20px var(--sans); letter-spacing: -0.02em; margin-top: 6px; color: var(--ink); display: block; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 16px; margin-top: 10px; font-size: 12.5px; }
.parts div { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: baseline; padding: 3px 0; color: var(--ink-2); }
.parts i { width: 9px; height: 9px; border-radius: 3px; align-self: start; margin-top: 5px; }
.parts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ───────── docs ───────── */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.docnav { position: sticky; top: 82px; display: grid; gap: 2px; }
.docnav .grp { font: 500 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px 10px; }
.docnav .grp:first-child { margin-top: 0; }
.docnav a { text-decoration: none; color: var(--ink-2); font-size: 13.5px; padding: 6px 10px; border-radius: 8px; }
.docnav a:hover { color: var(--ink); background: var(--surface); }
.docnav a.active { color: var(--ink); background: var(--surface); box-shadow: inset 2px 0 0 var(--ink); }
.docsel { display: none; margin-bottom: 18px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1; margin-bottom: 14px; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; margin: 40px 0 10px; }
.prose h3 { margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-2); text-decoration: none; } .prose a:hover { text-decoration: underline; }
.prose code { font: 500 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose .tablewrap { margin: 6px 0 18px; }
.prose table.data { font-size: 13.5px; }
.prose table.data td, .prose table.data th { text-align: left; white-space: normal; vertical-align: top; }
.prose table.data td.n, .prose table.data th.n { text-align: right; white-space: nowrap; }
.prose .callout { box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.prose .callout p:last-child { margin: 0; }
.prose .callout.warn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.docfoot { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.swatch { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.swatch i { display: block; height: 62px; }
.swatch div { padding: 8px 10px; } .swatch b { display: block; } .swatch span { font-family: var(--mono); color: var(--ink-3); }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 18px; align-items: start; }
.asset { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.asset .pic { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.asset .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.asset .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; }

/* ───────── vaults ───────── */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-3); font-size: 13.5px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.vhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.vhead h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.035em; line-height: 1.05; }
.vhead .sub { margin-top: 6px; }
.vhead .badges { margin-left: auto; }
.pair { display: flex; flex: none; }
.coin {
  --lm-x: 30%; --lm-y: 30%;
  position: relative; isolation: isolate; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 600 11px var(--sans); letter-spacing: 0.02em; color: var(--ink);
  background: var(--liquid); background-size: 210% 210%; background-position: var(--lm-x) var(--lm-y);
}
.coin::before { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; z-index: -1; background: var(--face); box-shadow: inset 0 0 0 1px var(--line-2); }
.blogo { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; }
.coin img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; object-fit: contain; }
.coin.has-img { color: transparent; }
.coin + .coin { margin-left: -12px; }
.coin.sm { width: 34px; height: 34px; font-size: 9.5px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font: 500 10.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.on { color: var(--accent); }
.badge.warn { color: var(--warn); }

.vrow { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: center; text-decoration: none; padding: 16px 18px; transition: box-shadow 0.15s; }
a.vrow:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.vrow .name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vrow .name b { font-size: 17px; letter-spacing: -0.02em; display: block; }
.vrow .cell .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.vrow .cell .v { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.vlist { display: grid; gap: 10px; }

.position { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.position .fig { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin-top: 6px; }
.position .held { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.position .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.viewtoggle { display: flex; justify-content: center; margin: 22px 0 14px; }

.rangebar { position: relative; height: 62px; margin: 14px 0 6px; }
.rangebar .track { position: absolute; left: 0; right: 0; top: 34px; height: 8px; border-radius: 4px; background: var(--surface-3); }
.rangebar .band { position: absolute; top: 34px; height: 8px; border-radius: 4px; background: var(--ink); }
.rangebar .band.alt { background: var(--ink-3); opacity: 0.7; }
.rangebar .pin { position: absolute; top: 2px; transform: translateX(-50%); display: grid; justify-items: center; gap: 3px; }
.rangebar .pin b { font: 600 11.5px var(--sans); padding: 3px 7px; border-radius: 6px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rangebar .pin i { width: 2px; height: 22px; background: var(--accent); border-radius: 1px; }
.rangeends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rangeline { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.perf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.perf-top .big { font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.perf-top .nav { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.perf-top .side { display: grid; gap: 10px; justify-items: end; }
.navchart { position: relative; width: 100%; min-height: 250px; }
.navchart svg { display: block; width: 100%; overflow: visible; }
.navchart text { font: 500 11px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.navchart .hover { opacity: 0; pointer-events: none; }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.modal .sheet { width: min(440px, 100%); margin: auto; }
.modal .close { position: absolute; top: 10px; right: 10px; }
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); margin: 0 44px 16px 0; }
.panel-tabs button { font: 600 14px var(--sans); color: var(--ink-3); padding: 9px; border-radius: 9px; border: 0; background: none; cursor: pointer; }
.panel-tabs button.active { color: var(--ink); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.field .in { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 11px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.field .in:focus-within { box-shadow: inset 0 0 0 1px var(--line-3); }
.field input { flex: 1; width: 0; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 600 20px var(--sans); letter-spacing: -0.02em; }
.field .sym { font: 600 12.5px var(--sans); color: var(--ink-2); }
.maxbtn { font: 600 10.5px var(--sans); letter-spacing: 0.08em; color: var(--ink-2); background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.maxbtn:hover { color: var(--ink); }
.note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
.sum { display: grid; gap: 0; margin: 4px 0 14px; font-size: 13px; }
.sum .kv { padding: 7px 0; }
.msg { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface-2); overflow-wrap: anywhere; }
.msg.err { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); }
.msg.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); }

.orow { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.orow > div:first-child { flex: 1 1 260px; min-width: 0; }
.octl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.in.sm { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); width: 170px; }
.in.sm:focus-within { box-shadow: inset 0 0 0 1px var(--line-3); }
.in.sm.wide { width: min(400px, 78vw); } .in.sm.narrow { width: 104px; }
.in.sm input { flex: 1; width: 0; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 600 14px var(--sans); }
.in.sm input.mono { font: 500 12px var(--mono); }
.in.sm .sym { font: 600 11.5px var(--sans); color: var(--ink-3); }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model { grid-template-columns: 1fr 1fr; } .model .ctrl:first-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .rail { display: none; }
  .shell { margin-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: flex; }
  .tb-brand { display: flex; }
  .netpill { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 8px; }
  .topbar .actions { margin-left: auto; }
  /* On phones the soft edges are two overlays, not a mask: a mask over a moving strip inside the blurred, sticky bar flickers in mobile browsers. */
  .ticker { order: 3; flex-basis: 100%; mask-image: none; -webkit-mask-image: none; }
  .ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 1; pointer-events: none; }
  .ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
  .ticker.still::before, .ticker.still::after { display: none; }
  /* minmax(0, ...) and a definite width: otherwise the card's minimum height, through its aspect ratio, forces it
     (and with it the whole page and the top bar) wider than a phone's screen */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .vessel { width: 100%; min-width: 0; min-height: 340px; aspect-ratio: 1 / 0.86; }
  .tiles, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .three, .wheel { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docnav { display: none; } .docsel { display: block; }
  .cas { grid-template-columns: 1fr; gap: 10px; }
  .page > section { margin-bottom: 56px; }
  .vrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vrow .name { grid-column: 1 / -1; }
  .vrow .go { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .page { padding-block: 22px 56px; }
  .hide-sm { display: none !important; }
  .tile { min-height: 92px; padding: 14px 8px; }
  .tile .v { font-size: 21px; }
  .tiles.three { grid-template-columns: minmax(0, 1fr); }
  .asset-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .log .row { grid-template-columns: 1fr auto; } .log .t { grid-column: 1 / -1; }
  .model { grid-template-columns: 1fr; }
  .lede { font-size: 16px; }
  .vessel .hud.top .chip:last-child { display: none; }
  .btn.connect { padding: 8px 12px; font-size: 13px; }
  .tb-brand .wordmark { font-size: 16px; } /* so the name and the buttons share one row on a phone */
  .card { padding: 16px; border-width: 3px; }
  .vrow .cell .v { font-size: 16px; }
  .vhead .badges { margin-left: 0; flex-basis: 100%; }
  .position .acts { flex-basis: 100%; } .position .acts .btn { flex: 1; }
}
@media (max-width: 400px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .tb-brand .wordmark { display: none; } /* the smallest phones: the mark alone, so the top bar stays two rows */
}
@media (prefers-reduced-motion: reduce) {
  .ring .orbit.dash, .ring .runner, .skeleton, .liquid-text, h1 em, h2 em, .dot.pulse { animation: none; }
  .lq, .btn.primary, .btn.chrome, .coin { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- vault charts: price with liquidity ranges, liquidity map, list strip (js/vaultchart.js) ---------- */
.prc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.prc-now { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.prc-now b { font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -0.03em; }
.prc-now .dim { font-size: 12.5px; }
.prc-chart { position: relative; width: 100%; min-height: 250px; }
.prc-chart svg, .lmap svg { display: block; width: 100%; overflow: visible; }
.prc-chart text, .lmap text { font: 500 11px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.prc-chart rect.main { fill: var(--accent); fill-opacity: 0.14; }
.prc-chart rect.alt { fill: var(--accent-2); fill-opacity: 0.1; }
.prc-chart rect.empty { fill-opacity: 0; }
.prc-chart .main-edge { stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1; }
.prc-chart .alt-edge { stroke: var(--accent-2); stroke-opacity: 0.4; stroke-width: 1; stroke-dasharray: 3 3; }
.prc-chart .move { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 2 4; }
.prc-chart .move-mark { fill: var(--accent); }
.prc-chart .ref { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.prc-chart .px { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.prc-chart .px.out { stroke: var(--warn); }
.prc-chart .dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.prc-chart .nowtag rect { fill: var(--surface-3); stroke: var(--line-2); }
.prc-chart .nowtag text { fill: var(--ink); font-weight: 600; }
.prc-chart .hover { opacity: 0; pointer-events: none; }
.prc-chart .hover line { stroke: var(--line-3); stroke-width: 1; }
.prc-chart .hover circle { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.prc-legend, .lm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.prc-legend span, .lm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lm-legend b { font-weight: 600; color: var(--ink); }
.prc-legend i, .lm-legend i { flex: none; display: inline-block; }
i.ln { width: 16px; height: 2px; border-radius: 1px; background: var(--ink); }
i.ln.out { background: var(--warn); }
i.ln.ref { background: repeating-linear-gradient(90deg, var(--ink-3) 0 5px, transparent 5px 9px); }
i.bx { width: 14px; height: 10px; border-radius: 3px; }
i.bx.main { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent); }
i.bx.alt { background: color-mix(in srgb, var(--accent-2) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 55%, transparent); }
i.bx.idle { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.prc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.prc-stats:empty { display: none; }
.prc-stats .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.prc-stats .v { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; }
.prc-stats .s { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.lmap { margin: 14px 0 2px; min-height: 168px; }
.lmap .lm-main { fill: var(--accent); fill-opacity: 0.32; stroke: var(--accent); stroke-opacity: 0.8; stroke-width: 1; }
.lmap .lm-alt { fill: var(--accent-2); fill-opacity: 0.24; stroke: var(--accent-2); stroke-opacity: 0.7; stroke-width: 1; }
.lmap .empty { fill-opacity: 0; stroke-dasharray: 4 4; }
.lmap .lm-now { stroke: var(--ink); stroke-width: 2; }
.lmap .lm-tag rect { fill: var(--surface-3); stroke: var(--line-2); }
.lmap .lm-tag text { fill: var(--ink); font-weight: 600; }
.lmap tspan.dim { fill: var(--ink-3); }
.mini-range { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.mini-range .t { fill: var(--surface-3); }
.mini-range .m { fill: var(--accent); fill-opacity: 0.75; }
.mini-range .a { fill: var(--accent-2); fill-opacity: 0.5; }
.mini-range .p { fill: var(--ink); }
.mini-range.earning span { color: var(--good); }
.mini-range.waiting span, .mini-range.out span { color: var(--warn); }

/* ---------- liquid vessels and tubes: live positions (js/liquid.js, used by js/hedged.js) ---------- */
.lqv { display: block; }
.lqv svg { display: block; width: 100%; height: auto; overflow: visible; }
.lqv .glass { fill: var(--face); }
.lqv .rim { fill: none; stroke-width: 1.6; }
.lqv .glint { fill: none; stroke: var(--mark-a); stroke-width: 2; stroke-linecap: round; opacity: 0.5; }
.lqv .mark { stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; }
.lqv .mark.strong { stroke: var(--ink); stroke-width: 1.6; }
.lqv .float line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lqv .float circle { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.lqv .wave { animation: lqv-wave 7s linear infinite; }
.lqv .wave.b { animation-duration: 11s; animation-direction: reverse; }
@keyframes lqv-wave { to { transform: translateX(-90px); } }
.lqv .drip path { fill: var(--mark-b); }
.lqv .drip { animation: lqv-drip 3.6s cubic-bezier(0.5, 0, 0.9, 0.6) infinite; }
@keyframes lqv-drip { 0% { transform: translateY(-14px); opacity: 0; } 12%, 78% { opacity: 1; } 100% { transform: translateY(var(--lqv-fall, 80px)); opacity: 0; } }

.lqt { position: relative; height: 36px; border-radius: 999px; padding: 3px; border: 1.5px solid transparent; background: linear-gradient(var(--face), var(--face)) padding-box, var(--liquid-soft) border-box; }
.lqt .in { display: flex; gap: 2px; height: 100%; border-radius: 999px; overflow: hidden; }
.lqt .in i { display: flex; align-items: center; padding-left: 10px; min-width: 3px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 74%, #fff) 0%, var(--c) 46%, color-mix(in srgb, var(--c) 74%, #000) 100%); }
.lqt .in span { font: 600 12px var(--sans); color: #fff; font-style: normal; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.lqt .sheen { position: absolute; inset: 3px; border-radius: 999px; pointer-events: none; background: linear-gradient(100deg, transparent 0 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60% 100%); background-size: 260% 100%; animation: lqt-sheen 9s linear infinite; }
@keyframes lqt-sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }

.lq-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.lq-live .item { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; min-width: 0; }
.lq-live .item .lqv { width: min(112px, 100%); }
.lq-live .t { display: grid; gap: 3px; min-width: 0; }
.lq-live .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.lq-live .v { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lq-live .s { font-size: 12.5px; color: var(--ink-2); }
.statgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.statgrid .st { padding: 14px 14px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; align-content: start; min-width: 0; }
.statgrid .st .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.statgrid .st .v { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.statgrid .st .s { font-size: 12px; color: var(--ink-3); }
.statgrid .st.wait .v { color: var(--ink-3); }
@media (max-width: 760px) { .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lq-live { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lq-live .item { grid-template-columns: 78px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; column-gap: 16px; }
  .lq-live .item .lqv { width: 78px; }
}
@media (max-width: 400px) { .statgrid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lqv .wave, .lqt .sheen { animation: none; } .lqv .drip { display: none; } }


/* ---------- bubbles, streams and live pops: the Reserve page (js/liquid.js, js/reserve.js) ---------- */
.lqb { position: relative; display: block; width: 100%; }
.lqb svg { display: block; width: 100%; height: auto; overflow: visible; }
.lqb .glass { fill: var(--face); }
.lqb .rim { fill: none; stroke-width: 1.3; }
.lqb .glint { fill: none; stroke: var(--mark-a); stroke-width: 2.2; stroke-linecap: round; opacity: 0.42; }
.lqb .wave { animation: lqb-wave 8s linear infinite; }
.lqb .wave.b { animation-duration: 13s; animation-direction: reverse; }
@keyframes lqb-wave { to { transform: translateX(var(--lqb-w, -100px)); } }
.lqb .drip path { fill: var(--mark-b); }
.lqb .drip { animation: lqv-drip 3.6s cubic-bezier(0.5, 0, 0.9, 0.6) infinite; }
.lqb .in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 9%; }
.lqb.drop .in { inset: 38% 0 2% 0; padding: 0 12%; }
.lqb.drop .plate { padding: 7px 10px 8px; }
/* the words stand on a frosted plate, so they read the same whether or not the liquid has risen behind them */
.lqb .plate { display: grid; justify-items: center; gap: 3px; padding: 9px 13px 10px; border-radius: 14px; background: color-mix(in srgb, var(--face) 64%, transparent); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.lqb .in .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); opacity: 0.7; }
.lqb .in .v { font-size: clamp(19px, 2.3vw, 27px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.lqb .in .s { font-size: 12.5px; color: var(--ink); opacity: 0.82; line-height: 1.3; }

.lqs { display: grid; justify-items: center; gap: 6px; }
.lqs i { display: block; width: 7px; height: 44px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); background-color: var(--face);
  background-image: repeating-linear-gradient(180deg, transparent 0 9px, var(--mark-b) 9px 15px, var(--mark-c) 15px 19px, transparent 19px 28px); background-size: 100% 28px; animation: lqs-run 1.6s linear infinite; }
@keyframes lqs-run { to { background-position: 0 28px; } }
.lqs em { order: -1; font: 500 10.5px var(--sans); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding: 5px 10px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }

.lqp { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid transparent; cursor: pointer; font: 500 12px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--liquid-soft) border-box; animation: lqp-bob 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.lqp span { color: var(--accent); font-weight: 600; }
.lqp:hover, .lqp:focus-visible { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--liquid) border-box; }
.lqp.new { animation: lqp-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both, lqp-bob 5.5s ease-in-out 0.7s infinite; }
@keyframes lqp-bob { 50% { transform: translateY(-4px); } }
@keyframes lqp-pop { from { transform: scale(0.2); opacity: 0; } }

.rv-sources, .rv-core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rv-src, .rv-mid, .rv-side.drop { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rv-bub { width: min(190px, 72%); }
.rv-src .lqb.drop { width: 84%; margin: 0 auto; }
.rv-cap { display: grid; gap: 4px; margin-top: 12px; max-width: 36ch; }
.rv-cap b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.rv-cap span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.rv-split { width: min(300px, 100%); margin-top: 12px; }
.rv-split .lqt { height: 26px; }
.rv-split .lqt .in span { font-size: 10.5px; }
.rv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.rv-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.rv-pops { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 36px; margin-top: 14px; padding-top: 4px; }
.rv-none { font-size: 12.5px; color: var(--ink-3); }
.rv-more { margin-top: 6px; background: none; border: 0; padding: 4px 6px; color: var(--ink-3); font: 500 12px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-more:hover { color: var(--ink); }
.rv-src .lqs.tail { margin-top: auto; padding-top: 10px; }
.rv-pipe { display: grid; grid-template-columns: 1fr 1fr; height: 7px; margin: 0 calc(16.667% - 3px); }
.rv-pipe i { box-shadow: inset 0 0 0 1px var(--line-2); background-color: var(--face);
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, var(--mark-b) 9px 15px, var(--mark-c) 15px 19px, transparent 19px 28px); background-size: 28px 100%; animation: lqs-run-x 1.6s linear infinite; }
.rv-pipe .l { border-radius: 99px 0 0 99px; }
.rv-pipe .r { border-radius: 0 99px 99px 0; animation-direction: reverse; }
@keyframes lqs-run-x { to { background-position: 28px 0; } }
.rv-side { align-self: center; min-width: 0; }
.rv-side.drop { align-self: start; }
.rv-orb { width: min(300px, 94%); margin-top: 6px; }
.rv-orb .lqb .in .v { font-size: clamp(24px, 3vw, 36px); }
.rv-dropfig { width: min(168px, 60%); margin-top: 6px; }
.rv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rv-stats .st { padding: 14px 14px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; align-content: start; min-width: 0; }
.rv-stats .st .k, .rv-out .k { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rv-stats .st .v, .rv-out .v { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rv-stats .st .s, .rv-out .s { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.rv-yield { display: grid; justify-items: center; margin-top: 16px; }
.rv-outs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 10px; }
.rv-out { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.rv-out > i { border-radius: 99px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 66%, #fff), var(--c)); }
.rv-out > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.rv-yield .note { text-align: center; max-width: 76ch; }
.rv-fine .note { max-width: 96ch; }
@media (max-width: 860px) {
  .rv-sources, .rv-core { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .rv-pipe { display: none; }
  .rv-bub { width: min(190px, 54%); }
  .rv-core { margin-top: 26px; }
  .rv-mid { order: 1; } .rv-side.drop { order: 2; } .rv-side { order: 3; width: 100%; }
  .rv-orb { width: min(280px, 76%); }
  .rv-dropfig { width: min(150px, 42%); }
  .rv-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) { .rv-outs { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lqb .wave, .lqs i, .rv-pipe i, .lqp, .lqp.new { animation: none; } .lqb .drip { display: none; } }
.rv-dropfig .lqb .in .v { font-size: clamp(16px, 1.7vw, 20px); white-space: nowrap; }
.rv-dropfig .lqb .in .s { font-size: 11.5px; }

/* ───────── Earn page (js/earn.js): sections as words, a search, filters, a sortable table, coin and pool panels ───────── */
.estats { margin-bottom: 30px; }
.etabrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px 4px; }
.etabs { display: flex; gap: 6px 26px; align-items: baseline; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.etabs::-webkit-scrollbar { display: none; }
.etabs a { font: 600 24px var(--sans); letter-spacing: -0.03em; color: var(--ink-3); text-decoration: none; white-space: nowrap; padding: 4px 0; }
.etabs a:hover { color: var(--ink-2); }
.etabs a.active { color: var(--ink); }
.eblock { margin-bottom: 44px; }
.ectl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.esearch { flex: 1 1 260px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); cursor: text; }
.esearch:focus-within { box-shadow: inset 0 0 0 1px var(--line-3); }
.esearch svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.esearch input { flex: 1; min-width: 0; width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 500 15px var(--sans); }
.esearch input::-webkit-search-cancel-button { filter: grayscale(1); }
.esort { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.esort select { background: var(--surface); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 9px; padding: 7px 10px; font: 600 12.5px var(--sans); }
.echips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px; }
.echips::-webkit-scrollbar { display: none; }
.echip { border: 0; cursor: pointer; white-space: nowrap; padding: 7px 13px; border-radius: 999px; font: 600 12.5px var(--sans); color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.echip:hover { color: var(--ink); }
.echip .c { margin-left: 7px; color: var(--ink-3); font-weight: 500; }
.echip.on { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-3); }
.emore { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.emore[hidden] { display: none; }
.ef { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etable { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.erow { display: grid; grid-template-columns: 30px minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.8fr) minmax(0, 0.7fr) minmax(0, 0.85fr); gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; cursor: pointer; transition: background 0.12s; }
.erow:first-child { border-top: 0; }
.erow:hover, .erow:focus-visible { background: var(--surface-2); }
.erow.ehead { cursor: default; padding-block: 11px; background: var(--surface-2); }
.eh, .ehead .eh { font: 500 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.eh button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.eh button:hover { color: var(--ink); }
.eh[aria-sort="ascending"] button, .eh[aria-sort="descending"] button { color: var(--ink); }
.eh .arr { color: var(--accent); }
.eh.r, .ec.r { text-align: right; justify-content: flex-end; }
.eh.r button { justify-content: flex-end; }
.ec.vault { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ec .vt { min-width: 0; }
.ec .vname { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
a.vname:hover { text-decoration: underline; text-underline-offset: 3px; }
.ec .badges { margin-top: 5px; gap: 5px; }
.ec .badges .badge { padding: 3px 7px; font-size: 9.5px; }
.ec.kind { display: flex; flex-wrap: wrap; gap: 4px; }
.ec.r { font-size: 15px; font-weight: 600; }
.ec .you { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.ec.exit { font-size: 13px; color: var(--ink-2); }
.tokbtn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: inline-flex; }
.pair .tokbtn + .tokbtn { margin-left: -12px; }
.tokbtn:hover .coin, .tokbtn:focus-visible .coin { box-shadow: 0 0 0 2px var(--accent); }
.poolbtn { border: 0; cursor: pointer; white-space: nowrap; padding: 5px 9px; border-radius: 8px; font: 600 12px var(--sans); color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.poolbtn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.only-sm { display: none; }
.etable.stake .erow { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); }
.ewhat { margin-bottom: 14px; }
.ewhat p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.ewhat b { color: var(--ink); }
.einfo .sheet { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; position: relative; }
.ehead2 { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.ehead2 h3 { margin: 0 0 4px; }
.ehead2 .chip { margin-left: 4px; }
.bigcoin .coin, .ehead2 .pair .coin { width: 48px; height: 48px; font-size: 13px; }
.etiny .kv { padding: 8px 0; font-size: 13px; }
.elink { text-decoration: none; color: inherit; }
.elink:hover b { color: var(--accent); }
.elink svg { width: 14px; height: 14px; vertical-align: -2px; }
.xl svg { width: 12px; height: 12px; vertical-align: -1px; }
.small { font-size: 12px; }
.up { color: var(--good); } .down { color: var(--bad); }
@media (max-width: 980px) {
  .esort { display: flex; }
  .etabs a { font-size: 20px; }
  .etable .ehead { display: none; }
  .erow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 16px; }
  .erow .ec.n, .erow .ec.kind, .erow .ec.pool, .erow .ec.earned { display: none; }
  .erow .ec.vault { grid-column: 1 / -1; }
  .erow .ec.r { text-align: left; }
  .only-sm { display: inline-flex; }
  .ec .k.only-sm { display: block; font: 500 10px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .ec .poolbtn.only-sm { margin-top: 7px; }
  .etable.stake .erow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .etable.stake .ec.exit { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .etabs { gap: 2px 18px; flex-wrap: wrap; overflow: visible; }
  .etabs a { font-size: 18px; }
  .ec .vname { font-size: 15px; }
}

/* the chain menu (All chains, Elysium, HyperEVM) and the grouped categories */
.echain { position: relative; flex: none; }
.echain-btn { display: inline-flex; align-items: center; gap: 8px; }
.echain-btn .chev { color: var(--ink-3); font-size: 11px; }
.echain-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; display: grid; gap: 2px; }
.echain-menu[hidden] { display: none; }
.echain-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--ink-2); font: 600 14px var(--sans); padding: 10px 10px; border-radius: 9px; cursor: pointer; text-align: left; }
.echain-menu button:hover, .echain-menu button.on { background: var(--surface-2); color: var(--ink); }
.echain-menu .c { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.echain-menu .tick svg { width: 15px; height: 15px; color: var(--accent); }
.cdot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.cdot.c-elysium { background: linear-gradient(135deg, #b9a4ff, #6f7cff); }
.cdot.c-hyperevm { background: linear-gradient(135deg, #97fce4, #3fb8a0); }
.cdot.c-all { background: conic-gradient(#97fce4 0 50%, #8f8cff 50% 100%); }
.egroup { align-self: center; flex: none; font: 500 10px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 2px 0 10px; }
.ec.chg { font-size: 14px; }
@media (max-width: 980px) {
  .etabrow { align-items: flex-start; }
}
@media (max-width: 980px) {
  .echips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 560px) {
  .etabrow { flex-direction: column; align-items: stretch; gap: 10px; }
  .echain { align-self: flex-start; }
  .echain-menu { left: 0; right: auto; }
}

/* HyperEVM vaults (js/hypervaults.js): where the price sits in the main range, and the "as HYPE itself" boxes */
.hv-bar { position: relative; height: 8px; margin: 6px 0 12px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.hv-bar span { position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; border-radius: 3px; background: var(--accent); }
.hv-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 2px; line-height: 1.4; }
.hv-check input { margin-top: 2px; }
/* the chain a vault is on, under its name in the Earn page's table */
.ec .ech { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-2); }
.ec .ech .cdot { width: 14px; height: 14px; }
/* chain logos (site/chains/) where the chain dots were: round, cropped, no ring */
img.cdot { display: inline-block; object-fit: cover; background: none; box-shadow: none; }
.cdot2 { display: inline-flex; flex: none; }
.cdot2 img.cdot + img.cdot { margin-left: -4px; }
