/* ==========================================================================
   VOX DEI · Spread Scanner
   Palette lifted from the brand mark: deep navy, sky blue, halo gold, white.
   ========================================================================== */

:root {
  --navy-900: #050d1a;
  --navy-850: #071324;
  --navy-800: #0a1a30;
  --navy-700: #0e2340;
  --navy-600: #143055;
  --line: rgba(124, 196, 240, .10);
  --line-soft: rgba(124, 196, 240, .055);

  --sky: #6cb8ee;
  --sky-lite: #a8d8f5;
  --gold: #ffc93c;
  --gold-deep: #f0a92b;
  --mint: #45e3ad;
  --coral: #ff7b72;

  --ink: #eaf2fb;
  --ink-dim: #8ba6c4;
  --ink-mute: #55708f;

  --cols: minmax(188px, 1.35fr) 152px 98px 106px 112px 86px 96px 84px 98px;
  --pad: clamp(14px, 2.2vw, 30px);
  --ease: cubic-bezier(.22, .9, .28, 1);
  --row-h: 44px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--navy-900);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.num, input {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------- backdrop */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 62% at 50% -18%, rgba(108, 184, 238, .22) 0%, rgba(108, 184, 238, .06) 42%, transparent 70%),
    radial-gradient(80% 40% at 88% 4%, rgba(255, 201, 60, .09) 0%, transparent 62%),
    linear-gradient(180deg, #08182e 0%, #061224 44%, #040a15 100%);
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(rgba(168, 216, 245, .16) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------- topbar */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 15px var(--pad) 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 26, 48, .82), rgba(6, 16, 32, .5));
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; }

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(108, 184, 238, .20), rgba(20, 48, 85, .55));
  border: 1px solid rgba(168, 216, 245, .18);
  box-shadow: 0 6px 22px -10px rgba(108, 184, 238, .8), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.mark svg { width: 34px; height: 34px; overflow: visible; }
.mark .wing { fill: #fff; opacity: .92; }
.mark .orb { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.mark .spark {
  fill: none;
  stroke: #08182e;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark .ring {
  transform-origin: 24px 10px;
  animation: halo 3.6s var(--ease) infinite;
  filter: drop-shadow(0 0 6px rgba(255, 201, 60, .65));
}
@keyframes halo {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: .95; }
  50%      { transform: translateY(-1.6px) scaleX(1.06); opacity: 1; }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(108, 184, 238, .45);
}
.brand-text b i { font-style: normal; color: var(--gold); margin-left: 4px; }
.brand-text em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.1px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ----------------------------------------------------------------- status */
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 38, .6);
  transition: border-color .3s, background .3s;
}
.status .pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.status .pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--mint);
  animation: ping 1.9s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(2.3); opacity: 0; }
  100% { opacity: 0; }
}
.status .state { color: var(--mint); }
.status .ago, .status .dot-sep { color: var(--ink-mute); font-weight: 600; letter-spacing: .4px; }

.status[data-state="paused"] { border-color: rgba(255, 201, 60, .3); }
.status[data-state="paused"] .pulse { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.status[data-state="paused"] .pulse::after { animation: none; opacity: 0; }
.status[data-state="paused"] .state { color: var(--gold); }

.status[data-state="boot"] .pulse,
.status[data-state="down"] .pulse { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.status[data-state="boot"] .pulse::after,
.status[data-state="down"] .pulse::after { color: var(--coral); }
.status[data-state="boot"] .state,
.status[data-state="down"] .state { color: var(--coral); }

/* -------------------------------------------------------------------- hud */
.hud { display: flex; gap: 20px; margin-left: auto; }
.hud-cell { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.hud-cell i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hud-cell b {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-lite);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1180px) { .hud { display: none; } .status { margin-left: auto; } }

/* --------------------------------------------------------------- controls */
.controls { display: flex; align-items: center; gap: 10px; }

.seg {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 38, .6);
}
.seg button {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-mute);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  border-radius: 7px;
  transition: color .25s;
}
.seg button.on { color: var(--navy-900); }
.seg-glide {
  position: absolute;
  top: 3px; left: 3px;
  height: calc(100% - 6px);
  border-radius: 7px;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  box-shadow: 0 3px 14px -4px rgba(255, 201, 60, .8);
  transition: transform .38s var(--ease), width .38s var(--ease);
}

.btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 38, .6);
  color: var(--ink-dim);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: color .22s, border-color .22s, background .22s, transform .12s;
}
.btn:hover { color: var(--ink); border-color: rgba(124, 196, 240, .28); }
.btn:active { transform: scale(.96); }
.btn.on {
  color: var(--gold);
  border-color: rgba(255, 201, 60, .42);
  background: rgba(255, 201, 60, .09);
}

/* ----------------------------------------------------------------- warmup */
.warmup {
  position: relative;
  z-index: 3;
  height: 2px;
  background: rgba(124, 196, 240, .07);
  overflow: hidden;
  transition: opacity .5s;
}
.warmup span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  box-shadow: 0 0 12px rgba(255, 201, 60, .6);
  transition: width .6s var(--ease);
}
.warmup.done { opacity: 0; }

/* ---------------------------------------------------------------- toolbar */
.toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 31, .5);
  backdrop-filter: blur(10px);
}

.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 38, .55);
  flex: none;
}
.tabs button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-mute);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  white-space: nowrap;
  border-radius: 9px;
  transition: color .25s;
}
.tabs button:hover { color: var(--ink-dim); }
.tabs button.on { color: #fff; }
.tabs button b {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-mute);
  transition: color .25s;
}
.tabs button.on b { color: var(--gold); }
.tab-glide {
  position: absolute;
  top: 3px; left: 3px;
  height: calc(100% - 6px);
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(108, 184, 238, .22), rgba(20, 48, 85, .5));
  border: 1px solid rgba(168, 216, 245, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), width .4s var(--ease);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 38, .55);
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within {
  border-color: rgba(255, 201, 60, .35);
  box-shadow: 0 0 0 3px rgba(255, 201, 60, .07);
}
.search .slash {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 10px;
  flex: none;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 1px;
}
.search input::placeholder { color: var(--ink-mute); letter-spacing: 1.4px; }
.search .clear {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-mute); font-size: 11px; padding: 4px;
}
.search .clear:hover { color: var(--coral); }

/* ------------------------------------------------------------------ board */
.board {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.thead {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 0;
  padding: 0 var(--pad);
  height: 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 26, .6);
  backdrop-filter: blur(8px);
}
.th {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--ink-mute);
  cursor: pointer;
  user-select: none;
  transition: color .2s;
  white-space: nowrap;
}
.th.num { justify-content: flex-end; }
.th:hover { color: var(--ink-dim); }
.th.on { color: var(--sky-lite); }
.th .arw {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0;
  transition: opacity .2s, transform .3s var(--ease);
}
.th.on .arw { opacity: 1; }
.th.on.asc .arw { transform: rotate(180deg); }

/* Rows are absolutely positioned and moved with `transform` only: reordering
   never touches the DOM tree, so nothing re-lays-out and nothing flickers. */
.tbody {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 196, 240, .18) transparent;
}
.sizer { width: 1px; }
/* user-driven refilters snap into place; only live updates glide */
.tbody.snap .row, .tbody.snap .detail { transition: none; }
.tbody::-webkit-scrollbar { width: 9px; }
.tbody::-webkit-scrollbar-thumb {
  background: rgba(124, 196, 240, .16);
  border-radius: 9px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.tbody::-webkit-scrollbar-thumb:hover { background: rgba(124, 196, 240, .3); background-clip: content-box; }

/* -------------------------------------------------------------------- row */
.row {
  position: absolute;
  left: 0; right: 0; top: 0;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  padding: 0 var(--pad);
  height: var(--row-h);
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  will-change: transform;
  transition: transform .44s var(--ease), opacity .3s linear, background .2s;
}
.row.ghost, .detail.ghost { opacity: 0; pointer-events: none; }
.row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  opacity: 0;
  transition: opacity .25s;
}
.row:hover { background: rgba(108, 184, 238, .045); }
.row:hover::before { opacity: .55; }
.row.open { background: rgba(108, 184, 238, .07); }
.row.open::before { opacity: 1; }

/* symbol cell */
.c-sym { display: flex; align-items: center; gap: 9px; min-width: 0; }
.star {
  flex: none;
  width: 17px; height: 17px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-mute);
  opacity: .35;
  transition: color .2s, opacity .2s, transform .2s var(--ease);
  line-height: 1;
  font-size: 13px;
}
.row:hover .star { opacity: .8; }
.star:hover { transform: scale(1.25); color: var(--gold); opacity: 1; }
.star.on { color: var(--gold); opacity: 1; text-shadow: 0 0 8px rgba(255, 201, 60, .7); }

.tier {
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-mute);
  box-shadow: 0 0 0 0 currentColor;
}
.tier.leader { background: var(--gold); box-shadow: 0 0 8px rgba(255, 201, 60, .8); }
.tier.hot    { background: var(--mint); box-shadow: 0 0 7px rgba(69, 227, 173, .6); }
.tier.hold   { background: var(--sky); }
.tier.watch  { background: var(--ink-mute); }
.tier.stale  { background: rgba(255, 123, 114, .55); }

/* click the ticker to copy it -- stocks copy without their STOCK suffix */
.sym-name {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding: 3px 6px;
  margin: -3px -2px -3px -6px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  cursor: copy;
  transition: background .18s;
}
.sym-name:hover { background: rgba(255, 201, 60, .10); }
.sym-name:hover .sym-base { color: var(--gold); }

.sym-base {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .4px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .18s;
}
.sym-quote { font-size: 11px; color: var(--ink-mute); letter-spacing: .4px; flex: none; }

/* two overlapping squares = copy */
.ico-copy {
  flex: none;
  position: relative;
  width: 9px; height: 10px;
  opacity: 0;
  transition: opacity .18s;
  align-self: center;
}
.ico-copy::before, .ico-copy::after {
  content: "";
  position: absolute;
  width: 6px; height: 7px;
  border: 1.2px solid var(--gold);
  border-radius: 2px;
}
.ico-copy::before { left: 0; bottom: 0; }
.ico-copy::after { right: 0; top: 0; background: var(--navy-800); }
.sym-name:hover .ico-copy { opacity: .95; }

.go {
  flex: none;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 6px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transition: opacity .18s, color .18s, background .18s, transform .18s var(--ease);
}
.row:hover .go { opacity: 1; }
.go:hover {
  color: var(--sky-lite);
  background: rgba(108, 184, 238, .14);
  transform: translate(1px, -1px);
}

/* ------------------------------------------------------------------- toast */
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 46px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 201, 60, .34);
  background: linear-gradient(160deg, rgba(20, 48, 85, .97), rgba(8, 20, 38, .97));
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px) scale(.96);
  transition: opacity .22s, transform .28s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

.tag {
  flex: none;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.25;
  border: 1px solid;
}
.tag.fee { color: var(--mint); border-color: rgba(69, 227, 173, .35); background: rgba(69, 227, 173, .07); }
.tag.stk { color: var(--sky); border-color: rgba(108, 184, 238, .32); background: rgba(108, 184, 238, .07); }

/* score cell */
.c-score { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.bar {
  flex: none;
  width: 74px;
  height: 3px;
  border-radius: 3px;
  background: rgba(124, 196, 240, .11);
  overflow: hidden;
}
/* the gradient is pinned to the TRACK width, not the fill, so the colour at the
   tip encodes the score instead of every bar running the same ramp */
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--gold) 62%, var(--mint) 88%);
  background-size: 74px 100%;
  background-repeat: no-repeat;
  transition: width .5s var(--ease);
}
.score-val {
  font-size: 14px;
  font-weight: 700;
  min-width: 44px;
  text-align: right;
  transition: color .35s;
}
.s-top { color: var(--mint); text-shadow: 0 0 15px rgba(69, 227, 173, .5); }
.s-hi { color: var(--gold); text-shadow: 0 0 14px rgba(255, 201, 60, .35); }
.s-mid { color: var(--sky-lite); }
.s-lo { color: var(--ink-dim); }

/* `justify-self: end` keeps the box hugging the digits, so the change tint
   reads as a pill around the number instead of a band across the column. */
.cell {
  justify-self: end;
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  border-radius: 5px;
  padding: 3px 5px;
  margin: -3px -5px -3px 0;
}
.score-val { border-radius: 5px; padding: 2px 5px; margin: -2px -5px -2px 0; }
.v-strong { color: var(--ink); }
.v-gold { color: var(--gold); }
.v-sky { color: var(--sky-lite); }
.v-mute { color: var(--ink-mute); }
.v-bad { color: var(--coral); }

/* value change flash */
@keyframes flashUp {
  from { color: var(--mint); text-shadow: 0 0 12px rgba(69, 227, 173, .55); }
}
@keyframes flashDown {
  from { color: var(--coral); text-shadow: 0 0 12px rgba(255, 123, 114, .55); }
}
.up { animation: flashUp .85s ease-out; }
.down { animation: flashDown .85s ease-out; }

/* ----------------------------------------------------------------- detail */
.detail {
  position: absolute;
  left: 0; right: 0; top: 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid rgba(255, 201, 60, .18);
  background: linear-gradient(180deg, rgba(11, 29, 53, .92), rgba(6, 16, 31, .55));
  box-shadow: inset 0 14px 26px -22px rgba(108, 184, 238, .9);
  transition: transform .44s var(--ease), opacity .25s linear;
  will-change: transform;
}
.detail.ghost { opacity: 0; }
.detail-in {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr);
  gap: clamp(18px, 3vw, 46px);
  padding: 20px var(--pad) 24px;
}
@media (max-width: 860px) { .detail-in { grid-template-columns: 1fr; } }

.dt-title {
  font-size: 9.5px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 14px;
}

.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 22px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px; }
.kv span { font-size: 11px; color: var(--ink-mute); letter-spacing: .3px; }
.kv b {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.contrib { display: flex; flex-direction: column; gap: 9px; }
.cline { display: grid; grid-template-columns: 108px 1fr 52px; align-items: center; gap: 12px; }
.cline em { font-style: normal; font-size: 10.5px; color: var(--ink-dim); letter-spacing: .3px; }
.ctrack {
  position: relative;
  height: 5px;
  border-radius: 4px;
  background: rgba(124, 196, 240, .08);
}
.ctrack::before {
  content: "";
  position: absolute;
  left: 50%; top: -3px; bottom: -3px;
  width: 1px;
  background: var(--line);
}
.ctrack i {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 4px;
  transition: width .5s var(--ease), left .5s var(--ease);
}
.ctrack i.pos { background: linear-gradient(90deg, rgba(255, 201, 60, .45), var(--gold)); }
.ctrack i.neg { background: linear-gradient(90deg, var(--coral), rgba(255, 123, 114, .45)); }
.cline b {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}

/* ------------------------------------------------------------------ empty */
.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-mute);
}
.empty[hidden] { display: none; }   /* author `display` outranks the UA [hidden] rule */
.empty p { font-size: 14px; color: var(--ink-dim); letter-spacing: .6px; }
.empty small { font-size: 11px; letter-spacing: .5px; }
.halo-spin {
  width: 46px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--gold);
  border-bottom-color: rgba(108, 184, 238, .35);
  animation: spin 1.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 201, 60, .5));
  margin-bottom: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- foot */
.foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px var(--pad);
  border-top: 1px solid var(--line);
  background: rgba(5, 13, 26, .7);
  font-size: 10px;
  letter-spacing: 1.1px;
  color: var(--ink-mute);
}
.foot b { color: var(--ink-dim); font-family: ui-monospace, Menlo, monospace; }
.foot-sep { opacity: .45; }
@media (max-width: 700px) { .foot span:last-of-type, .foot-sep:last-of-type { display: none; } }

/* --------------------------------------------------------------- narrow vp */
@media (max-width: 1240px) {
  :root { --cols: minmax(170px, 1.35fr) 146px 92px 100px 106px 82px 94px 92px; }
  .c-self { display: none; }
}
@media (max-width: 980px) {
  :root { --cols: minmax(150px, 1.4fr) 130px 88px 102px 78px 92px; }
  .c-self, .c-inside, .c-npm { display: none; }
}
@media (max-width: 620px) {
  :root { --cols: minmax(120px, 1fr) 112px 80px; --pad: 12px; }
  .c-npm, .c-vol, .c-trades, .c-twosn { display: none; }
  .brand-text em { display: none; }
  .toolbar { flex-wrap: wrap; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: 7px 11px; }
  .search { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------- warmup indicator */
/* The table is deliberately short until the window is full, so say so out loud
   instead of leaving a bare progress line at the top of the page. */
.warm-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 60, .28);
  background: rgba(255, 201, 60, .07);
  animation: warmIn .4s var(--ease);
}
.warm-chip[hidden] { display: none; }
@keyframes warmIn { from { opacity: 0; transform: translateY(-4px); } }

.warm-ring {
  flex: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 201, 60, .22);
  border-top-color: var(--gold);
  animation: spin 1.1s linear infinite;
}
.warm-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.warm-text b {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.warm-text i {
  font-style: normal;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .warm-text b { display: none; } }
