/* Vegas Edge — professional dark board (aligned with LGR visual language) */

:root {
  --bg0: #06080f;
  --bg1: #0c1020;
  --bg2: #141a2e;
  --panel: rgba(16, 22, 40, 0.78);
  --panel-solid: #12182c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ff;
  --muted: #8b93b0;
  --faint: #5c6480;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --gold: #f5c542;
  --green: #34d399;
  --red: #fb7185;
  --orange: #fb923c;
  --kalshi: #38bdf8;
  --pm: #c084fc;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--accent); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.ambient, .login-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(94, 234, 212, 0.11), transparent 55%),
    radial-gradient(900px 480px at 92% 5%, rgba(129, 140, 248, 0.13), transparent 50%),
    linear-gradient(180deg, #0a0e18 0%, #06080f 55%, #04050a 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-a { width: 400px; height: 400px; background: #14b8a6; top: -90px; left: -70px; }
.orb-b { width: 480px; height: 480px; background: #6366f1; right: -100px; top: 18%; animation-delay: -7s; }
/* Subtle Vegas flare — warm magenta/gold, never loud casino */
.orb-vegas {
  width: 520px; height: 320px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22), rgba(245, 197, 66, 0.08) 55%, transparent 70%);
  bottom: -80px; left: 35%;
  animation-delay: -11s; opacity: 0.55;
}
.neon-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 197, 66, 0.15) 20%,
    rgba(244, 114, 182, 0.35) 50%,
    rgba(94, 234, 212, 0.2) 75%,
    transparent 100%
  );
  opacity: 0.7;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.25);
}
.cfb-detail {
  margin: 0;
  padding: 14px 16px;
  max-height: 280px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}
.desk-cfb .kpi .value { font-variant-numeric: tabular-nums; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: rgba(94, 234, 212, 0.06); }

.desk-vegas .ambient,
.desk-vegas .login-bg {
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(94, 234, 212, 0.1), transparent 55%),
    radial-gradient(900px 480px at 92% 5%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(245, 197, 66, 0.06), transparent 55%),
    linear-gradient(180deg, #0a0c14 0%, #06060c 55%, #05040a 100%);
}
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,0.035) 3px);
  opacity: 0.3;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(36px, 28px) scale(1.06); }
}

/* J seal (shared brand mark, Vegas-flared on this desk) */
.j-seal {
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
  position: relative;
}
.j-seal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  /* Keep generated seal crisp when downscaled */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.j-seal-sm {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(245, 197, 66, 0.4))
          drop-shadow(0 0 22px rgba(244, 114, 182, 0.18));
}
.j-seal-lg {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 28px rgba(245, 197, 66, 0.45))
          drop-shadow(0 0 42px rgba(167, 139, 250, 0.22));
  animation: seal-pulse 4.8s ease-in-out infinite;
}
@keyframes seal-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 24px rgba(245, 197, 66, 0.38))
            drop-shadow(0 0 32px rgba(244, 114, 182, 0.16));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 36px rgba(245, 197, 66, 0.55))
            drop-shadow(0 0 48px rgba(94, 234, 212, 0.22));
    transform: scale(1.03);
  }
}

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  padding: 34px 30px; border-radius: 22px;
  background: rgba(12, 16, 30, 0.82); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.login-brand { text-align: center; margin-bottom: 22px; }
.ve-mark {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(94,234,212,0.25), rgba(129,140,248,0.3));
  border: 1px solid var(--border-strong);
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--accent);
}
.brand-kicker {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 6px;
}
.brand-title { font-size: 1.85rem; font-weight: 800; margin: 0; letter-spacing: -0.03em; }
.brand-subtitle { margin: 4px 0 0; color: var(--muted); font-weight: 500; }
.login-tag { margin-top: 10px; font-size: 0.88rem; }
.login-form { display: grid; gap: 14px; margin-top: 8px; }
.login-form label { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.login-form input {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.28); color: var(--text);
}
.login-form input:focus { outline: 2px solid rgba(94,234,212,0.35); border-color: transparent; }
.login-foot { margin-top: 18px; text-align: center; font-size: 0.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer;
  font-weight: 600; font-size: 0.9rem; transition: 0.15s ease;
}
.btn:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  border: none; color: #fff; font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-block { width: 100%; padding: 13px; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 0.8rem; }

.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.alert-error { background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.35); color: #fecdd3; }
.alert-warn { background: rgba(251,146,60,0.12); border: 1px solid rgba(251,146,60,0.35); color: #fed7aa; }

/* Shell */
.desk-body { min-height: 100vh; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  background: rgba(6, 8, 15, 0.78); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.ve-mark-sm {
  width: 42px; height: 42px; border-radius: 12px; font-size: 0.85rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(94,234,212,0.22), rgba(129,140,248,0.28));
  border: 1px solid var(--border-strong); font-weight: 800; color: var(--accent);
}
.brand-title-inline { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; display: block; }
.brand-subtitle-inline { font-size: 0.78rem; color: var(--muted); }
.topbar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.meta-pill {
  font-size: 0.75rem; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted);
  font-family: var(--mono);
}
.meta-pill.live { color: var(--green); border-color: rgba(52,211,153,0.35); }
.meta-pill.live.warn { color: var(--orange); border-color: rgba(251,146,60,0.45); }
.meta-pill.live.stale { color: var(--red); border-color: rgba(251,113,133,0.5); }
.user-pill { color: var(--accent-2); }
.inline-form { display: inline; margin: 0; }
.kpi-hot { border-top: 2px solid var(--orange); box-shadow: 0 0 24px rgba(251,146,60,0.08); }
.kpi-warn .value { color: var(--orange); }
.row-residual-lag td { background: rgba(251,146,60,0.04); }
.market-cell {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; font-family: var(--font);
}
.market-main {
  font-weight: 600; font-size: 0.82rem; letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.market-pick {
  font-size: 0.72rem; color: var(--gold); font-weight: 600;
  font-family: var(--mono);
}
.market-league {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 700;
}
.cell-side {
  max-width: 6.5rem;
  font-size: 0.75rem !important;
  color: var(--gold);
  font-weight: 600;
}
table.data td.cell-market {
  font-family: var(--font);
  white-space: normal;
  overflow: hidden;
}

.page {
  position: relative; z-index: 1;
  max-width: min(1280px, 100vw); margin: 0 auto; padding: 20px 16px 80px;
  width: 100%;
  overflow-x: hidden;
}

/* KPI cards */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.kpi {
  padding: 16px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.kpi .label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.kpi .value {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em;
  font-family: var(--mono);
}
.kpi .sub { font-size: 0.78rem; color: var(--faint); margin-top: 4px; }
/* CLV / SharpΔ chips inside KPI sub must keep their own color (override .sub faint) */
.kpi .sub .pos { color: var(--green); }
.kpi .sub .neg { color: var(--red); }
.kpi .sub .muted { color: var(--muted); }
.kpi.pos .value { color: var(--green); }
.kpi.neg .value { color: var(--red); }
.kpi.kalshi { border-top: 2px solid var(--kalshi); }
.kpi.pm { border-top: 2px solid var(--pm); }
.kpi.combo { border-top: 2px solid var(--gold); }

.panel {
  padding: 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 12px; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
}
.panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.panel-head h2 { margin: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-row.filter-toolbar { align-items: center; }
.chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--muted); cursor: pointer;
  font-size: 0.82rem; font-weight: 600;
}
.chip.active {
  color: var(--text); border-color: rgba(94,234,212,0.45);
  background: rgba(94,234,212,0.1);
}
.chip[data-venue="kalshi"].active { border-color: rgba(56,189,248,0.5); background: rgba(56,189,248,0.12); color: #7dd3fc; }
.chip[data-venue="pm"].active { border-color: rgba(192,132,252,0.5); background: rgba(192,132,252,0.12); color: #e9d5ff; }

/* Team / matchup search next to filter chips */
.team-search-wrap {
  display: inline-flex; align-items: center; margin-left: 4px;
}
.team-search {
  width: min(14rem, 42vw);
  min-width: 8.5rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}
.team-search::placeholder { color: var(--muted); opacity: 0.85; }
.team-search:focus {
  outline: 2px solid rgba(94,234,212,0.35);
  border-color: transparent;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.table-wrap {
  /* Both axes auto so sticky thead sticks inside this scrollport (overflow-x alone breaks sticky). */
  overflow: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
  -webkit-overflow-scrolling: touch;
}
.table-wrap-wide {
  /* Full-width panels: same scrollport as .table-wrap for sticky headers */
  overflow: auto;
  max-height: min(70vh, 720px);
}
/* Sticky column labels while scrolling long open/trades/edges/results ledgers */
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-solid);
  box-shadow: 0 1px 0 var(--border);
}
table.data {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.86rem;
  table-layout: fixed;
}
table.data th {
  text-align: left; padding: 8px 10px; color: var(--muted);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border); font-weight: 600;
  white-space: nowrap;
}
table.data td {
  padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono); font-size: 0.8rem;
  vertical-align: middle;
  /* Prevent content from painting over the next column under table-layout:fixed */
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data td.cell-nowrap {
  white-space: nowrap;
  overflow: hidden;
}
table.data td.cell-market {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}
table.data tr:hover td { background: rgba(255,255,255,0.02); }

/*
 * Fixed-layout columns: time + venue get exclusive slots so KX/PM badges
 * never paint over the timestamp.
 */
.data-open .col-venue,
.data-trades .col-venue,
.data-fires .col-venue { width: 3.6rem; }
.data-open .col-market,
.data-trades .col-market,
.data-fires .col-market { width: auto; min-width: 8rem; }
.data-open .col-num,
.data-trades .col-num,
.data-fires .col-num { width: 4.1rem; }
.data-open .col-pnl,
.data-trades .col-pnl { width: 5.5rem; text-align: right; }
.data-trades .col-time,
.data-fires .col-time { width: 9.75rem; min-width: 9.75rem; }
.data-trades .col-ct,
.data-open .col-ct { width: 2.6rem; text-align: right; }

/* Time cell: never ellipsize into the venue badge */
.data-trades td.cell-time,
.data-fires td.cell-time,
.data-trades th.col-time,
.data-fires th.col-time {
  width: 9.75rem;
  min-width: 9.75rem;
  max-width: none;
  padding-right: 12px;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}
.data-trades td.cell-venue,
.data-fires td.cell-venue,
.data-open td.cell-venue,
.data-trades th.col-venue,
.data-fires th.col-venue,
.data-open th.col-venue {
  width: 3.6rem;
  min-width: 3.6rem;
  max-width: 3.6rem;
  padding-left: 4px;
  padding-right: 6px;
  box-sizing: border-box;
  overflow: hidden;
}
.cell-time .tz-ct {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 3px;
  letter-spacing: 0.02em;
}
.fires-hint {
  margin: -4px 0 12px;
  font-size: 0.82rem;
}
.panel-fires-teaser {
  border-style: dashed;
  opacity: 0.98;
}
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 1.85rem;
  text-align: center;
}
.badge-kalshi { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.badge-pm { background: rgba(192,132,252,0.15); color: #e9d5ff; }
.badge-open { background: rgba(251,146,60,0.15); color: #fdba74; }
.badge-win { background: rgba(52,211,153,0.15); color: #6ee7b7; }
.badge-loss { background: rgba(251,113,133,0.15); color: #fda4af; }
.badge-push { background: rgba(255,255,255,0.06); color: var(--muted); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.flat { color: var(--muted, #8b95a8); }

/* Hrs column: live badge + progressive near-start urgency (no scores) */
.hrs-val {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.hrs-live-badge,
.hrs-pre-badge,
.hrs-ended-badge,
.hrs-post-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-right: 2px;
}
.hrs-live-badge {
  color: #0a0e18;
  background: linear-gradient(135deg, #fb7185, #f5c542);
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.35);
}
.hrs-pre-badge {
  color: #0a0e18;
  background: linear-gradient(135deg, #34d399, #5eead4);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.28);
}
.hrs-ended-badge,
.hrs-post-badge {
  color: #e8ecf4;
  background: rgba(139, 149, 168, 0.35);
  border: 1px solid rgba(139, 149, 168, 0.45);
  letter-spacing: 0.04em;
}
.hrs-val.hrs-live { color: var(--orange); }
.hrs-val.hrs-post,
.hrs-val.hrs-ended { color: var(--muted, #8b95a8); }
.hrs-val.hrs-urgent { color: var(--orange); font-weight: 600; }
.hrs-val.hrs-near,
.hrs-val.hrs-soon { color: var(--gold); }
.hrs-val.hrs-lag {
  outline: 1px dashed rgba(251, 146, 60, 0.45);
  outline-offset: 2px;
  border-radius: 3px;
}

.cell-mark .pos,
.cell-mark .neg,
.cell-mark .flat { font-variant-numeric: tabular-nums; font-weight: 600; }
.data-edges .col-note,
td.cell-note {
  min-width: 14rem;
  max-width: 28rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px; margin-bottom: 16px;
  max-width: 100%;
}
.charts-grid > .panel { min-width: 0; }
.chart-card canvas { width: 100% !important; max-height: 220px; }

.legend-row {
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted);
  margin-bottom: 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-k { background: var(--kalshi); }
.dot-p { background: var(--pm); }
.dot-g { background: var(--gold); }

.status-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 10px 14px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 0.85rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.desk-foot {
  text-align: center; padding: 24px 16px 40px; color: var(--faint);
  font-size: 0.78rem; position: relative; z-index: 1;
}

/* Legacy two-col kept for other pages if any */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 100%;
}
@media (max-width: 960px) {
  .kpi .value { font-size: 1.3rem; }
}

/*
 * Phone density (layout-03): keep Matchup · pick + money scannable.
 * Hide Est win%, Exit, Hrs; tighten cell padding. ~390px ops usable.
 */
@media (max-width: 720px) {
  table.data th,
  table.data td {
    padding: 6px 5px;
    font-size: 0.72rem;
  }
  table.data th {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
  table.data td.cell-market {
    font-size: 0.72rem;
  }
  .market-main { font-size: 0.74rem; }
  .market-pick { font-size: 0.68rem; }
  /* Secondary columns — drop on narrow screens */
  .col-est-win,
  .cell-est-win,
  .col-exit,
  .cell-exit,
  .col-hrs,
  .cell-hrs {
    display: none;
  }
  .data-trades .col-time,
  .data-fires .col-time,
  .data-edges .col-time {
    width: 4.25rem;
    min-width: 4.25rem;
  }
  .data-trades td.cell-time,
  .data-fires td.cell-time,
  .data-edges td.cell-time,
  .data-trades th.col-time,
  .data-fires th.col-time,
  .data-edges th.col-time {
    width: 4.25rem;
    min-width: 4.25rem;
    max-width: 5rem;
    padding-right: 6px;
    font-size: 0.68rem;
  }
  .data-open .col-market,
  .data-trades .col-market,
  .data-fires .col-market,
  .data-edges .col-market {
    min-width: 7rem;
  }
  .table-wrap,
  .table-wrap-wide {
    max-height: min(65vh, 560px);
  }
}

.topbar {
  flex-wrap: wrap;
  max-width: 100%;
}

.empty {
  text-align: center; padding: 36px 16px; color: var(--muted);
}
.empty strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 1.05rem; }

.bar-track {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden;
  display: flex;
}
.bar-seg { height: 100%; }
.bar-k { background: var(--kalshi); }
.bar-p { background: var(--pm); }

.admin-pre {
  font-family: var(--mono); font-size: 0.75rem; white-space: pre-wrap;
  background: rgba(0,0,0,0.25); padding: 12px; border-radius: 10px;
  border: 1px solid var(--border); max-height: 480px; overflow: auto; color: var(--muted);
}
