:root {
  --bg-canvas: #07090d;
  --bg-surface: #0d1117;
  --bg-elev: #121821;
  --bg-hover: #171f2b;
  --bg-input: #0a0d12;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(118, 185, 0, 0.45);

  --text-primary: #eef2f6;
  --text-secondary: #9aa5b5;
  --text-muted: #647084;

  --nv-green: #76b900;
  --nv-bright: #8ee000;
  --nv-glow: rgba(118, 185, 0, 0.16);

  --high: #10b981;
  --good: #84cc16;
  --mid: #f59e0b;
  --low: #f97316;
  --bad: #f43f5e;
  --sec-gold: #eab308;
  --eco-cyan: #38bdf8;
  --poly-indigo: #818cf8;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font: 14px/1.5 var(--font-sans);
}

/* Precision Tactical Cyber-Grid + Drifting Ambient Aurora */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 12%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 12%, #000 15%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  top: -180px;
  left: -10%;
  width: 120%;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(460px 260px at 26% 32%, rgba(118, 185, 0, 0.14), transparent 72%),
    radial-gradient(420px 260px at 74% 38%, rgba(56, 189, 248, 0.095), transparent 72%),
    radial-gradient(340px 220px at 52% 20%, rgba(129, 140, 248, 0.07), transparent 70%);
  filter: blur(28px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora-drift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  50% { transform: translate3d(2%, 14px, 0) scale(1.04); }
  100% { transform: translate3d(-1%, -8px, 0) scale(0.98); }
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-muted);
}

/* ============================ Top Command Bar ============================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(142, 224, 0, 0) 20%, rgba(142, 224, 0, 0.65) 50%, rgba(56, 189, 248, 0.45) 58%, transparent 80%);
  background-size: 200% 100%;
  animation: header-gleam 8s ease-in-out infinite;
}

@keyframes header-gleam {
  0%, 15% { background-position: 130% 0; opacity: 0.25; }
  50% { opacity: 0.95; }
  85%, 100% { background-position: -60% 0; opacity: 0.25; }
}

.topbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.radar-beacon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 185, 0, 0.22) 0%, rgba(118, 185, 0, 0.04) 70%);
  border: 1px solid rgba(142, 224, 0, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radar-sweep {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 235deg, rgba(142, 224, 0, 0.62) 360deg);
  animation: radar-spin 3.2s linear infinite;
}

.radar-beacon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(142, 224, 0, 0.55);
  animation: radar-ring 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.radar-core {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8ff3b;
  box-shadow: 0 0 10px var(--nv-bright), 0 0 20px var(--nv-green);
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

@keyframes radar-ring {
  0% { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(1.75); opacity: 0; }
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand-badge {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--nv-bright);
  background: rgba(118, 185, 0, 0.12);
  border: 1px solid rgba(118, 185, 0, 0.28);
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-pill {
  font: 500 11px/1 var(--font-mono);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.session-pill.live {
  color: var(--high);
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.09);
}
.session-pill.ext {
  color: var(--mid);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sync-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 4px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--high);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.icon-btn.spinning svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-elev);
}
.btn.on {
  color: var(--nv-bright);
  border-color: rgba(118, 185, 0, 0.45);
  background: rgba(118, 185, 0, 0.1);
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--high);
}
.status-led.warn {
  background: var(--mid);
}

.popover-wrap {
  position: relative;
}

.sys-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(15, 20, 28, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  z-index: 60;
}

.pop-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.sys-list .sys-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.sys-ok { color: var(--high); font-weight: 500; }
.sys-off { color: var(--text-muted); }
.sys-err {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
  font-size: 11px;
  word-break: break-word;
}

/* =============================== Main Shell ============================== */

.shell {
  max-width: 1460px;
  margin: 0 auto;
  padding: 16px 24px 44px;
}

/* =========================== Market Pulse Strip ========================== */

.pulse-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.05fr 0.92fr 0.92fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pulse-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 25, 35, 0.85) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 142px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.pulse-card:hover {
  border-color: var(--border-strong);
}

.pulse-primary {
  border-color: rgba(118, 185, 0, 0.26);
  background:
    radial-gradient(180px 90px at 0% 0%, rgba(118, 185, 0, 0.11), transparent 80%),
    linear-gradient(180deg, rgba(19, 26, 35, 0.92) 0%, rgba(13, 17, 23, 0.98) 100%);
}

.pulse-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ticker-tag {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--nv-bright);
  background: rgba(118, 185, 0, 0.14);
}

.pulse-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

.pulse-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.mini-link:hover {
  color: var(--nv-bright);
  border-color: var(--border-accent);
}

.pulse-loading {
  font-size: 12px;
  padding: 14px 0;
}

.nvda-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.nvda-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.nvda-price {
  font: 700 24px/1.05 var(--font-mono);
  letter-spacing: -0.02em;
  color: #fff;
}

.delta-pill {
  font: 600 11.5px/1 var(--font-mono);
  padding: 3.5px 6px;
  border-radius: 5px;
}
.delta-pill.up {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}
.delta-pill.down {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.14);
}

/* Pre-Market / Post-Market Extended Quote Pill */
.ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font: 600 11px/1.1 var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.ext-pill.ext-pre {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.09);
}
.ext-pill.ext-post {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(129, 140, 248, 0.1);
}
.ext-pill .ext-tag {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
}
.ext-pill.ext-pre .ext-tag { color: #fcd34d; }
.ext-pill.ext-post .ext-tag { color: #a5b4fc; }
.ext-pill .ext-px { color: #fff; }

/* Interactive 24H News-on-Chart Stage */
.nvda-chart-stage {
  position: relative;
  margin-top: 7px;
  height: 70px;
  width: 100%;
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.nvda-chart-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.nvda-chart-hint {
  position: absolute;
  top: 4px;
  right: 7px;
  font: 500 9.5px/1 var(--font-mono);
  color: var(--text-muted);
  pointer-events: none;
  background: rgba(7, 9, 13, 0.65);
  padding: 2px 5px;
  border-radius: 4px;
}
.ev-pin {
  cursor: pointer;
}
.ev-pin .pin-halo {
  transition: r 0.15s ease, fill-opacity 0.15s ease;
}
.ev-pin:hover .pin-halo,
.ev-pin.active .pin-halo {
  fill-opacity: 0.42;
}
.ev-pin:hover .pin-core,
.ev-pin.active .pin-core {
  stroke: #fff;
  stroke-width: 2px;
}

.nvda-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font: 500 10.5px/1 var(--font-mono);
  color: var(--text-muted);
}
.nvda-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 230px;
}

.range-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.range-dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nv-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--nv-bright);
}

.peer-ext {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Peers Matrix */
.peers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.peer-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.peer-sym {
  font: 600 12px/1.15 var(--font-mono);
  color: var(--text-primary);
}
.peer-name {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}
.peer-val {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.peer-price {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}
.peer-chg {
  font-size: 11px;
  font-weight: 600;
}
.up { color: #34d399; }
.down { color: #fb7185; }

/* Polymarket Lead Card */
.poly-lead-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  flex: 1;
}
.poly-lead-q {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poly-lead-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.poly-lead-prob {
  font: 700 24px/1 var(--font-mono);
  color: #fff;
  text-shadow: 0 0 18px rgba(129, 140, 248, 0.28);
}
.poly-lead-spark svg {
  width: 96px;
  height: 34px;
  display: block;
}
.poly-shimmer-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.poly-shimmer-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #84cc16, #34d399);
  background-size: 200% 100%;
  animation: bar-shimmer 3.6s linear infinite;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bar-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}
.poly-lead-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Telemetry Cockpit Card (Arc Gauge + 24h Velocity Equalizer + Source Matrix) */
.hi-pill {
  font: 600 10.5px/1 var(--font-mono);
  padding: 3.5px 8px;
  border-radius: 999px;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.34);
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.14);
}
.hi-pill:hover {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 63, 94, 0.6);
  transform: translateY(-1px);
}

.tele-cockpit {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  flex: 1;
}

.gauge-wrap {
  position: relative;
  width: 88px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.gauge-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gauge-arc-active {
  transition: stroke-dashoffset 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-readout {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 2px;
}
.gauge-val {
  display: block;
  font: 700 16px/1 var(--font-mono);
  color: #fff;
}
.gauge-lbl {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tele-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.vel-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 9.5px/1 var(--font-mono);
  color: var(--text-muted);
}

.vel-strip {
  height: 30px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 3px;
  padding: 2px 0;
}

.vel-bar {
  position: relative;
  width: 100%;
  min-height: 3px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #38bdf8 0%, rgba(16, 185, 129, 0.55) 100%);
  transform-origin: bottom;
  animation: bar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 32ms);
  transition: filter 0.15s, transform 0.15s;
}
.vel-bar:hover {
  filter: brightness(1.35);
}
.vel-bar.has-hi {
  background: linear-gradient(180deg, #fb7185 0%, #f59e0b 38%, rgba(56, 189, 248, 0.6) 100%);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.32);
}
.vel-bar.is-now {
  background: linear-gradient(180deg, var(--nv-bright) 0%, #10b981 100%);
  box-shadow: 0 0 10px rgba(142, 224, 0, 0.45);
  animation: bar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards, bar-breathe 2.2s ease-in-out 0.7s infinite;
}
@keyframes bar-grow {
  from { transform: scaleY(0.08); opacity: 0.25; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes bar-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.tele-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.tm-cell {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  padding: 3px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tm-cell:hover {
  border-color: var(--border-accent);
  background: rgba(118, 185, 0, 0.1);
  transform: translateY(-1px);
}
.tm-cell span {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-cell b {
  display: block;
  font: 700 11px/1.15 var(--font-mono);
  color: var(--text-primary);
}

/* ============================ Breaking Banner ============================ */

.alerts-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 11px 15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.13) 0%, rgba(15, 20, 28, 0.92) 100%);
  border: 1px solid rgba(244, 63, 94, 0.36);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.08);
}
.alerts-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  box-shadow: 0 0 12px #fb7185;
}

.alerts-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
  color: var(--text-primary);
}
.alert-link:hover .alert-txt {
  color: #fff;
  text-decoration: underline;
}
.alert-score {
  font: 700 11px/1 var(--font-mono);
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  flex-shrink: 0;
}
.alert-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alert-src {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

/* ============================ Workspace Grid ============================= */

.mobile-switch {
  display: none;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.mobile-switch button {
  flex: 1;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.mobile-switch button.on {
  background: var(--bg-elev);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 18px;
  align-items: start;
}

/* ============================ Feed Control Deck ========================== */

.control-deck {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(28, 37, 50, 0.95) 0%, rgba(18, 24, 33, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(142, 224, 0, 0.34), 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
  pointer-events: none;
  opacity: 0;
}

.tabs button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s;
}
.tabs button:hover {
  color: var(--text-primary);
}
.tabs button.on {
  color: #fff;
}
.tabs:not(.has-glider) button.on {
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.tabs .cnt {
  font: 500 10px/1 var(--font-mono);
  font-style: normal;
  color: var(--text-muted);
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.tabs .cnt:empty {
  display: none;
}
.tabs button.on .cnt {
  color: var(--nv-bright);
  background: rgba(118, 185, 0, 0.14);
}

.cred-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.cred-control input[type="range"] {
  width: 84px;
  accent-color: var(--nv-green);
  cursor: pointer;
}

.cred-control b {
  min-width: 20px;
  text-align: right;
  color: var(--nv-bright);
}

/* Search & Language Row */
.deck-filters {
  flex-wrap: nowrap;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-ic {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 7px 30px 7px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}
.search-box input::placeholder {
  color: var(--text-muted);
}
.search-box input:focus {
  border-color: var(--border-accent);
}

.clear-btn {
  position: absolute;
  right: 7px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.clear-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2px;
  flex-shrink: 0;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.lang-switch button.on {
  background: var(--bg-elev);
  color: #fff;
  font-weight: 500;
}

/* Category Chips */
.cat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.cat-chip.on {
  color: var(--nv-bright);
  border-color: rgba(118, 185, 0, 0.48);
  background: rgba(118, 185, 0, 0.12);
}

.feed-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 8px;
  font-size: 12px;
}

/* ============================== Feed Cards =============================== */

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.feed-card:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
}
.feed-card.is-new {
  animation: card-flash 2.4s ease-out;
}
@keyframes card-flash {
  0% { background: rgba(118, 185, 0, 0.18); border-color: rgba(118, 185, 0, 0.55); }
}
.feed-card.is-sec {
  border-left: 2px solid var(--sec-gold);
}
.feed-card.is-official {
  border-left: 2px solid var(--nv-green);
}
.feed-card.is-hi:not(.is-sec):not(.is-official) {
  border-left: 2px solid var(--bad);
}

/* Interactive Credibility Score Badge */
.score-btn {
  width: 50px;
  padding: 7px 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s;
}
.score-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}
.score-btn b {
  display: block;
  font: 700 18px/1.05 var(--font-mono);
}
.score-btn span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.t-high { border-color: rgba(16, 185, 129, 0.28); background: rgba(16, 185, 129, 0.07); }
.t-high b { color: #34d399; }

.t-good { border-color: rgba(132, 204, 22, 0.28); background: rgba(132, 204, 22, 0.07); }
.t-good b { color: #a3e635; }

.t-mid { border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.07); }
.t-mid b { color: #fbbf24; }

.t-low { border-color: rgba(249, 115, 22, 0.28); background: rgba(249, 115, 22, 0.07); }
.t-low b { color: #fb923c; }

.t-bad { border-color: rgba(244, 63, 94, 0.28); background: rgba(244, 63, 94, 0.07); }
.t-bad b { color: #fb7185; }

.card-body {
  min-width: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 11.5px;
}

.src-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.src-badge:hover {
  color: #fff;
}

.src-ic {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 9px/1 var(--font-mono);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  flex-shrink: 0;
}
.src-ic.ic-sec { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.src-ic.ic-nv { background: rgba(118, 185, 0, 0.25); color: var(--nv-bright); }
.src-ic.ic-pm { background: rgba(129, 140, 248, 0.22); color: #a5b4fc; }
.src-ic.ic-hn { background: rgba(249, 115, 22, 0.24); color: #fdba74; }
.src-ic.ic-bs { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }

.pill {
  font-size: 10.5px;
  font-weight: 500;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
}

.pill-sec {
  color: #fde047;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.1);
}
.pill-official {
  color: var(--nv-bright);
  border-color: rgba(118, 185, 0, 0.35);
  background: rgba(118, 185, 0, 0.1);
}
.pill-eco {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.09);
}
.pill-cat {
  cursor: pointer;
  color: #cbd5e1;
}
.pill-cat:hover {
  border-color: var(--border-accent);
  color: var(--nv-bright);
}
.pill-hi {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.12);
  font-weight: 600;
}
.pill-corr {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.pill-rel {
  cursor: pointer;
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(167, 139, 250, 0.09);
  font-family: var(--font-mono);
}
.pill-rel:hover {
  border-color: #c4b5fd;
  background: rgba(167, 139, 250, 0.18);
  color: #fff;
}

.card-ai-brief {
  margin-top: 6px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.24);
  font-size: 12.2px;
  line-height: 1.48;
  color: #e2e8f0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.card-ai-brief.stance-bullish {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
}
.card-ai-brief.stance-bearish {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.28);
}
.ai-impact-tag {
  font: 700 10.5px/1 var(--font-mono);
  padding: 2.5px 6px;
  border-radius: 4px;
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
  flex-shrink: 0;
}
.card-ai-brief.stance-bullish .ai-impact-tag {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.card-ai-brief.stance-bearish .ai-impact-tag {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

.card-time {
  margin-left: auto;
  font: 500 11px/1 var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.card-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.44;
  letter-spacing: -0.008em;
  color: var(--text-primary);
  transition: color 0.12s;
}
.card-title:hover {
  color: var(--nv-bright);
}

.card-summary {
  margin: 5px 0 0;
  font-size: 12.8px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cred-drawer {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-secondary);
}
.cred-drawer-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cred-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cred-reasons span {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ============================= Right Sidebar ============================= */

.side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Catalyst Countdown Panel */
.catalyst-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-item {
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-strong);
  transition: background 0.15s, border-color 0.15s;
}
.cat-item:hover {
  background: var(--bg-elev);
}
.cat-item.tone-earnings { border-left-color: var(--bad); }
.cat-item.tone-supply { border-left-color: var(--eco-cyan); }
.cat-item.tone-product { border-left-color: var(--nv-green); }
.cat-item.tone-capex { border-left-color: var(--poly-indigo); }
.cat-item.tone-market { border-left-color: var(--mid); }

.cat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cat-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.tone-earnings .cat-tag { color: #fda4af; background: rgba(244, 63, 94, 0.14); }
.tone-supply .cat-tag { color: #7dd3fc; background: rgba(56, 189, 248, 0.13); }
.tone-product .cat-tag { color: var(--nv-bright); background: rgba(118, 185, 0, 0.14); }
.tone-capex .cat-tag { color: #a5b4fc; background: rgba(129, 140, 248, 0.14); }
.tone-market .cat-tag { color: #fcd34d; background: rgba(245, 158, 11, 0.14); }

.cd-pill {
  font: 700 11px/1 var(--font-mono);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
}
.cd-pill.imminent {
  color: #fde047;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.36);
}
.cd-pill.live {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.36);
}

.cat-item-title {
  font-size: 12.8px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.cat-item-time {
  font: 500 10.5px/1.3 var(--font-mono);
  color: var(--text-secondary);
  margin-top: 3px;
}

.cat-item-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.42;
}

.side-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.panel-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.panel-hdr h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.mini-tabs {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
}
.mini-tabs button {
  border: 0;
  background: transparent;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}
.mini-tabs button.on {
  background: var(--bg-elev);
  color: var(--text-primary);
  font-weight: 500;
}

.markets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mkt-card {
  position: relative;
  display: block;
  padding: 10px 12px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.mkt-card:hover {
  background: var(--bg-elev);
  border-color: rgba(118, 185, 0, 0.4);
}

.mkt-ev {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-q {
  font-size: 12.8px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2px 0 6px;
  line-height: 1.38;
}

.mkt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.mkt-prob {
  font: 700 20px/1 var(--font-mono);
  color: #fff;
}

.mkt-delta {
  font: 600 11px/1 var(--font-mono);
  margin-left: 6px;
}

.mkt-vol {
  font: 500 10.5px/1 var(--font-mono);
  color: var(--text-muted);
  margin-top: 4px;
}

.mkt-spark svg {
  width: 112px;
  height: 32px;
  display: block;
}

.mkt-prob-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}
.mkt-prob-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--poly-indigo), var(--nv-green));
}

.more-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.more-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Sentiment Box */
.sent-badge {
  font: 600 11px/1 var(--font-mono);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.sent-badge.bull { color: #34d399; background: rgba(16, 185, 129, 0.14); }
.sent-badge.bear { color: #fb7185; background: rgba(244, 63, 94, 0.14); }

.sent-nums {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.sent-nums strong {
  font: 700 18px/1 var(--font-mono);
}

.sent-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.45);
  overflow: hidden;
  margin-bottom: 8px;
}
.sent-meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #84cc16);
}

.sent-foot {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Legend Box */
.tier-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-item {
  display: grid;
  grid-template-columns: 10px 50px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.tier-item b {
  font-size: 11px;
  color: var(--text-primary);
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.c-high { background: var(--high); }
.c-good { background: var(--good); }
.c-mid { background: var(--mid); }
.c-low { background: var(--low); }
.c-bad { background: var(--bad); }

/* ============================== Footer & Modal =========================== */

.site-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: min(1080px, 100%);
  height: min(650px, 88vh);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

.modal-hdr {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kline-ohlc-bar {
  padding: 7px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.55);
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 33px;
}
.kline-ohlc-bar b {
  color: var(--text-primary);
}
.ma5-tag { color: #fbbf24; }
.ma20-tag { color: #38bdf8; }

.kline-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(118, 185, 0, 0.04), transparent 70%), #090c11;
}
.kline-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.tv-container {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Floating News-on-Chart Tooltip */
.chart-tooltip {
  position: fixed;
  z-index: 110;
  width: min(340px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(11, 15, 22, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
  font-size: 12px;
  pointer-events: auto;
}

.ct-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font: 600 11px/1.2 var(--font-mono);
  color: var(--text-secondary);
}
.ct-hdr b {
  color: #fff;
  font-size: 12.5px;
}

.ct-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-ev {
  display: block;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.14s, background 0.14s;
}
.ct-ev:hover {
  background: rgba(118, 185, 0, 0.1);
  border-color: var(--border-accent);
}

.ct-ev-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.ct-ev-badge {
  font: 700 9.5px/1 var(--font-mono);
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
}
.ct-ev-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.38;
}

/* =================== Signature Motion & Spotlight System ================= */

/* 1. Cursor-Tracking Radial Spotlight + 1px Glowing Edge Highlight */
.pulse-card,
.feed-card,
.side-panel,
.mkt-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.24s ease;
}

.pulse-card::before,
.feed-card::before,
.side-panel::before,
.mkt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(142, 224, 0, 0.085),
    rgba(56, 189, 248, 0.03) 42%,
    transparent 70%
  );
  z-index: 0;
}

.pulse-card::after,
.feed-card::after,
.side-panel::after,
.mkt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    230px circle at var(--mx, 50%) var(--my, 0%),
    rgba(142, 224, 0, 0.52),
    rgba(56, 189, 248, 0.24) 45%,
    transparent 75%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: 2;
}

.pulse-card:hover::before,
.feed-card:hover::before,
.side-panel:hover::before,
.mkt-card:hover::before,
.pulse-card:hover::after,
.feed-card:hover::after,
.side-panel:hover::after,
.mkt-card:hover::after {
  opacity: 1;
}

.pulse-card > *,
.feed-card > *,
.side-panel > *,
.mkt-card > * {
  position: relative;
  z-index: 1;
}

.pulse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 24px rgba(118, 185, 0, 0.06);
}
.feed-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}
.mkt-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.peer-cell {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s, background 0.18s;
}
.peer-cell:hover {
  transform: translateY(-1.5px);
  border-color: rgba(142, 224, 0, 0.38);
  background: rgba(118, 185, 0, 0.07);
}

/* 2. Staggered Panel & Feed Cascade Entrances */
.pulse-grid > .pulse-card:nth-child(1) { animation: panel-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both; }
.pulse-grid > .pulse-card:nth-child(2) { animation: panel-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.pulse-grid > .pulse-card:nth-child(3) { animation: panel-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.pulse-grid > .pulse-card:nth-child(4) { animation: panel-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both; }

.side-col > .side-panel:nth-child(1) { animation: panel-rise 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both; }
.side-col > .side-panel:nth-child(2) { animation: panel-rise 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.side-col > .side-panel:nth-child(3) { animation: panel-rise 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.side-col > .side-panel:nth-child(4) { animation: panel-rise 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-card.cascade-in {
  animation: card-cascade 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--stagger, 0) * 28ms);
}

@keyframes card-cascade {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 3. SVG Stroke Draw-In, Area Fade & Live Sonar Endpoint Ripples */
.svg-draw-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: svg-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes svg-draw {
  to { stroke-dashoffset: 0; }
}

.svg-fade-area {
  animation: area-fade 0.85s ease-out both;
}
@keyframes area-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sonar-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: sonar-ripple 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes sonar-ripple {
  0% { transform: scale(0.7); opacity: 0.85; }
  100% { transform: scale(3.1); opacity: 0; }
}

/* 4. Sidebar Sentiment Tug-of-War Energy Clash */
.sent-meter {
  position: relative;
}
.sent-meter > span {
  position: relative;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.sent-meter > span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  bottom: -2px;
  width: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 16px var(--nv-bright);
}

/* 5. Modal, Popover & Tooltip Spring Entrances + Value Tick Flash */
.modal-backdrop {
  animation: fade-in 0.2s ease-out;
}
.modal-card {
  animation: modal-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.sys-popover,
.chart-tooltip {
  animation: pop-float 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.cred-drawer {
  animation: pop-float 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pop-float {
  from { opacity: 0; transform: translateY(5px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tick-up {
  animation: tick-flash-up 0.9s ease-out;
}
.tick-down {
  animation: tick-flash-down 0.9s ease-out;
}
@keyframes tick-flash-up {
  0% { color: #6ee7b7; text-shadow: 0 0 16px rgba(16, 185, 129, 0.75); }
}
@keyframes tick-flash-down {
  0% { color: #fda4af; text-shadow: 0 0 16px rgba(244, 63, 94, 0.75); }
}

/* =============== Cloud Watchlist Ribbon & AI Sentinel Panel =============== */

.watchlist-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: var(--radius-lg);
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.wl-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.wl-scroll::-webkit-scrollbar { display: none; }

.wl-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.wl-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-elev);
  transform: translateY(-1px);
}
.wl-pill.on {
  border-color: rgba(142, 224, 0, 0.52);
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.16) 0%, rgba(18, 25, 35, 0.95) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(118, 185, 0, 0.12);
}
.wl-pill b {
  font: 700 12px/1 var(--font-mono);
  color: var(--text-primary);
}
.wl-pill.on b {
  color: var(--nv-bright);
}
.wl-pill .wl-name {
  font-size: 11px;
  color: var(--text-muted);
}
.wl-pill.on .wl-name {
  color: var(--text-secondary);
}
.wl-pill .wl-quote {
  font: 600 11px/1 var(--font-mono);
}

.wl-ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
  animation: bar-breathe 1.8s ease-in-out infinite;
}

.wl-manage-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(142, 224, 0, 0.42);
  background: rgba(118, 185, 0, 0.07);
  color: var(--nv-bright);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.wl-manage-btn:hover {
  background: rgba(118, 185, 0, 0.16);
  border-style: solid;
  transform: translateY(-1px);
}

/* Ticker symbol pill inside unified ALL feed */
.pill-sym {
  font: 700 10px/1 var(--font-mono);
  padding: 2.5px 6px;
  border-radius: 4px;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  cursor: pointer;
}
.pill-sym:hover {
  border-color: var(--nv-bright);
  color: var(--nv-bright);
}

/* AI Watchdog Sentinel Sidebar Panel */
.ai-sentinel-panel {
  border-color: rgba(129, 140, 248, 0.32);
  background:
    radial-gradient(220px 110px at 100% 0%, rgba(129, 140, 248, 0.13), transparent 75%),
    radial-gradient(180px 100px at 0% 0%, rgba(16, 185, 129, 0.08), transparent 75%),
    var(--bg-surface);
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-orb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ee000, #38bdf8, #a78bfa);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.75);
  animation: bar-breathe 2.2s ease-in-out infinite;
}

.ai-hdr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-brief-btn {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.ai-brief-btn:hover:not(:disabled) {
  border-color: #7dd3fc;
  color: #fff;
  background: rgba(56, 189, 248, 0.2);
}
.ai-brief-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ai-brief-card {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 2.5px solid #38bdf8;
}
.ai-brief-card.stance-bullish { border-left-color: #10b981; }
.ai-brief-card.stance-bearish { border-left-color: #f43f5e; }
.ai-brief-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.ai-brief-badge {
  font: 700 10.5px/1 var(--font-mono);
  color: #7dd3fc;
}
.ai-brief-head {
  font-size: 12.8px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
}
.ai-brief-text {
  font-size: 11.8px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ai-brief-list {
  margin: 6px 0 4px;
  padding-left: 16px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.48;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ai-brief-risk {
  font-size: 11px;
  color: #fcd34d;
  margin-top: 4px;
}

.ai-run-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(16, 185, 129, 0.16));
  color: #e0e7ff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.ai-run-btn:hover:not(:disabled) {
  border-color: #a5b4fc;
  color: #fff;
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.32);
  transform: translateY(-1px);
}
.ai-run-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ai-sentinel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-sig-card {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(8, 11, 17, 0.62);
  border: 1px solid var(--border);
  border-left: 2.5px solid #818cf8;
}
.ai-sig-card.stance-bullish { border-left-color: #10b981; }
.ai-sig-card.stance-bearish { border-left-color: #f43f5e; }
.ai-sig-card.stance-watch { border-left-color: #f59e0b; }

.ai-sig-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 11px;
}

.ai-stance-pill {
  font: 700 10px/1 var(--font-mono);
  padding: 2.5px 6px;
  border-radius: 4px;
}
.stance-bullish .ai-stance-pill { color: #34d399; background: rgba(16, 185, 129, 0.15); }
.stance-bearish .ai-stance-pill { color: #fb7185; background: rgba(244, 63, 94, 0.15); }
.stance-watch .ai-stance-pill,
.stance-neutral .ai-stance-pill { color: #fcd34d; background: rgba(245, 158, 11, 0.15); }

.ai-sig-head {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 5px;
}

.ai-sig-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ai-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.ai-ref-link {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-ref-link:hover {
  color: var(--nv-bright);
  border-color: var(--border-accent);
}

/* Watchlist Manager Modal */
.wl-modal-card {
  width: min(740px, 100%);
  height: auto;
  max-height: 86vh;
}

.wl-modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-add-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wl-add-form > input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  font-size: 13px;
  outline: none;
}
.wl-add-form > input[type="text"]:focus {
  border-color: var(--nv-bright);
}

.wl-pct-input {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 12px;
  color: var(--text-secondary);
}
.wl-pct-input input {
  width: 46px;
  border: 0;
  background: transparent;
  text-align: right;
  font: 600 12.5px/1 var(--font-mono);
  color: var(--nv-bright);
  outline: none;
}

.wl-feedback {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.wl-feedback.err {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.wl-quick-sec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wl-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wl-qchip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.wl-qchip:hover:not(:disabled) {
  border-color: var(--border-accent);
  color: var(--nv-bright);
}
.wl-qchip:disabled {
  opacity: 0.45;
  cursor: default;
}

.wl-table-hdr {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.wl-manager-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}
.wl-row-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.wl-row-sym {
  font: 700 13px/1 var(--font-mono);
  color: #fff;
}
.wl-row-name {
  font-size: 12px;
  color: var(--text-secondary);
}
.wl-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wl-inp-grp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
}
.wl-row-pct {
  width: 48px;
  padding: 4px 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  font: 600 11.5px/1 var(--font-mono);
  color: var(--nv-bright);
  text-align: center;
}
.wl-price-inp {
  width: 62px;
  padding: 4px 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  font: 600 11px/1 var(--font-mono);
  color: #bae6fd;
  text-align: center;
}
.wl-price-inp::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.wl-bell {
  font-size: 10px;
  line-height: 1;
}

/* All-Watchlist Normalized Chart Legend & Heatmap Cells */
.norm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.norm-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font: 500 10.5px/1 var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.norm-pill:hover {
  border-color: var(--border-accent);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.norm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.peers-grid.is-all-heat {
  gap: 5px;
}
.peers-grid.is-all-heat .peer-cell {
  padding: 4px 7px;
}
.peer-cell.heat-up {
  background: rgba(16, 185, 129, var(--heat, 0.1));
  border-color: rgba(16, 185, 129, 0.25);
}
.peer-cell.heat-down {
  background: rgba(244, 63, 94, var(--heat, 0.1));
  border-color: rgba(244, 63, 94, 0.25);
}
.wl-del-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.08);
  color: #fda4af;
  font-size: 11px;
  cursor: pointer;
}
.wl-del-btn:hover {
  background: rgba(244, 63, 94, 0.2);
}

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

/* =============================== Responsive ============================== */

@media (max-width: 1240px) {
  .pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pulse-primary {
    grid-column: 1 / -1;
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 980px) {
  .pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-inner, .shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .mobile-switch {
    display: flex;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .side-col {
    position: static;
  }
  .workspace[data-active-pane="feed"] .side-col {
    display: none;
  }
  .workspace[data-active-pane="side"] .feed-col {
    display: none;
  }
}

@media (max-width: 640px) {
  .pulse-grid {
    grid-template-columns: 1fr;
  }
  .session-pill {
    display: none;
  }
  .deck-filters {
    flex-wrap: wrap;
  }
  .search-box {
    flex-basis: 100%;
  }
  .feed-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 11px 12px;
    gap: 10px;
  }
  .feed-meta-bar .hint {
    display: none;
  }
  .wl-row {
    flex-direction: column;
    align-items: stretch;
  }
  .wl-row-actions {
    justify-content: flex-start;
  }
}
