/* Dark is the default, matching the landing page and brand; the toggle in the top bar sets
   data-theme="light" (index.html applies the saved choice before first paint). */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --card: #0e1117;
  --panel: #141821;
  --line: #1f2430;
  --line-strong: #2e3544;
  --text: #e9ecf2;
  --text-2: #c3c9d4;
  --muted: #98a1b0;
  --faint: #667085;
  --blue: #7aa2ff;
  --blue-soft: #16213d;
  --deployer: #8fc3fb;
  --platform: #8b95a7;
  --holder: #5ee2a0;
  --green: #4fd69c;
  --green-soft: #0f261c;
  --danger: #ff7a66;
  --danger-soft: #2c1412;
  --warn: #f0b45a;
  --warn-soft: #2a1f0e;
  --ink: #f2f4f8;
  --on-ink: #0b0d12;
  --ink-hover: #d9dfea;
  --ink-disabled: #2e3442;
  --on-ink-disabled: #9aa3b2;
  --hover: #1a1f29;
  --modal: #10131a;
  --shadow: rgb(0 0 0 / 0.45);
  /* The brand gradient from the banner and videos. */
  --grad: linear-gradient(120deg, #9cc2ff 10%, #5ee2a0 90%);
  --page-glow: radial-gradient(1100px 420px at 50% -180px, rgb(52 86 214 / 0.2), transparent 70%);
  --radius: 14px;
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --card: #eceef1;
  --panel: #ffffff;
  --line: #e1e4e9;
  --line-strong: #d3d7de;
  --text: #121418;
  --text-2: #3a3f47;
  --muted: #6a717d;
  --faint: #9aa1ab;
  --blue: #1157d6;
  --blue-soft: #e7effd;
  --platform: #c9d1dc;
  --holder: #68c39f;
  --green: #0b9a6a;
  --green-soft: #eef7f2;
  --danger: #c4321f;
  --danger-soft: #fdecea;
  --warn: #a15c00;
  --warn-soft: #fff4e5;
  --ink: #121418;
  --on-ink: #fff;
  --ink-hover: #2a2e36;
  --ink-disabled: #8a8d93;
  --on-ink-disabled: #fff;
  --hover: #f7f9fc;
  --modal: #f5f6f8;
  --shadow: rgb(16 24 40 / 0.12);
  --grad: linear-gradient(120deg, #1157d6 10%, #0b9a6a 90%);
  --page-glow: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page-glow) no-repeat, var(--bg); }
/* Brand-gradient text for the APYs on cards. Only on elements without a background of their own,
   which the clip would replace. */
.grad-text, .ec-stats b.blue, .bk-num b.blue, .oc-stats b.blue {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { cursor: not-allowed; }
input, select, textarea {
  font: inherit; color: var(--text); width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel);
  padding: 11px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { resize: vertical; min-height: 84px; }
svg.i { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mark { fill: currentColor; }

/* ---------- landing ---------- */
.landing {
  position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: #15171b; color: #fff;
}
.landing .stripes {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.022) 0 150px, transparent 150px 190px, rgb(0 0 0 / 0.06) 190px 330px, transparent 330px 360px),
    repeating-linear-gradient(90deg, transparent 0 90px, rgb(255 255 255 / 0.015) 90px 210px, transparent 210px 470px);
}
.landing .glow {
  position: absolute; inset: -10% -5% -25%; filter: blur(28px);
  background:
    radial-gradient(ellipse 125% 70% at 50% 118%, transparent 52%, rgb(52 86 214 / 0.62) 63%, rgb(150 170 212 / 0.42) 74%, transparent 88%),
    radial-gradient(40% 45% at 4% 88%, rgb(48 80 220 / 0.55), transparent 70%),
    radial-gradient(40% 45% at 96% 82%, rgb(58 92 220 / 0.5), transparent 70%),
    radial-gradient(28% 30% at 50% 42%, rgb(16 34 82 / 0.55), transparent 72%);
}
.landing .grain {
  position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.landing .social {
  position: absolute; top: 20px; right: 24px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  color: rgb(255 255 255 / 0.72); font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.12);
}
.landing .social:hover { color: #fff; border-color: rgb(255 255 255 / 0.3); }
.landing .social svg { width: 13px; height: 13px; }
.pill.icon-only { width: 32px; padding: 0; justify-content: center; }
.pill.icon-only svg { width: 13px; height: 13px; }
.landing .hero { position: relative; text-align: center; padding: 24px; max-width: 520px; }
.landing .brand-mark { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.landing .brand-mark svg { width: 17px; height: 17px; }
.landing h1 { font-weight: 500; font-size: clamp(28px, 4.2vw, 38px); letter-spacing: -0.03em; margin: 18px 0 14px; line-height: 1.1; }
.landing p { color: rgb(255 255 255 / 0.78); font-size: 14px; margin: 0 auto 24px; max-width: 400px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
  background: #fff; color: #111; font-weight: 600; box-shadow: 0 6px 24px rgb(0 0 0 / 0.3);
}
.btn-pill:hover { background: #eef1f6; }

/* ---------- modal ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: rgb(10 12 16 / 0.55); backdrop-filter: blur(6px);
}
.modal {
  position: relative; width: min(340px, 100%); background: var(--modal); color: var(--text);
  border-radius: 16px; padding: 36px 26px 22px; box-shadow: 0 24px 64px rgb(0 0 0 / 0.35); border: 1px solid var(--line);
}
.modal.wide { width: min(440px, 100%); text-align: left; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--muted); }
.modal .logo-lg { display: flex; justify-content: center; align-items: center; gap: 9px; font-weight: 600; font-size: 25px; letter-spacing: -0.03em; }
.modal .logo-lg svg { width: 28px; height: 28px; }
.modal h2 { text-align: center; font-size: 17px; font-weight: 500; margin: 22px 0 22px; }
.modal.wide h2 { text-align: left; margin: 0 0 6px; }
.option {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-align: left;
}
.option:hover { border-color: var(--line-strong); background: var(--hover); }
.option .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); flex: none; }
.option .tag { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.option .tag.on { background: var(--green-soft); color: var(--green); }
.modal .foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

/* ---------- app shell ---------- */
.topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.brand svg { width: 15px; height: 15px; }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
.tabs a:hover { color: var(--text); }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
}
.pill:hover { border-color: var(--line-strong); }
.pill.nowrap { white-space: nowrap; }
.pill .hide-sm { display: inline-flex; }
.pill .sep { width: 1px; height: 14px; background: var(--line); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px var(--shadow); z-index: 20;
}
.menu .label { font-size: 11px; color: var(--faint); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.menu a, .menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--hover); }
.menu .info { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.menu .info b { color: var(--text); font-weight: 500; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.page { max-width: 760px; margin: 0 auto; padding: 22px 16px 64px; }
.page.wide { max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 14px 0 0 14px; }
.back:hover { color: var(--text); }

/* ---------- dashboard ---------- */
.title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.title-row h1 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.coin-ico { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #2f6fe4, #63b6e8); }
.coin-ico.sm { width: 18px; height: 18px; font-size: 9px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); cursor: help; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; }
.stat .k { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 6px 9px 6px; }
.stat .v { background: var(--panel); border-radius: 11px; padding: 12px 11px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .v.green { color: var(--green); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.col { display: grid; gap: 10px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px; font-size: 14px; font-weight: 500; }
.panel-head .link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 12px; font-weight: 500; }
.panel-body { background: var(--panel); border-radius: 11px; padding: 12px; }
.panel-body + .panel-body, .filters + .panel-body { margin-top: 3px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; }
.chart-top b { font-weight: 500; font-size: 15px; }
.mini-select { width: auto; padding: 3px 24px 3px 8px; font-size: 11px; border-radius: 8px; appearance: none; background: var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2398a1b0' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 8px center; }
.chart { width: 100%; height: 130px; display: block; margin-top: 8px; }
.legend { margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 5px; }
.legend small { color: var(--muted); font-size: 11px; }
.legend div { font-weight: 500; }
.filters { display: flex; gap: 6px; padding: 6px 3px 3px; }
.events { list-style: none; margin: 0; padding: 0; min-height: 80px; }
.events li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.events li:last-child { border-bottom: 0; }
.events .kind { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: none; }
.events .when { margin-left: auto; color: var(--faint); white-space: nowrap; }
.events .when:hover { color: var(--blue); }
.events li.more { justify-content: center; border-bottom: 0; padding-top: 10px; }
.events li.more button { color: var(--blue); font-size: 12.5px; font-weight: 500; }
.empty { color: var(--muted); font-size: 12px; text-align: center; padding: 28px 0; }
.split-bar { display: flex; height: 22px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.split-bar span { display: flex; align-items: center; padding: 0 6px; font-size: 10.5px; font-weight: 600; color: #123; white-space: nowrap; overflow: hidden; }
.split-bar .d { background: var(--deployer); }
.split-bar .p { background: var(--platform); }
.split-bar .h { background: var(--holder); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tile { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.tile small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.tile small i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tile div { font-weight: 500; font-size: 14px; margin-top: 2px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 9px; padding: 3px; gap: 2px; margin-bottom: 10px; }
.seg button { padding: 4px 14px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px;
  border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600;
}
.btn:hover { background: var(--ink-hover); }
.btn:disabled { background: var(--ink-disabled); color: var(--on-ink-disabled); }
.btn.light { background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.round { width: 42px; padding: 0; flex: none; }

/* ---------- chooser and wizard ---------- */
.center-title { text-align: center; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 34px 0 20px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px; max-width: 420px; margin: 0 auto; box-shadow: 0 4px 16px var(--shadow); }
.choice { border: 1px solid var(--line); border-radius: 11px; padding: 20px 14px 16px; text-align: center; background: var(--panel); }
.choice:hover:not(:disabled) { border-color: var(--blue); background: var(--hover); }
.choice:disabled { opacity: 0.55; }
.choice .art { height: 30px; display: grid; place-items: center; margin-bottom: 8px; }
.choice b { display: block; font-weight: 500; font-size: 14px; }
.choice small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.45; }
.wizard { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px; box-shadow: 0 6px 24px rgb(16 24 40 / 0.06); }
.steps { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 6px 12px; }
.step { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.step .n { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--line-strong); color: var(--text); }
.step.on { color: var(--text); font-weight: 500; }
.step.on .n, .step.done .n { background: var(--blue); color: var(--on-ink); }
.step.done { color: var(--text); }
.wizard-body { background: var(--panel); border-radius: 14px; padding: 16px; display: grid; gap: 14px; }
.lbl { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.lbl .i { color: var(--faint); }
.lbl.big { font-size: 15px; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop {
  border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--hover); padding: 22px; text-align: center;
  display: grid; justify-items: center; gap: 6px; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop b { font-weight: 500; }
.drop small { color: var(--muted); }
.drop img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.slider { position: relative; padding: 2px; border: 1px solid var(--line); border-radius: 9px; }
.slider .split-bar { border: 0; height: 24px; }
.slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.suffix { position: relative; }
.suffix input { padding-right: 34px; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cost { display: flex; justify-content: space-between; background: var(--bg); border-radius: 10px; padding: 13px 16px; color: var(--muted); }
.cost b { color: var(--text); font-weight: 500; }
.actions { display: flex; gap: 10px; }
.actions .btn:last-child { flex: 1; }
.docs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.docs h2 { font-size: 16px; font-weight: 500; margin: 18px 0 6px; }
.docs h2:first-child { margin-top: 0; }
.docs p, .docs li { color: var(--text-2); }
.docs code { font-size: 12px; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.docs table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.docs td, .docs th { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs th { color: var(--muted); font-weight: 500; }
.method { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 600; color: var(--blue); }
.empty-state { text-align: center; padding: 60px 16px; }
.empty-state p { color: var(--muted); }

#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); z-index: 40; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 8px 24px var(--shadow); }
.toast.error { border-left-color: var(--danger); }
.toast a { color: var(--blue); }

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .two { grid-template-columns: minmax(0, 1fr); }
  /* The tabs move to their own scrollable row under the brand and buttons. */
  .topbar-inner { gap: 12px; height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .tabs { order: 3; width: 100%; height: 40px; overflow-x: auto; scrollbar-width: none; margin-left: -10px; }
  .tabs a { flex: none; }
  .topbar .brand { flex: none; }
  .topbar .right { flex: 1 1 0; min-width: 0; justify-content: flex-end; gap: 6px; }
  .choices { grid-template-columns: 1fr; }
  .pill .hide-sm { display: none; }
}

/* ---------- Stablepad additions: cluster, baskets, beta ---------- */
.link-light { margin-top: 14px; color: rgb(255 255 255 / 0.7); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-light:hover { color: #fff; }
.beta-note { margin-top: 16px; font-size: 12px; color: rgb(255 255 255 / 0.6); }
.cluster-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.cluster-tag.beta { background: var(--warn-soft); color: var(--warn); }
.kind-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.coin-ico.basket { background: linear-gradient(135deg, #0b9a6a, #68c39f); }
table.comp { width: 100%; border-collapse: collapse; font-size: 13px; }
table.comp th, table.comp td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.comp th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.comp .num { text-align: right; font-variant-numeric: tabular-nums; }
.comp-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.comp-row select { flex: 1; }
.comp-row .weight { width: 110px; flex: none; }
.comp-foot { display: flex; justify-content: space-between; align-items: center; }
.comp-foot .link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 13px; font-weight: 500; }
.hint.warn { color: var(--warn); }
.btn.round.sm { width: 34px; height: 34px; }

/* ---------- asset catalog: picker, table, allocation ---------- */
/* ---------- memecoins ---------- */
.meme-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 90px; align-items: center; gap: 12px; padding: 8px 2px; color: inherit; }
.meme-row + .meme-row { border-top: 1px solid var(--line); }
.meme-row:hover .mr-name b { color: var(--blue); }
.meme-row .coin-ico { width: 30px; height: 30px; }
.mr-name { min-width: 0; }
.mr-name b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-name small, .mr-cap small { color: var(--muted); font-size: 11px; }
.mr-cap { text-align: right; }
.mr-cap b { display: block; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.mr-progress, .curve-bar { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.mr-progress i, .curve-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.curve-bar { height: 10px; }
.meme-pair { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.meme-pair:hover { color: var(--text); border-color: var(--line-strong); }
.fee-rows > div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.fee-rows > div + div { border-top: 1px solid var(--line); }
.fee-rows span { display: inline-flex; align-items: center; gap: 8px; }
.fee-rows i { width: 8px; height: 8px; border-radius: 50%; }
.center-sub { max-width: 560px; margin: -6px auto 16px; text-align: center; }
@media (max-width: 720px) {
  .meme-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .meme-row .mr-progress { display: none; }
}

.holder-row { display: grid; grid-template-columns: 110px auto 1fr 56px; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.holder-row + .holder-row { border-top: 1px solid var(--line); }
.holder-row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.holder-tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.holder-row:not(:has(.holder-tag)) { grid-template-columns: 110px 1fr 56px; }
.holder-bar { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.holder-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
a.addr { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.addr:hover { color: var(--blue); }

@media (max-width: 720px) {
  /* Trading comes first on a phone. */
  .meme-page .cols > .col:last-child { order: -1; }
  #wallet-pill { white-space: nowrap; }
  #wallet-pill .sep, #wallet-pill .i { display: none; }
  /* The X link steps aside on phones; the theme toggle stays. */
  .topbar a.pill.icon-only { display: none; }
}

/* ---------- docs and API pages ---------- */
.docs-page { max-width: 860px; }
.docs-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.docs .lede { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.docs h2 { font-size: 17px; margin: 30px 0 8px; padding-top: 6px; scroll-margin-top: 70px; }
.docs ul { padding-left: 18px; }
.docs li { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; border-bottom: 1px solid var(--line); }
.toc button { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.toc button:hover { color: var(--text); border-color: var(--line-strong); }
.ep { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--panel); }
.ep-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ep-head code { font-size: 13px; background: none; padding: 0; color: var(--text); }
.ep p { margin: 6px 0 0; font-size: 13px; }
.ep-params { color: var(--muted) !important; font-size: 12.5px !important; }
.ep-params span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-right: 4px; }
.method { display: inline-block; min-width: 42px; text-align: center; padding: 2px 6px; border-radius: 6px; }
.method.m-get { background: var(--green-soft); color: var(--green); }
.method.m-post { background: var(--blue-soft); color: var(--blue); }
pre.code { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #0f1115; color: #e6e9ef; font-size: 11.5px; line-height: 1.5; overflow-x: auto; white-space: pre; }
.fig { margin: 14px 0 6px; overflow-x: auto; }
.fig figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
svg.diagram { width: 100%; min-width: 620px; height: auto; display: block; }
svg.diagram text { font-family: inherit; }
.d-box rect { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1.2; }
.d-box.tone-blue rect { fill: var(--blue-soft); stroke: var(--blue); }
.d-box.tone-green rect { fill: var(--green-soft); stroke: var(--green); }
.d-box.tone-soft rect { fill: var(--bg); }
.d-label { font-size: 12.5px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.d-sub { font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.d-note { font-size: 11px; fill: var(--blue); text-anchor: middle; font-weight: 500; }
.d-cap { font-size: 11.5px; fill: var(--muted); }
.d-note.start { text-anchor: start; }
.d-in { font-size: 11px; font-weight: 700; fill: var(--on-ink); text-anchor: middle; }
.d-line { stroke: var(--blue); stroke-width: 1.5; }
.d-line.dashed { stroke-dasharray: 5 4; }
.d-head { fill: var(--blue); }
.d-group { fill: none; stroke: var(--line-strong); stroke-dasharray: 6 5; }
.d-axis { stroke: var(--line-strong); stroke-width: 1.2; }
.d-rate { stroke: var(--blue); stroke-width: 2.2; }
.d-hwm { stroke: var(--muted); stroke-dasharray: 4 4; }
.d-fill { fill: rgb(17 87 214 / 0.12); }
.seg-dep { fill: var(--deployer); }
.seg-plat { fill: var(--platform); }
.seg-hold { fill: var(--holder); }
.d-range { fill: var(--blue-soft); stroke: var(--blue); }
.d-now { stroke: var(--text); stroke-width: 1.6; }
.d-life { stroke: var(--line-strong); stroke-dasharray: 4 4; }

/* ---------- social links ---------- */
.socials { display: inline-flex; gap: 4px; }
.socials:empty { display: none; }
.social-link { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.social-link:hover { color: var(--text); border-color: var(--line-strong); }
.social-link svg { width: 14px; height: 14px; }
.social-link svg.mark { fill: currentColor; }
.links-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.links-box summary { cursor: pointer; font-size: 13px; font-weight: 500; }
.links-box summary .muted { color: var(--faint); font-weight: 400; margin-left: 4px; }
.links-box[open] summary { margin-bottom: 10px; }

/* ---------- Jupiter pool ---------- */
.pool-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pool-links .btn { text-decoration: none; }

/* ---------- backing ---------- */
.backing-panel { margin-bottom: 10px; }
.backing-row { display: grid; grid-template-columns: auto minmax(0, 1fr) repeat(var(--cols, 3), minmax(64px, auto)); align-items: center; gap: 14px; padding: 6px 2px; }
.backing-row + .backing-row { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.bk-name { min-width: 0; }
.bk-name b { display: block; font-weight: 500; }
.bk-name small { color: var(--muted); font-size: 12px; }
.bk-num { text-align: right; }
.bk-num small { display: block; font-size: 11px; color: var(--muted); }
.bk-num b, .bk-num a { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.bk-num a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.bk-num a:hover { color: var(--blue); }
.bk-num b.blue { color: var(--blue); }
@media (max-width: 720px) {
  .backing-row { grid-template-columns: auto minmax(0, 1fr) repeat(2, auto); gap: 10px; }
  .backing-row .opt { display: none; }
}

/* ---------- explore ---------- */
.hint.lead { margin: -6px 0 14px; }
.count-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.explore-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.explore-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px var(--shadow); }
.ec-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ec-head .coin-ico { width: 34px; height: 34px; font-size: 13px; }
.ec-name { min-width: 0; flex: 1; }
/* On cards the frozen-split tag is just the lock; its title says what it means. */
.frozen-tag.lock-only { padding: 4px; }
.frozen-tag.lock-only .i { width: 13px; height: 13px; }
.ec-name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; line-height: 1.25; }
.ec-name small { color: var(--muted); font-size: 12px; }
.frozen-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.frozen-tag .i { width: 12px; height: 12px; }
.ec-backing { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-backing > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--bg); font-size: 12px; }
.ec-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.ec-stats small { display: block; font-size: 11px; color: var(--muted); }
.ec-stats b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ec-stats b.blue { color: var(--blue); }
.asset-ico.xs { width: 18px; height: 18px; font-size: 7px; }
.asset-ico.xs .proto { display: none; }

.asset-ico { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #123; letter-spacing: -0.02em; }
.asset-ico.sm { width: 20px; height: 20px; font-size: 8.5px; }
.muted { color: var(--muted); }
.picker { position: relative; }
.picker-btn { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); padding: 10px 14px; text-align: left; }
.picker-btn b { font-weight: 500; }
.picker.open .picker-btn, .picker-btn:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }
.picker-btn .chev { margin-left: auto; display: grid; color: var(--muted); }
.picker-list { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px var(--shadow); max-height: 380px; overflow-y: auto; }
.picker.open .picker-list { display: grid; gap: 2px; }
.picker-opt { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; text-align: left; }
.picker-opt:hover, .picker-opt.on { background: var(--bg); }
.picker-opt.on b { color: var(--blue); }
.picker-opt b { font-weight: 500; }
.picker-opt small { color: var(--faint); font-size: 11.5px; }
/* The backing picker groups its options by stablecoin. */
.picker-group { padding: 10px 10px 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.picker-group:first-child { padding-top: 4px; }
.apy-chip { font-size: 11.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.picker-opt.on .apy-chip { background: var(--panel); }
.sel-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.check-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.check-card:hover { border-color: var(--line-strong); }
.check-card input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--blue); }
.check-card b { display: flex; align-items: center; gap: 5px; font-weight: 500; }
.check-card b .i { color: var(--faint); }
.check-card small { display: block; color: var(--muted); font-size: 12px; }
.seg button:disabled { opacity: 0.45; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.asset-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.asset-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; padding: 6px 8px; }
.asset-table td { padding: 10px 8px; border-top: 1px solid var(--line); }
.asset-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset-table td.apy { color: var(--blue); }
.asset-table tr[data-mint] { cursor: pointer; }
.asset-table tr[data-mint]:hover td, .asset-table tr.on td { background: var(--hover); }
.asset-table input[type=checkbox] { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--blue); pointer-events: none; }
.asset-cell { display: flex; align-items: center; gap: 10px; }
.asset-cell b { font-weight: 500; display: block; }
.asset-cell small { color: var(--muted); font-size: 11.5px; }
.alloc { display: grid; gap: 8px; margin-bottom: 8px; }
.alloc-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; }
.alloc-name { flex: 1; min-width: 0; }
.alloc-name b { display: block; font-weight: 500; }
.alloc-name small { color: var(--muted); font-size: 11.5px; }
.alloc-row .weight { width: 104px; flex: none; }
.seg-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.seed-seg { margin: 0; flex: none; align-self: stretch; align-items: center; }
.frozen-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 10px; }
.freeze-box { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.freeze-box div { flex: 1; }
.freeze-box b { font-weight: 500; display: block; }
.freeze-box small { color: var(--muted); font-size: 12px; }
.freeze-box .btn { display: inline-flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 720px) {
  .asset-table th:nth-child(5), .asset-table td:nth-child(5) { display: none; }
}

/* ---------- React Bits chooser cards (web/fx/chooser.tsx) ---------- */
.fx-choices .fx-choice-card { padding: 0; border-radius: 11px; }
.fx-choices .choice { width: 100%; height: 100%; border-color: transparent; background: transparent; }
.fx-choices .choice:hover:not(:disabled) { border-color: transparent; background: transparent; }

/* ---------- coin logos (public/logos) ---------- */
.asset-ico.logo { position: relative; background: transparent; overflow: visible; }
.asset-ico.logo > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.asset-ico.logo > b { display: none; }
.asset-ico.logo.broken { background: var(--fallback); }
.asset-ico.logo.broken > img:first-child { display: none; }
.asset-ico.logo.broken > b { display: grid; place-items: center; width: 100%; height: 100%; font-size: inherit; }
.asset-ico .proto { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--panel); background: var(--panel); object-fit: cover; }
.asset-ico.sm .proto { width: 10px; height: 10px; right: -2px; bottom: -2px; }
.note-tag { color: var(--warn); border-bottom: 1px dotted currentColor; cursor: help; }

/* Landing "Payments" card: keep USDC → jlUSDC → your token on one line in narrow cards. */
.fx-viz.fx-viz-flow { flex-wrap: nowrap; gap: 5px; }
.fx-viz-flow .fx-chip { padding: 4px 8px; font-size: 11px; white-space: nowrap; }

/* Docs diagrams keep a readable width and scroll sideways on phones; say so. */
@media (max-width: 660px) {
  .fig::before { content: "Swipe to see the whole diagram →"; display: block; position: sticky; left: 0; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
}

/* Meme launch: the optional first buy. */
.first-buy { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.first-buy .hint { margin: 0; }

/* Meme page: how full the quote token's Jupiter pool is. */
.pool-fill { display: grid; gap: 6px; margin-top: 10px; }

/* The $YIELD page. */
.token-page { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.token-hero { text-align: center; padding: 40px 24px 26px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, var(--blue-soft) 0%, var(--panel) 62%); }
.token-hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.token-hero .ticker { margin: 6px 0 10px; font-size: clamp(54px, 13vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.token-hero .lede { max-width: 620px; margin: 0 auto; color: var(--text-2); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 18px; }
.hero-actions .btn { display: inline-flex; align-items: center; }
.btn.soon { background: var(--panel); color: var(--muted); border: 1px dashed var(--line-strong); cursor: default; }
.ca-box { display: grid; gap: 6px; max-width: 640px; margin: 0 auto; text-align: left; }
.ca-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 13px; }
.ca-row .ca-label { font-weight: 600; min-width: 74px; }
.ca-row .addr { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.token-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat .v.blue { color: var(--blue); }
.source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.source-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.source-card b { font-weight: 600; }
.source-card p { margin: 6px 0 0; font-size: 13px; }
@media (max-width: 560px) {
  /* Three compact numbers a row on phones, not six stacked cards. */
  .token-stats { gap: 6px; }
  .token-stats .stat .k { font-size: 10.5px; padding: 5px 7px; }
  .token-stats .stat .v { font-size: clamp(12px, 3.7vw, 15px); padding: 9px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .token-hero { padding: 30px 16px 20px; }
}

/* Small phones: the brand, token and wallet buttons fill the top row, so the cluster tag steps aside. */
@media (max-width: 420px) {
  .topbar .cluster-tag { display: none; }
}

/* Basket wizard: the stablecoin choice as a grid of chips above the asset table. */
.base-pick { display: grid; gap: 10px; background: var(--bg); border-radius: 12px; padding: 12px; }
.base-head b { display: block; font-weight: 500; font-size: 13px; }
.base-head small { color: var(--muted); font-size: 12px; }
.base-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.base-chip { display: grid; justify-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.15s, background 0.15s; }
.base-chip img, .base-chip .base-dot { width: 22px; height: 22px; border-radius: 50%; }
.base-chip .base-dot { background: var(--line-strong); }
.base-chip b { font-weight: 500; font-size: 13px; }
.base-chip small { color: var(--muted); font-size: 11px; }
.base-chip:hover:not(:disabled) { border-color: var(--line-strong); }
.base-chip.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.base-chip.on small { color: var(--blue); }
.base-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.base-chip:disabled img { filter: grayscale(1); }
.pick-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 500; margin-bottom: -8px; }

/* Explore: Stablepad's official stablecoin, featured above the grid. */
.official-tag { display: inline-flex; align-items: center; gap: 5px; width: fit-content; font-size: 11px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.official-tag .i { width: 12px; height: 12px; }
.official-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 12px; padding: 18px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); background: radial-gradient(120% 140% at 0% 0%, var(--blue-soft) 0%, var(--panel) 58%); box-shadow: 0 8px 26px rgb(17 87 214 / 0.08); }
.oc-main { display: grid; gap: 10px; min-width: 0; }
.oc-head { display: flex; align-items: center; gap: 12px; color: inherit; }
.oc-head .coin-ico { width: 46px; height: 46px; font-size: 17px; }
.oc-head b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.oc-head small { color: var(--muted); font-size: 12.5px; }
.oc-main p { margin: 0; color: var(--text-2); font-size: 13px; max-width: 520px; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-stats { display: grid; gap: 8px; min-width: 170px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.oc-stats small { display: block; font-size: 11px; color: var(--muted); }
.oc-stats b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.oc-stats b.blue { color: var(--blue); }
@media (max-width: 620px) {
  .official-card { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .oc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .oc-stats b { font-size: 15px; }
}

/* Loops: routes with live rates, and loop vaults people can loop into or launch against. */
.loops-page { max-width: 960px; }
.section-h { font-size: 15px; font-weight: 500; margin: 22px 0 10px; }
.route-list { display: grid; gap: 10px; }
.route-card { display: grid; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.route-card .hint { margin: 0; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rc-head b { display: block; font-size: 16px; font-weight: 500; }
.rc-head small { color: var(--muted); font-size: 12px; }
.rc-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-rates > div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.rc-rates small { display: block; color: var(--muted); font-size: 11px; }
.rc-rates b { font-weight: 500; font-variant-numeric: tabular-nums; }
.rc-apys { display: flex; flex-wrap: wrap; gap: 6px; }
.apy-chip.neg { color: var(--danger); }
.coin-ico.loop { width: 34px; height: 34px; font-size: 10px; background: var(--grad); color: #0b0d12; }
.lev-tag { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; cursor: help; }
.loop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loop-actions { display: flex; flex-wrap: wrap; gap: 6px; }
input[type=range]#lev { padding: 0; accent-color: var(--blue); }
@media (max-width: 560px) {
  .rc-rates { grid-template-columns: 1fr 1fr; }
  .rc-head { flex-wrap: wrap; }
}
.warn-text { color: var(--warn); }
