/* ==========================================================================
   AI COMMAND CENTER — QUANTITATIVE INSTITUTIONAL TRADING SYSTEM
   Elite Dark Terminal Theme. High-Density Quant Architecture.
   Zero Logic Mutations · 100% Presentation Layer.
   ========================================================================== */

:root {
  /* Surface & Elevation Spectrum */
  --bg: #07090e;
  --bg-app: #07090e;
  --bg-raised: #0a0e16;
  --bg-panel: #0d121c;
  --bg-panel-2: #121824;
  --bg-panel-elevated: #162030;
  --bg-card: #0d121c;
  --bg-card-hover: #141c2a;
  --bg-glass: rgba(10, 14, 22, 0.82);
  --bg-glass-card: rgba(13, 18, 28, 0.88);

  /* Precise Border Hierarchy */
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(56, 189, 248, 0.28);
  --border-accent-strong: rgba(56, 189, 248, 0.55);

  /* High-Contrast Typographic Hierarchy */
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --text-muted: #475569;
  --text-bright: #ffffff;

  /* Quantitative Semantic Signaling */
  --yes: #22c55e;
  --yes-glow: rgba(34, 197, 94, 0.22);
  --yes-dim: #052e16;
  --yes-border: rgba(34, 197, 94, 0.45);

  --no: #f43f5e;
  --no-glow: rgba(244, 63, 94, 0.22);
  --no-dim: #4c0519;
  --no-border: rgba(244, 63, 94, 0.45);

  --warn: #f59e0b;
  --warn-glow: rgba(245, 158, 11, 0.2);
  --warn-dim: #451a03;
  --warn-border: rgba(245, 158, 11, 0.45);

  --accent: #38bdf8;
  --accent-dim: #082f49;
  --accent-glow: rgba(56, 189, 248, 0.24);

  /* Realm Environments */
  --live: #ff2a4a;
  --live-glow: rgba(255, 42, 74, 0.35);
  --live-dim: #3a0812;
  --paper: #38bdf8;
  --paper-glow: rgba(56, 189, 248, 0.25);
  --paper-dim: #0c2738;
  --demo: #f59e0b;
  --shadow: #a855f7;
  --shadow-dim: #2e1065;
  --research: #64748b;

  /* Layout, Radii & Typography Stack */
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --shell-cols: 232px 1fr;
  --topbar-h: 52px;

  /* Subtle Quant Glow Shadows */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.72), 0 0 0 1px var(--border-strong);
}

/* V4 & Intelligence 6MIN — isolated prospective timing research */
.v46-page{--v46-cyan:#20d7ff;--v46-blue:#4d7dff;--v46-violet:#9a6cff;--v46-green:#39e6ad;position:relative}
.v46-page:before{content:"";position:fixed;inset:74px 0 0 286px;pointer-events:none;background:radial-gradient(circle at 72% 4%,rgba(77,125,255,.1),transparent 30%),linear-gradient(rgba(32,215,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(32,215,255,.018) 1px,transparent 1px);background-size:auto,34px 34px,34px 34px}
.v46-page>*{position:relative}
.v46-hero{min-height:172px;border:1px solid rgba(32,215,255,.38);border-radius:22px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,rgba(6,31,55,.96),rgba(8,15,34,.98) 58%,rgba(40,19,74,.88));box-shadow:0 24px 60px rgba(0,0,0,.28),inset 0 0 45px rgba(32,215,255,.035);overflow:hidden}
.v46-hero:after{content:"";position:absolute;inset:auto -8% -90% 40%;height:210%;transform:rotate(-16deg);background:linear-gradient(90deg,transparent,rgba(32,215,255,.08),transparent)}
.v46-kicker{color:var(--v46-cyan);font:700 10px/1.3 var(--mono);letter-spacing:.2em;margin-bottom:9px}
.v46-hero h1{font-size:38px;line-height:1.05;margin:0;color:#f4fbff;letter-spacing:-.035em}
.v46-hero h1 span{color:var(--v46-cyan);text-shadow:0 0 24px rgba(32,215,255,.5)}
.v46-hero p{max-width:760px;margin:10px 0 0;color:#9fb4d0;font-size:13px;line-height:1.55}
.v46-orbit{width:112px;height:112px;border:1px solid rgba(32,215,255,.5);border-radius:50%;display:grid;place-content:center;text-align:center;flex:0 0 auto;box-shadow:0 0 40px rgba(32,215,255,.12),inset 0 0 24px rgba(77,125,255,.14);position:relative;z-index:1}
.v46-orbit:before,.v46-orbit:after{content:"";position:absolute;border-radius:50%;inset:9px;border:1px solid rgba(154,108,255,.4)}
.v46-orbit:after{inset:-7px;border-color:transparent var(--v46-cyan);transform:rotate(35deg)}
.v46-orbit b{font:800 25px/1 var(--mono);color:#dffaff}.v46-orbit span{font:700 8px/1.4 var(--mono);color:var(--v46-cyan);letter-spacing:.16em;margin-top:5px}
.v46-safety{margin:14px 0;border:1px solid rgba(57,230,173,.45);border-radius:12px;padding:11px 15px;display:flex;gap:13px;align-items:center;background:rgba(7,44,44,.46);font-size:11px;color:#9cc8c2}.v46-safety b{color:var(--v46-green);white-space:nowrap;letter-spacing:.08em}
.v46-grid{display:grid;gap:14px}.v46-live-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr)}
.v46-current,.v46-protocol,.v46-compare-panel{background:linear-gradient(155deg,rgba(8,22,39,.96),rgba(5,12,25,.98));border-color:rgba(88,145,205,.3)}
.v46-contract-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 12px}.v46-contract-line span{font:700 14px/1.2 var(--mono);color:#d5eaff}.v46-contract-line b{font:800 30px/1 var(--mono);color:var(--v46-cyan);text-shadow:0 0 18px rgba(32,215,255,.28)}
.v46-gate-track{height:10px;border-radius:8px;background:#101d31;position:relative;overflow:hidden;border:1px solid rgba(118,158,205,.18)}.v46-gate-track i{position:absolute;top:-4px;bottom:-4px;width:1px;background:rgba(255,255,255,.25);z-index:2}.v46-gate-fill{height:100%;width:0;background:linear-gradient(90deg,var(--v46-blue),var(--v46-violet) 60%,var(--v46-cyan));box-shadow:0 0 14px rgba(32,215,255,.55);transition:width .5s ease}
.v46-gate-labels{display:flex;justify-content:space-between;color:#607894;font:700 8px/1 var(--mono);letter-spacing:.06em;margin-top:8px}.v46-gate-labels .active{color:var(--v46-cyan)}
.v46-decision-row{display:grid;grid-template-columns:repeat(6,minmax(92px,1fr));gap:8px;margin-top:18px}.v46-decision-row>div{border:1px solid rgba(111,156,207,.18);border-radius:10px;padding:10px;background:rgba(7,16,30,.62)}.v46-decision-row small{display:block;color:#687e98;font:700 8px/1.3 var(--mono);letter-spacing:.08em}.v46-decision-row b{display:block;color:#deedff;font:700 13px/1.2 var(--mono);margin-top:5px;overflow:hidden;text-overflow:ellipsis}
.v46-explain{margin-top:12px;padding:10px 12px;border-left:2px solid var(--v46-cyan);background:rgba(32,215,255,.045);color:#93adc9;font-size:11px;line-height:1.5}
.v46-control{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid rgba(112,151,194,.13);font-size:11px;color:#90a6be}.v46-control b{color:var(--v46-green);font:700 10px/1.3 var(--mono);letter-spacing:.06em}.v46-control.changed b{color:var(--v46-cyan);font-size:13px;text-shadow:0 0 12px rgba(32,215,255,.28)}.v46-protocol p{font-size:10px;line-height:1.55;margin:13px 0 0}
.v46-compare{display:grid;grid-template-columns:1fr 170px 1fr;align-items:stretch;gap:10px}.v46-rate-card,.v46-delta{border:1px solid rgba(111,156,207,.2);border-radius:14px;padding:18px;text-align:center;background:rgba(8,17,32,.7)}.v46-rate-card.six{border-color:rgba(32,215,255,.38);background:linear-gradient(150deg,rgba(12,38,55,.8),rgba(12,16,35,.74))}.v46-rate-card small,.v46-delta small{display:block;color:#6f89a6;font:700 9px/1.35 var(--mono);letter-spacing:.08em}.v46-rate-card b{display:block;font:800 36px/1 var(--mono);color:#e7f5ff;margin:10px 0 7px}.v46-rate-card.six b{color:var(--v46-cyan)}.v46-rate-card span,.v46-delta span{color:#71869e;font:10px/1.3 var(--mono)}.v46-delta{display:grid;place-content:center;border-style:dashed;background:rgba(13,20,37,.5)}.v46-delta b{display:block;font:800 26px/1 var(--mono);margin:10px 0 6px}.v46-truth{margin-top:9px;color:#748ba5;font-size:10px;text-align:center}
.v46-stat-title{font:700 9px/1 var(--mono);color:#6b829e;letter-spacing:.14em;margin:13px 0 7px}.v46-page .metric-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}.v46-page .metric{background:rgba(7,16,29,.72);border-color:rgba(95,142,194,.18)}
.v4-deck-performance{margin-top:14px;border-color:rgba(99,211,230,.28)}
.v4-deck-perf-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:9px 0}
.v4-deck-perf-controls .btn.active{border-color:#63d3e6;color:#63d3e6;background:rgba(99,211,230,.09)}
.v4-deck-perf-controls #v4DeckChooseDates{margin-left:auto}
.v4-deck-perf-note{font-size:10px;line-height:1.5;margin:8px 0}
.v4-deck-performance .metric-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}
.v4-deck-performance .metric{background:rgba(7,16,29,.72);border-color:rgba(95,142,194,.18)}
@media(max-width:880px){.v4-deck-performance .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.v4-deck-perf-controls #v4DeckChooseDates{margin-left:0}}
.v46-table td,.v46-table th{white-space:nowrap}.v46-method{font-size:10px;margin-top:9px;line-height:1.55}
.v46-history-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:8px 0 10px}.v46-scope.active{border-color:var(--v46-cyan);color:var(--v46-cyan);background:rgba(32,215,255,.1)}
.v46-history-picker #v46CalWrap,.v2-history-picker #v2CalWrap{max-width:820px}.v46-calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.v46-calendar-nav b{color:#dcecff}
.v46-calendar-help{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0 10px;color:#829ab7;font-size:11px}.v46-history-picker #v46SelectionLabel{font-size:11px;margin:8px 0 2px}
.cons-history-picker #consCalWrap{max-width:820px}.cons-history-picker #consSelectionLabel{font-size:11px;margin:8px 0 10px}.cons-scope.active{border-color:var(--v46-cyan);color:var(--v46-cyan);background:rgba(32,215,255,.1)}
.cons-reading-guide{border:1px solid rgba(99,211,230,.2);border-radius:9px;background:rgba(32,215,255,.045);color:#adbed0;font-size:11px;line-height:1.55;padding:9px 12px;margin:8px 0 10px}.cons-reading-guide b{color:#d9edf4}.view[data-view="v4-conservative"] .dtable th{white-space:nowrap}
@media(max-width:1180px){.v46-live-grid{grid-template-columns:1fr}.v46-decision-row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:880px){.v46-page:before{inset:60px 0 0 0}.v46-hero{padding:22px}.v46-orbit{width:86px;height:86px}.v46-hero h1{font-size:30px}.v46-compare{grid-template-columns:1fr}.v46-delta{min-height:100px}.v46-page .metric-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.v46-hero{align-items:flex-start}.v46-orbit{display:none}.v46-hero h1{font-size:26px}.v46-safety{align-items:flex-start;flex-direction:column}.v46-decision-row{grid-template-columns:repeat(2,1fr)}.v46-gate-labels span:nth-child(2){display:none}}

/* Base Styles & Universal Resets */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
b, strong { font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Custom High-Precision Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(7, 9, 14, 0.75); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  border: 2px solid rgba(7, 9, 14, 0.75);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* Quant Typography & Utility Classes */
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.positive { color: var(--yes) !important; }
.negative { color: var(--no) !important; }
.warning { color: var(--warn) !important; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); }

/* ==========================================================================
   APP SHELL LAYOUT
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: var(--shell-cols);
  grid-template-rows: var(--topbar-h) 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg);
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
  grid-row: 1 / 3;
  grid-column: 1;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  user-select: none;
  z-index: 25;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}
.sidebar .brand .coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  box-shadow: 0 0 10px var(--accent-glow);
}
.sidebar .brand .brand-logo {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid rgba(59, 218, 255, 0.55);
  border-radius: 50%;
  background: #020912;
  box-shadow: 0 0 24px rgba(32, 201, 255, 0.26), inset 0 0 0 1px rgba(255, 211, 88, 0.16);
}
.sidebar .brand b {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  font-weight: 750;
  color: #fff;
}
.sidebar .brand small {
  display: block;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  flex: 1;
}
.nav li { margin: 1px 0; }
.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}
.nav button:hover {
  background: var(--bg-panel);
  color: var(--text);
}
.nav button.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.02) 100%);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 650;
}
.nav button.active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav .nav-icon {
  width: 16px;
  text-align: center;
  opacity: 0.85;
  font-size: 11px;
}
.nav .nav-section {
  padding: 14px 16px 5px;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav .nav-advanced {
  margin-top: 10px;
  border-top: 1px solid var(--border-soft);
  padding-top: 6px;
}
.nav .nav-advanced details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}
.nav .nav-advanced details > summary::-webkit-details-marker { display: none; }
.nav .nav-advanced details > summary:hover { background: var(--bg-panel); color: var(--text); }
.nav .nav-advanced details[open] > summary { color: var(--accent); }
.nav .nav-advanced details[open] > summary .nav-icon { transform: rotate(45deg); }
.nav .nav-advanced ul { list-style: none; margin: 0; padding: 0 0 6px; }
.nav .nav-advanced ul button {
  padding: 6px 12px 6px 28px;
  font-size: 11px;
}
.sidebar-footer {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-faint);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  z-index: 20;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-faint);
  transition: all 0.2s ease;
}
.mode-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}
.mode-pill.mp-live.on {
  color: #fff;
  background: var(--live-dim);
  border-color: var(--live);
  box-shadow: 0 0 12px var(--live-glow);
}
.mode-pill.mp-live.on .dot {
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse-live 1.2s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.mode-pill.mp-paper.on {
  color: var(--paper);
  background: var(--paper-dim);
  border-color: var(--paper);
}
.mode-pill.mp-paper.on .dot { background: var(--paper); box-shadow: 0 0 6px var(--paper); }
.mode-pill.mp-demo.on {
  color: var(--demo);
  border-color: var(--demo);
  background: var(--warn-dim);
}
.mode-pill.mp-demo.on .dot { background: var(--demo); }
.mode-pill.mp-shadow.on {
  color: var(--shadow);
  border-color: var(--shadow);
  background: var(--shadow-dim);
}
.mode-pill.mp-shadow.on .dot { background: var(--shadow); }
.mode-pill.mp-research.on {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
}
.health-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yes);
  box-shadow: 0 0 6px var(--yes);
}
.health-pill.degraded .dot { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.health-pill.failed .dot { background: var(--no); box-shadow: 0 0 6px var(--no); }

.topbar-ticker {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-panel-2);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.03em;
}

.topbar .spacer { flex: 1; }

.estop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-panel);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.estop-pill.tripped {
  background: var(--no-dim);
  color: var(--no);
  border-color: var(--no);
  box-shadow: 0 0 16px var(--no-glow);
  animation: pulse-tripped 1.2s infinite;
}
@keyframes pulse-tripped {
  0%, 100% { opacity: 1; border-color: var(--no); }
  50% { opacity: 0.6; border-color: rgba(244, 63, 94, 0.2); }
}

#topEstopBtn {
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.topbar .clock {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 3px 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
}

/* ==========================================================================
   LIVE DISPLAY GUARD
   ========================================================================== */
.live-display-guard {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.45) 0%, rgba(10, 14, 22, 0.75) 100%);
  color: #bae6fd;
  font-size: 11px;
  line-height: 1.45;
}
.live-display-guard b {
  white-space: nowrap;
  color: #38bdf8;
  letter-spacing: 0.08em;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.live-display-guard.live-on {
  border-color: rgba(244, 63, 94, 0.35);
  border-left-color: var(--no);
  background: linear-gradient(90deg, rgba(76, 5, 25, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  color: #fecdd3;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15);
}
.live-display-guard.live-on b {
  color: #ff4d6a;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
}
body.real-money-live [data-paper-bid-ledger="true"],
body.real-money-live [data-paper-bid-nav="true"] {
  display: none !important;
}

/* ==========================================================================
   CONTENT VIEW CONTAINER
   ========================================================================== */
.content {
  grid-row: 2;
  grid-column: 2;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 22px 48px;
  scroll-behavior: smooth;
}
.view { display: none; }
.view.active { display: block; animation: view-fade 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes view-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.view-header h1 {
  font-size: 18px;
  font-weight: 750;
  margin: 0;
  letter-spacing: 0.01em;
  color: #fff;
}
.view-header .sub {
  color: var(--text-dim);
  font-size: 11.5px;
}

/* ==========================================================================
   PANELS, CARDS & CONTAINERS
   ========================================================================== */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}
.panel:hover {
  border-color: var(--border-strong);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  gap: 10px;
}
.panel-head h2 {
  font-size: 11px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-head .tag,
.tag {
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-panel-2);
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-soft);
}
.tag.on,
.panel-head .tag.on {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

/* Metrics & Grids */
.metric-grid {
  display: grid;
  gap: 8px 14px;
}
.metric-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-grid.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 0;
}
.metric small {
  color: var(--text-faint);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric b {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reason {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: all 0.12s ease;
  user-select: none;
}
.btn:hover {
  background: var(--bg-panel-elevated);
  border-color: var(--border-strong);
  color: #fff;
}
.btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.btn.danger {
  background: var(--no-dim);
  color: #fca5a5;
  border-color: var(--no-border);
}
.btn.danger:hover {
  background: var(--no);
  color: #fff;
  box-shadow: 0 0 14px var(--no-glow);
}
.btn.go {
  background: #0f3e24;
  border-color: #1b7a48;
  color: #86efac;
}
.btn.go:hover {
  background: #15803d;
  color: #fff;
  box-shadow: 0 0 14px var(--yes-glow);
}
.btn.neutral {
  background: #16202c;
  border-color: #27374a;
  color: #cbd5e1;
}
.btn.neutral:hover {
  background: #1e2c3c;
  border-color: #3b5068;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
  align-items: center;
}

/* Forms & Inputs */
select, input[type=search], input[type=text], input[type=number], textarea {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  font-size: 11.5px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 9.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ==========================================================================
   COMMAND CENTER / DECISION DESK
   ========================================================================== */
.cc-grid {
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  gap: 14px;
  grid-template-areas:
    "left center right"
    "bottom bottom bottom"
    "events events events";
}
.cc-left { grid-area: left; }
.cc-center { grid-area: center; }
.cc-right { grid-area: right; }
.cc-bottom { grid-area: bottom; }
.cc-events { grid-area: events; }

.decision-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.decision-scope > div {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
}
.decision-scope small {
  display: block;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.decision-scope b { font-size: 12px; }

/* Final Decision Box */
.final-decision {
  background: linear-gradient(180deg, var(--bg-panel-2) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.final-decision::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}
.final-decision.side-yes {
  border-color: var(--yes-border);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12), inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.final-decision.side-yes::before {
  background: linear-gradient(90deg, transparent, var(--yes), transparent);
}
.final-decision.side-no {
  border-color: var(--no-border);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.12), inset 0 0 0 1px rgba(244, 63, 94, 0.2);
}
.final-decision.side-no::before {
  background: linear-gradient(90deg, transparent, var(--no), transparent);
}
.fd-mission {
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 3px;
}
.fd-ticker {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.fd-simple {
  margin: 12px 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}
.fd-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin: 12px 0;
}
.fd-col small {
  display: block;
  color: var(--text-faint);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 2px;
}
.fd-decision {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.01em;
  font-family: var(--mono);
}
.fd-timer {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 750;
  color: var(--accent);
}
.fd-probs {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}
.fd-prob {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.fd-prob small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.fd-prob b {
  font-size: 22px;
  font-family: var(--mono);
  display: block;
}
.fd-prob.yes b { color: var(--yes); }
.fd-prob.no b { color: var(--no); }
.fd-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.fd-compare .box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.fd-compare .box .label {
  font-size: 9px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 3px;
}
.fd-compare .box .val {
  font-weight: 700;
  font-size: 12.5px;
  font-family: var(--mono);
}
.fd-not-authoritative {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 9.5px;
  color: var(--text-faint);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Collapsibles */
.cc-collapsible {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.cc-collapsible > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
  transition: background 0.15s ease;
}
.cc-collapsible > summary::-webkit-details-marker { display: none; }
.cc-collapsible > summary::before {
  content: "＋";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  font-weight: 800;
}
.cc-collapsible[open] > summary::before { content: "−"; }
.cc-collapsible[open] > summary {
  border-bottom: 1px solid var(--border-soft);
  color: #fff;
  background: var(--bg-panel-2);
}
.cc-collapsible > .panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ==========================================================================
   TABLES & AUDIT LOGS
   ========================================================================== */
.table-wrap, .cc-table-scroll {
  overflow-x: auto;
  max-height: 460px;
  overflow-y: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
}
.dtable {
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.dtable th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-panel-2);
  color: var(--text-faint);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dtable td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  vertical-align: middle;
  white-space: nowrap;
}
.dtable tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}
.dtable td.empty {
  color: var(--text-faint);
  text-align: center;
  padding: 24px;
  font-style: italic;
}
tr.cc-click { cursor: pointer; }
tr.cc-click:hover td { background: rgba(56, 189, 248, 0.08) !important; }

/* Status Dot Component */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--yes);
  box-shadow: 0 0 6px var(--yes);
}
.status-dot.degraded { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.status-dot.failed, .status-dot.starting { background: var(--text-faint); box-shadow: none; }

/* Event Feed */
.event-feed {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}
.event-row {
  display: flex;
  gap: 10px;
  padding: 6px 6px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px;
  align-items: baseline;
}
.event-row .t {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9.5px;
  width: 62px;
  flex: 0 0 auto;
}
.event-row .tag {
  flex: 0 0 auto;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.event-row .tag.paper { background: var(--paper-dim); color: var(--paper); }
.event-row .tag.live { background: var(--live-dim); color: #ff6b82; }
.event-row .tag.demo { background: var(--warn-dim); color: var(--demo); }
.event-row .tag.boss { background: var(--shadow-dim); color: var(--shadow); }
.event-row .tag.news { background: #0c2f38; color: #38bdf8; }
.event-row .tag.v4 { background: var(--accent-dim); color: var(--accent); }
.event-row .tag.member { background: #0c2f38; color: #2dd4bf; }
.event-row .tag.system { background: var(--shadow-dim); color: #c084fc; }
.event-row .msg { flex: 1; color: var(--text-dim); }

.event-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-panel-2);
  cursor: pointer;
  transition: all 0.12s ease;
}
.chip:hover { color: #fff; border-color: var(--border-strong); }
.chip.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

/* ==========================================================================
   SPARK HUNTER V4 & INTELLIGENCE LAB
   ========================================================================== */
#shv4Chart {
  border-radius: var(--radius-sm);
  background: #06090e;
  display: block;
}
.v4-original-results {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
}
#shv4Exec {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.3) 0%, rgba(10, 14, 22, 0.6) 100%);
  border-radius: var(--radius);
  padding: 10px 12px;
}
#shv4LastExit {
  border: 1px solid var(--warn);
  background: rgba(15, 12, 6, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

/* Kalshi Fast-Stream Proof */
.obq-panel {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.25) 0%, rgba(13, 18, 28, 0.7) 100%);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.obq-panel.good {
  border-color: var(--yes-border);
  background: linear-gradient(180deg, rgba(5, 46, 22, 0.3) 0%, rgba(13, 18, 28, 0.7) 100%);
}
.obq-panel.bad {
  border-color: var(--no-border);
  background: linear-gradient(180deg, rgba(76, 5, 25, 0.3) 0%, rgba(13, 18, 28, 0.7) 100%);
}
.obq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.obq-head > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #fff;
}
.obq-head > div span {
  font-size: 9.5px;
  color: var(--text-dim);
}
.obq-verdict {
  border-radius: 4px;
  padding: 3px 10px;
  background: var(--warn);
  color: #000;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.obq-panel.good .obq-verdict { background: var(--yes); color: #000; }
.obq-panel.bad .obq-verdict { background: var(--no); color: #fff; }
.obq-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(90px, 1fr));
  gap: 6px;
}
.obq-grid > div {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 8px;
  min-width: 0;
}
.obq-grid small {
  display: block;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.obq-grid b {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obq-reason {
  margin-top: 8px;
  color: var(--warn);
  font-size: 10.5px;
}
.obq-panel.good .obq-reason { color: var(--yes); }
.obq-panel.bad .obq-reason { color: #ff7f8f; }
.obq-truth {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.45;
}

/* Market Intelligence & Microstructure */
#miGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
#miGrid .mi-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
}
#miGrid .mi-card h4 {
  margin: 0 0 6px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
}
#miGrid .mi-card .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.55;
}
#miGrid .mi-card .row b { font-variant-numeric: tabular-nums; }
#miSources .mi-badge {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  background: var(--bg-panel);
}

.mi-guide-channel {
  margin: 0 0 10px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  overflow: hidden;
}
.mi-guide-channel > summary {
  cursor: pointer;
  padding: 8px 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mi-guide-channel[open] > summary {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel-2);
}
.mi-guide-body {
  padding: 12px;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.5;
}

.mi-pro-channel {
  margin-top: 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
}
.mi-pro-channel > summary {
  cursor: pointer;
  padding: 10px 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mi-pro-channel[open] > summary {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel-2);
}
.mi-pro-truth {
  padding: 8px 14px 0;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.45;
}
.mi-pro-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px;
}
.mi-pro-tabs button {
  background: var(--bg-panel-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mi-pro-tabs button.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}
.mi-pro-view { display: none; padding: 0 14px 14px; }
.mi-pro-view.active { display: block; }

/* Resting Liquidity Heatmap */
.mi-heat-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.mi-heat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}
.mi-heat-head b { font-size: 12px; color: #fff; }
.mi-range { display: flex; gap: 4px; }
.mi-range button {
  border: 1px solid var(--border);
  background: var(--bg-panel-2);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 3px 8px;
  font: 700 9px var(--mono);
}
.mi-range button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.mi-heat-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.mi-heat-summary > div {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}
.mi-heat-summary small {
  display: block;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.mi-heat-summary b {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.mi-heat-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #06090e;
}
#miHeat { display: block; width: 100%; height: 250px; background: #06090e; }
.mi-heat-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 9px;
  font-family: var(--mono);
}
.mi-heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 9px;
}
.mi-heat-legend i {
  display: inline-block;
  width: 12px;
  height: 3px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 2px;
}
.mi-heat-legend .bid { background: var(--yes); }
.mi-heat-legend .ask { background: var(--no); }
.mi-heat-legend .mid { background: #fff; }

/* ==========================================================================
   CAPITAL & EXECUTION (V4 LIVE CONTROL & CUSTOMER ACCOUNTS)
   ========================================================================== */
.capital-section {
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.capital-section.env-paper { border-top: 3px solid var(--paper); }
.capital-section.env-demo { border-top: 3px solid var(--demo); }
.capital-section.env-live { border-top: 3px solid var(--live); }

.capital-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.capital-head .env-badge {
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}
.env-paper .env-badge { background: var(--paper-dim); color: var(--paper); border: 1px solid var(--paper); }
.env-demo .env-badge { background: var(--warn-dim); color: var(--demo); border: 1px solid var(--demo); }
.env-live .env-badge { background: var(--live-dim); color: #ff6b82; border: 1px solid var(--live); }

.live-owner-control {
  background: linear-gradient(180deg, rgba(76, 5, 25, 0.15) 0%, var(--bg-panel) 100%);
  border-color: rgba(244, 63, 94, 0.3);
}
.live-control-banner {
  padding: 11px 14px;
  margin: 0 0 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: rgba(8, 47, 73, 0.4);
  color: #bae6fd;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
body.real-money-live .live-control-banner {
  border-color: var(--no);
  background: var(--no-dim);
  color: #fecdd3;
  box-shadow: 0 0 16px var(--no-glow);
}
.live-control-readiness {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(69, 26, 3, 0.3);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
}
.live-control-readiness.ready {
  border-color: var(--yes-border);
  background: rgba(5, 46, 22, 0.35);
  color: #86efac;
}
.live-control-readiness.armed {
  border-color: var(--no);
  background: var(--no-dim);
  color: #fca5a5;
}
.live-control-actions {
  margin-top: 14px;
}
.live-control-actions .btn {
  min-width: 175px;
  font-size: 11.5px;
  padding: 8px 16px;
}

.cons-banner {
  padding: 10px 14px;
  margin: 0 0 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(69, 26, 3, 0.3);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 800;
}
.v2-banner {
  padding: 10px 14px;
  margin: 0 0 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: rgba(8, 47, 73, 0.35);
  color: #bae6fd;
  font-size: 11.5px;
  font-weight: 800;
}

/* ==========================================================================
   PERFORMANCE CENTER & DUAL-COLUMN LAYOUTS
   ========================================================================== */
.cc-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 14px;
}
.cc-col {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.cc-col h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.cc-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-soft);
}

/* ==========================================================================
   CALENDARS & SELECTION WIDGETS
   ========================================================================== */
.tw-cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 8px;
}
.tw-cal-head b {
  text-align: center;
  color: var(--text-faint);
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 750;
}
.tw-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 6px;
}
.tw-day {
  min-height: 66px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
  color: var(--text-dim);
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}
.tw-day:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}
.tw-day.on {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.tw-day.empty { visibility: hidden; }
.tw-day .dayn { font-weight: 750; color: #fff; font-size: 11px; }
.tw-day .daymeta { display: block; font-size: 8.5px; margin-top: 5px; line-height: 1.4; }

.tw-live-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(8, 47, 73, 0.3);
  color: #bae6fd;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 11px;
}
.tw-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yes);
  box-shadow: 0 0 8px var(--yes);
  flex: 0 0 auto;
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modal-fade 0.15s ease-out;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cc-modal-body {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 92%;
  max-height: 86vh;
  overflow: auto;
  padding: 20px 24px;
  position: relative;
  box-shadow: var(--shadow-elevated);
}
#v4hModal .cc-modal-body.v4-acct-wide { max-width: 1180px; }
.cc-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.12s ease;
}
.cc-modal-close:hover { color: #fff; }

.v4-acct-exec {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg-panel-2);
}
.v4-acct-exec h3 { margin: 0 0 8px; font-size: 13px; font-weight: 750; }
.v4-acct-exec .note { font-size: 9.5px; color: var(--text-faint); margin: 0 0 10px; line-height: 1.45; }
.v4-acct-exec table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.v4-acct-exec th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 700;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
}
.v4-acct-exec td { padding: 6px 8px; border-top: 1px solid var(--border-soft); vertical-align: top; }
.v4-acct-exec .st-FILLED, .v4-acct-exec .st-PARTIAL { color: var(--yes); font-weight: 750; }
.v4-acct-exec .st-REJECTED, .v4-acct-exec .st-SUSPENDED { color: var(--no); font-weight: 750; }
.v4-acct-exec .st-LIQ { color: var(--warn); font-weight: 750; }
.v4-acct-exec .st-DEPTH { color: var(--accent); font-weight: 750; }

/* ==========================================================================
   V2 RESEARCH DESK (INSTITUTIONAL PRESENTATION)
   ========================================================================== */
.v2-institutional {
  --v2-card: #0d121c;
  --v2-elev: #121824;
  --v2-line: rgba(255, 255, 255, 0.08);
  --v2-line2: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.v2-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 2px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.v2-eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.v2-page-header h1 {
  margin: 0;
  font-size: 20px;
  color: #fff;
  font-weight: 750;
}
.v2-page-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v2-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel-2);
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
}
.v2-status-pill.healthy, .v2-status-pill.pass {
  border-color: var(--yes-border);
  background: var(--yes-dim);
  color: #86efac;
}
.v2-status-pill.paper {
  border-color: var(--border-accent);
  background: var(--paper-dim);
  color: var(--paper);
}
.v2-status-pill.none, .v2-status-pill.pending {
  border-color: var(--warn-border);
  background: var(--warn-dim);
  color: #fde68a;
}
.v2-status-pill.blocked, .v2-status-pill.fail {
  border-color: var(--no-border);
  background: var(--no-dim);
  color: #fca5a5;
}

/* Research identity colors stay separate from green WIN and red LOSS outcomes. */
.v2-research-card { border-top-width: 2px; }
.v2-research-consensus { border-top-color: rgba(56, 189, 248, .72); }
.v2-research-consensus .panel-head h2, .v2-tone-consensus { color: #67d6ff !important; }
.v2-research-divergence { border-top-color: rgba(192, 132, 252, .72); }
.v2-research-divergence .panel-head h2, .v2-tone-divergence { color: #d8a7ff !important; }
.v2-research-underdog { border-top-color: rgba(251, 191, 36, .76); }
.v2-research-underdog .panel-head h2, .v2-tone-underdog { color: #ffd166 !important; }
.v2-tone-baseline { color: #9fb0c5 !important; }
.v2-exp-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font: 800 9px var(--mono);
  letter-spacing: .045em;
  white-space: nowrap;
}
.v2-exp-label.consensus { color: #67d6ff; background: rgba(56, 189, 248, .10); }
.v2-exp-label.divergence { color: #d8a7ff; background: rgba(192, 132, 252, .10); }
.v2-exp-label.underdog { color: #ffd166; background: rgba(251, 191, 36, .10); }
.v2-exp-label.baseline { color: #9fb0c5; background: rgba(148, 163, 184, .08); }

.v2-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.v2-pipe-step {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--text-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}
.v2-pipe-step small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.v2-pipe-step b {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-pipe-step.completed { border-top-color: var(--yes); }
.v2-pipe-step.completed b { color: var(--yes); }
.v2-pipe-step.active { border-top-color: var(--accent); }
.v2-pipe-step.active b { color: var(--accent); }
.v2-pipe-step.blocked { border-top-color: var(--no); }
.v2-pipe-step.blocked b { color: var(--no); }
.v2-pipe-step.pending { border-top-color: var(--warn); }
.v2-pipe-step.pending b { color: var(--warn); }

.v2-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.v2-metric-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}
.v2-metric-box small {
  display: block;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.v2-metric-box > b {
  display: block;
  margin: 6px 0 4px;
  font: 750 17px var(--mono);
  color: #fff;
}
.v2-metric-box span { color: var(--text-faint); font-size: 9.5px; }
.v2-metric-box strong { color: var(--accent); }

/* V2 Terminal Panel */
.v2-terminal-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #07090e;
  box-shadow: var(--shadow-elevated);
}
.v2-chart-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel-2);
}
.v2-chart-titlebar h2 {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.v2-chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel);
}
.v2-chart-chips, .v2-chart-zoom {
  display: flex;
  align-items: center;
  gap: 5px;
}
.v2-chart-chips button, .v2-chart-zoom button {
  height: 23px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-panel-2);
  color: var(--text-dim);
  font-size: 8.5px;
  font-weight: 800;
  cursor: pointer;
}
.v2-chart-chips button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.v2-chart-hud {
  display: grid;
  grid-template-columns: 1.15fr repeat(5, 0.75fr) 1fr 1fr 0.75fr;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.35);
}
.v2-chart-hud > span {
  padding: 6px 8px;
  border-right: 1px solid var(--border-soft);
  min-width: 0;
}
.v2-chart-hud > span:last-child { border-right: 0; }
.v2-chart-hud small {
  display: block;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.v2-chart-hud b {
  display: block;
  font: 9.5px var(--mono);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-chart-wrap {
  position: relative;
  min-height: 420px;
  background: #06090e;
}
.v2-chart {
  width: 100%;
  height: 420px;
  display: block;
  background: #06090e;
}
.v2-chart-tip {
  display: none;
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 210px;
  padding: 9px 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 14, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #e2e8f0;
  font: 10px/1.55 var(--mono);
}
.v2-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-panel);
  color: var(--text-faint);
  font-size: 8.5px;
}

.v2-desk-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.v2-decision-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
  margin-bottom: 10px;
}
.v2-decision-hero > b { font: 800 20px var(--mono); color: #fff; }
.v2-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.v2-signal-grid > div {
  padding: 8px 10px;
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
}
.v2-signal-grid > div:last-child { border-right: 0; }
.v2-signal-grid b { font: 750 13px var(--mono); margin-top: 4px; display: block; }

.v2-book-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.v2-book-sides > div {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}
.v2-book-sides > .yes { border-top: 2px solid var(--yes); }
.v2-book-sides > .no { border-top: 2px solid var(--no); }
.v2-book-sides b { font: 800 18px var(--mono); display: block; margin: 6px 0 3px; }
.v2-book-sides .yes b { color: var(--yes); }
.v2-book-sides .no b { color: var(--no); }

.v2-book-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.v2-book-detail > div {
  padding: 8px 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel-2);
}
.v2-book-detail > div:nth-child(2n) { border-right: 0; }
.v2-book-detail > div:nth-last-child(-n+2) { border-bottom: 0; }
.v2-book-detail b { font: 700 11px var(--mono); display: block; margin-top: 3px; }

.v2-performance-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
/* 1920px Ultrawide Cockpit */
@media (min-width: 1800px) {
  :root { --shell-cols: 250px 1fr; }
  .content { padding: 22px 30px 60px; }
  .cc-grid { grid-template-columns: 320px 1fr 320px; }
}

/* 1440px Standard Display */
@media (max-width: 1440px) {
  .obq-grid { grid-template-columns: repeat(5, minmax(90px, 1fr)); }
}

/* 1150px Mid-Desktop Breakpoint */
@media (max-width: 1150px) {
  .cc-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left"
      "right"
      "bottom"
      "events";
  }
  .v2-desk-split { grid-template-columns: 1fr; }
  .obq-grid { grid-template-columns: repeat(4, minmax(90px, 1fr)); }
}

/* 1024px Compact Desktop / Tablet Landscape */
@media (max-width: 1024px) {
  :root { --shell-cols: 200px 1fr; }
  .content { padding: 14px 16px 40px; }
  .decision-scope { grid-template-columns: 1fr; }
  .v2-pipeline { grid-template-columns: repeat(3, 1fr); }
  .v2-key-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-chart-hud { grid-template-columns: repeat(5, 1fr); }
  .metric-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .metric-grid.c5 { grid-template-columns: repeat(3, 1fr); }
  .fd-compare { grid-template-columns: 1fr; }
}

/* 880px / 768px Mobile & Tablet Portrait Breakpoint */
@media (max-width: 880px) {
  :root { --shell-cols: 0 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 6px 8px;
    cursor: pointer;
  }
  .topbar { padding: 0 12px; }
  .content { padding: 12px 12px 36px; }
  .v2-page-header, .v2-chart-titlebar, .v2-chart-controls, .v2-chart-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .v2-chart, .v2-chart-wrap { height: 340px; min-height: 340px; }
  .v2-pipeline, .v2-key-grid, .v2-performance-split { grid-template-columns: 1fr; }
  .v2-chart-hud { grid-template-columns: repeat(3, 1fr); }
  .metric-grid.c3, .metric-grid.c2 { grid-template-columns: 1fr; }
  .fd-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fd-probs { flex-direction: column; }
}

/* 650px Phone Breakpoint */
@media (max-width: 650px) {
  .obq-grid { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
  .obq-head { align-items: flex-start; flex-direction: column; }
  .topbar-ticker { display: none; }
  .live-display-guard { flex-direction: column; align-items: flex-start; }
}

/* Fresh Ledger Panel Display Guard */
.fresh-ledger > .panel:not(.fresh-ledger-main) { display: none !important; }

/* ========================================================================== 
   AURORA COMMAND LAYER — DISTINCTIVE 2026 OPERATIONS COCKPIT
   Presentation only. The existing DOM contracts and operational behavior stay
   intact while hierarchy, spacing, chart framing, and responsive flow change.
   ========================================================================== */
:root {
  --bg: #03050a;
  --bg-app: #03050a;
  --bg-raised: rgba(6, 10, 18, 0.96);
  --bg-panel: rgba(9, 15, 27, 0.88);
  --bg-panel-2: rgba(14, 23, 39, 0.9);
  --bg-panel-elevated: rgba(20, 33, 54, 0.94);
  --bg-card: rgba(10, 17, 30, 0.88);
  --bg-card-hover: rgba(17, 29, 48, 0.96);
  --bg-glass: rgba(5, 9, 17, 0.82);
  --bg-glass-card: rgba(10, 17, 29, 0.78);
  --border: rgba(145, 176, 220, 0.12);
  --border-soft: rgba(145, 176, 220, 0.07);
  --border-strong: rgba(160, 197, 244, 0.23);
  --border-accent: rgba(37, 211, 255, 0.34);
  --border-accent-strong: rgba(37, 211, 255, 0.68);
  --text: #edf5ff;
  --text-dim: #9cb0c9;
  --text-faint: #66809f;
  --text-muted: #415675;
  --accent: #25d3ff;
  --accent-dim: rgba(12, 84, 112, 0.42);
  --accent-glow: rgba(37, 211, 255, 0.26);
  --paper: #25d3ff;
  --paper-glow: rgba(37, 211, 255, 0.24);
  --paper-dim: rgba(8, 70, 99, 0.46);
  --yes: #26e5a3;
  --yes-glow: rgba(38, 229, 163, 0.24);
  --no: #ff5f7e;
  --no-glow: rgba(255, 95, 126, 0.24);
  --warn: #ffc857;
  --shadow: #9c7cff;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shell-cols: 270px 1fr;
  --topbar-h: 68px;
  --shadow-card: 0 18px 50px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(123, 170, 222, 0.08);
  --shadow-elevated: 0 28px 80px -35px rgba(0, 0, 0, 1), 0 0 0 1px rgba(113, 180, 240, 0.18);
}

html, body {
  font-size: 13.5px;
  background: #03050a;
}

.app-shell {
  background:
    radial-gradient(900px 620px at 70% -12%, rgba(34, 90, 170, 0.18), transparent 66%),
    radial-gradient(780px 520px at 12% 100%, rgba(80, 50, 170, 0.12), transparent 70%),
    linear-gradient(145deg, #03050a 0%, #050914 50%, #03060c 100%);
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: var(--topbar-h) 0 0 var(--shell-cols);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 154, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 154, 214, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%);
}

.sidebar {
  margin: 10px 0 10px 10px;
  height: calc(100vh - 20px);
  border: 1px solid rgba(116, 161, 211, 0.15);
  border-radius: 20px;
  background:
    radial-gradient(420px 260px at 0 0, rgba(37, 211, 255, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(8, 14, 25, 0.97), rgba(5, 9, 17, 0.98));
  box-shadow: 22px 0 60px -44px rgba(31, 198, 255, 0.5), 0 20px 70px -38px #000;
}

.sidebar .brand {
  min-height: 108px;
  gap: 13px;
  padding: 17px 18px;
  border-bottom-color: rgba(130, 177, 230, 0.12);
  background: linear-gradient(135deg, rgba(37, 211, 255, 0.075), rgba(156, 124, 255, 0.035));
}

.sidebar .brand .coin-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #b6f3ff;
  font-size: 16px;
  background: linear-gradient(145deg, rgba(37, 211, 255, 0.22), rgba(77, 101, 255, 0.12));
  border-color: rgba(75, 219, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 28px rgba(37, 211, 255, 0.24);
}

.sidebar .brand b { font-size: 13px; letter-spacing: .075em; }
.sidebar .brand small { margin-top: 2px; color: #6f89a7; font-size: 8.5px; }
.nav { padding: 8px 9px 12px; margin: 0; }
.nav li { margin: 3px 0; }
.nav .nav-section { padding: 18px 11px 7px; font-size: 8px; color: #516986; }
.nav button {
  min-height: 39px;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-left: 1px solid transparent;
  border-radius: 10px;
  color: #8fa6c1;
  font-size: 11.5px;
}
.nav button:hover {
  color: #eaf7ff;
  background: rgba(68, 111, 158, 0.1);
  border-color: rgba(105, 160, 217, 0.1);
  transform: translateX(2px);
}
.nav button.active {
  color: #f4fbff;
  border-color: rgba(37, 211, 255, 0.24);
  background: linear-gradient(105deg, rgba(37, 211, 255, 0.19), rgba(90, 89, 255, 0.08) 62%, rgba(255,255,255,.025));
  box-shadow: inset 3px 0 0 #25d3ff, 0 10px 24px -18px rgba(37, 211, 255, .9);
}
.nav button.active::after { right: 13px; width: 7px; height: 7px; background: #73e8ff; }
.nav .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: #7b96b6;
  background: rgba(113, 157, 207, 0.07);
}
.nav button.active .nav-icon { color: #6fe6ff; background: rgba(37, 211, 255, 0.13); }
.nav .nav-advanced { border-top-color: rgba(130, 177, 230, 0.1); }
.nav .nav-advanced details > summary { padding: 10px 12px; border-radius: 10px; }
.sidebar-footer {
  margin: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(112, 154, 205, 0.1);
  border-radius: 11px;
  background: rgba(8, 14, 24, 0.78);
  color: #607895;
}

.topbar {
  margin-left: 10px;
  padding: 0 26px;
  gap: 10px;
  border-bottom-color: rgba(125, 170, 220, 0.12);
  background: linear-gradient(90deg, rgba(5, 9, 17, .9), rgba(8, 14, 25, .78));
  box-shadow: 0 16px 50px -38px rgba(0,0,0,1);
}
.topbar::before {
  content: "COMMAND BUS";
  margin-right: 5px;
  color: #516b89;
  font: 750 8px/1 var(--mono);
  letter-spacing: .16em;
}
.mode-pill { min-height: 27px; padding: 4px 11px; border-radius: 9px; background: rgba(12, 20, 34, .8); }
.health-pill { min-height: 28px; padding: 4px 10px; border-radius: 9px; background: rgba(12, 20, 34, .68); }
.topbar-ticker { min-height: 28px; padding: 4px 11px; border-radius: 9px; }
.estop-pill { min-height: 28px; border-radius: 9px; }
#topEstopBtn { min-height: 34px; padding: 7px 15px; border-radius: 9px; }
.topbar .clock { min-height: 28px; display: inline-flex; align-items: center; border-radius: 9px; }

.content { padding: 26px 32px 78px; position: relative; }
.view.active { max-width: 1740px; margin: 0 auto; animation: aurora-arrive .34s cubic-bezier(.16,1,.3,1); }
@keyframes aurora-arrive { from { opacity: 0; transform: translateY(10px) scale(.996); } to { opacity: 1; transform: none; } }

.live-display-guard {
  min-height: 46px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(37, 211, 255, .22);
  border-left: 1px solid rgba(37, 211, 255, .22);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(7, 55, 78, .62), rgba(9, 16, 29, .82) 52%, rgba(59, 49, 126, .12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 45px -35px rgba(37,211,255,.8);
}
.live-display-guard b { padding: 4px 9px; border-radius: 7px; }

.view-header {
  align-items: center;
  min-height: 92px;
  margin-bottom: 20px;
  padding: 19px 22px;
  border: 1px solid rgba(123, 171, 225, .15);
  border-radius: 18px;
  background:
    radial-gradient(420px 150px at 8% 10%, rgba(37, 211, 255, .09), transparent 70%),
    linear-gradient(120deg, rgba(11, 19, 33, .92), rgba(8, 14, 25, .72));
  box-shadow: var(--shadow-card);
}
.view-header h1 { font-size: 26px; letter-spacing: -.025em; }
.view-header .sub { max-width: 740px; font-size: 12px; line-height: 1.55; text-align: right; }

.panel {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-color: rgba(132, 174, 222, .13);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(13, 22, 38, .92), rgba(7, 13, 23, .88)),
    rgba(8, 14, 24, .9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: visible;
}
.panel::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,211,255,.38), rgba(156,124,255,.22), transparent);
  opacity: .7;
}
.panel:hover { border-color: rgba(135, 190, 241, .24); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-elevated); }
.panel-head { min-height: 38px; margin-bottom: 14px; padding-bottom: 11px; border-bottom-color: rgba(131, 174, 222, .1); }
.panel-head h2 { color: #b7c9df; font-size: 10.5px; letter-spacing: .115em; }
.panel-head .tag, .tag { border-radius: 7px; padding: 3px 8px; background: rgba(17, 29, 48, .8); }

.metric-grid { gap: 10px; }
.metric {
  min-height: 66px;
  justify-content: center;
  padding: 10px 12px;
  border-color: rgba(127, 174, 225, .105);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(20, 32, 52, .58), rgba(8, 15, 27, .7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.metric small { color: #6e87a6; font-size: 8.5px; letter-spacing: .1em; }
.metric b { margin-top: 2px; color: #f2f8ff; font-size: 15px; }
.btn { min-height: 32px; border-radius: 9px; background: linear-gradient(180deg, rgba(28,44,69,.92), rgba(15,26,43,.92)); }
.chip { min-height: 28px; display: inline-flex; align-items: center; border-radius: 8px; }

.table-wrap, .cc-table-scroll {
  border-radius: 12px;
  border-color: rgba(127, 174, 225, .12);
  background: rgba(3, 7, 13, .5);
}
.dtable th { height: 36px; background: rgba(14, 24, 40, .96); color: #6e88a8; }
.dtable td { height: 38px; border-bottom-color: rgba(126, 166, 211, .07); }
.dtable tbody tr:nth-child(even) td { background: rgba(120, 165, 220, .018); }
.dtable tr:hover td { background: rgba(37, 211, 255, .055); }

/* A dramatic command identity for the primary V4 workspace. */
.command-hero {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(260px, .48fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 25px 30px;
  border: 1px solid rgba(64, 205, 255, .26);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(520px 190px at 12% 35%, rgba(37, 211, 255, .14), transparent 72%),
    radial-gradient(380px 210px at 78% 45%, rgba(118, 91, 255, .16), transparent 72%),
    linear-gradient(118deg, rgba(10, 22, 38, .97), rgba(6, 12, 24, .93));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 35px 100px -54px rgba(37,211,255,.8);
}
.command-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 56%, rgba(255,255,255,.025) 56.2%, transparent 56.5%);
}
.command-kicker { color: #4bddff; font: 800 9px/1 var(--mono); letter-spacing: .2em; }
.command-hero h1 { margin: 9px 0 6px; color: #fff; font-size: clamp(28px, 2.3vw, 42px); line-height: 1; letter-spacing: -.045em; }
.command-hero p { max-width: 720px; margin: 0; color: #91a9c5; font-size: 12.5px; }
.command-hero-orbit { position: relative; width: 104px; height: 104px; margin: auto; display: grid; place-items: center; }
.command-hero-orbit::before, .command-hero-orbit::after, .command-hero-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75, 224, 255, .28);
}
.command-hero-orbit::before { inset: 0; box-shadow: 0 0 30px rgba(37,211,255,.13); }
.command-hero-orbit::after { inset: 12px; border-color: rgba(156,124,255,.38); }
.command-hero-orbit span { inset: 24px; background: radial-gradient(circle, rgba(37,211,255,.16), rgba(75,72,190,.08)); }
.command-hero-orbit i { position: absolute; inset: -3px; border-top: 2px solid #42dbff; border-right: 2px solid transparent; border-radius: 50%; animation: command-orbit 7s linear infinite; }
.command-hero-orbit b { position: relative; color: #d9f8ff; font: 850 20px/1 var(--mono); text-shadow: 0 0 18px rgba(37,211,255,.8); }
@keyframes command-orbit { to { transform: rotate(360deg); } }
.command-hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; color: #7690ae; font: 750 9px/1.2 var(--mono); letter-spacing: .11em; }
.command-hero-meta strong { color: #c5d7e9; font-size: 10px; }
.signal-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #26e5a3; box-shadow: 0 0 12px rgba(38,229,163,.85); }

.view[data-view="spike-lab"] > .command-hero + .panel {
  padding: 23px 24px !important;
  border: 1px solid rgba(68, 207, 255, .25) !important;
  border-radius: 22px;
  background:
    radial-gradient(700px 320px at 23% 25%, rgba(26, 113, 150, .08), transparent 74%),
    linear-gradient(145deg, rgba(9, 18, 31, .96), rgba(5, 10, 19, .93));
}
.view[data-view="spike-lab"] > .command-hero + .panel > .panel-head + div {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(345px, .72fr);
  gap: 20px !important;
  align-items: stretch !important;
}
.view[data-view="spike-lab"] > .command-hero + .panel > .panel-head + div > div {
  min-width: 0 !important;
}
.view[data-view="spike-lab"] > .command-hero + .panel > .panel-head + div > div:first-child,
.view[data-view="spike-lab"] > .command-hero + .panel > .panel-head + div > div:last-child {
  padding: 13px;
  border: 1px solid rgba(126, 174, 225, .12);
  border-radius: 15px;
  background: rgba(3, 8, 15, .56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
#shv4Fresh { gap: 7px !important; margin: 1px 0 10px !important; }
#shv4Fresh > span { padding: 4px 7px !important; border-radius: 7px !important; background: rgba(9,17,28,.92); font-size: 9px; }
#shv4Chart {
  height: 520px !important;
  border: 1px solid rgba(91, 157, 214, .17) !important;
  border-radius: 12px !important;
  background: #050a11 !important;
  box-shadow: inset 0 0 60px rgba(22, 66, 104, .09), 0 16px 40px -30px #000;
}
#shv4Legend { min-height: 31px; align-items: center; margin-top: 7px !important; padding: 5px 7px; }
#shv4ToggleSlow { min-height: 25px; border-radius: 7px !important; padding: 3px 8px !important; }
#shv4Action {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 12px 14px !important;
  border: 1px solid rgba(109, 168, 224, .15);
  border-radius: 11px !important;
  font-size: 15px !important;
  letter-spacing: .03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
#shv4Panel { font-size: 11.5px !important; }
#shv4Panel > div { min-height: 27px; align-items: center; padding: 4px 7px !important; border-bottom-color: rgba(123,166,211,.08) !important; }
#shv4Panel > div:nth-child(odd) { background: rgba(108, 151, 202, .025); }
#shv4Exec { margin-top: 16px !important; padding: 15px 16px !important; border-width: 1px !important; border-radius: 14px !important; }
#shv4ExecStages > span { min-height: 25px; display: inline-flex !important; align-items: center; padding: 3px 8px !important; border-radius: 7px !important; }

.obq-panel { margin-top: 16px; padding: 16px; border-radius: 15px; }
.obq-grid { gap: 9px; }
.obq-grid > div { min-height: 61px; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border-radius: 10px; background: rgba(3,8,15,.62); }
.obq-grid b { margin-top: 3px; font-size: 13px; }
.mi-guide-channel, .mi-pro-channel { border-radius: 12px; }
#miGrid { gap: 11px !important; }
#miGrid .mi-card { min-height: 132px; padding: 12px 13px; border-radius: 12px; background: linear-gradient(145deg, rgba(16,28,46,.78), rgba(6,12,22,.82)); }
.mi-heat-canvas { border-radius: 13px; padding: 5px; background: rgba(3,8,15,.72); }
#miHeat { border-radius: 9px; }

/* V2 becomes a spacious research terminal with a premium chart bay. */
.v2-page-header {
  min-height: 132px;
  padding: 23px 26px;
  border: 1px solid rgba(37, 211, 255, .24);
  border-radius: 20px;
  background:
    radial-gradient(440px 160px at 10% 18%, rgba(37,211,255,.12), transparent 72%),
    radial-gradient(340px 180px at 88% 50%, rgba(156,124,255,.12), transparent 72%),
    linear-gradient(120deg, rgba(10,21,37,.96), rgba(7,13,24,.9));
  box-shadow: var(--shadow-elevated);
}
.v2-page-header h1 { font-size: 31px; letter-spacing: -.035em; }
.v2-page-header p { font-size: 12.5px; color: #8fa7c2; }
.v2-page-status { gap: 7px; }
.v2-status-pill { min-height: 29px; display: inline-flex; align-items: center; border-radius: 8px; padding: 5px 9px; }
.v2-safety-strip {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0 9px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 200, 87, .28);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(79, 51, 7, .38), rgba(13, 18, 29, .82) 62%);
  color: #b8c7da;
  font-size: 10.5px;
}
.v2-safety-strip b {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(255, 200, 87, .36);
  border-radius: 7px;
  color: #ffd778;
  background: rgba(73, 46, 4, .42);
  font-size: 9px;
  letter-spacing: .07em;
}
.v2-system-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(124, 170, 221, .1);
  border-radius: 10px;
  background: rgba(8, 15, 27, .68);
  color: #8fa7c2;
  font: 600 10px/1.35 var(--mono);
}
.v2-chart-badges { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.v2-feed {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(38, 229, 163, .34);
  border-radius: 7px;
  color: #7cf3c5;
  background: rgba(8, 68, 49, .3);
  font: 750 8px/1 var(--mono);
  letter-spacing: .06em;
}
.v2-feed.bad, .v2-feed.pending { color: #8ba0ba; border-color: rgba(131, 162, 199, .2); background: rgba(19, 31, 49, .55); }
.v2-reason-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(133, 176, 226, .12);
  border-radius: 11px;
  background: rgba(4, 9, 17, .58);
}
.v2-reason-box small { color: #6c86a5; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; }
.v2-why { margin: 6px 0 0; color: #c8d7e8; line-height: 1.5; }
.v2-table-note {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #8097b3;
  background: rgba(7, 13, 23, .7);
  font-size: 9.5px;
  line-height: 1.45;
}
.v2-advanced {
  margin-top: 18px;
  border: 1px solid rgba(127, 174, 225, .14);
  border-radius: 14px;
  background: rgba(8, 14, 24, .78);
  box-shadow: var(--shadow-card);
}
.v2-advanced > summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.v2-advanced > summary::-webkit-details-marker { display: none; }
.v2-advanced > summary span:first-child { display: flex; flex-direction: column; gap: 3px; }
.v2-advanced > summary b { color: #dceaff; }
.v2-advanced > summary small { color: #7088a5; }
.v2-advanced[open] > summary { border-bottom: 1px solid rgba(127, 174, 225, .11); background: rgba(20, 34, 55, .46); }
.v2-advanced-body { padding: 16px; }
.v2-pipeline { gap: 10px; }
.v2-pipe-step { min-height: 72px; padding: 11px 12px; border: 1px solid rgba(122,170,223,.11); border-top: 2px solid var(--border); border-radius: 11px; background: linear-gradient(145deg, rgba(18,31,50,.7), rgba(7,13,24,.8)); }
.v2-key-grid { gap: 11px; }
.v2-metric-box { min-height: 88px; justify-content: center; padding: 13px 14px; border-radius: 12px; background: linear-gradient(145deg, rgba(18,31,50,.7), rgba(7,13,24,.8)); }
.v2-metric-box > b { font-size: 18px; }
.v2-terminal-panel { padding: 0 !important; border-radius: 18px; overflow: hidden; }
.v2-chart-titlebar { padding: 18px 20px; background: linear-gradient(90deg, rgba(23,43,66,.48), rgba(9,17,29,.7)); }
.v2-chart-titlebar h2 { color: #dcecff; font-size: 14px; }
.v2-chart-controls { padding: 11px 18px; background: rgba(4,9,17,.7); }
.v2-chart-chips button, .v2-chart-zoom button { min-height: 28px; padding: 5px 9px; border-radius: 8px; }
.v2-chart-hud { margin: 0; border-top: 1px solid rgba(126,170,217,.09); border-bottom: 1px solid rgba(126,170,217,.09); background: rgba(8,15,27,.82); }
.v2-chart-hud > span { min-height: 54px; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; }
.v2-chart-wrap { height: 500px; min-height: 500px; border: 0; border-radius: 0; background: #050a11; }
.v2-chart { height: 500px; min-height: 500px; }
.v2-chart-footer { min-height: 42px; padding: 9px 18px; background: rgba(7,13,23,.92); }
.v2-desk-split, .v2-performance-split { gap: 16px; }
.v2-decision-hero { min-height: 80px; padding: 14px 16px; border-radius: 12px; }
.v2-signal-grid { border-radius: 11px; overflow: hidden; }
.v2-signal-grid > div { min-height: 67px; display: flex; flex-direction: column; justify-content: center; }
.v2-book-sides > div { min-height: 91px; padding: 13px 14px; border-radius: 11px; }
.v2-book-detail { border-radius: 11px; }

/* Cross-view dashboard grids gain comfortable modern proportions. */
.cc-grid { grid-template-columns: 300px minmax(520px, 1fr) 300px; gap: 18px; }
.decision-scope { gap: 12px; }
.cc-col, .health-card, .account-card, .member-card { border-radius: 14px !important; }
details.cc-collapsible, details.v2-advanced { border-radius: 14px; overflow: clip; }
details > summary { transition: background .16s ease, color .16s ease; }

@media (min-width: 1800px) {
  :root { --shell-cols: 282px 1fr; }
  .content { padding: 30px 38px 86px; }
  .cc-grid { grid-template-columns: 330px minmax(620px, 1fr) 330px; }
}

@media (max-width: 1380px) {
  :root { --shell-cols: 238px 1fr; }
  .content { padding: 20px 22px 60px; }
  .view[data-view="spike-lab"] > .command-hero + .panel > .panel-head + div { grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr); }
  .command-hero { grid-template-columns: 1fr 110px minmax(220px,.4fr); }
  .obq-grid { grid-template-columns: repeat(5, minmax(90px, 1fr)); }
}

@media (max-width: 1120px) {
  :root { --shell-cols: 220px 1fr; }
  .command-hero { grid-template-columns: 1fr 96px; }
  .command-hero-meta { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; }
  .view[data-view="spike-lab"] > .command-hero + .panel > .panel-head + div { grid-template-columns: 1fr; }
  .cc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  :root { --shell-cols: 0 1fr; --topbar-h: 60px; }
  .app-shell::before { left: 0; }
  .sidebar { width: 270px; height: calc(100vh - 16px); margin: 8px 0 8px 8px; }
  .topbar { margin-left: 0; padding: 0 12px; }
  .topbar::before { display: none; }
  .content { padding: 14px 12px 44px; }
  .command-hero { min-height: 120px; grid-template-columns: 1fr; padding: 20px; }
  .command-hero-orbit { display: none; }
  .command-hero-meta { flex-wrap: wrap; }
  #shv4Chart { height: 420px !important; }
  .v2-chart-wrap, .v2-chart { height: 390px; min-height: 390px; }
  .v2-page-header { align-items: flex-start; min-height: 0; padding: 19px; }
  .view-header { align-items: flex-start; min-height: 0; padding: 17px; }
}

@media (max-width: 650px) {
  .panel { padding: 14px; border-radius: 14px; }
  .command-hero h1, .v2-page-header h1 { font-size: 26px; }
  .view-header { flex-direction: column; }
  .view-header .sub { text-align: left; }
  .v2-chart-hud { grid-template-columns: repeat(3, 1fr); }
  .metric-grid.c4, .metric-grid.c5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Read-only bid synchronization notice. It never shifts the dashboard layout. */
.bid-sync-toast {
  position: fixed;
  z-index: 1500;
  top: calc(var(--topbar-h, 54px) + 16px);
  right: 22px;
  max-width: min(420px, calc(100vw - 34px));
  padding: 12px 16px 12px 42px;
  border: 1px solid rgba(34, 197, 94, .45);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 24, 26, .97), rgba(8, 15, 27, .98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), 0 0 28px rgba(34, 197, 94, .13);
  color: #d8ffe6;
  font: 700 11px/1.45 var(--font-mono, "SFMono-Regular", Consolas, monospace);
  letter-spacing: .045em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
.bid-sync-toast::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, .16);
  color: #4ade80;
  box-shadow: 0 0 16px rgba(34, 197, 94, .22);
}
.bid-sync-toast.show { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 720px) {
  .bid-sync-toast { left: 17px; right: 17px; top: calc(var(--topbar-h, 54px) + 10px); }
}

/* ========================================================================== 
   DECISION LAB — READ-ONLY SCENARIO, FEE-AWARE EV, AND LIFECYCLE DISPLAY
   This surface reuses /api/v4_live already polled by the Decision Desk. It
   introduces no network request and has no execution authority.
   ========================================================================== */
.decision-lab {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-color: rgba(70, 168, 220, .2);
  background:
    radial-gradient(520px 260px at 0 0, rgba(37, 211, 255, .055), transparent 72%),
    linear-gradient(145deg, rgba(9, 16, 28, .97), rgba(5, 10, 18, .98));
}
.decision-lab::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 211, 255, .55), rgba(38, 229, 163, .28), transparent);
  pointer-events: none;
}
.decision-lab-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(130, 174, 222, .12);
  background: rgba(8, 14, 24, .72);
}
.decision-lab-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font: 800 10px/1 var(--mono);
  letter-spacing: .13em;
}
.decision-lab-head h2 {
  margin: 0;
  color: #eaf4ff;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.015em;
}
.decision-lab-status { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.decision-lab-safe { color: #8ccfb6; border-color: rgba(38, 229, 163, .22); background: rgba(8, 52, 42, .34); }
.decision-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 14px;
  padding: 14px;
}
.decision-tool {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(133, 176, 226, .13);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(14, 24, 40, .78), rgba(6, 11, 20, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.decision-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}
.decision-tool-head > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.decision-tool-head h3 { margin: 0; color: #dbe9f9; font-size: 14px; letter-spacing: .015em; }
.tool-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(37, 211, 255, .28);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(8, 63, 86, .24);
  font: 800 10px/1 var(--mono);
}
.tool-state, .cycle-latency {
  color: #7892b1;
  font: 750 10px/1.2 var(--mono);
  letter-spacing: .055em;
  text-align: right;
}
.decision-tool-copy { min-height: 34px; margin: 8px 0 14px; color: #8299b5; font-size: 12px; line-height: 1.45; }
.scenario-live-row, .scenario-result, .ev-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.scenario-live-row { margin-bottom: 16px; }
.scenario-live-row > div, .scenario-result > div, .ev-metrics > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(130, 174, 222, .1);
  border-radius: 9px;
  background: rgba(4, 9, 17, .58);
}
.scenario-live-row small, .scenario-result small, .ev-metrics small, .probability-primary small {
  display: block;
  margin-bottom: 4px;
  color: #66809f;
  font: 760 9px/1.2 var(--mono);
  letter-spacing: .08em;
}
.scenario-live-row b, .scenario-result b, .ev-metrics b {
  display: block;
  overflow: hidden;
  color: #e7f2ff;
  font: 720 14px/1.25 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scenario-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 7px;
  color: #a5bad2;
  font-size: 12px;
  font-weight: 680;
}
.scenario-label output { color: #dff7ff; font: 800 14px/1 var(--mono); }
.scenario-range {
  width: 100%;
  height: 18px;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.scenario-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; box-shadow: none; }
.ask-range { accent-color: var(--yes); }
.scenario-range-scale { display: flex; justify-content: space-between; color: #536b88; font: 700 9px/1 var(--mono); }
.scenario-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 11px; }
.scenario-presets button {
  min-height: 30px;
  border: 1px solid rgba(128, 169, 217, .17);
  border-radius: 8px;
  color: #8ea6c2;
  background: rgba(7, 13, 23, .82);
  font: 720 10px/1 var(--mono);
  cursor: pointer;
}
.scenario-presets button:hover, .scenario-presets button:focus-visible { color: #dff7ff; border-color: rgba(37, 211, 255, .45); outline: none; }
.scenario-presets button.active { color: var(--accent); border-color: rgba(37, 211, 255, .55); background: rgba(8, 69, 94, .4); }
.scenario-result { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 15px; }
.decision-tool-note { margin: 10px 0 0; color: #657d99; font-size: 10.5px; line-height: 1.45; }
.probability-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(130, 174, 222, .1);
  border-radius: 11px;
  background: rgba(4, 9, 17, .56);
}
.probability-primary b { display: block; color: var(--yes); font: 780 34px/1 var(--mono); letter-spacing: -.05em; }
.probability-primary span { display: block; margin-top: 7px; color: #7c94b0; font: 760 10px/1 var(--mono); letter-spacing: .08em; }
.probability-spectrum-wrap { min-width: 0; padding: 14px 4px 0; }
.probability-spectrum {
  position: relative;
  height: 28px;
  border: 1px solid rgba(130, 174, 222, .16);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 95, 126, .12), rgba(255, 200, 87, .08) 50%, rgba(38, 229, 163, .1));
  overflow: visible;
}
.probability-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, rgba(37, 211, 255, .25), rgba(38, 229, 163, .72)); }
.probability-midline { position: absolute; top: -5px; bottom: -5px; left: 50%; width: 1px; background: rgba(255,255,255,.18); }
.probability-marker { position: absolute; top: -5px; bottom: -5px; width: 2px; transform: translateX(-1px); background: #e7f8ff; box-shadow: 0 0 9px rgba(37,211,255,.38); }
.probability-marker i { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); color: #dff7ff; font: 760 9px/1 var(--mono); font-style: normal; white-space: nowrap; }
.probability-axis { display: flex; justify-content: space-between; margin-top: 8px; color: #526a87; font: 700 9px/1 var(--mono); }
.ev-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.ev-verdict {
  margin-top: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(130, 174, 222, .11);
  border-radius: 9px;
  color: #9eb2c9;
  background: rgba(4, 9, 17, .5);
  font-size: 11.5px;
  line-height: 1.45;
}
.decision-cycle {
  margin: 0 14px 14px;
  padding: 15px 16px 17px;
  border: 1px solid rgba(133, 176, 226, .13);
  border-radius: 13px;
  background: rgba(6, 11, 20, .76);
}
.cycle-head { margin-bottom: 17px; }
.decision-cycle-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.decision-cycle-track li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 18px;
  color: #66809e;
}
.decision-cycle-track li::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16px;
  left: 33px;
  right: -1px;
  height: 1px;
  background: rgba(126, 165, 210, .22);
}
.decision-cycle-track li:last-child::after { display: none; }
.cycle-node {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(128, 169, 217, .24);
  border-radius: 50%;
  color: #7188a4;
  background: #0b1421;
  font: 800 11px/1 var(--mono);
}
.decision-cycle-track b { display: block; color: #8299b5; font: 760 10px/1.2 var(--mono); letter-spacing: .05em; }
.decision-cycle-track small { display: block; overflow: hidden; margin-top: 5px; color: #526a87; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.decision-cycle-track li.complete { color: var(--yes); }
.decision-cycle-track li.complete::after { background: rgba(38, 229, 163, .42); }
.decision-cycle-track li.complete .cycle-node { border-color: rgba(38, 229, 163, .58); color: #06150f; background: var(--yes); }
.decision-cycle-track li.complete .cycle-node::before { content: "✓"; }
.decision-cycle-track li.complete .cycle-node { font-size: 0; }
.decision-cycle-track li.complete b { color: #79e5bc; }
.decision-cycle-track li.current .cycle-node { border-color: rgba(37, 211, 255, .65); color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 211, 255, .07); }
.decision-cycle-track li.current b { color: #cfeeff; }
.decision-cycle-track li.blocked .cycle-node { border-color: rgba(255, 200, 87, .7); color: var(--warn); background: rgba(80, 52, 7, .5); }
.decision-cycle-track li.blocked b, .decision-cycle-track li.blocked small { color: #e8bd65; }
.positive { color: var(--yes) !important; }
.negative { color: var(--no) !important; }
.warning { color: var(--warn) !important; }

@media (max-width: 1320px) {
  .decision-lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .decision-lab-head { align-items: flex-start; flex-direction: column; }
  .decision-lab-status { justify-content: flex-start; }
  .decision-cycle { overflow-x: auto; }
  .decision-cycle-track { min-width: 850px; }
}
@media (max-width: 650px) {
  .decision-lab-head { padding: 15px; }
  .decision-lab-grid { padding: 10px; }
  .decision-tool { padding: 13px; }
  .scenario-live-row, .scenario-result, .ev-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-presets { grid-template-columns: repeat(3, 1fr); }
  .probability-hero { grid-template-columns: 1fr; }
  .decision-cycle { margin: 0 10px 10px; }
}
.v4-v2-agreement{padding:6px 12px 12px;border-radius:10px;background:#07111d}
.v4-v2-agreement .cc-table-scroll{max-height:430px;border-color:#203149;border-radius:8px;background:#050c15}
.v4-v2-agreement .dtable{min-width:1450px;table-layout:fixed;font-family:var(--mono)}
.v4-v2-agreement .agreement-col-market{width:19%}
.v4-v2-agreement .agreement-col-narrow{width:9%}
.v4-v2-agreement .agreement-col-standard{width:11%}
.v4-v2-agreement .agreement-col-combined{width:15%}
.v4-v2-agreement .agreement-col-result{width:8%}
.v4-v2-agreement .dtable th{position:sticky;top:0;z-index:2;height:31px;padding:0 12px;background:#111929;color:#7995b9;font-size:8px;text-transform:none}
.v4-v2-agreement .dtable td{height:46px;padding:0 12px;background:#060d17;border-bottom-color:#1c2a3d;font-size:9px}
.v4-v2-agreement .dtable tbody tr:nth-child(even) td{background:#070e18}
.v4-v2-agreement .dtable tr.agreement-market-current td{background:#071522}
.v4-v2-agreement .agreement-market-cell b{display:block;color:#e7f4ff;font-size:9px}
.v4-v2-agreement .agreement-market-cell small{display:block;margin-top:4px;color:#00d9ff;font-size:7px;font-weight:900;letter-spacing:.08em}
.v4-v2-agreement .agreement-pill{min-width:66px;justify-content:center;padding:3px 9px;font-size:8px;white-space:nowrap}
.v4-v2-agreement .market-result.current{border-color:#04cdea;background:rgba(0,198,230,.10);color:#18d9f1}
.v4-v2-agreement .market-result.settled{font-weight:950}
.v4-v2-agreement .market-result.settled.yes{border-color:var(--yes);background:var(--yes-glow);color:var(--yes);box-shadow:0 0 10px rgba(38,229,163,.12)}
.v4-v2-agreement .market-result.settled.no{border-color:var(--no);background:var(--no-glow);color:var(--no);box-shadow:0 0 10px rgba(255,95,126,.12)}
.v4-v2-agreement .market-result.pending{border-color:rgba(124,148,178,.30);background:rgba(124,148,178,.06);color:#8395aa}
.agreement-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(124,148,178,.18)}
.agreement-pager[hidden]{display:none}
.agreement-pager span{min-width:210px;text-align:center;color:#90a5be;font:800 9px/1.2 var(--mono);letter-spacing:.055em}
.agreement-pager .btn:disabled{cursor:not-allowed;opacity:.35}
.agreement-pill{display:inline-flex;align-items:center;max-width:190px;padding:3px 7px;border:1px solid rgba(124,148,178,.35);border-radius:999px;background:rgba(124,148,178,.08);color:#9eb0c5;font-size:9px;font-weight:800;line-height:1.25;letter-spacing:.035em;white-space:normal}
.agreement-pill.agreed{border-color:var(--yes);background:var(--yes-glow);color:var(--yes);box-shadow:0 0 10px rgba(38,229,163,.12)}
.agreement-pill.disagreed{border-color:var(--no);background:var(--no-glow);color:var(--no);box-shadow:0 0 10px rgba(255,95,126,.12)}
.agreement-pill.incomplete{border-color:rgba(178,139,255,.64);background:rgba(178,139,255,.09);color:#c3a4ff}
.agreement-pill .agreement-open-side,.agreement-pill .agreement-side-word{font-size:15px;font-weight:900;line-height:1}
.agreement-pill .agreement-open-side.yes{color:var(--yes)}
.agreement-pill .agreement-open-side.no{color:var(--no)}
.agreement-pill.missing{border-color:rgba(124,148,178,.30);background:rgba(124,148,178,.06);color:#8395aa}
.agreement-pill.pending-yes{border-color:var(--yes);background:rgba(4,10,18,.42);color:var(--yes);box-shadow:none}
.agreement-pill.pending-no{border-color:var(--no);background:rgba(4,10,18,.42);color:var(--no);box-shadow:none}
.agreement-correct{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;color:#fff;font-size:12px;font-weight:950;line-height:1;text-shadow:0 0 5px rgba(255,255,255,.85)}
.agreement-incorrect{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;color:#fff;font-size:12px;font-weight:950;line-height:1;text-shadow:0 0 5px rgba(255,255,255,.75)}
.agreement-accuracy-panel{margin-top:12px;border-color:rgba(124,148,178,.24)}
.v4-calendar-scoped-panel{margin-top:12px;background:rgba(7,14,25,.82)}
.v4h-bid-toolbar{display:grid;grid-template-columns:minmax(370px,1fr) auto minmax(370px,1fr);align-items:center;gap:18px;margin:6px 0 10px}
.v4h-bid-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.v4h-price-pair{display:flex;align-items:center;justify-content:center;gap:16px;min-width:650px;padding:10px 16px;border:1px solid rgba(75,207,242,.2);border-radius:10px;background:linear-gradient(100deg,rgba(7,19,32,.82),rgba(9,26,40,.72),rgba(7,19,32,.82));box-shadow:inset 0 1px rgba(255,255,255,.025)}
.v4h-price-pair>div{display:flex;min-width:145px;flex-direction:column;align-items:flex-end;gap:5px}.v4h-price-pair small{color:#748ba5;font:800 8px/1 var(--mono);letter-spacing:.085em}.v4h-price-pair b{color:#16e6b8;font:900 21px/1 var(--mono);letter-spacing:-.035em}.v4h-price-pair .target{align-items:center}.v4h-price-pair .target small{color:#f0c96a}.v4h-price-pair .target b{color:#ffd36b}.v4h-price-pair .benchmark{align-items:flex-start}.v4h-price-pair .benchmark small{color:#70bad0}.v4h-price-pair .benchmark b{color:#4bcff2}.v4h-price-pair>i{width:1px;height:37px;background:#274058}.v4h-price-live{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid rgba(19,222,179,.4);border-radius:999px;color:#20e8bb;font:850 8px/1 var(--mono)}.v4h-price-live em{width:6px;height:6px;border-radius:50%;background:#19e7b8;box-shadow:0 0 9px #19e7b8}
@media(max-width:1180px){.v4h-bid-toolbar{grid-template-columns:1fr}.v4h-bid-toolbar-balance{display:none}.v4h-price-pair{min-width:0;justify-self:stretch}.v4h-price-pair>div{align-items:flex-start}}
@media(max-width:620px){.v4h-price-pair{align-items:flex-start;flex-wrap:wrap;justify-content:flex-start}.v4h-price-pair>i{display:none}.v4h-price-pair>div{min-width:135px}.v4h-price-pair b{font-size:18px}}
.agreement-accuracy-grid{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));gap:8px}
.agreement-accuracy-card{min-width:0;padding:11px 12px;border:1px solid rgba(124,148,178,.2);border-radius:9px;background:rgba(8,15,27,.72)}
.agreement-accuracy-card[data-channel-history]{width:100%;color:inherit;text-align:left;font:inherit;cursor:pointer;appearance:none;transition:border-color .14s ease,background .14s ease,transform .14s ease,box-shadow .14s ease}
.agreement-accuracy-card[data-channel-history]:hover,.agreement-accuracy-card[data-channel-history]:focus-visible{border-color:var(--accent);background:rgba(14,29,47,.94);box-shadow:0 0 16px rgba(80,200,255,.13);transform:translateY(-1px);outline:none}
.agreement-accuracy-card>b{display:block;margin-bottom:8px;color:#dbe8f7;font:800 9px/1.25 var(--mono);letter-spacing:.055em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agreement-accuracy-card>div{display:flex;flex-direction:column;gap:4px;font:800 11px/1.25 var(--mono)}
.agreement-total-correct{color:var(--yes)}
.agreement-total-incorrect{color:var(--no)}
.agreement-total-win-rate{color:#71cfff}
.agreement-accuracy-card small{display:block;margin-top:7px;color:var(--text-faint);font-size:9px}
.agreement-history-hint{display:block;margin-top:8px;color:var(--accent);font:750 8px/1.2 var(--mono);letter-spacing:.06em}
.channel-history-modal .cc-modal-body{max-width:1180px}
.channel-history-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;margin:14px 0}
.channel-history-summary .metric{min-height:68px}
.channel-history-table{max-height:58vh;overflow:auto;border:1px solid var(--border);border-radius:8px}
.channel-history-table .dtable{min-width:980px}
.channel-history-table .dtable th{position:sticky;top:0;z-index:2;background:#101827}
.channel-history-table .dtable td{vertical-align:top}
.channel-history-loading{margin-top:10px;padding:9px 11px;border:1px solid rgba(43,201,255,.24);border-radius:7px;background:rgba(43,201,255,.045);color:#8eb1cc;font:700 9px/1.4 var(--mono)}
.channel-history-why{min-width:260px;max-width:430px;white-space:normal;line-height:1.35;color:var(--text-dim)}
.rsi-adx-history-row{cursor:pointer;transition:background .14s ease,box-shadow .14s ease}
.rsi-adx-history-row:hover,.rsi-adx-history-row:focus-visible{background:rgba(43,201,255,.08);box-shadow:inset 3px 0 0 var(--accent);outline:none}
.rsi-adx-bid-modal .cc-modal-body{max-width:1080px}
.rsi-adx-detail-sub{margin:2px 0 14px;color:var(--text-faint);font:650 9px/1.4 var(--mono);letter-spacing:.035em}
.rsi-adx-saved-snapshot{margin-bottom:12px;padding:13px 14px;border:1px solid rgba(78,129,172,.42);border-radius:10px;background:rgba(7,15,28,.92)}
.rsi-adx-snapshot-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.rsi-adx-snapshot-head strong{color:#cbd9ea;font:800 10px/1.25 var(--mono);letter-spacing:.06em}
.rsi-adx-snapshot-head span{padding:4px 8px;border:1px solid var(--border);border-radius:6px;background:var(--bg-panel-2);color:var(--text-dim);font:800 8px/1 var(--mono);letter-spacing:.045em}
.rsi-adx-snapshot-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));margin-top:10px;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.rsi-adx-snapshot-grid>div{min-width:0;min-height:58px;padding:10px 11px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:rgba(8,15,27,.7)}
.rsi-adx-snapshot-grid>div:nth-child(4n){border-right:0}
.rsi-adx-snapshot-grid>div:nth-last-child(-n+4){border-bottom:0}
.rsi-adx-snapshot-grid small{display:block;margin-bottom:6px;color:var(--text-faint);font:750 8px/1.2 var(--mono);letter-spacing:.055em}
.rsi-adx-snapshot-grid b{display:block;color:var(--text);font:800 11px/1.3 var(--mono)}
.rsi-adx-snapshot-gates{margin-top:10px;padding:10px 11px;border:1px solid var(--border);border-radius:8px;background:rgba(4,10,18,.55)}
.rsi-adx-snapshot-gates>small{color:#7f96b2;font:800 8px/1.2 var(--mono);letter-spacing:.07em}
.rsi-adx-detail-reason{display:flex;flex-direction:column;gap:7px;padding:13px 15px;margin-bottom:12px;border:1px solid rgba(43,201,255,.32);border-radius:9px;background:rgba(7,22,35,.88)}
.rsi-adx-detail-reason small,.rsi-adx-detail-section>small{color:var(--accent);font:800 8px/1.2 var(--mono);letter-spacing:.09em}
.rsi-adx-detail-reason strong{color:#eef8ff;font:800 13px/1.45 var(--mono)}
.rsi-adx-detail-reason span{color:var(--text-dim);font:700 10px/1.35 var(--mono)}
.rsi-adx-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px;margin:12px 0}
.rsi-adx-detail-grid>div{min-width:0;padding:10px 11px;border:1px solid var(--border);border-radius:8px;background:rgba(8,15,27,.76)}
.rsi-adx-detail-grid small{display:block;margin-bottom:6px;color:var(--text-faint);font:750 8px/1.2 var(--mono);letter-spacing:.055em}
.rsi-adx-detail-grid b{display:block;overflow-wrap:anywhere;color:var(--text);font:800 11px/1.3 var(--mono)}
.rsi-adx-detail-grid b.positive{color:var(--yes)}
.rsi-adx-detail-grid b.negative{color:var(--no)}
.rsi-adx-detail-grid b.warning{color:var(--warn)}
.rsi-adx-detail-section{padding:12px 14px;margin-top:10px;border:1px solid var(--border);border-radius:8px;background:rgba(7,14,25,.72)}
.rsi-adx-detail-section p{margin:8px 0 0;color:var(--text-dim);font:650 10px/1.5 var(--mono)}
.rsi-adx-gate-list{display:flex;flex-direction:column;gap:7px;margin:9px 0 0;padding:0;list-style:none}
.rsi-adx-gate-list li{display:grid;grid-template-columns:64px 1fr;gap:8px;color:var(--text-dim);font:650 9px/1.4 var(--mono)}
.rsi-adx-gate-list li.pass b{color:var(--yes)}
.rsi-adx-gate-list li.blocked b{color:var(--no)}
.rsi-adx-detail-foot{margin-top:12px;color:var(--text-faint);font:650 8px/1.4 var(--mono);letter-spacing:.04em}
@media(max-width:760px){.channel-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-history-modal .cc-modal-body{width:96%;padding:17px 12px}}
@media(max-width:760px){.rsi-adx-detail-grid,.rsi-adx-snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rsi-adx-snapshot-grid>div:nth-child(4n){border-right:1px solid var(--border)}.rsi-adx-snapshot-grid>div:nth-child(2n){border-right:0}.rsi-adx-snapshot-grid>div:nth-last-child(-n+4){border-bottom:1px solid var(--border)}.rsi-adx-snapshot-grid>div:nth-last-child(-n+2){border-bottom:0}.rsi-adx-bid-modal .cc-modal-body{width:96%;padding:17px 12px}}
@media(max-width:1350px){.agreement-accuracy-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}}
@media(max-width:760px){.agreement-accuracy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.agreement-side{margin-bottom:3px;color:#e7eef9;font-size:10px;font-weight:800}
.agreement-card-note{display:block;margin-top:4px;color:#7f91a8;font-size:9px;line-height:1.35}
@media(max-width:900px){.v4-v2-agreement .cc-table-scroll{max-height:360px}.agreement-pill{font-size:8px}}

/* ============================== GOLD 15M ============================== */
.gold-page{--gold:#f4c95d;--gold-soft:rgba(244,201,93,.10);--gold-line:rgba(244,201,93,.28)}
.gold-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:14px;padding:24px 26px;border:1px solid var(--gold-line);border-radius:16px;background:radial-gradient(circle at 86% 25%,rgba(244,201,93,.13),transparent 28%),linear-gradient(135deg,#0c1523,#080d15 70%);box-shadow:inset 0 1px rgba(255,255,255,.03),0 14px 35px rgba(0,0,0,.22)}
.gold-hero h1{margin:5px 0 7px;color:#fff;font-size:27px;letter-spacing:-.02em}.gold-hero p{max-width:790px;margin:0;color:#8ea2ba;font-size:12px;line-height:1.55}.gold-hero-state{display:flex;min-width:220px;flex-direction:column;align-items:flex-end;gap:9px}.gold-hero-state strong{color:#d9e5f3;font:800 10px/1.2 var(--mono);letter-spacing:.06em}
.gold-status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;color:#8ea2ba;font:850 9px/1 var(--mono);letter-spacing:.07em}.gold-status::before{width:7px;height:7px;border-radius:50%;background:currentColor;content:"";box-shadow:0 0 9px currentColor}.gold-status.connected{border-color:rgba(38,229,163,.35);color:var(--yes);background:rgba(38,229,163,.06)}.gold-status.disconnected{color:var(--no)}
.gold-alert{margin-bottom:13px;padding:10px 13px;border:1px solid var(--border);border-radius:9px;background:#09111d;color:#a7bad0;font-size:11px}.gold-alert.ok{border-color:rgba(38,229,163,.28);color:#8ce8c6}.gold-alert.blocked{border-color:rgba(255,200,87,.35);color:#e8bd65}.gold-alert.error{border-color:rgba(255,95,126,.38);color:#ff88a1}
.gold-market-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:12px;margin-bottom:12px}.gold-market-card{min-width:0;padding:17px;border:1px solid var(--border);border-radius:13px;background:linear-gradient(150deg,rgba(15,25,40,.96),rgba(7,13,22,.96));box-shadow:inset 0 1px rgba(255,255,255,.025)}.gold-primary-card{border-color:var(--gold-line)}.gold-card-head{display:flex;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid rgba(124,148,178,.16);color:#7288a3;font:800 9px/1.2 var(--mono);letter-spacing:.07em}.gold-card-head b{overflow:hidden;color:#b9c8da;text-overflow:ellipsis;white-space:nowrap}.gold-market-card h2{margin:15px 0;color:#edf4fc;font-size:16px}
.gold-price-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.gold-price-row div,.gold-metrics div,.gold-performance div{padding:10px;border:1px solid rgba(124,148,178,.15);border-radius:8px;background:rgba(4,10,18,.38)}.gold-price-row small,.gold-metrics small,.gold-performance small,.gold-rule-grid small{display:block;margin-bottom:6px;color:#647b98;font:750 8px/1.15 var(--mono);letter-spacing:.065em}.gold-price-row b{display:block;overflow:hidden;color:#f4f7fb;font:800 15px/1.2 var(--mono);text-overflow:ellipsis;white-space:nowrap}.gold-feed-proof{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:#8fa6c0;font-size:10px}.gold-feed-proof small{color:#667b93}.gold-sides{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.gold-side{padding:13px;border:1px solid var(--border);border-radius:10px;background:#080f19}.gold-side>span{font:850 9px/1 var(--mono);letter-spacing:.1em}.gold-side>b{display:block;margin:8px 0 5px;font:900 25px/1 var(--mono)}.gold-side small,.gold-side em{display:block;color:#7e91a8;font-size:9px;font-style:normal}.gold-side em{margin-top:5px}.gold-side.yes{border-color:rgba(38,229,163,.28)}.gold-side.yes>span,.gold-side.yes>b{color:var(--yes)}.gold-side.no{border-color:rgba(255,95,126,.28)}.gold-side.no>span,.gold-side.no>b{color:var(--no)}
.gold-strategy-call{margin:15px 0 8px;color:var(--gold);font:900 17px/1.25 var(--mono)}.gold-market-card>p{min-height:43px;margin:0 0 9px;color:#9badc1;font-size:11px;line-height:1.45}.gold-market-card>small{color:#657b94;font-size:9px}
.gold-sources-panel{margin-bottom:12px;border-color:rgba(244,201,93,.2)}.gold-source-disclaimer{margin:11px 0 13px;padding:10px 12px;border-left:2px solid var(--gold);background:rgba(244,201,93,.035);color:#9dafc3;font-size:10px;line-height:1.5}.gold-source-disclaimer b{color:#e8c66f}.gold-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gold-source-card{min-width:0;padding:14px;border:1px solid rgba(124,148,178,.18);border-radius:10px;background:#080f19}.gold-source-card.official{border-color:rgba(244,201,93,.34);background:linear-gradient(145deg,rgba(244,201,93,.055),#080f19 58%)}.gold-source-card.support{border-color:rgba(61,208,255,.2)}.gold-source-head{display:flex;justify-content:space-between;gap:9px;padding-bottom:9px;border-bottom:1px solid rgba(124,148,178,.14);font:800 8px/1.25 var(--mono);letter-spacing:.055em}.gold-source-head span{color:#6f86a2}.gold-source-head b{color:#c8d5e5;text-align:right}.gold-source-card>strong{display:block;margin:11px 0 4px;color:#ffce5f;font:850 9px/1.25 var(--mono);letter-spacing:.04em}.gold-source-card>strong.positive{color:var(--yes)}.gold-source-card>strong.negative{color:var(--no)}.gold-source-price{overflow:hidden;margin-bottom:10px;color:#eef4fb;font:900 18px/1.2 var(--mono);text-overflow:ellipsis;white-space:nowrap}.gold-source-card dl{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0}.gold-source-card dl>div{min-width:0;padding:8px;border:1px solid rgba(124,148,178,.12);border-radius:7px;background:rgba(3,8,14,.35)}.gold-source-card dt{color:#637a96;font:750 8px/1.15 var(--mono);letter-spacing:.04em}.gold-source-card dd{overflow:hidden;margin:5px 0 0;color:#c0cede;font:750 9px/1.3 var(--mono);text-overflow:ellipsis}.gold-source-card>small{display:block;margin-top:10px;color:#687e98;font-size:9px;line-height:1.45}.gold-relation-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.gold-relation-grid>div{padding:11px;border:1px solid rgba(124,148,178,.15);border-radius:8px;background:#07101b}.gold-relation-grid small,.gold-relation-grid b,.gold-relation-grid span{display:block}.gold-relation-grid small{color:#7187a2;font:750 8px/1.2 var(--mono);letter-spacing:.055em}.gold-relation-grid b{margin:7px 0 4px;color:#ff708d;font:850 10px/1.2 var(--mono)}.gold-relation-grid b.positive{color:var(--yes)}.gold-relation-grid span{color:#758ba4;font-size:9px;line-height:1.4}
.gold-work-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.gold-order-panel,.gold-risk-panel,.gold-ledger-panel,.gold-rules-panel{border-color:rgba(124,148,178,.22)}.gold-mode-switch{display:flex;gap:7px;margin:13px 0}.gold-mode-switch button,.gold-arm-row button{padding:7px 12px;border:1px solid var(--border);border-radius:7px;background:#0b1421;color:#8398b1;font:800 9px/1 var(--mono);cursor:pointer}.gold-mode-switch button.active{border-color:var(--gold);color:var(--gold);background:var(--gold-soft)}.gold-ticket-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.gold-ticket-grid label{color:#7187a1;font:750 9px/1.25 var(--mono)}.gold-ticket-grid input,.gold-ticket-grid select,.gold-arm-row input{box-sizing:border-box;width:100%;margin-top:6px;padding:9px;border:1px solid #26364a;border-radius:7px;outline:none;background:#070e18;color:#e8f0fa;font:800 11px/1 var(--mono)}.gold-ticket-grid input:focus,.gold-ticket-grid select:focus,.gold-arm-row input:focus{border-color:var(--gold)}.gold-ticket-summary{display:flex;justify-content:space-between;margin:12px 0;padding:10px;border-top:1px solid rgba(124,148,178,.15);border-bottom:1px solid rgba(124,148,178,.15);color:#8499b2;font-size:10px}.gold-ticket-summary b{color:#e7eef8;font-family:var(--mono)}.gold-submit{width:100%;padding:11px;border:1px solid var(--gold);border-radius:8px;background:linear-gradient(135deg,#b78a21,#f0c75a);color:#151007;font:900 10px/1 var(--mono);letter-spacing:.06em;cursor:pointer}.gold-submit:disabled{cursor:not-allowed;filter:grayscale(.8);opacity:.45}.gold-safety-copy{margin:10px 0;color:#6f849d;font-size:9px;line-height:1.45}.gold-arm-row{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:end}.gold-arm-row button{height:34px}.gold-arm-row #goldDisarm{border-color:rgba(255,95,126,.32);color:#ff7692}.gold-inline-message{min-height:15px;margin-top:9px;color:#859ab3;font-size:10px}.gold-inline-message.error{color:var(--no)}.gold-inline-message.ok{color:var(--yes)}
.gold-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.gold-metrics b,.gold-performance b{display:block;color:#e7eff9;font:850 12px/1.2 var(--mono)}.gold-blockers{padding:11px;border:1px solid rgba(255,200,87,.21);border-radius:8px;background:rgba(80,52,7,.09);color:#d4ad58;font-size:10px}.gold-blockers ul{margin:7px 0 0;padding-left:17px;color:#9fa9b6;line-height:1.55}.gold-exit-policy{margin:10px 0 0;color:#7f92aa;font-size:10px;line-height:1.45}.gold-performance{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}.gold-ledger-scroll{max-height:410px}.gold-ledger-scroll .dtable{min-width:980px}.gold-ledger-scroll th{position:sticky;top:0;z-index:2;background:#101827}.gold-row-action{padding:4px 7px;border:1px solid #344861;border-radius:5px;background:#0b1522;color:#a9bad0;font:750 8px/1 var(--mono);cursor:pointer}.gold-row-action.exit{border-color:rgba(244,201,93,.4);color:var(--gold)}
.gold-rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:13px 0}.gold-rule-grid>div{padding:12px;border:1px solid rgba(124,148,178,.16);border-radius:8px;background:#08101a}.gold-rule-grid b{display:block;color:#e1eaf5;font:800 11px/1.3 var(--mono)}.gold-rule-grid span{display:block;margin-top:5px;color:#637991;font-size:9px;line-height:1.35}.gold-rule-text{margin:8px 0 0;padding:10px;border-left:2px solid var(--gold);background:rgba(244,201,93,.035);color:#a9b9ca;font-size:10px;line-height:1.55}
@media(max-width:1200px){.gold-market-grid{grid-template-columns:1fr 1fr}.gold-primary-card{grid-column:1/-1}.gold-source-grid{grid-template-columns:1fr 1fr}.gold-source-card.official{grid-column:1/-1}.gold-work-grid{grid-template-columns:1fr}.gold-rule-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.gold-hero{align-items:flex-start;flex-direction:column;padding:18px}.gold-hero h1{font-size:22px}.gold-hero-state{align-items:flex-start;min-width:0}.gold-market-grid,.gold-source-grid,.gold-relation-grid{grid-template-columns:1fr}.gold-primary-card,.gold-source-card.official{grid-column:auto}.gold-price-row,.gold-ticket-grid,.gold-metrics{grid-template-columns:1fr 1fr}.gold-source-card dl{grid-template-columns:1fr}.gold-performance{grid-template-columns:1fr 1fr}.gold-rule-grid{grid-template-columns:1fr}.gold-arm-row{grid-template-columns:1fr 1fr}.gold-arm-row input{grid-column:1/-1}}

/* Independent paper-scalping research workspace. */
.view[data-view="scalping"]{--gold:#30d9ff;--gold-soft:rgba(48,217,255,.09);--gold-line:rgba(48,217,255,.30)}
.scalp-hero{background:radial-gradient(520px 180px at 76% 25%,rgba(48,217,255,.10),transparent 72%),linear-gradient(120deg,rgba(8,25,36,.96),rgba(7,13,24,.94))}
.selective-hero{background:radial-gradient(560px 190px at 76% 25%,rgba(244,201,93,.13),transparent 72%),linear-gradient(120deg,rgba(18,20,24,.98),rgba(7,13,24,.95))}
.selective-reasons{display:grid;gap:6px;margin-bottom:10px}.selective-reasons p{margin:0;padding:8px 10px;border-left:2px solid rgba(244,201,93,.62);background:rgba(244,201,93,.045);color:#c8d5e6;font-size:11px}
.selective-gates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.selective-gates>div{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;border:1px solid rgba(124,148,178,.18);border-radius:8px;background:rgba(5,11,20,.58);font-size:10px;color:#9fb2c9}.selective-gates>div b{flex:0 0 58px}.selective-gates .pass b{color:#28e2a1}.selective-gates .blocked b{color:#ff6688}
.selective-pine-actions{display:flex;align-items:center;gap:10px;margin:10px 0}.selective-pine-source{max-height:520px;overflow:auto;white-space:pre;tab-size:4;padding:14px;border:1px solid rgba(124,148,178,.22);border-radius:9px;background:#050910;color:#bdd0e8;font:10px/1.55 var(--mono)}
.selective-history-row{cursor:pointer}.selective-history-row:hover{background:rgba(244,201,93,.055)}.selective-detail-grid{margin:12px 0}.selective-detail-list{color:#b9c9dd;font-size:11px;line-height:1.55}
.scalp-momentum-grid{display:grid;grid-template-columns:repeat(9,minmax(90px,1fr));gap:8px}
.scalp-momentum-grid>div{min-height:66px;padding:10px;border:1px solid rgba(124,148,178,.18);border-radius:10px;background:rgba(5,11,20,.62)}
.scalp-momentum-grid small{display:block;color:#758ca8;font-size:8px;font-weight:800;letter-spacing:.06em}.scalp-momentum-grid b{display:block;margin-top:8px;color:#dce9f8;font:800 12px/1.2 var(--mono)}
.scalp-two-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scalp-two-column>.panel{margin-top:0}
.scalp-cycle-label{display:block;margin-top:3px;color:#6f87a4;font-size:8px;text-transform:uppercase}
@media(max-width:1300px){.scalp-momentum-grid{grid-template-columns:repeat(5,minmax(100px,1fr))}}
@media(max-width:900px){.scalp-two-column{grid-template-columns:1fr}.scalp-momentum-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.selective-gates{grid-template-columns:1fr}}
@media(max-width:560px){.scalp-momentum-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ============================== BTC HOURLY ============================== */
.hourly-page{--gold:#42c9ff;--gold-soft:rgba(66,201,255,.10);--gold-line:rgba(66,201,255,.30)}
.hourly-page .gold-hero{background:radial-gradient(circle at 86% 25%,rgba(66,201,255,.14),transparent 29%),linear-gradient(135deg,#091827,#080d15 70%)}
.hourly-page .gold-submit{border-color:#42c9ff;background:linear-gradient(135deg,#137fa8,#54d5ff);color:#04141b}
.hourly-ladder-panel{margin-bottom:12px;border-color:rgba(66,201,255,.22)}
.hourly-market-note{margin:10px 0;color:#71869f;font-size:10px}
.hourly-market-list{overflow:hidden;border:1px solid rgba(124,148,178,.16);border-radius:10px;background:#070d15}
.hourly-market-row{display:grid;grid-template-columns:minmax(250px,1fr) 130px minmax(300px,.8fr);gap:18px;align-items:center;min-height:72px;padding:10px 14px;border-bottom:1px solid rgba(124,148,178,.16);transition:background .15s,border-color .15s}.hourly-market-row:last-child{border-bottom:0}.hourly-market-row.selected{background:linear-gradient(90deg,rgba(255,255,255,.055),rgba(66,201,255,.035))}.hourly-market-row.ticket-selected{box-shadow:inset 3px 0 #42c9ff;background:rgba(66,201,255,.07)}
.hourly-market-strike b,.hourly-market-strike small{display:block}.hourly-market-strike b{color:#eef4fb;font-size:15px}.hourly-market-strike small{overflow:hidden;margin-top:6px;color:#778ca5;font:700 10px/1.2 var(--mono);text-overflow:ellipsis;white-space:nowrap}.hourly-market-row.selected .hourly-market-strike small{color:#a9bbce}
.hourly-market-chance small,.hourly-market-chance b{display:block}.hourly-market-chance small{margin-bottom:4px;color:#71869e;font-size:9px}.hourly-market-chance b{color:#eef4fb;font:900 21px/1 var(--mono)}
.hourly-market-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hourly-market-actions button{padding:10px 12px;border:1px solid #2a3747;border-radius:999px;background:#0a1018;font:850 13px/1 var(--mono);cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.hourly-market-actions button:hover{transform:translateY(-1px)}.hourly-market-actions button.yes{color:var(--yes)}.hourly-market-actions button.yes:hover{border-color:rgba(38,229,163,.55);background:rgba(38,229,163,.08)}.hourly-market-actions button.no{color:var(--no)}.hourly-market-actions button.no:hover{border-color:rgba(255,95,126,.55);background:rgba(255,95,126,.08)}
.hourly-history-strike b,.hourly-history-strike small{display:block;white-space:nowrap}.hourly-history-strike b{color:#eef4fb;font-size:11px}.hourly-history-strike small{margin-top:5px;color:#71869f;font-size:9px}
@media(max-width:900px){.hourly-market-row{grid-template-columns:1fr 90px}.hourly-market-actions{grid-column:1/-1}.hourly-market-strike b{font-size:13px}}
/* Decision Desk v2 — focused V4 / RSI-ADX / Baseline fusion terminal. */
.v4-decision-desk-integrated { display:grid; gap:14px; margin:16px 0 18px; }
.v4-decision-desk-integrated[hidden] { display:none !important; }
.global-chart-dock{position:sticky;z-index:30;top:8px;display:block;max-width:1740px;margin:0 auto 18px;transition:width .18s ease,max-width .18s ease,filter .18s ease}
.global-chart-dock[hidden]{display:none!important}
.global-chart-toggle{position:absolute;z-index:8;top:7px;right:10px;display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:6px 10px;border:1px solid #30445f;border-radius:8px;background:rgba(7,15,26,.94);box-shadow:0 8px 22px rgba(0,0,0,.34);color:#9eb4cc;font:850 8px/1 var(--mono);letter-spacing:.055em;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.global-chart-toggle:hover,.global-chart-toggle:focus-visible{border-color:#2bd5ff;background:#0b1a2a;color:#dff8ff;outline:none}
.global-chart-toggle-icon{display:grid;width:17px;height:17px;place-items:center;border:1px solid currentColor;border-radius:4px;color:#37d9ff;font-size:14px;line-height:1}
.global-chart-minimized-label{position:absolute;top:14px;left:14px;color:#6f8ba8;font:850 8px/1 var(--mono);letter-spacing:.11em}
.global-chart-dock.minimized{height:43px;min-height:43px;margin-bottom:10px;border:1px solid #20334a;border-radius:10px;background:linear-gradient(90deg,rgba(8,18,31,.98),rgba(8,14,24,.95));box-shadow:0 12px 28px rgba(0,0,0,.28)}
.global-chart-dock.minimized .global-attached-chart{display:none}
.global-chart-dock.minimized .global-chart-toggle{top:6px;right:7px}
.global-chart-dock .global-attached-chart{width:100%;margin:0}
.global-chart-dock.compact{width:100%;max-width:1740px;margin-right:auto;margin-left:auto;filter:drop-shadow(0 18px 34px rgba(0,0,0,.74))}
.global-chart-dock.compact .dd2-asset-head,.global-chart-dock.compact .dd2-chart-controls,.global-chart-dock.compact .dd2-analysis-stack{display:none}
.global-chart-dock.compact .dd2-chart-wrap{height:clamp(270px,40vh,390px);min-height:270px}
.global-chart-dock.compact #dd2Chart{height:clamp(270px,40vh,390px)}
.global-chart-dock.compact .dd2-indicators{padding:7px 10px}
.global-chart-dock.compact .dd2-chart-foot{padding:7px 10px;background:#060d17}
.global-chart-dock.compact .dd2-chart-foot>span:last-child{display:none}
@media(max-width:880px){.global-chart-dock{top:5px}.global-chart-dock.compact{width:100%}.global-chart-dock.compact .dd2-chart-wrap,.global-chart-dock.compact #dd2Chart{height:clamp(240px,38vh,330px);min-height:240px}.global-chart-toggle-label{display:none}.global-chart-toggle{padding:6px}}
.dd2-main-grid.chart-detached{grid-template-columns:1fr}
.v4-decision-desk-integrated > .decision-scope,
.v4-decision-desk-integrated > .cc-grid,
.v4-decision-desk-integrated > .cc-events { display:none !important; }
.dd2 { --dd2-cyan:#20d5ff; --dd2-green:#21e6a5; --dd2-red:#ff4f72; --dd2-gold:#ffca58; --dd2-blue:#5d8cff; display:grid; gap:14px; color:#dcecff; }
.dd2-head,.dd2-panel-head,.dd2-fusion-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.dd2-head { padding:18px 20px; border:1px solid #20354e; border-radius:16px; background:linear-gradient(115deg,#0b1928,#08111d 58%,#091522); box-shadow:0 18px 60px rgba(0,0,0,.22); }
.dd2-head h2,.dd2-fusion-hero h2 { margin:4px 0 2px; font-size:24px; letter-spacing:-.02em; }
.dd2-head p,.dd2-fusion-hero p { margin:0; color:#8196af; font-size:12px; }
.dd2-kicker,.dd2-eyebrow { color:var(--dd2-cyan); font:800 9px/1.3 ui-monospace,Consolas,monospace; letter-spacing:.16em; }
.dd2-head-meta { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.dd2-status,.dd2-ticker,.dd2-clock,.dd2-chart-badges span { padding:7px 10px; border:1px solid #263a53; border-radius:8px; background:#0a1421; color:#9fb3cb; font:700 10px ui-monospace,Consolas,monospace; }
.dd2-status.live { color:var(--dd2-green); border-color:rgba(33,230,165,.35); box-shadow:0 0 20px rgba(33,230,165,.08); }
.dd2-clock { color:#fff; min-width:58px; text-align:center; }
.dd2-market-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid #1d3047; border-radius:14px; overflow:hidden; background:#091321; }
.dd2-market-strip > div { min-height:66px; padding:12px 15px; border-right:1px solid #17283c; display:flex; flex-direction:column; justify-content:center; }
.dd2-market-strip > div:last-child { border-right:0; }
.dd2-market-strip small,.dd2-fusion-stats small { color:#667f9d; font:800 9px ui-monospace,Consolas,monospace; letter-spacing:.1em; }
.dd2-market-strip b { margin-top:5px; font:800 15px ui-monospace,Consolas,monospace; color:#e8f3ff; }
.dd2-main-grid { display:grid; grid-template-columns:minmax(0,2.65fr) minmax(300px,.85fr); gap:14px; }
.dd2-chart-panel,.dd2-intel-panel,.dd2-fusion-panel { border:1px solid #20364f; border-radius:16px; overflow:hidden; background:#060d17; box-shadow:0 16px 45px rgba(0,0,0,.18); }
.dd2-panel-head { min-height:63px; padding:11px 15px; border-bottom:1px solid #16273a; background:linear-gradient(90deg,rgba(24,43,65,.8),rgba(7,14,24,.88)); }
.dd2-panel-head h3 { margin:3px 0 0; font-size:14px; }
.dd2-chart-badges { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.dd2-chart-badges span { padding:4px 7px; color:#7890aa; font-size:8px; }
.dd2-asset-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:12px 18px;border-bottom:1px solid #183047;background:linear-gradient(90deg,#071724,#07101a)}
.dd2-asset-title,.dd2-asset-live{display:flex;align-items:center;gap:12px}.dd2-asset-title h3{margin:0;color:#f3f7fd;font-size:22px;letter-spacing:-.035em}.dd2-asset-title small{display:block;margin-top:4px;color:#7187a2;font:800 9px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.09em}.dd2-bitcoin{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#f7931a;color:white;font:900 25px/1 Arial,sans-serif;box-shadow:0 0 20px rgba(247,147,26,.17)}
.dd2-price-readout{display:flex;min-width:156px;flex-direction:column;align-items:flex-end;gap:5px}.dd2-price-readout small{color:#6f86a2;font:800 8px/1 ui-monospace,Consolas,monospace;letter-spacing:.09em}.dd2-price-readout b{color:#16e6b8;font:900 24px/1 ui-monospace,Consolas,monospace;letter-spacing:-.04em}.dd2-price-readout.benchmark{padding-left:13px;border-left:1px solid #1b344b}.dd2-price-readout.benchmark small{color:#70bad0}.dd2-price-readout.benchmark b{color:#4bcff2}.dd2-asset-live span{display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(19,222,179,.43);border-radius:999px;background:rgba(19,222,179,.06);color:#20e8bb;font:850 9px/1 ui-monospace,Consolas,monospace}.dd2-asset-live i,.dd2-live-reference i{display:block;width:7px;height:7px;border-radius:50%;background:#19e7b8;box-shadow:0 0 12px #19e7b8}
.dd2-chart-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:9px 16px;border-bottom:1px solid #14263a;background:#07111c}.dd2-timeframes{display:flex;gap:5px}.dd2-timeframes button{min-width:42px;padding:8px 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:#8ba0b8;font:800 11px/1 ui-monospace,Consolas,monospace;cursor:pointer}.dd2-timeframes button:hover,.dd2-timeframes button.active{border-color:#243b54;background:#12243a;color:#f1f7ff}.dd2-live-reference{display:flex;align-items:center;gap:11px;color:#748ba5;font:750 9px/1.2 ui-monospace,Consolas,monospace}.dd2-live-reference i{width:3px;height:3px;background:#536d8a;box-shadow:none}.dd2-live-reference b{margin-left:4px;color:#21e6b4}
.dd2-analysis-stack{display:grid;gap:1px;background:#18283a}.dd2-analysis-block{background:#050b13}.dd2-analysis-toggle{display:grid;grid-template-columns:1fr auto 18px;gap:12px;align-items:center;width:100%;min-height:53px;padding:0 16px;border:0;background:#060d16;color:#eef4fb;text-align:left;cursor:pointer}.dd2-analysis-toggle:hover{background:#091522}.dd2-analysis-toggle>span{font:900 10px/1.2 ui-monospace,Consolas,monospace}.dd2-analysis-toggle small{color:#657b94;font:800 8px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.08em}.dd2-analysis-toggle>b{color:#18e4b7;font-size:17px;text-align:center}.dd2-analysis-toggle[aria-expanded="true"]{border-bottom:1px solid #1a2d42}.dd2-analysis-body{padding:13px 16px 15px;background:linear-gradient(180deg,#07101a,#050b13)}.dd2-analysis-body[hidden]{display:none}.dd2-analysis-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid #14263a}.dd2-analysis-title b,.dd2-analysis-title small{display:block}.dd2-analysis-title b{color:#dce8f5;font:900 10px/1.2 ui-monospace,Consolas,monospace}.dd2-analysis-title small{margin-top:4px;color:#586f89;font:750 8px/1.3 ui-monospace,Consolas,monospace}.dd2-analysis-title>span{color:#18e6b7;font:900 9px/1 ui-monospace,Consolas,monospace}
.dd2-whale-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:11px}.dd2-whale-metrics>div,.dd2-whale-counts>div,.dd2-momentum-moves>div,.dd2-momentum-summary>div{padding:10px;border:1px solid #182b40;border-radius:9px;background:#07111d}.dd2-whale-metrics small,.dd2-whale-counts small,.dd2-momentum-moves small,.dd2-momentum-summary small{display:block;color:#657c96;font:800 8px/1.2 ui-monospace,Consolas,monospace}.dd2-whale-metrics b,.dd2-whale-counts b,.dd2-momentum-moves b,.dd2-momentum-summary b{display:block;margin-top:6px;color:#e8f1fb;font:900 12px/1.2 ui-monospace,Consolas,monospace}.dd2-whale-metrics>div:first-child b,.dd2-whale-metrics>div:nth-child(3) b,.dd2-whale-counts>div:first-child b{color:#13e5b5}.dd2-whale-metrics>div:nth-child(2) b,.dd2-whale-counts>div:nth-child(2) b{color:#ff597c}.dd2-flow-bars{display:grid;grid-template-columns:40px 1fr;gap:7px 10px;align-items:center;margin:11px 0}.dd2-flow-bars label{display:flex;justify-content:space-between;color:#657d97;font:800 8px/1 ui-monospace,Consolas,monospace}.dd2-flow-bars label span{display:none}.dd2-flow-bars>i{height:6px;border-radius:999px;background:#0e1b2b;overflow:hidden}.dd2-flow-bars>i>b{display:block;height:100%;width:0;border-radius:inherit;background:#16e5b6;transition:width .25s}.dd2-flow-bars>i>b.sell{background:#ff5275}.dd2-whale-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.dd2-whale-counts b{font-size:17px}
.dd2-momentum-moves{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:11px}.dd2-momentum-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.dd2-momentum-moves b.positive,.dd2-momentum-summary b.positive,.dd2-momentum-foot b.positive{color:#12e4b4}.dd2-momentum-moves b.negative,.dd2-momentum-summary b.negative,.dd2-momentum-foot b.negative{color:#ff5779}.dd2-momentum-foot{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:#60758e;font:750 8px/1.2 ui-monospace,Consolas,monospace}.dd2-momentum-foot b{color:#dce8f6}
.dd2-call-dock{display:grid;grid-template-columns:minmax(210px,1fr) auto minmax(210px,1fr);align-items:center;gap:12px;min-height:47px;padding:7px 72px 7px 14px;border-top:1px solid #16283c;border-bottom:1px solid #16283c;background:linear-gradient(90deg,#07111c,#091522 50%,#07111c)}.dd2-call-dock>.dd2-timeframes{grid-column:1;justify-self:start}.dd2-call-values{grid-column:2;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.dd2-call-dock span{min-width:145px;padding:7px 12px;border:1px solid currentColor;border-radius:7px;background:#091321;text-align:center;font:900 10px/1 ui-monospace,Consolas,monospace;letter-spacing:.025em;box-shadow:0 0 16px rgba(0,0,0,.2)}.dd2-call-dock .v4{color:#7f9cff}.dd2-call-dock .rsi{color:#36d9ff}.dd2-call-dock .baseline{color:#ffca58}.dd2-call-dock .last{color:#21e6a5}.dd2-call-dock .waiting{opacity:.78}.dd2-call-dock .yes{background:rgba(33,230,165,.1);box-shadow:0 0 18px rgba(33,230,165,.08)}.dd2-call-dock .no{background:rgba(255,79,114,.1);box-shadow:0 0 18px rgba(255,79,114,.08)}
@media(max-width:1180px){.dd2-call-dock{grid-template-columns:1fr;padding-right:14px}.dd2-call-dock>.dd2-timeframes,.dd2-call-values{grid-column:1}.dd2-call-dock>.dd2-timeframes{justify-self:start}.dd2-call-values{justify-content:flex-start}}
.dd2-indicators{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #16283c;background:#07111c}.dd2-indicators>span{margin-right:3px;color:#667d98;font:900 8px/1 ui-monospace,Consolas,monospace;letter-spacing:.1em}.dd2-indicators button{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #253950;border-radius:999px;background:#0a1421;color:#738aa4;font:800 8px/1 ui-monospace,Consolas,monospace;cursor:pointer}.dd2-indicators button i{width:6px;height:6px;border-radius:50%;background:#d138f0;box-shadow:0 0 8px #d138f0}.dd2-indicators button.cyan i{background:#8d98aa;box-shadow:0 0 8px #8d98aa}.dd2-indicators button.green i{background:#21e6a5;box-shadow:0 0 8px #21e6a5}.dd2-indicators button.pink i{background:#f59f00;box-shadow:0 0 8px #f59f00}.dd2-indicators button.active{border-color:#523d8c;background:#15112a;color:#d6cdf2}.dd2-indicators button:not(.active){opacity:.52}.dd2-indicators button small{color:inherit;font-size:7px}
.dd2-indicators button.divergence i{background:linear-gradient(135deg,#21e6a5 0 48%,#ff597c 52% 100%);box-shadow:0 0 8px rgba(178,126,255,.72)}
.dd2-indicators button.three-point i{background:conic-gradient(from 0deg,#3cffb0,#f9fbff,#ff476f,#3cffb0);box-shadow:0 0 10px rgba(60,255,176,.62)}
.dd2-chart-wrap { position:relative; height:590px; min-height:590px; background:#03070c; }
#dd2Chart { display:block; width:100%; height:590px; cursor:grab; touch-action:none; user-select:none; }
#dd2Chart.dd2-dragging { cursor:grabbing; }
.dd2-chart-tip { display:none; position:absolute; z-index:3; width:205px; padding:9px 10px; border:1px solid #38506d; border-radius:8px; background:rgba(5,11,19,.96); color:#dbeaff; font:10px/1.55 ui-monospace,Consolas,monospace; pointer-events:none; box-shadow:0 12px 30px #000; }
.dd2-chart-foot { display:flex; flex-wrap:wrap; justify-content:space-between; gap:9px 12px; padding:9px 14px; border-top:1px solid #15263a; color:#607995; font:9px ui-monospace,Consolas,monospace; }
.dd2-divergence-status{font-weight:900;letter-spacing:.04em;color:#7188a2}.dd2-divergence-status.bull{color:#21e6a5}.dd2-divergence-status.bear{color:#ff597c}.dd2-divergence-status.both{color:#c98cff}
.dd2-three-point-status{font-weight:1000;letter-spacing:.055em;color:#7f96ad}.dd2-three-point-status.bull{color:#3cffb0;text-shadow:0 0 9px rgba(60,255,176,.3)}.dd2-three-point-status.bear{color:#ff5b7e;text-shadow:0 0 9px rgba(255,71,111,.3)}.dd2-three-point-status.confirmed{padding:2px 7px;border:1px solid currentColor;border-radius:5px}.dd2-three-point-status.inactive{color:#53677e}
.three-point-divergence-alert{position:fixed;z-index:11900;top:calc(var(--topbar-h,68px) + 78px);left:50%;display:flex;width:min(720px,calc(100vw - 34px));transform:translateX(-50%);flex-direction:column;align-items:center;gap:7px;padding:22px 24px;border:2px solid currentColor;border-radius:16px;background:#07111d;text-align:center;box-shadow:0 28px 85px rgba(0,0,0,.78);pointer-events:none;animation:three-point-alert-arrive .32s cubic-bezier(.16,1,.3,1),three-point-alert-pulse 1.15s ease-in-out infinite alternate}
.three-point-divergence-alert[hidden]{display:none!important}.three-point-divergence-alert b{font:1000 clamp(21px,2.5vw,34px)/1.05 var(--mono);letter-spacing:.055em}.three-point-divergence-alert span{font:1000 clamp(16px,2vw,25px)/1.1 var(--mono);letter-spacing:.08em}.three-point-divergence-alert small{font:850 10px/1.35 var(--mono);letter-spacing:.06em;color:#d5e3ef}.three-point-divergence-alert.bull{color:#3cffb0;background:linear-gradient(145deg,rgba(5,52,39,.98),rgba(3,14,19,.99));box-shadow:0 28px 85px rgba(0,0,0,.78),0 0 40px rgba(60,255,176,.26)}.three-point-divergence-alert.bear{color:#ff5b7e;background:linear-gradient(145deg,rgba(65,10,29,.98),rgba(17,5,14,.99));box-shadow:0 28px 85px rgba(0,0,0,.78),0 0 40px rgba(255,71,111,.26)}
@keyframes three-point-alert-arrive{from{opacity:0;transform:translate(-50%,-18px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes three-point-alert-pulse{from{border-color:currentColor}to{border-color:#fff}}
@media(max-width:720px){.three-point-divergence-alert{top:calc(var(--topbar-h,60px) + 54px);padding:17px 12px}.three-point-divergence-alert small{font-size:8px}}
.dd2-intel-panel { min-width:0; }
.dd2-signal { padding:5px 8px; border-radius:7px; border:1px solid #35485e; color:#9aabc0; font:800 9px ui-monospace,Consolas,monospace; }
.dd2-signal.yes { color:var(--dd2-green); border-color:rgba(33,230,165,.35); }
.dd2-signal.no { color:var(--dd2-red); border-color:rgba(255,79,114,.35); }
.dd2-intel-list { margin:0; padding:8px 14px; }
.dd2-intel-list > div { display:grid; grid-template-columns:1fr 1.15fr; gap:10px; align-items:center; min-height:42px; border-bottom:1px solid #142235; }
.dd2-intel-list dt { color:#6e8299; font-size:11px; }
.dd2-intel-list dd { margin:0; text-align:right; color:#e5f0fc; font:800 11px ui-monospace,Consolas,monospace; }
.dd2-plain { margin:8px 14px 14px; padding:12px; border:1px solid rgba(255,202,88,.26); border-radius:10px; background:rgba(255,202,88,.045); color:#cfdae6; font-size:11px; line-height:1.5; }
.dd2-sources { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.dd2-sources[hidden] { display:none !important; }
.dd2-source-card { position:relative; min-height:165px; padding:15px; border:1px solid #20344c; border-radius:14px; overflow:hidden; background:linear-gradient(155deg,#0b1624,#070e18); }
.dd2-source-card:before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:#49627e; }
.dd2-source-card.source-v4:before { background:var(--dd2-blue); }
.dd2-source-card.source-rsi:before { background:var(--dd2-cyan); }
.dd2-source-card.source-base:before { background:var(--dd2-gold); }
.dd2-source-card.source-fusion:before { background:var(--dd2-green); }
.dd2-source-card > div { display:flex; align-items:center; gap:9px; }
.dd2-source-card > div span { display:grid; place-items:center; width:25px; height:25px; border:1px solid #2d465f; border-radius:7px; color:#6f8baa; font:800 9px ui-monospace,Consolas,monospace; }
.dd2-source-card h3 { margin:0; font-size:12px; }
.dd2-source-card > b { display:block; margin:17px 0 7px; color:#9aaabd; font:900 23px ui-monospace,Consolas,monospace; }
.dd2-source-card > b.yes { color:var(--dd2-green); }.dd2-source-card > b.no { color:var(--dd2-red); }
.dd2-source-card p { min-height:34px; margin:0 0 10px; color:#7d91aa; font-size:10px; line-height:1.45; }
.dd2-source-card small { color:#526a85; font:700 8px ui-monospace,Consolas,monospace; text-transform:uppercase; }
.dd2-fusion-panel { padding:18px; background:linear-gradient(135deg,#08131f,#07101b 60%,rgba(18,55,50,.34)); }
.dd2-fusion-panel[hidden] { display:none !important; }
.dd2-fusion-call { min-width:250px; padding:12px 16px; border:1px solid #294158; border-radius:12px; background:#08121d; text-align:right; }
.dd2-fusion-call small,.dd2-fusion-call span { display:block; color:#6d869e; font:800 8px ui-monospace,Consolas,monospace; }
.dd2-fusion-call b { display:block; margin:4px 0; color:#a8b8ca; font:900 24px ui-monospace,Consolas,monospace; }
.dd2-fusion-call.bid { border-color:rgba(33,230,165,.42); background:rgba(33,230,165,.06); }.dd2-fusion-call.bid b { color:var(--dd2-green); }
.dd2-simple-heading { display:flex; justify-content:space-between; gap:12px; margin-top:18px; color:#c7d7e8; }
.dd2-simple-heading b { font-size:11px; }.dd2-simple-heading span { color:#617993; font:800 9px ui-monospace,Consolas,monospace; }
.dd2-history-heading { margin-top:22px; padding-top:16px; border-top:1px solid #20344a; }
.dd2-history-heading b { display:block; color:#d6e5f5; font-size:12px; }.dd2-history-heading small { display:block; margin-top:5px; color:#778da6; font-size:10px; }
.dd2-gates { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:16px; }
.dd2-gates > div { display:grid; grid-template-columns:30px 1fr; grid-template-rows:auto auto; column-gap:9px; min-height:67px; padding:10px; border:1px solid #22364c; border-radius:10px; background:#08121e; }
.dd2-gates span { grid-row:1/3; display:grid; place-items:center; width:27px; height:27px; border:1px solid #39516c; border-radius:50%; color:#7890aa; font:800 10px ui-monospace,Consolas,monospace; }
.dd2-gates b { align-self:end; color:#9fb2c7; font:800 9px ui-monospace,Consolas,monospace; }
.dd2-gates small { align-self:start; margin-top:4px; color:#617892; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dd2-gates > div.pass { border-color:rgba(33,230,165,.28); background:rgba(33,230,165,.035); }.dd2-gates > div.pass span { color:var(--dd2-green); border-color:rgba(33,230,165,.4); }
.dd2-fusion-stats { display:grid; grid-template-columns:repeat(5,1fr); margin-top:12px; border:1px solid #1b2d42; border-radius:10px; overflow:hidden; }
.dd2-fusion-stats > div { padding:10px 12px; border-right:1px solid #17283a; background:#08121d; }.dd2-fusion-stats > div:last-child{border-right:0}
.dd2-fusion-stats b { display:block; margin-top:5px; font:800 15px ui-monospace,Consolas,monospace; }
.dd2-history-wrap { margin-top:12px; overflow:auto; border:1px solid #1b2c40; border-radius:10px; }
.dd2-history { width:100%; border-collapse:collapse; font-size:10px; }.dd2-history th { color:#67809d; text-align:left; font:800 8px ui-monospace,Consolas,monospace; letter-spacing:.07em; }
.dd2-history th,.dd2-history td { padding:9px 10px; border-bottom:1px solid #142337; white-space:nowrap; }.dd2-history td { color:#a8b9cc; }.dd2-history tr:last-child td{border-bottom:0}
.dd2-all-ai-panel{padding:18px;border:1px solid #20364f;border-radius:16px;background:#060d17;box-shadow:0 16px 45px rgba(0,0,0,.18);overflow:hidden}
.dd2-all-ai-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.dd2-all-ai-head h2{margin:4px 0 0;color:#eef5ff;font-size:19px;letter-spacing:-.02em}.dd2-all-ai-tag{padding:6px 9px;border:1px solid #263a53;border-radius:7px;background:#0c1725;color:#8fa5bd;font:800 9px/1 ui-monospace,Consolas,monospace}
.dd2-all-ai-note{margin:10px 0 0;color:#7388a1;font-size:10px;line-height:1.45}.dd2-all-ai-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0 12px}.dd2-all-ai-summary>div{min-height:72px;padding:11px 13px;border:1px solid #1c3047;border-radius:10px;background:linear-gradient(145deg,#0b1523,#08101b)}.dd2-all-ai-summary small,.dd2-all-ai-summary b,.dd2-all-ai-summary span{display:block}.dd2-all-ai-summary small{color:#647b95;font:800 8px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.08em}.dd2-all-ai-summary b{margin-top:7px;color:#f0f6ff;font:900 17px/1 ui-monospace,Consolas,monospace}.dd2-all-ai-summary span{overflow:hidden;margin-top:7px;color:#657a92;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.dd2-all-ai-table-wrap{max-height:430px;overflow:auto;border:1px solid #1b2d42;border-radius:10px;background:#050b13}.dd2-all-ai-table{width:100%;min-width:960px;border-collapse:collapse;table-layout:fixed}.dd2-all-ai-table th,.dd2-all-ai-table td{padding:10px 11px;border-bottom:1px solid #142337;text-align:left;white-space:nowrap}.dd2-all-ai-table th{position:sticky;z-index:2;top:0;background:#101a2b;color:#6f91bb;font:850 8px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.05em}.dd2-all-ai-table th:first-child{width:21%}.dd2-all-ai-table th:nth-child(5){width:18%}.dd2-all-ai-table td{height:47px;color:#9cb0c6;font:750 10px/1.2 ui-monospace,Consolas,monospace}.dd2-all-ai-table tr:last-child td{border-bottom:0}.dd2-all-ai-table tr.current td{background:rgba(31,213,255,.035)}.dd2-all-ai-table td:first-child b,.dd2-all-ai-table td:first-child small{display:block}.dd2-all-ai-table td:first-child b{overflow:hidden;color:#e7f0fb;text-overflow:ellipsis}.dd2-all-ai-table td:first-child small{margin-top:4px;color:#21d7ff;font-size:7px;letter-spacing:.08em}
.dd2-ai-pill,.dd2-result-pill{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:5px 8px;border:1px solid #304158;border-radius:999px;background:#111a27;color:#8294a9;font:900 9px/1 ui-monospace,Consolas,monospace}.dd2-ai-pill.win{border-color:#06d7a5;background:rgba(6,215,165,.13);color:#19edbd}.dd2-ai-pill.loss{border-color:#ff4f72;background:rgba(255,79,114,.13);color:#ff6382}.dd2-ai-pill.bid{border-color:#8b61dc;background:rgba(139,97,220,.13);color:#cda8ff}.dd2-ai-pill.waiting{color:#95a6ba}.dd2-ai-pill.empty{color:#708196}.dd2-result-pill.winner{border-color:rgba(255,202,88,.45);background:rgba(255,202,88,.09);color:#ffd56f}.dd2-result-pill.current{border-color:rgba(32,213,255,.45);background:rgba(32,213,255,.08);color:#40dcff}.dd2-result-pill.pending{color:#778ba2}
@media (max-width:1180px){.dd2-main-grid{grid-template-columns:1fr}.dd2-intel-panel{display:grid;grid-template-columns:1fr 1fr}.dd2-intel-panel .dd2-panel-head{grid-column:1/-1}.dd2-sources{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.dd2-whale-metrics{grid-template-columns:repeat(3,1fr)}.dd2-momentum-summary{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.dd2-all-ai-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.dd2-head,.dd2-panel-head,.dd2-fusion-hero,.dd2-asset-head,.dd2-all-ai-head{align-items:flex-start;flex-direction:column}.dd2-head-meta{justify-content:flex-start}.dd2-simple-heading{align-items:flex-start;flex-direction:column}.dd2-market-strip{grid-template-columns:repeat(2,1fr)}.dd2-market-strip>div{border-bottom:1px solid #17283c}.dd2-main-grid{display:block}.dd2-chart-panel{margin-bottom:12px}.dd2-call-dock{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:7px 10px}.dd2-call-dock span{min-width:0}.dd2-chart-wrap,#dd2Chart{height:450px;min-height:450px}.dd2-intel-panel{display:block}.dd2-sources,.dd2-gates{grid-template-columns:1fr}.dd2-fusion-stats,.dd2-all-ai-summary{grid-template-columns:repeat(2,1fr)}.dd2-chart-foot,.dd2-chart-controls{align-items:flex-start;flex-direction:column}.dd2-live-reference{flex-wrap:wrap}.dd2-analysis-toggle{grid-template-columns:1fr 18px}.dd2-analysis-toggle small{display:none}.dd2-whale-metrics,.dd2-whale-counts,.dd2-momentum-summary{grid-template-columns:1fr 1fr}.dd2-momentum-moves{grid-template-columns:repeat(2,1fr)}.dd2-momentum-foot{flex-direction:column}.dd2-asset-live{flex-wrap:wrap;align-items:flex-start}.dd2-price-readout{min-width:0;align-items:flex-start}.dd2-price-readout b{font-size:20px}.dd2-price-readout.benchmark{padding-left:10px}}

/* Global readability floor requested by the owner. All interface words are at
   least 15px; primary headings and live market prices remain intentionally
   larger. This is presentation-only and has no runtime or order authority. */
body,body *{font-size:15px!important}
body h1{font-size:28px!important}
body h2{font-size:22px!important}
body h3{font-size:18px!important}
.dd2-bitcoin{font-size:25px!important}
.dd2-price-readout b{font-size:24px!important}
.v4h-price-pair b{font-size:21px!important}
.dd2-fusion-call b{font-size:24px!important}
.gold-side>b{font-size:25px!important}

/* Read-only V4 + RSI/ADX night-bid history. The 8 PM-3 AM filter is
   presentation-only and never participates in signal or order handling. */
.rsi-night-page{max-width:none!important}
.rsi-night-shell{border-top:1px solid rgba(255,196,84,.55);background:linear-gradient(145deg,rgba(10,19,33,.96),rgba(7,13,24,.98))}
.rsi-night-head{align-items:flex-start;gap:24px}
.rsi-night-head h1{margin:7px 0 5px;color:#eef6ff}
.rsi-night-head p{max-width:930px;margin:0;color:#91a7bf;line-height:1.45}
.rsi-night-toolbar{display:grid;grid-template-columns:minmax(300px,1fr) auto minmax(80px,1fr);align-items:center;gap:18px;margin:18px 0 12px}
.rsi-night-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rsi-night-actions .btn:first-child{border-color:#7ed385;color:#7ed385}
.rsi-night-prices{grid-column:2;min-width:650px}
.rsi-night-calendar-wrap{margin:12px 0 16px;padding:16px;border:1px solid #20364f;border-radius:12px;background:rgba(5,12,21,.72)}
.rsi-night-calendar-controls{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;margin-bottom:12px}
.rsi-night-calendar-controls>b{text-align:center;color:#e2ecf7;font-weight:900}
.rsi-night-selection{margin:10px 0;padding:11px 14px;border:1px solid rgba(126,211,133,.28);border-radius:9px;background:rgba(126,211,133,.055);color:#9be5a2;font-family:var(--mono);font-weight:850;letter-spacing:.045em}
.rsi-night-stats{margin-bottom:12px}
.rsi-night-table-wrap{max-height:580px;border:1px solid #20364f;border-radius:12px}
.rsi-night-table th{position:sticky;top:0;z-index:2;background:#111b2d}
.rsi-night-side,.rsi-night-result{display:inline-flex;min-width:64px;align-items:center;justify-content:center;padding:5px 10px;border:1px solid currentColor;border-radius:999px;font-family:var(--mono);font-weight:950}
.rsi-night-side.yes,.rsi-night-result.win,.rsi-night-result.yes-won{color:#16e6b8;background:rgba(22,230,184,.11)}
.rsi-night-side.no,.rsi-night-result.loss,.rsi-night-result.no-won{color:#ff5478;background:rgba(255,84,120,.11)}
.rsi-night-result.pending{color:#ffd36b;background:rgba(255,211,107,.08)}
.t2-table-wrap{width:100%;overflow-x:hidden}
.t2-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.t2-table th,.t2-table td{box-sizing:border-box;overflow:hidden;padding-right:5px;padding-left:5px;text-overflow:ellipsis}
.t2-table th{font-size:9px;letter-spacing:.045em}
.t2-table td{font-size:10px}
.t2-table th:nth-child(1){width:9%}
.t2-table th:nth-child(2){width:9%}
.t2-table th:nth-child(3){width:16%}
.t2-table th:nth-child(4){width:7%}
.t2-table th:nth-child(5),.t2-table th:nth-child(6){width:7%}
.t2-table th:nth-child(7){width:9%}
.t2-table th:nth-child(8){width:12%}
.t2-table th:nth-child(9){width:8%}
.t2-table th:nth-child(10){width:9%}
.t2-table th:nth-child(11){width:7%}
.t2-table th:nth-child(n+4),.t2-table td:nth-child(n+4){text-align:center}
.t2-table td:nth-child(n+5):nth-child(-n+10){white-space:nowrap}
.t2-table .rsi-night-side,.t2-table .rsi-night-result,.t2-table .tag{box-sizing:border-box;min-width:0;max-width:100%;padding:5px 6px;font-size:9px;white-space:nowrap}
.t2-agreement-component{margin-top:14px;background:rgba(7,14,25,.82)}
.t2-agreement-component .panel-head{padding:5px 0 11px}
.t2-agreement-component .panel-head h2{font-size:15px;letter-spacing:.065em}
.t2-agreement-component .t2-table{min-width:0}
.t2-agreement-component .agreement-pill{max-width:100%;padding-right:6px;padding-left:6px;white-space:nowrap}
.t2-accuracy-panel{margin-top:14px;background:rgba(7,14,25,.82)}
.t2-accuracy-grid{grid-template-columns:repeat(6,minmax(125px,1fr))}
.night-accuracy-panel{margin-top:14px;background:rgba(7,14,25,.82)}
.night-accuracy-grid{grid-template-columns:repeat(6,minmax(125px,1fr))}
@media(max-width:1350px){.t2-accuracy-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:1350px){.night-accuracy-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:760px){.t2-accuracy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.night-accuracy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1180px){.t2-table th,.t2-table td{padding-right:3px;padding-left:3px;font-size:8px}.t2-table .rsi-night-side,.t2-table .rsi-night-result,.t2-table .tag{padding-right:4px;padding-left:4px;font-size:8px}}
@media(max-width:1380px){.rsi-night-toolbar{grid-template-columns:1fr}.rsi-night-prices{grid-column:1;justify-self:stretch;min-width:0}.rsi-night-actions{justify-content:flex-start}}
@media(max-width:720px){.rsi-night-calendar-controls{grid-template-columns:auto 1fr auto}.rsi-night-calendar-controls #rsiNightCalClear{grid-column:1/-1}.rsi-night-table-wrap{max-height:520px}}

/* Compact live intelligence copy in the left rail. Review & Control can be
   minimized to free this space; all data remains read-only presentation. */
.sidebar-review-toggle-row{margin-top:8px!important;padding-top:8px;border-top:1px solid rgba(130,177,230,.1)}
.nav .sidebar-review-toggle{justify-content:space-between;color:#7189a5;font-weight:850;letter-spacing:.09em}
.nav .sidebar-review-toggle b{color:#59dfff;font-weight:900}
.nav.review-collapsed .sidebar-review-item{display:none}
.sidebar-intel{flex:0 0 auto;margin:0 9px 9px;border:1px solid #20364f;border-radius:14px;overflow:hidden;background:#060d17;box-shadow:0 14px 34px rgba(0,0,0,.22)}
.sidebar-intel[hidden]{display:none!important}
.sidebar-intel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:13px;border-bottom:1px solid #18283a;background:linear-gradient(90deg,rgba(24,43,65,.78),rgba(7,14,24,.9))}
.sidebar-intel-head span{display:block;color:#20d5ff;font-family:ui-monospace,Consolas,monospace;font-weight:850;letter-spacing:.1em}
.sidebar-intel-head h3{margin:5px 0 0;color:#eef5ff;line-height:1.15}
.sidebar-intel-head .dd2-signal{flex:0 0 auto;max-width:112px;text-align:center;overflow-wrap:anywhere}
.sidebar-intel-list{margin:0;padding:5px 12px}
.sidebar-intel-list>div{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:8px;align-items:center;min-height:39px;border-bottom:1px solid #142235}
.sidebar-intel-list dt{color:#7890aa;line-height:1.2}
.sidebar-intel-list dd{margin:0;color:#eef5ff;font-family:ui-monospace,Consolas,monospace;font-weight:800;line-height:1.2;text-align:right;overflow-wrap:anywhere}
.sidebar-intel-read{margin:8px 12px 12px;padding:11px;border:1px solid rgba(255,202,88,.3);border-radius:10px;background:rgba(255,202,88,.045);color:#d3deea;line-height:1.45}
@media (max-width:880px){.sidebar-intel{margin-bottom:12px}}

/* --------------------------------------------------------------------------
   CUSTOMER EDITION
   The owner application remains unchanged. The customer launcher adds the
   customer-edition class before first paint, removing administrative and
   real-money controls while keeping the analysis workspace intact.
   -------------------------------------------------------------------------- */
.customer-only{display:none!important}
.staff-only{display:none!important}
.executive-only{display:none!important}
.customer-edition .owner-only{display:none!important}
.customer-edition .customer-only:not(.view):not([hidden]):not(.customer-terms-modal):not(.customer-access-gate){display:block!important}
.customer-edition li.customer-only{display:list-item!important}
.customer-edition .view.customer-only{display:none!important}
.customer-edition .view.customer-only.active{display:block!important}
.customer-edition.staff-account li.staff-only{display:list-item!important}
.customer-edition.staff-account .view.staff-only{display:none!important}
.customer-edition.staff-account .view.staff-only.active{display:block!important}
.customer-edition:not(.staff-account) .staff-only{display:none!important}
.customer-edition.staff-account.executive-account li.executive-only{display:list-item!important}
.customer-edition.staff-account.executive-account .view.executive-only{display:none!important}
.customer-edition.staff-account.executive-account .view.executive-only.active{display:block!important}
.customer-edition.staff-account.executive-account .executive-only:not(.view):not(li){display:inline-flex!important}
.customer-edition .sidebar-intel{margin-top:8px}
.customer-edition .nav{flex:0 0 auto}
.customer-edition .sidebar-footer.customer-only{margin-top:auto}
.customer-edition body.real-money-live [data-paper-bid-ledger="true"]{display:block!important}
.customer-edition .topbar{padding-right:20px}
.customer-edition .customer-session-controls.customer-only:not([hidden]){display:inline-flex!important}
.customer-session-controls{align-items:center;gap:9px;min-width:0;padding:4px 5px 4px 7px;border:1px solid rgba(78,184,224,.25);border-radius:10px;background:linear-gradient(135deg,rgba(23,61,84,.7),rgba(9,18,31,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.customer-session-avatar{display:grid;place-items:center;flex:0 0 auto;width:25px;height:25px;border:1px solid rgba(59,218,255,.45);border-radius:8px;background:rgba(35,199,236,.12);color:#61e1ff;font:900 13px/1 var(--mono)}
.customer-session-identity{display:flex;min-width:0;max-width:170px;flex-direction:column;line-height:1.05}
.customer-session-identity b{overflow:hidden;text-overflow:ellipsis;color:#f2f8ff;font:800 11px/1.15 var(--mono)}
.customer-session-identity small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;color:#74dff7;font:850 8px/1 var(--mono);letter-spacing:.08em}
.customer-logout-button{min-height:29px;padding:0 10px;border:1px solid rgba(255,91,126,.38);border-radius:7px;background:rgba(151,24,56,.18);color:#ff91aa;font:850 9px/1 var(--mono);letter-spacing:.07em;white-space:nowrap;transition:border-color .15s,background .15s,color .15s}
.customer-logout-button:hover:not(:disabled){border-color:#ff668a;background:rgba(189,25,67,.28);color:#fff}
.customer-logout-button:disabled{cursor:wait;opacity:.6}
.customer-edition .topbar::before,
.customer-edition .topbar .menu-toggle,
.customer-edition .topbar .mp-research,
.customer-edition .topbar .mp-paper{display:none!important}
.customer-edition .dd2-asset-live{gap:0}
.customer-edition .v4h-price-pair{padding-right:18px}
.view-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.customer-telegram-button{min-width:166px;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:9px 16px;border:1px solid rgba(46,190,255,.6);border-radius:11px;background:linear-gradient(135deg,rgba(31,146,214,.24),rgba(15,78,132,.18));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 30px -20px rgba(44,181,255,.9);color:#69d7ff;font:900 15px/1 var(--mono);letter-spacing:.055em;cursor:pointer;transition:transform .16s,border-color .16s,background .16s}
.customer-telegram-button:hover:not(:disabled){transform:translateY(-1px);border-color:#62d7ff;background:linear-gradient(135deg,rgba(31,164,232,.34),rgba(15,86,144,.25))}
.customer-telegram-button:disabled{cursor:not-allowed;opacity:.58}
.customer-edition .customer-telegram-button.customer-only{display:inline-flex!important}
@media (max-width:650px){.view-header-actions{width:100%;align-items:flex-start;flex-direction:column}.customer-telegram-button{width:100%}}
@media (max-width:880px){.customer-session-identity{max-width:110px}.customer-edition .health-pill,.customer-edition .topbar-ticker{display:none}.customer-edition .topbar{gap:7px;padding-right:10px}}
@media (max-width:560px){#customerSessionRole{display:none}.customer-session-controls{margin-left:auto}.customer-session-identity{max-width:88px}.customer-logout-button{padding:0 8px}.clock{display:none}}

.customer-subscription-view{max-width:1280px!important}
.customer-settings-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border:1px solid #23405c;border-radius:18px;background:linear-gradient(125deg,#0b1b2c,#08111d 58%,rgba(23,93,78,.23));box-shadow:0 20px 55px rgba(0,0,0,.25)}
.customer-settings-hero h1{margin:5px 0 7px;color:#f2f7ff}
.customer-settings-hero p{margin:0;color:#88a0ba}
.customer-settings-kicker,.customer-plan-label{display:block;color:#20d5ff;font-family:ui-monospace,Consolas,monospace;font-weight:850;letter-spacing:.12em}
.customer-subscription-status{padding:10px 13px;border:1px solid rgba(255,202,88,.4);border-radius:9px;background:rgba(255,202,88,.07);color:#ffd36b;font-family:ui-monospace,Consolas,monospace;font-weight:850;text-align:center}
.customer-subscription-status.ready{border-color:rgba(33,230,165,.42);background:rgba(33,230,165,.07);color:#25e6b1}
.customer-billing-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:18px;margin-top:18px}
.customer-plan-card,.customer-manage-card{min-height:420px;padding:27px;border:1px solid #20364f;border-radius:18px;background:linear-gradient(145deg,#0b1624,#070e18);box-shadow:0 18px 45px rgba(0,0,0,.2)}
.customer-plan-card h2,.customer-manage-card h2{margin:12px 0;color:#f1f7ff}
.customer-plan-price{display:flex;align-items:flex-end;gap:9px;margin:18px 0 22px}
.customer-plan-price b{color:#19e5b6;font:900 42px/1 ui-monospace,Consolas,monospace!important;letter-spacing:-.045em}
.customer-plan-price span{padding-bottom:5px;color:#8198b2}
.customer-plan-card ul{display:grid;gap:12px;margin:0 0 28px;padding:0;list-style:none;color:#b9c8d9}
.customer-plan-card li:before{content:"✓";margin-right:10px;color:#1fe2b1;font-weight:900}
.customer-plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0 20px}
.customer-plan-option{position:relative;display:grid;gap:5px;min-height:148px;padding:17px;border:1px solid #2a4058;border-radius:13px;background:linear-gradient(145deg,#0a1522,#060d16);color:#9fb2c8;text-align:left;cursor:pointer;transition:border-color .16s,transform .16s,box-shadow .16s}
.customer-plan-option:hover{transform:translateY(-2px);border-color:#3b6683}
.customer-plan-option.selected{border-color:#20e0b0;background:linear-gradient(145deg,rgba(18,73,66,.55),#07131a);box-shadow:0 0 0 2px rgba(32,224,176,.12),0 12px 30px rgba(0,0,0,.28)}
.customer-plan-option.best{border-color:#e2ba55}
.customer-plan-option.best.selected{border-color:#20e0b0}
.customer-plan-option-name{color:#eef6ff;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.customer-plan-option strong{color:#20e7b6;font:900 25px/1.1 ui-monospace,Consolas,monospace}
.customer-plan-option>span:not(.customer-plan-option-name):not(.customer-plan-badge){color:#8ba0b7}
.customer-plan-option small{color:#7f95ad;line-height:1.35}
.customer-plan-option em{align-self:end;color:#ffce68;font-style:normal;font-family:ui-monospace,Consolas,monospace;font-size:11px;font-weight:900;letter-spacing:.04em}
.customer-plan-badge{position:absolute;top:9px;right:9px;padding:4px 7px;border:1px solid rgba(255,206,104,.5);border-radius:999px;background:rgba(255,206,104,.09);color:#ffd774;font:900 9px/1 ui-monospace,Consolas,monospace;letter-spacing:.08em}
.customer-savings-note{margin:-6px 0 20px;color:#8097b0!important;font-size:13px;line-height:1.45!important}
.customer-plan-options-compact{grid-template-columns:repeat(5,minmax(118px,1fr));margin:4px 0 2px}
.customer-plan-options-compact .customer-plan-option{min-height:132px;padding:13px}
.customer-plan-options-compact .customer-plan-option strong{font-size:21px}
.customer-plan-options-compact .customer-plan-option em{font-size:9px}
.customer-billing-primary{width:100%;min-height:48px;border-color:rgba(33,230,165,.55)!important;background:rgba(33,230,165,.1)!important;color:#25e6b1!important;font-weight:900!important}
.customer-plan-card button:disabled,.customer-manage-card button:disabled{cursor:not-allowed;opacity:.48}
.customer-manage-card p{color:#9cb0c7;line-height:1.65}
.customer-manage-card .btn{width:100%;min-height:48px;margin:18px 0 12px}
.customer-billing-note{padding:13px;border:1px solid rgba(255,202,88,.28);border-radius:10px;background:rgba(255,202,88,.05);color:#d9c58d;line-height:1.5}
.customer-manage-card small{display:block;margin-top:18px;color:#6f849c;line-height:1.55}
.customer-tradingview-card{grid-column:1/-1;min-height:0}
.customer-tradingview-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,auto);gap:11px;align-items:center;margin-top:16px}
.customer-tradingview-form input{box-sizing:border-box;width:100%;min-height:48px;padding:10px 13px;border:1px solid #2a4058;border-radius:10px;outline:none;background:#07101b;color:#eef6ff;font:800 13px/1.2 var(--mono)}
.customer-tradingview-form input:focus{border-color:#25d5ff;box-shadow:0 0 0 2px rgba(37,213,255,.08)}
.customer-tradingview-form input:disabled{cursor:not-allowed;opacity:.5}
.customer-tradingview-form .btn{width:auto;min-width:250px;margin:0}
.customer-tradingview-status{margin-top:13px;padding:10px 12px;border:1px solid rgba(255,202,88,.35);border-radius:9px;background:rgba(255,202,88,.06);color:#ffd36b;font:850 11px/1.4 var(--mono)}
.customer-tradingview-status.active{border-color:rgba(33,230,165,.4);background:rgba(33,230,165,.07);color:#25e6b1}
.customer-tradingview-status.inactive{color:#ffd36b}
@media (max-width:900px){.customer-settings-hero{align-items:flex-start;flex-direction:column}.customer-billing-grid{grid-template-columns:1fr}.customer-plan-card,.customer-manage-card{min-height:0}}
@media (max-width:650px){.customer-tradingview-form{grid-template-columns:1fr}.customer-tradingview-form .btn{width:100%;min-width:0}}

.customer-access-gate{position:fixed;inset:0;z-index:10000;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 50% 20%,rgba(17,62,76,.42),rgba(2,6,12,.97) 58%)}
.customer-edition .customer-access-gate{display:flex!important}
.customer-edition .customer-access-gate.authorized{display:none!important}
.customer-edition .customer-access-gate.previewing{display:none!important}
.customer-access-card{width:min(980px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:30px;border:1px solid #24506a;border-radius:20px;background:linear-gradient(145deg,#0b1827,#060d16);box-shadow:0 35px 100px rgba(0,0,0,.62)}
.customer-access-card h1{margin:8px 0;color:#f1f7ff;font-size:30px}
.customer-access-card>p{margin:0 0 22px;color:#9cb0c7;line-height:1.6}
.customer-access-stage{display:grid;gap:13px;margin:20px 0}
.customer-access-stage[hidden]{display:none!important}
.customer-access-stage label{display:grid;gap:6px;color:#9fb2c8;font-weight:800}
.customer-access-stage input{width:100%;min-height:46px;padding:9px 12px;border:1px solid #2b4058;border-radius:10px;background:#07101b;color:#eef6ff;font:700 15px/1.2 var(--sans)}
.customer-access-stage .btn{min-height:48px}
.customer-terms-modal{position:fixed;inset:0;z-index:20000;align-items:center;justify-content:center;padding:18px;background:rgba(1,5,11,.94);backdrop-filter:blur(8px)}
.customer-edition .customer-terms-modal[hidden]{display:none!important}
.customer-edition .customer-terms-modal:not([hidden]){display:flex!important}
.customer-terms-dialog{display:grid;grid-template-rows:auto auto minmax(180px,1fr) auto auto;gap:13px;width:min(1100px,100%);height:min(900px,calc(100vh - 30px));padding:22px;border:1px solid #2b6985;border-radius:18px;background:linear-gradient(145deg,#0a1725,#050b13);box-shadow:0 35px 110px rgba(0,0,0,.78)}
.customer-terms-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.customer-terms-header h1{margin:5px 0 0;color:#f2f7ff;font-size:27px}
.customer-terms-document{min-height:0;margin:0;padding:18px;overflow:auto;white-space:pre-wrap;border:1px solid #263c52;border-radius:12px;background:#040a12;color:#c6d2e1;font:500 13px/1.62 var(--sans);scrollbar-color:#2e7895 #07101a}
.customer-terms-confirm{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid rgba(255,200,87,.38);border-radius:11px;background:rgba(255,200,87,.06);color:#dce7f4;font-size:12px;line-height:1.5;cursor:pointer}
.customer-terms-confirm input{flex:0 0 auto;width:20px;height:20px;margin-top:1px;accent-color:#15dba4}
.customer-terms-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#9db0c5;font-size:11px}
.customer-terms-actions .btn{min-height:48px;min-width:330px}
.customer-terms-open{border-color:rgba(255,200,87,.55)!important;color:#ffd978!important}
#customerTermsRegistrationStatus.terms-accepted{color:#38e6b0}
.activity-user-rank{display:flex;align-items:center;gap:8px;white-space:nowrap}.activity-user-rank>b{color:#eef6ff}.activity-user-rank .staff-role-badge{font-size:9px}
@media (max-width:700px){.customer-terms-dialog{height:calc(100vh - 12px);padding:14px;border-radius:12px}.customer-terms-header h1{font-size:21px}.customer-terms-actions{align-items:stretch;flex-direction:column}.customer-terms-actions .btn{width:100%;min-width:0}.customer-terms-document{font-size:12px}.customer-terms-confirm{font-size:11px}}
.customer-access-status{padding:12px;border:1px solid rgba(255,202,88,.38);border-radius:10px;background:rgba(255,202,88,.07);color:#ffd36b;font-family:var(--mono);font-weight:900;text-align:center}
@media (max-width:900px){.customer-plan-options-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.customer-plan-options{grid-template-columns:1fr}.customer-plan-options-compact{grid-template-columns:1fr}.customer-plan-option{min-height:120px}}
.software-customer-summary{margin-bottom:16px}
.software-customer-billing p{line-height:1.6}
.software-customer-table-wrap{max-height:590px;overflow-x:hidden}
.software-customer-table{width:100%;table-layout:fixed}
.software-customer-table th:nth-child(1){width:25%}.software-customer-table th:nth-child(2){width:25%}.software-customer-table th:nth-child(3){width:20%}.software-customer-table th:nth-child(4){width:15%}.software-customer-table th:nth-child(5){width:15%}
.software-customer-table th{position:sticky;top:0;z-index:2;background:#111b2d}
.software-customer-directory-row{cursor:pointer;outline:none;transition:background .14s,box-shadow .14s}.software-customer-directory-row:hover,.software-customer-directory-row:focus{background:rgba(35,202,235,.065);box-shadow:inset 3px 0 #2ed6ff}.software-customer-directory-row td{vertical-align:middle;overflow-wrap:anywhere}.software-customer-open-button{width:100%;min-width:0;color:#44dcff!important}
.software-customer-id{display:block;margin-top:5px;color:#627b98;font-family:var(--mono);font-size:10px}
.software-linked-usernames{display:grid;gap:5px;min-width:170px}.software-linked-usernames>b{color:#eaf3ff}.software-linked-usernames small{color:#7f98b4;font:800 9px/1.35 var(--mono)}.software-linked-usernames .subscription-pill{justify-self:start;min-width:0;font-size:8px}
.owner-customer-modal{position:fixed;inset:0;z-index:25000;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(1,5,11,.88);backdrop-filter:blur(8px)}.owner-customer-modal[hidden]{display:none!important}
.owner-customer-modal-dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1180px,calc(100vw - 30px));max-height:calc(100vh - 34px);overflow:hidden;border:1px solid #2b6985;border-radius:18px;background:linear-gradient(145deg,#0b1726,#050c15);box-shadow:0 35px 110px rgba(0,0,0,.78)}
.owner-customer-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 22px;border-bottom:1px solid #1e354c;background:linear-gradient(120deg,rgba(18,61,77,.55),rgba(9,17,29,.96))}.owner-customer-modal-head h2{margin:5px 0 0;color:#f1f7ff}.owner-customer-modal-close{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid #31506b;border-radius:10px;background:#0a1522;color:#d8e6f5;font-size:28px;line-height:1;cursor:pointer}.owner-customer-modal-close:hover{border-color:#42dfff;color:#42dfff}
.owner-customer-modal-body{min-height:0;overflow:auto;padding:20px}.owner-customer-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.owner-customer-detail-card{min-width:0;padding:18px;border:1px solid #20374f;border-radius:13px;background:rgba(7,17,29,.86)}.owner-customer-detail-card h3{margin:0 0 14px;color:#52daf8;font:900 11px/1.2 var(--mono);letter-spacing:.09em}.owner-customer-detail-card dl{display:grid;grid-template-columns:minmax(125px,.45fr) minmax(0,1fr);gap:10px 14px;margin:0}.owner-customer-detail-card dt{color:#7189a5;font:800 9px/1.4 var(--mono);text-transform:uppercase}.owner-customer-detail-card dd{min-width:0;margin:0;color:#e1ebf7;font:750 11px/1.4 var(--mono);overflow-wrap:anywhere}.owner-customer-detail-card p{margin:12px 0 0;color:#7890a9;font-size:10px;line-height:1.5}.owner-customer-role-card .software-staff-role{max-width:300px}.owner-customer-free-card .software-free-access{min-width:0}.owner-customer-control-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.owner-customer-control-buttons .btn{min-height:42px}
.owner-customer-refund-card{grid-column:1/-1;border-color:#63324b;background:linear-gradient(145deg,rgba(36,12,25,.72),rgba(7,17,29,.9))}.owner-customer-refund-card h3{color:#ff7ba5}.owner-refund-empty{margin-bottom:12px!important}.owner-refund-form{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:end;margin-top:16px}.owner-refund-form label{display:grid;gap:6px;color:#91a5bc;font:850 9px/1.2 var(--mono);letter-spacing:.05em;text-transform:uppercase}.owner-refund-form input,.owner-refund-form select{width:100%;min-height:42px;border:1px solid #354c67;border-radius:8px;background:#07121f;color:#edf5ff;padding:9px 10px;font:800 11px/1.2 var(--mono)}.owner-refund-form input:focus,.owner-refund-form select:focus{border-color:#ff588d;outline:none;box-shadow:0 0 0 2px rgba(255,64,126,.13)}.owner-refund-form .btn{min-height:42px}.owner-refund-confirm input{text-transform:uppercase}
@media(max-width:900px){.owner-refund-form{grid-template-columns:1fr 1fr}.owner-refund-form .btn{grid-column:1/-1}}@media(max-width:760px){.software-customer-table th:nth-child(2),.software-customer-table td:nth-child(2){display:none}.software-customer-table th:nth-child(1){width:34%}.software-customer-table th:nth-child(3){width:26%}.software-customer-table th:nth-child(4){width:20%}.software-customer-table th:nth-child(5){width:20%}.owner-customer-detail-grid{grid-template-columns:1fr}.owner-customer-modal{padding:7px}.owner-customer-modal-dialog{width:100%;max-height:calc(100vh - 14px)}.owner-customer-modal-body{padding:12px}.owner-customer-control-buttons{grid-template-columns:1fr}.owner-customer-detail-card dl{grid-template-columns:1fr}.owner-customer-detail-card dd{margin-bottom:5px}.owner-customer-free-card .software-free-controls{align-items:stretch;flex-direction:column}.owner-customer-free-card .software-free-controls input{width:100%}.owner-refund-form{grid-template-columns:1fr}.owner-refund-form .btn{grid-column:auto}}
.subscription-pill{display:inline-flex;min-width:96px;align-items:center;justify-content:center;padding:5px 9px;border:1px solid currentColor;border-radius:999px;font-family:var(--mono);font-weight:900}
.subscription-pill.active{color:#22e7b5;background:rgba(34,231,181,.09)}
.subscription-pill.blocked{color:#ffca58;background:rgba(255,202,88,.07)}
.software-customer-action{min-width:110px}
.software-free-access{display:grid;gap:8px;min-width:330px}
.nav-count{display:inline-grid;min-width:19px;height:19px;margin-left:auto;place-items:center;padding:0 5px;border:1px solid rgba(255,84,120,.62);border-radius:999px;background:rgba(255,84,120,.16);color:#ff7895;font:900 8px/1 var(--mono)}.nav-count[hidden]{display:none!important}
.customer-access-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.customer-help-hero-actions{display:flex;align-items:flex-end;flex-direction:column;gap:9px}
.customer-support-view,.customer-about-view,.owner-support-view{max-width:1500px!important}
.customer-support-layout{display:grid;grid-template-columns:minmax(330px,.72fr) minmax(480px,1.28fr);gap:16px;align-items:start}
.customer-support-compose form{display:grid;gap:13px;margin-top:14px}
.customer-support-compose label{display:grid;gap:7px;color:#8fa5bd;font:800 10px/1.25 var(--mono);letter-spacing:.035em}
.customer-support-compose input,.customer-support-compose select,.customer-support-compose textarea,.customer-support-reply textarea,.owner-support-reply textarea{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #2a405a;border-radius:9px;outline:none;background:#07111d;color:#e4edf8;font:700 11px/1.4 var(--mono);resize:vertical}
.customer-support-compose input:focus,.customer-support-compose select:focus,.customer-support-compose textarea:focus,.customer-support-reply textarea:focus,.owner-support-reply textarea:focus{border-color:#25d5ff;box-shadow:0 0 0 2px rgba(37,213,255,.08)}
.customer-support-note{min-height:18px;color:#6f859e;font-size:10px;line-height:1.45}.customer-support-note.ok{color:#33e3b2}.customer-support-note.error{color:#ff6e8b}
.customer-support-threads,.owner-support-list{display:grid;gap:12px;margin-top:12px}
.customer-support-ticket,.owner-support-ticket{overflow:hidden;border:1px solid #20364e;border-radius:12px;background:#07101b}
.customer-support-ticket-head,.owner-support-ticket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #172a3f;background:linear-gradient(135deg,rgba(17,31,49,.95),rgba(8,17,29,.95))}
.customer-support-ticket-head b,.customer-support-ticket-head small,.owner-support-ticket-head b,.owner-support-ticket-head small{display:block}.customer-support-ticket-head b,.owner-support-ticket-head b{color:#e7f1fc;font:850 12px/1.25 var(--mono)}.customer-support-ticket-head small,.owner-support-ticket-head small{margin-top:5px;color:#67809d;font-size:9px}
.support-status{display:inline-flex;min-width:84px;justify-content:center;padding:5px 8px;border:1px solid currentColor;border-radius:999px;font:900 8px/1 var(--mono);white-space:nowrap}.support-status.open{color:#ffca58;background:rgba(255,202,88,.08)}.support-status.answered{color:#23e0ac;background:rgba(35,224,172,.08)}.support-status.closed{color:#7890aa;background:rgba(120,144,170,.07)}
.customer-support-messages,.owner-support-messages{display:grid;gap:9px;max-height:360px;overflow:auto;padding:14px}
.support-message{max-width:86%;padding:10px 12px;border:1px solid #21364e;border-radius:11px;background:#0b1725;color:#a9bbce;font-size:10px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.support-message small{display:block;margin-top:7px;color:#5f7792;font:750 8px/1 var(--mono)}.support-message.customer{justify-self:start;border-bottom-left-radius:3px}.support-message.owner{justify-self:end;border-color:rgba(34,222,172,.32);border-bottom-right-radius:3px;background:rgba(20,83,72,.19);color:#bce9dc}.support-message.owner small{text-align:right}
.customer-support-reply,.owner-support-reply{display:grid;grid-template-columns:1fr auto;gap:9px;padding:12px 14px;border-top:1px solid #172a3f}.customer-support-reply textarea,.owner-support-reply textarea{min-height:44px;max-height:130px}.customer-support-reply button,.owner-support-reply button{align-self:stretch;min-width:116px}
.owner-support-summary{margin-bottom:15px}.owner-support-list{margin-top:0}.owner-support-ticket-head>div:last-child{text-align:right}.owner-support-customer{color:#2bd7ff!important}.owner-support-reply-actions{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:0 14px 13px}.owner-support-reply-actions button{min-width:115px}
.software-staff-role{display:grid;gap:7px;min-width:145px}.software-staff-role select,.staff-extension-controls input,.staff-role-select{box-sizing:border-box;width:100%;min-height:34px;padding:6px 8px;border:1px solid #2a405a;border-radius:7px;background:#07111d;color:#e4edf8;font:800 9px/1.2 var(--mono)}.staff-role-badge{display:inline-flex;justify-content:center;padding:5px 8px;border:1px solid #334b66;border-radius:999px;color:#9db1c8;font:900 8px/1 var(--mono);white-space:nowrap}.staff-role-badge.executive{border-color:#ff79d1;color:#ffafe2;background:rgba(255,75,186,.1);box-shadow:0 0 15px rgba(255,75,186,.12)}.staff-role-badge.super_admin{border-color:#f0bf50;color:#ffd66f;background:rgba(240,191,80,.08)}.staff-role-badge.admin{border-color:#2ed6ff;color:#64ddff;background:rgba(46,214,255,.07)}.staff-role-badge.moderator{border-color:#a578ff;color:#bf9cff;background:rgba(165,120,255,.07)}

.v4h-summary-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.executive-repair-view{max-width:1500px}.executive-repair-hero{border-color:#7a3f72;background:linear-gradient(135deg,rgba(255,75,186,.09),rgba(8,20,34,.96) 48%,rgba(46,214,255,.06))}.executive-repair-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.executive-repair-actions .btn{min-height:40px}.executive-repair-findings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.executive-repair-finding{margin:0;border-top:2px solid #2ed6ff}.executive-repair-finding.protected{border-top-color:#f0bf50}.executive-repair-finding.actionable{border-top-color:#ff4d7e}.executive-repair-finding p{margin:5px 0 0;color:#aebfd2;line-height:1.5}.executive-repair-finding ul{margin:9px 0 0;padding-left:18px;color:#c8d6e7;font:700 10px/1.55 var(--mono)}.executive-repair-request-panel textarea{box-sizing:border-box;width:100%;resize:vertical;border:1px solid #29445d;border-radius:9px;background:#050c15;color:#dce9f8;padding:12px;font:700 11px/1.55 var(--mono)}.executive-repair-copy-status{min-height:18px;margin-top:7px;color:#35e9b4;font:800 10px/1.4 var(--mono)}
@media(max-width:980px){.executive-repair-findings{grid-template-columns:1fr}.executive-repair-actions .btn{width:100%}}
.staff-console-hero{margin-bottom:16px}.staff-support-heading{margin:22px 0 10px;padding:0 2px}.staff-extension-requests{display:grid;gap:10px}.staff-extension-request{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:center;padding:13px;border:1px solid #21364d;border-radius:10px;background:#08121e}.staff-extension-request b,.staff-extension-request small{display:block}.staff-extension-request b{color:#e5eef9;font:850 11px/1.35 var(--mono)}.staff-extension-request small{margin-top:5px;color:#6d849d;font-size:9px;line-height:1.45}.staff-extension-actions{display:flex;gap:8px}.staff-extension-controls{display:grid;grid-template-columns:72px minmax(120px,1fr);gap:7px;min-width:250px}.staff-extension-controls button{grid-column:1/-1}.staff-customer-panel,.staff-extension-panel{margin-bottom:16px}.staff-used-mark{color:#ffca58;font:850 9px/1.3 var(--mono)}
.staff-super-actions{display:grid;grid-template-columns:repeat(2,minmax(92px,1fr));gap:6px;margin-top:7px}.staff-super-actions .btn{min-width:0;padding:7px 8px;font-size:8px}
#staffCustomerRows tr:has(.staff-role-badge.super_admin) .staff-extension-controls,#staffCustomerRows tr:has(.staff-role-badge.super_admin) .staff-super-actions{display:none!important}
#staffCustomerRows tr:has(.staff-role-badge.super_admin) td:nth-child(5):after{content:"OWNER CONTROLLED";display:inline-flex;padding:6px 9px;border:1px solid #8e6c26;border-radius:999px;color:#ffd66f;background:rgba(240,191,80,.08);font:900 8px/1 var(--mono);white-space:nowrap}
.software-about-screenshots{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:17px}.software-about-shot{margin:0;overflow:hidden;border:1px solid #26415d;border-radius:15px;background:#07101b;box-shadow:0 18px 42px rgba(0,0,0,.28)}.software-shot-window{min-height:300px;background:#030a12}.software-shot-window svg{display:block;width:100%;height:auto;padding:12px;box-sizing:border-box}.software-shot-bar{display:flex;align-items:center;gap:6px;height:38px;padding:0 12px;border-bottom:1px solid #1b3148;background:#0b1522}.software-shot-bar i{width:7px;height:7px;border-radius:50%;background:#26445f}.software-shot-bar i:first-child{background:#ff607e}.software-shot-bar i:nth-child(2){background:#ffca58}.software-shot-bar i:nth-child(3){background:#21e6a5}.software-shot-bar b{margin-left:7px;color:#718aa7;font:850 8px/1 var(--mono);letter-spacing:.08em}.software-about-shot figcaption{display:grid;gap:7px;padding:15px;border-top:1px solid #193047}.software-about-shot figcaption b{color:#edf4fc;font-size:13px}.software-about-shot figcaption span{color:#8198b2;font-size:10px;line-height:1.55}
.software-shot-table{padding-bottom:15px}.software-shot-table .software-shot-bar{margin-bottom:6px}.shot-table-head,.shot-table-row{display:grid;grid-template-columns:1.45fr repeat(4,1fr);gap:5px;align-items:center;margin:0 10px;padding:9px 7px;border-bottom:1px solid #15283b;font:750 8px/1.2 var(--mono)}.shot-table-head{color:#6684a7;background:#10192a}.shot-table-row b{overflow:hidden;color:#d7e8f8;text-overflow:ellipsis}.shot-table-row em{padding:4px 3px;border:1px solid #2a3b51;border-radius:999px;color:#9fb4cb;font-style:normal;text-align:center}.shot-table-row strong{color:#ffd66d;text-align:center}.shot-accuracy{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 12px 0}.shot-accuracy span{padding:10px;border:1px solid #20364f;border-radius:8px;color:#7189a5;font:800 8px/1.5 var(--mono);text-align:center}.shot-accuracy b{color:#21e6a5;font-size:14px}
.software-about-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.software-about-features article{min-height:154px;padding:16px;border:1px solid #20374f;border-radius:13px;background:linear-gradient(145deg,#0b1725,#07101b)}.software-about-features article>span{display:grid;width:36px;height:36px;place-items:center;border:1px solid rgba(42,215,255,.3);border-radius:10px;background:rgba(42,215,255,.08);color:#38dcff;font:900 11px/1 var(--mono)}.software-about-features h2{margin:12px 0 7px;color:#e9f2fc;font-size:14px}.software-about-features p{margin:0;color:#7990aa;font-size:10px;line-height:1.55}.software-about-how ol{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0;padding:0;list-style:none;counter-reset:steps}.software-about-how li{counter-increment:steps;min-height:105px;padding:13px;border:1px solid #1d3249;border-radius:10px;background:#08121e}.software-about-how li:before{content:counter(steps);display:grid;width:25px;height:25px;margin-bottom:9px;place-items:center;border-radius:50%;background:#123448;color:#4ee1ff;font:900 9px/1 var(--mono)}.software-about-how li b,.software-about-how li span{display:block}.software-about-how li b{color:#dfeaf6;font-size:11px}.software-about-how li span{margin-top:5px;color:#758ca6;font-size:9px;line-height:1.45}
@media(max-width:1100px){.customer-support-layout,.software-about-screenshots{grid-template-columns:1fr}.software-about-features{grid-template-columns:repeat(2,1fr)}.software-about-how ol{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.software-about-features,.software-about-how ol{grid-template-columns:1fr}.customer-support-reply,.owner-support-reply,.owner-support-reply-actions,.staff-extension-request{grid-template-columns:1fr}.staff-extension-actions{flex-wrap:wrap}.support-message{max-width:96%}.shot-table-head,.shot-table-row{font-size:6px}}
.software-free-access>.subscription-pill{justify-self:start;min-width:150px}
.software-free-controls{display:flex;align-items:center;gap:6px;white-space:nowrap}
.software-free-controls input{width:64px;min-height:32px;padding:5px 7px;border:1px solid #2b4058;border-radius:7px;background:#07101b;color:#eef6ff;font:800 13px/1 var(--mono);text-align:center}
.software-free-controls .btn{min-width:0;min-height:32px;padding:5px 8px;font-size:10px}
.software-free-controls .btn.negative{border-color:rgba(255,80,116,.45);color:#ff6685}
@media (max-width:1250px){.metric-grid.c6{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:680px){.metric-grid.c6{grid-template-columns:repeat(2,minmax(0,1fr))}}
.customer-chat-popup{position:fixed;z-index:9000;right:18px;bottom:18px;display:flex;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 28px);flex-direction:column;overflow:hidden;border:1px solid #2b4d69;border-radius:15px;background:linear-gradient(145deg,rgba(8,20,34,.99),rgba(4,11,20,.995));box-shadow:0 28px 80px rgba(0,0,0,.62),0 0 28px rgba(36,211,255,.08);transition:width .18s ease,box-shadow .18s ease,transform .18s ease}
.customer-chat-popup.attention{box-shadow:0 28px 80px rgba(0,0,0,.62),0 0 0 2px rgba(37,215,255,.38),0 0 32px rgba(36,211,255,.2)}
.customer-chat-popup.dragging{transition:none;box-shadow:0 34px 90px rgba(0,0,0,.72),0 0 0 1px rgba(37,215,255,.38)}
.customer-chat-popup-header{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #1b354b;background:linear-gradient(100deg,#10283b,#0a1726);cursor:grab;touch-action:none;user-select:none}.customer-chat-popup.dragging .customer-chat-popup-header{cursor:grabbing}
.customer-chat-popup-title{display:flex;min-width:0;align-items:center;gap:10px}.customer-chat-popup-title>span{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border:1px solid rgba(47,218,255,.4);border-radius:9px;background:rgba(35,195,229,.1);color:#43e0ff;font-size:15px}.customer-chat-popup-title b,.customer-chat-popup-title small{display:block}.customer-chat-popup-title b{color:#eef7ff;font:900 12px/1.2 var(--mono);letter-spacing:.04em}.customer-chat-popup-title small{margin-top:4px;overflow:hidden;color:#7090ac;font:800 7px/1.2 var(--mono);letter-spacing:.07em;text-overflow:ellipsis;white-space:nowrap}
.customer-chat-popup-actions{display:flex;align-items:center;gap:7px}.customer-chat-window-button{display:grid;width:31px;height:31px;place-items:center;border:1px solid #34516b;border-radius:8px;background:#081421;color:#8cdff1;font:900 17px/1 var(--mono);cursor:pointer}.customer-chat-window-button:hover,.customer-chat-window-button:focus-visible{border-color:#37d8ff;color:#d7f8ff;outline:none}
.customer-chat-popup-body{min-height:0;overflow:auto;padding:12px}.customer-chat-popup.is-minimized{width:min(350px,calc(100vw - 28px))}.customer-chat-popup.is-minimized .customer-chat-popup-body{display:none}.customer-chat-popup.is-minimized .customer-chat-popup-header{border-bottom:0}.customer-chat-popup.is-minimized .customer-chat-popup-actions .tag{display:none}
.customer-chat-room{overflow:hidden}.customer-chat-notice{margin:0 0 10px;padding:9px 10px;border:1px solid #1c4057;border-radius:9px;background:rgba(25,190,229,.06);color:#8bb4cc;font-size:9px;line-height:1.45}.customer-chat-notice.muted{border-color:#9d3d55;background:rgba(255,71,111,.08);color:#ff8aa3}
.customer-chat-messages{display:flex;height:min(40vh,390px);min-height:230px;flex-direction:column;gap:9px;overflow:auto;padding:12px;border:1px solid #182d43;border-radius:11px;background:#040c15}
.community-chat-message{align-self:flex-start;min-width:210px;max-width:78%;padding:10px 12px;border:1px solid #213b55;border-radius:12px 12px 12px 3px;background:#0b1826;color:#b8c9da}.community-chat-message.mine{align-self:flex-end;border-color:rgba(38,218,177,.35);border-radius:12px 12px 3px 12px;background:rgba(18,77,67,.25)}
.community-chat-message-head{display:flex;align-items:center;gap:7px;margin-bottom:7px}.community-chat-message-head b{color:#e8f3fd;font:900 10px/1 var(--mono)}.community-chat-message-head time{margin-left:auto;color:#607b96;font:750 8px/1 var(--mono)}.community-chat-message p{margin:0;color:#b6c9db;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.community-chat-message-foot{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:8px;color:#5f7892;font:750 8px/1 var(--mono)}.community-chat-message-foot .btn{min-height:25px;padding:4px 8px;border-color:#98405a;color:#ff7895;font-size:7px}
.customer-chat-compose{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:11px}.customer-chat-compose textarea,.customer-chat-moderation input,.customer-chat-moderation textarea{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #29415a;border-radius:9px;outline:none;background:#07111d;color:#e5eff9;font:700 11px/1.4 var(--mono);resize:vertical}.customer-chat-compose textarea:focus,.customer-chat-moderation input:focus,.customer-chat-moderation textarea:focus{border-color:#24d7ff;box-shadow:0 0 0 2px rgba(36,215,255,.08)}.customer-chat-compose button{min-width:118px}
.customer-chat-rules{margin-top:10px;padding:10px 12px;border:1px solid #1b3148;border-radius:9px;background:#07111d}.customer-chat-rules summary,.customer-chat-admin-log summary{color:#8fb3cb;font:900 9px/1.2 var(--mono);letter-spacing:.04em;cursor:pointer}.customer-chat-rules ul{display:grid;gap:8px;margin:10px 0 0;padding-left:18px;color:#8299b2;font-size:9px;line-height:1.5}.customer-chat-rules li::marker{color:#31d9ff}
.customer-chat-moderation{margin-top:10px;padding:11px;border:1px solid #2b3d55;border-radius:10px;background:#08131f}.customer-chat-moderation form{display:grid;grid-template-columns:1fr 110px;gap:9px;align-items:end}.customer-chat-moderation label{display:grid;gap:6px;color:#829ab3;font:800 9px/1.2 var(--mono)}.customer-chat-moderation label:nth-of-type(3){grid-column:1/-1}.customer-chat-mute-actions{display:flex;grid-column:1/-1;gap:7px}.customer-chat-mute-actions .btn{min-width:90px}
.customer-chat-admin-log{margin-top:10px;padding:11px;border:1px solid #233a51;border-radius:10px;background:#07111d}.customer-chat-admin-log p{margin:10px 0}.customer-chat-admin-log .cc-table-scroll{max-height:260px}.customer-chat-admin-log .dtable{min-width:780px}.customer-chat-admin-log .dtable td{vertical-align:top}.chat-log-detail{max-width:620px;white-space:normal;overflow-wrap:anywhere}.chat-log-event{font:900 9px/1.2 var(--mono);color:#70dfff}.chat-log-event.user_muted{color:#ff7693}
@media(max-width:680px){.customer-chat-popup{right:8px;bottom:8px;width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.customer-chat-popup.is-minimized{width:min(330px,calc(100vw - 16px))}.customer-chat-popup-header{padding:8px}.customer-chat-popup-title small{display:none}.customer-chat-compose,.customer-chat-moderation form{grid-template-columns:1fr}.customer-chat-moderation label:nth-of-type(3),.customer-chat-mute-actions{grid-column:auto}.customer-chat-compose button{min-height:42px}.community-chat-message{max-width:94%}.customer-chat-mute-actions{flex-wrap:wrap}}

/* Executive-only manual call console. This is display-only and never changes a bid ledger. */
.topbar::before{display:none!important;content:none!important}
.executive-call-console{display:grid;grid-template-columns:58px 118px 58px;grid-template-rows:36px 28px;align-items:stretch;column-gap:7px;row-gap:3px;flex:0 0 auto}
.executive-call-button.yes{grid-column:1;grid-row:1}
.executive-call-monitor{grid-column:2;grid-row:1}
.executive-call-button.no{grid-column:3;grid-row:1}
.executive-call-button.sell{grid-column:2;grid-row:2;min-height:28px;border-radius:8px;font-size:11.5px;letter-spacing:.14em}
.executive-call-button{min-height:38px;border:1px solid #34506a;border-radius:9px;background:#0a1625;color:#e8f5ff;font:950 13px/1 var(--mono);letter-spacing:.12em;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,opacity .16s ease}
.executive-call-button.yes{border-color:rgba(16,185,129,.72);color:#60f0bb;background:linear-gradient(180deg,rgba(10,55,45,.85),rgba(6,26,27,.9))}
.executive-call-button.no{border-color:rgba(244,63,94,.72);color:#ff7892;background:linear-gradient(180deg,rgba(65,17,32,.85),rgba(29,8,17,.9))}
.executive-call-button.sell{border-color:rgba(245,158,11,.78);color:#ffd166;background:linear-gradient(180deg,rgba(77,45,8,.88),rgba(31,18,5,.92))}
.executive-call-button:not(:disabled):hover,.executive-call-button:not(:disabled):focus-visible{transform:translateY(-1px);outline:none}
.executive-call-button.yes:not(:disabled):hover,.executive-call-button.yes:not(:disabled):focus-visible{box-shadow:0 0 18px rgba(16,185,129,.34)}
.executive-call-button.no:not(:disabled):hover,.executive-call-button.no:not(:disabled):focus-visible{box-shadow:0 0 18px rgba(244,63,94,.34)}
.executive-call-button.sell:not(:disabled):hover,.executive-call-button.sell:not(:disabled):focus-visible{box-shadow:0 0 18px rgba(245,158,11,.38)}
.executive-call-button:disabled{cursor:not-allowed;filter:saturate(.45);opacity:.42}
.executive-call-monitor{display:flex;min-width:0;min-height:38px;flex-direction:column;align-items:center;justify-content:center;border:1px solid #34506a;border-radius:8px;background:radial-gradient(circle at 50% 20%,#132c40,#040b13 70%);box-shadow:inset 0 0 13px rgba(0,0,0,.7);font-family:var(--mono);text-align:center}
.executive-call-monitor small{color:#68839e;font-size:6.5px;font-weight:900;letter-spacing:.12em;line-height:1.1}
.executive-call-monitor b{margin-top:3px;color:#8ca5bd;font-size:12px;letter-spacing:.12em;line-height:1}
.executive-call-monitor.yes{border-color:#10b981;box-shadow:inset 0 0 13px rgba(0,0,0,.7),0 0 13px rgba(16,185,129,.2)}
.executive-call-monitor.yes b{color:#4ff0b3}
.executive-call-monitor.no{border-color:#f43f5e;box-shadow:inset 0 0 13px rgba(0,0,0,.7),0 0 13px rgba(244,63,94,.2)}
.executive-call-monitor.no b{color:#ff6d87}
.executive-call-monitor.sell{border-color:#f59e0b;box-shadow:inset 0 0 13px rgba(0,0,0,.7),0 0 13px rgba(245,158,11,.24)}
.executive-call-monitor.sell b{color:#ffd166}
.executive-call-announcement{position:fixed;z-index:12000;top:calc(var(--topbar-h,68px) + 18px);left:50%;width:min(790px,calc(100vw - 36px));transform:translateX(-50%);padding:22px 26px;border:3px solid currentColor;border-radius:16px;font:1000 clamp(22px,3vw,42px)/1.12 var(--mono);letter-spacing:.055em;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.7);pointer-events:none}
.executive-call-announcement[hidden]{display:none!important}
.executive-call-announcement.yes{animation:executive-call-yes-flash .7s steps(1,end) infinite}
.executive-call-announcement.no{animation:executive-call-no-flash .7s steps(1,end) infinite}
.executive-call-announcement.sell{animation:executive-call-sell-flash .7s steps(1,end) infinite}
@keyframes executive-call-yes-flash{0%,100%{border-color:#10b981;background:#10b981;color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 36px rgba(16,185,129,.78)}50%{border-color:#fff;background:#fff;color:#07563e;box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 42px rgba(255,255,255,.78)}}
@keyframes executive-call-no-flash{0%,100%{border-color:#ef334f;background:#ef334f;color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 36px rgba(239,51,79,.78)}50%{border-color:#fff;background:#fff;color:#801026;box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 42px rgba(255,255,255,.78)}}
@keyframes executive-call-sell-flash{0%,100%{border-color:#f59e0b;background:#f59e0b;color:#111827;box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 36px rgba(245,158,11,.78)}50%{border-color:#fff;background:#fff;color:#7c4300;box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 42px rgba(255,255,255,.78)}}
@media(max-width:720px){.executive-call-console{grid-template-columns:46px 92px 46px;grid-template-rows:30px 24px;column-gap:4px;row-gap:3px}.executive-call-button{min-height:30px;font-size:10px}.executive-call-button.sell{min-height:24px;font-size:10px}.executive-call-monitor{min-height:30px}.executive-call-monitor small{font-size:5.5px}.executive-call-monitor b{font-size:10px}.executive-call-announcement{top:calc(var(--topbar-h,60px) + 10px);padding:18px 14px;font-size:20px}}
.baseline-ledger-page .panel{margin-top:16px}
.baseline-ledger-page .metric b{font-variant-numeric:tabular-nums}
.baseline-daily-scroll{max-height:360px}
.baseline-ledger-scroll{max-height:620px}
.baseline-daily-table,.baseline-ledger-table{min-width:980px}
.baseline-daily-table th:not(:first-child),.baseline-daily-table td:not(:first-child),
.baseline-ledger-table th:nth-child(n+3),.baseline-ledger-table td:nth-child(n+3){text-align:center}
.baseline-ledger-note{margin:12px 2px 0}
