/* ===== Nexus AI — design tokens ===== */
:root {
  /* Base — cool deep blue-black */
  --bg-0: oklch(0.12 0.015 225);
  --bg-1: oklch(0.16 0.02 225);
  --bg-2: oklch(0.20 0.022 225);
  --bg-3: oklch(0.24 0.025 225);
  --surface: oklch(0.18 0.02 225);
  --surface-hi: oklch(0.22 0.025 225);
  --border: oklch(0.30 0.03 225);
  --border-hi: oklch(0.42 0.05 200);

  /* Text */
  --text-0: oklch(0.97 0.01 220);
  --text-1: oklch(0.82 0.02 220);
  --text-2: oklch(0.62 0.025 220);
  --text-3: oklch(0.48 0.02 220);

  /* Accent — cyan / teal */
  --cyan: oklch(0.82 0.14 195);
  --cyan-hi: oklch(0.90 0.15 195);
  --cyan-lo: oklch(0.55 0.12 195);
  --cyan-glow: oklch(0.82 0.14 195 / 0.25);
  --cyan-dim: oklch(0.82 0.14 195 / 0.12);

  /* Secondary accent — warm amber for sells/down */
  --amber: oklch(0.78 0.16 60);
  --amber-lo: oklch(0.60 0.14 55);
  --amber-dim: oklch(0.78 0.16 60 / 0.15);

  /* Up/down semantic */
  --up: oklch(0.82 0.14 195);
  --down: oklch(0.72 0.18 35);

  /* Type */
  --ff-sans: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.35 0.08 195 / 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, oklch(0.30 0.06 230 / 0.22), transparent 60%);
  background-attachment: fixed;
}

.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.num  { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, oklch(0.18 0.02 225 / 0.8), oklch(0.14 0.02 225 / 0.4));
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}
.brand-name {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--text-0);
}
.brand-name em {
  font-style: normal;
  color: var(--cyan);
}
.brand-sub {
  font-size: 10px; color: var(--text-3);
  letter-spacing: 0.2em; text-transform: uppercase;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  transition: all 120ms ease;
}
.icon-btn:hover { border-color: var(--border-hi); color: var(--cyan); }
.badge-dot {
  position: relative;
}
.badge-dot::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--cyan-hi), var(--cyan));
  color: oklch(0.15 0.02 225);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px oklch(0.90 0.15 195 / 0.5), 0 4px 16px oklch(0.60 0.14 195 / 0.35);
  transition: all 150ms ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px oklch(0.90 0.15 195 / 0.7), 0 8px 24px oklch(0.60 0.14 195 / 0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-0);
  font-size: 13px;
  white-space: nowrap;
  transition: all 120ms ease;
}
.btn-ghost:hover { border-color: var(--cyan-lo); background: var(--surface-hi); }
.btn-ghost.accent { border-color: oklch(0.55 0.12 195 / 0.6); color: var(--cyan); }
.btn-ghost.accent:hover { background: var(--cyan-dim); }

/* Grid shell */
.shell {
  max-width: 1580px; margin: 0 auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* Panel */
.panel {
  background: linear-gradient(180deg, var(--surface), oklch(0.16 0.02 225));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 oklch(0.35 0.03 200 / 0.35);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.panel-title .chev {
  color: var(--cyan);
  font-size: 10px;
}
.panel-title .en {
  font-family: var(--ff-mono);
  color: var(--cyan);
  font-weight: 500;
  margin-left: 6px;
}
.panel-body { padding: 14px 16px; }

/* Tabs / pill segmented */
.seg {
  display: inline-flex;
  padding: 3px;
  background: oklch(0.14 0.02 225);
  border-radius: 999px;
  border: 1px solid var(--border);
  gap: 0;
  flex-shrink: 0;
}
.seg button {
  padding: 4px 8px;
  font-size: 10.5px;
  color: var(--text-2);
  border-radius: 999px;
  font-family: var(--ff-mono);
  transition: all 120ms ease;
  white-space: nowrap;
}
.seg button.active {
  background: var(--cyan);
  color: oklch(0.15 0.02 225);
  font-weight: 600;
}
.seg button:hover:not(.active) { color: var(--text-0); }

/* Span classes */
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-12 { grid-column: span 12; }

/* Balance card */
.balance-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 0;
  flex-wrap: wrap;
}
.balance-label {
  font-size: 11px; color: var(--text-2);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.balance-big {
  font-family: var(--ff-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.balance-big .unit {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.pnl-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-2);
}
.pnl-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
}
.pnl-chip.down { background: oklch(0.72 0.18 35 / 0.15); color: var(--down); }

.balance-actions { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }

/* Chart container */
.chart-wrap {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 16px;
  align-items: center;
}
.line-chart { position: relative; height: 140px; }
.line-chart svg { display: block; width: 100%; height: 100%; }
.range-pills {
  display: flex; gap: 4px;
  margin-top: 8px;
}
.range-pills button {
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--ff-mono);
  color: var(--text-3);
  border-radius: 4px;
  transition: all 120ms;
}
.range-pills button.active { color: var(--cyan); background: var(--cyan-dim); }
.range-pills button:hover:not(.active) { color: var(--text-1); }

.donut { display: grid; place-items: center; }
.donut-center {
  position: absolute;
  text-align: center;
  pointer-events: none;
}
.donut-center .big {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--text-0);
  font-weight: 600;
}
.donut-center .sm {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* Stats grid */
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.stat {
  display: flex; flex-direction: column; gap: 2px;
}
.stat .lbl { font-size: 10px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.stat .val { font-family: var(--ff-mono); font-size: 13px; color: var(--text-0); font-weight: 600; }
.stat .val.up { color: var(--cyan); }
.stat .val.down { color: var(--down); }

/* Orders list */
.orders { display: flex; flex-direction: column; }
.order-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed oklch(0.28 0.03 225);
  font-size: 12px;
}
.order-row:last-child { border-bottom: none; }
.order-side {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 12px;
}
.order-side.buy { color: var(--cyan); }
.order-side.sell { color: var(--down); }
.order-meta { color: var(--text-3); font-size: 10px; margin-top: 2px; font-family: var(--ff-mono); }
.order-sub { color: var(--text-2); font-size: 11px; }
.order-amt { font-family: var(--ff-mono); font-weight: 600; color: var(--text-0); font-size: 12.5px; text-align: right; }
.order-amt .asset { color: var(--text-3); font-weight: 400; font-size: 10.5px; display: block; margin-top: 2px; }

/* Volume bars */
.bars-wrap {
  display: flex; align-items: flex-end; gap: 8px;
  height: 140px;
  padding: 8px 0;
}
.bar-col {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  position: relative;
}
.bar-col .bar-buy, .bar-col .bar-sell {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: height 400ms cubic-bezier(.4, 0, .2, 1);
}
.bar-col .bar-buy { background: linear-gradient(180deg, var(--cyan-hi), var(--cyan)); box-shadow: 0 0 8px var(--cyan-glow); }
.bar-col .bar-sell { background: linear-gradient(180deg, var(--amber), var(--amber-lo)); }
.bar-labels {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Market prices */
.market-list { display: flex; flex-direction: column; }
.market-row {
  display: grid;
  grid-template-columns: 30px 1fr 84px 58px 70px;
  align-items: center; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid oklch(0.22 0.025 225);
}
.market-row:last-child { border-bottom: none; }
.coin-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-weight: 700; font-size: 11px;
  color: oklch(0.15 0.02 225);
}
.coin-ico.btc { background: oklch(0.78 0.15 60); }
.coin-ico.eth { background: oklch(0.72 0.12 270); }
.coin-ico.sol { background: oklch(0.72 0.18 320); }
.coin-ico.bnb { background: oklch(0.85 0.16 90); }
.coin-ico.arb { background: oklch(0.72 0.14 240); }
.coin-ico.hype { background: linear-gradient(135deg, var(--cyan), oklch(0.72 0.18 160)); }
.market-sym { font-family: var(--ff-mono); font-weight: 600; font-size: 12.5px; color: var(--text-0); }
.market-name { font-size: 10px; color: var(--text-3); }
.market-price { font-family: var(--ff-mono); font-weight: 500; color: var(--text-0); font-size: 12.5px; text-align: right; }
.market-chg { font-family: var(--ff-mono); font-size: 11px; text-align: right; }
.market-chg.up { color: var(--cyan); }
.market-chg.down { color: var(--down); }
.spark { height: 28px; }

/* Live feed (global trades) */
.feed-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed oklch(0.26 0.03 225);
  font-size: 11.5px;
  animation: fadeInUp 400ms ease;
}
.feed-row:last-child { border-bottom: none; }
.feed-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
}
.feed-tag.buy { background: var(--cyan-dim); color: var(--cyan); }
.feed-tag.sell { background: oklch(0.72 0.18 35 / 0.15); color: var(--down); }
.feed-addr { font-family: var(--ff-mono); color: var(--text-1); font-size: 11.5px; }
.feed-time { font-family: var(--ff-mono); font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.feed-amt { font-family: var(--ff-mono); font-weight: 600; color: var(--text-0); text-align: right; font-size: 12px; }
.feed-amt .sub { display: block; color: var(--text-3); font-size: 9.5px; font-weight: 400; margin-top: 2px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Leaderboard */
.lb-row {
  display: grid;
  grid-template-columns: 26px 1fr 90px 78px;
  align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid oklch(0.22 0.025 225);
  font-size: 12px;
}
.lb-row:last-child { border-bottom: none; }
.lb-rank {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-2);
}
.lb-rank.gold { background: oklch(0.82 0.15 90); color: oklch(0.15 0.02 225); border-radius: 50%; }
.lb-rank.silver { background: oklch(0.80 0.02 240); color: oklch(0.15 0.02 225); border-radius: 50%; }
.lb-rank.bronze { background: oklch(0.68 0.12 50); color: oklch(0.15 0.02 225); border-radius: 50%; }
.lb-rank.normal { color: var(--text-3); }
.lb-addr { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-0); }
.lb-num { font-family: var(--ff-mono); text-align: right; color: var(--text-0); font-size: 12px; }
.lb-pnl { font-family: var(--ff-mono); text-align: right; color: var(--cyan); font-size: 12px; }
.lb-pnl.down { color: var(--down); }
.lb-header {
  display: grid;
  grid-template-columns: 26px 1fr 90px 78px;
  gap: 8px;
  padding: 4px 0 8px;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.lb-header div:nth-child(3), .lb-header div:nth-child(4) { text-align: right; }

/* Polymarket-style rows */
.pm-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid oklch(0.22 0.025 225);
}
.pm-row:last-child { border-bottom: none; }
.pm-ico {
  width: 30px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, var(--amber), oklch(0.70 0.15 40));
  display: grid; place-items: center;
  color: oklch(0.15 0.02 225);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ff-mono);
}
.pm-ico.eth { background: linear-gradient(135deg, oklch(0.75 0.12 270), oklch(0.60 0.14 260)); }
.pm-ico.sol { background: linear-gradient(135deg, oklch(0.72 0.18 320), oklch(0.65 0.18 280)); }
.pm-title { font-size: 12px; color: var(--text-0); font-weight: 500; }
.pm-time { font-size: 10px; color: var(--text-3); font-family: var(--ff-mono); margin-top: 2px; }
.pm-yn {
  display: inline-flex; gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: oklch(0.14 0.02 225);
  border: 1px solid var(--border);
}
.pm-yn button {
  padding: 3px 10px;
  font-size: 10.5px;
  font-family: var(--ff-mono);
  font-weight: 600;
  border-radius: 4px;
  color: var(--text-3);
}
.pm-yn button.y.active { background: var(--cyan); color: oklch(0.15 0.02 225); }
.pm-yn button.n.active { background: var(--down); color: oklch(0.15 0.02 225); }
.pm-amt { font-family: var(--ff-mono); text-align: right; color: var(--cyan); font-size: 12px; font-weight: 600; }
.pm-amt.down { color: var(--down); }
.pm-amt .sub { display: block; font-size: 9.5px; color: var(--text-3); font-weight: 400; margin-top: 2px; }

/* AI chat / log */
.chat-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.chat-tabs button {
  flex: 1;
  padding: 11px 0;
  font-size: 12px;
  color: var(--text-3);
  position: relative;
  transition: color 120ms ease;
}
.chat-tabs button.active {
  color: var(--cyan);
}
.chat-tabs button.active::after {
  content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px;
  background: var(--cyan); border-radius: 2px;
  box-shadow: 0 0 10px var(--cyan);
}
.chat-body {
  height: 220px;
  padding: 14px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg {
  display: flex; gap: 8px;
  max-width: 85%;
  animation: fadeInUp 300ms ease;
}
.msg.you { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
}
.msg.bot .avatar { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan-lo); }
.msg.you .avatar { background: var(--surface-hi); color: var(--text-1); border: 1px solid var(--border); }
.msg-content { display: flex; flex-direction: column; gap: 4px; }
.msg-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  background: var(--surface-hi);
  color: var(--text-0);
  border: 1px solid var(--border);
}
.msg.bot .msg-bubble { border-top-left-radius: 2px; }
.msg.you .msg-bubble {
  background: linear-gradient(180deg, var(--cyan-hi), var(--cyan));
  color: oklch(0.15 0.02 225);
  border: none;
  border-top-right-radius: 2px;
}
.msg-time {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  color: var(--text-3);
}
.msg.you .msg-time { text-align: right; }

.chat-input {
  display: flex; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  background: oklch(0.14 0.02 225);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text-0);
  font-family: var(--ff-sans);
  font-size: 12px;
  outline: none;
  transition: border-color 120ms;
}
.chat-input input:focus { border-color: var(--cyan-lo); }
.chat-input button {
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--cyan);
  color: oklch(0.15 0.02 225);
  font-weight: 600;
  font-size: 12px;
}

/* Subscription panel */
.sub-panel {
  position: relative;
  padding: 16px;
  background:
    radial-gradient(200px 120px at 85% 20%, oklch(0.82 0.14 195 / 0.22), transparent 70%),
    linear-gradient(180deg, oklch(0.22 0.04 200), oklch(0.18 0.03 210));
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sub-panel::before {
  content: ""; position: absolute; inset: -30% -20% auto auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--cyan-dim), transparent 60%);
  pointer-events: none;
}
.sub-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sub-row .lbl { font-size: 11px; color: var(--text-2); }
.sub-row .val { font-family: var(--ff-mono); font-size: 14px; color: var(--text-0); font-weight: 600; }
.sub-activate {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
}
.sub-code {
  font-family: var(--ff-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.sub-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 14px;
}

/* News / ticker */
.ticker {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: oklch(0.14 0.02 225);
  height: 36px;
  display: flex; align-items: center;
  position: relative;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 12px; height: 100%;
  display: grid; place-items: center;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--border);
}
.ticker-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
  padding-left: 32px;
  font-size: 12px;
  color: var(--text-1);
}
.ticker-track strong { color: var(--cyan); font-weight: 600; margin-right: 4px; font-family: var(--ff-mono); }
.ticker-track .dn { color: var(--down); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tooltips / misc */
.hint {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: oklch(0.20 0.03 225);
  border: 1px solid var(--border);
  font-size: 10.5px;
  font-family: var(--ff-mono);
  color: var(--text-2);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scrollable list */
.scroll-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.scroll-list::-webkit-scrollbar { width: 4px; }
.scroll-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.scroll-list::-webkit-scrollbar-track { background: transparent; }
