/* ==========================================================================
   EGX PRO MOBILE APP — TRADINGVIEW ULTRAWIDE + KALSHI PULSE DESIGN SYSTEM
   Isolated to mobile/www/css/mobile-app.css (Zero impact on web platform)
   ========================================================================== */

:root {
  --bg-void: #05080F;
  --bg-canvas: #070B14;
  --bg-surface: #0D1322;
  --bg-elevated: #131C31;
  --bg-glass: rgba(11, 16, 30, 0.86);
  --bg-glass-heavy: rgba(7, 11, 20, 0.94);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-bright: rgba(245, 158, 11, 0.32);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #7E8FA6;
  --tv-text: #F8FAFC;
  --tv-muted: #CBD5E1;

  /* Minimal Institutional Accents (No baby blue or crowded neon) */
  --kalshi-bull: #10B981;
  --kalshi-bull-dim: rgba(16, 185, 129, 0.14);
  --kalshi-bull-glow: rgba(16, 185, 129, 0.28);

  --kalshi-bear: #EF4444;
  --kalshi-bear-dim: rgba(239, 68, 68, 0.14);
  --kalshi-bear-glow: rgba(239, 68, 68, 0.28);

  --tv-cyan: #F59E0B;
  --tv-cyan-dim: rgba(245, 158, 11, 0.14);
  --tv-blue: #64748B;
  --tv-gold: #F59E0B;
  --tv-purple: #A78BFA;

  --nav-h: 66px;
  --topbar-h: 58px;
  --strip-h: 52px;

  --font-sans: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   LIGHT MODE THEME VARIABLES & OVERRIDES
   ========================================================================== */
html[data-theme="light"] {
  --bg-void: #F1F5F9;
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-heavy: rgba(255, 255, 255, 0.98);

  --border-subtle: rgba(15, 23, 42, 0.11);
  --border-bright: rgba(217, 119, 6, 0.35);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --tv-text: #0F172A;
  --tv-muted: #475569;

  --kalshi-bull: #047857;
  --kalshi-bull-dim: rgba(4, 120, 87, 0.14);
  --kalshi-bull-glow: rgba(4, 120, 87, 0.28);

  --kalshi-bear: #E11D48;
  --kalshi-bear-dim: rgba(225, 29, 72, 0.12);
  --kalshi-bear-glow: rgba(225, 29, 72, 0.25);

  --tv-cyan: #D97706;
  --tv-cyan-dim: rgba(217, 119, 6, 0.12);
  --tv-blue: #475569;
  --tv-gold: #D97706;
  --tv-purple: #7C3AED;
}

/* Hide any third-party chart watermark / attribution logo */
#tv-attr-logo,
.tv-attr-logo,
a[href*="tradingview.com"],
a[title*="TradingView"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

button, input, select {
  font-family: inherit;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   APP SHELL & FORCED 90-DEGREE ULTRAWIDE ROTATION SUPPORT
   ========================================================================== */

.egx-app-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg-void);
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}

/* True 90-deg Forced Ultrawide Mode when phone rotation-lock is ON */
body.ultrawide-rotated-90 .egx-app-shell {
  width: 100vh !important;
  height: 100vw !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
  padding-top: 0;
}

.app-tab-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100% - var(--nav-h));
  overflow: hidden;
}

/* ==========================================================================
   TOP COMPACT HEADER BAR (TRADINGVIEW + KALSHI MINI PILL)
   ========================================================================== */

.chart-top-bar {
  position: relative;
  z-index: 60;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.top-bar-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 44px;
  padding: 3px 6px;
  width: 100%;
  overflow: hidden;
}

.ticker-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  padding: 2px 5px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 0;
  flex: 1 1 0%;
  max-width: 148px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ticker-pill:active {
  transform: scale(0.98);
  border-color: var(--tv-cyan);
}

.ticker-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--tv-cyan);
  font-size: 17.2px;
  font-weight: 900;
  flex-shrink: 0;
}

.ticker-pill-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.ticker-code-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-code {
  font-family: var(--font-mono);
  font-size: 16.1px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.mini-badge {
  font-size: 10.3px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
  line-height: 1.3;
}

.shariah-badge {
  background: rgba(0, 245, 155, 0.16);
  color: var(--kalshi-bull);
  border: 1px solid rgba(0, 245, 155, 0.35);
}

.egx30-badge {
  background: rgba(148, 163, 184, 0.14);
  color: var(--tv-cyan);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ticker-name {
  font-size: 12.1px;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Live Price Block */
.price-live-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.price-main-line {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.hdr-last-price {
  font-family: var(--font-mono);
  font-size: 17.2px;
  font-weight: 800;
  color: var(--text-primary);
}

.hdr-ccy-label {
  font-family: var(--font-mono);
  font-size: 10.9px;
  font-weight: 700;
  color: var(--text-muted);
}

.hdr-price-chg {
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
}

.hdr-price-chg.up {
  color: var(--kalshi-bull);
  background: var(--kalshi-bull-dim);
}

.hdr-price-chg.down {
  color: var(--kalshi-bear);
  background: var(--kalshi-bear-dim);
}

/* Kalshi Crowd Mini Pill in Header */
.kalshi-mini-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  min-width: 54px;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.32);
  border-radius: 9px;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.kalshi-mini-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kalshi-bull);
  box-shadow: 0 0 8px var(--kalshi-bull);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.kalshi-mini-pct {
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  color: var(--kalshi-bull);
}

.kalshi-mini-bar {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--kalshi-bear);
  overflow: hidden;
}

.kalshi-mini-fill {
  display: block;
  height: 100%;
  background: var(--kalshi-bull);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header Action Buttons */
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  padding: 0 7px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 12.6px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 440px) {
  .ultrawide-btn .btn-tag {
    display: none;
  }
  .egx30-badge, .shariah-badge {
    display: none;
  }
  .kalshi-mini-pill {
    display: none;
  }
  .hdr-last-price {
    font-size: 14.9px;
  }
  .hdr-price-chg {
    font-size: 10.9px;
    padding: 1px 4px;
  }
  .icon-action-btn {
    height: 28px;
    padding: 0 6px;
    font-size: 12.1px;
  }
}

.ultrawide-btn {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.1);
}

.ultrawide-btn.active {
  background: var(--tv-cyan);
  color: var(--bg-void);
}

/* ==========================================================================
   INLINE KALSHI QUICK-VOTE & PRICE METER DRAWER
   ========================================================================== */

.inline-pulse-drawer {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #0E1628 0%, #090E1A 100%);
  border-top: 1px solid rgba(0, 245, 155, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

.ipd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ipd-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ipd-kicker {
  font-size: 12.6px;
  font-weight: 900;
  color: var(--tv-cyan);
  letter-spacing: 0.04em;
}

.ipd-voters {
  font-size: 12.6px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 99px;
}

.ipd-close {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13.8px;
}

.kalshi-duel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 7px;
}

.kalshi-vote-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 14.4px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.kalshi-vote-btn:active {
  transform: scale(0.97);
}

.kalshi-vote-btn.bull {
  background: rgba(0, 245, 155, 0.13);
  border: 1.5px solid rgba(0, 245, 155, 0.45);
  color: var(--kalshi-bull);
}

.kalshi-vote-btn.bull.voted {
  background: var(--kalshi-bull);
  color: #04120C;
  box-shadow: 0 0 18px var(--kalshi-bull-glow);
}

.kalshi-vote-btn.bear {
  background: rgba(255, 59, 105, 0.13);
  border: 1.5px solid rgba(255, 59, 105, 0.45);
  color: var(--kalshi-bear);
}

.kalshi-vote-btn.bear.voted {
  background: var(--kalshi-bear);
  color: #FFFFFF;
  box-shadow: 0 0 18px var(--kalshi-bear-glow);
}

.kv-pct {
  font-family: var(--font-mono);
  font-size: 16.1px;
  font-weight: 900;
}

.kalshi-tug-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.kalshi-tug-bull {
  background: linear-gradient(90deg, #00C875, #00F59B);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.kalshi-tug-bear {
  background: linear-gradient(90deg, #FF3B69, #D91B49);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Price Horizon Meter Box */
.price-meter-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 8px 10px;
}

.pm-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13.2px;
}

.pm-label {
  color: var(--text-secondary);
  font-weight: 700;
}

.pm-values {
  font-family: var(--font-mono);
  font-size: 14.4px;
}

.pm-upside.up { color: var(--kalshi-bull); font-weight: 800; }
.pm-upside.down { color: var(--kalshi-bear); font-weight: 800; }

.pm-project-btn {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
  color: var(--tv-cyan);
  font-size: 12.1px;
  font-weight: 800;
  cursor: pointer;
}

.pm-project-btn.active {
  background: var(--tv-cyan);
  color: var(--bg-void);
}

.pm-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pm-bound {
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 800;
}

.pm-bound.bear { color: var(--kalshi-bear); }
.pm-bound.bull { color: var(--kalshi-bull); }

.pm-slider {
  flex: 1;
  accent-color: var(--tv-cyan);
  height: 6px;
  cursor: pointer;
}

.pm-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.2px;
}

.pm-your-pick strong {
  font-family: var(--font-mono);
  color: var(--tv-gold);
  margin-inline-start: 4px;
}

.pm-submit-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--tv-cyan), #00F59B);
  color: #050912;
  font-size: 13.2px;
  font-weight: 900;
  cursor: pointer;
}

/* ==========================================================================
   MAIN CHART STAGE & ULTRAWIDE CINEMA WORKSPACE
   ========================================================================== */

.chart-stage-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  position: relative;
  background: var(--bg-canvas);
  overflow: hidden;
}

/* Left Quick-Rail (Visible in both Non-Wide Mode and Wide Mode for 1-click Drawings & Indicators) */
.ultrawide-left-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 36px;
  padding: 5px 3px;
  background: var(--bg-surface);
  border-inline-end: 1px solid var(--border-subtle);
  overflow-y: auto;
  z-index: 35;
  flex-shrink: 0;
}

body:not(.ultrawide-mode) #rail-exit-wide-btn {
  display: none !important;
}

/* Small Transparent Chart Zoom In / Out Buttons (Inside #main-chart-mount so they stay on the main price chart even when subpane indicators open) */
.chart-zoom-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.chart-zoom-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.chart-zoom-btn:hover,
.chart-zoom-btn:active {
  opacity: 0.88;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text-primary);
}

html[data-theme="light"] .chart-zoom-btn {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

.rail-btn {
  width: 32.3px;
  height: 30.4px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.1px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.rail-btn.active {
  background: var(--tv-cyan-dim);
  color: var(--tv-cyan);
  border-color: rgba(148, 163, 184, 0.4);
}

.chart-canvas-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-canvas);
}

.main-chart-mount {
  flex: 1 1 0%;
  min-height: 150px;
  height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.main-chart-mount > .tv-lightweight-charts,
.subpane-box > .tv-lightweight-charts {
  position: absolute !important;
  inset: 0 !important;
}

/* Custom Drawing Overlay Canvas inside main-chart-mount */
.egx-drawing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 18;
  pointer-events: none;
}

body.drawing-mode-active .egx-drawing-canvas,
body.shape-selected-active .egx-drawing-canvas,
body.shape-dragging-active .egx-drawing-canvas {
  pointer-events: auto;
  touch-action: none;
}

body.drawing-mode-active #main-chart-mount,
body.drawing-mode-active #main-chart-mount *,
body.shape-dragging-active #main-chart-mount,
body.shape-dragging-active #main-chart-mount *,
body.drawing-mode-active .subpane-box,
body.drawing-mode-active .subpane-box *,
body.shape-dragging-active .subpane-box,
body.shape-dragging-active .subpane-box * {
  touch-action: none !important;
}

/* Synchronized Sub-Pane Oscillators Stack */
.subpanes-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
  background: var(--bg-canvas);
}

.subpane-box {
  position: relative;
  width: 100%;
  height: 92px;
  min-height: 54px;
  max-height: 280px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  transition: none;
}

.subpane-resize-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  z-index: 22;
  cursor: ns-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpane-resize-bar::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.35);
}

.subpane-resize-bar:hover::after,
.subpane-resize-bar:active::after {
  background: var(--tv-gold);
}

.subpane-header {
  position: absolute;
  top: 2px;
  left: 6px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border-radius: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: auto;
}

.subpane-title-lbl {
  margin-inline-end: 2px;
}

.subpane-size-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  width: 18px;
  height: 17px;
  border-radius: 4px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.subpane-size-btn:hover,
.subpane-size-btn:active {
  border-color: var(--tv-gold);
  color: var(--tv-gold);
}

.subpane-close-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.6px;
  padding: 0 3px;
  cursor: pointer;
}

.subpane-close-btn:hover {
  color: var(--kalshi-bear);
}

/* ==========================================================================
   FLOATING OHLCV HUD & PRECISION TOUCH LOUPE
   ========================================================================== */

.chart-hud-overlay {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 25;
  max-width: calc(100% - 66px);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 1px 4px;
  pointer-events: auto;
  overflow: hidden;
}

body.ultrawide-mode .chart-hud-overlay {
  max-width: calc(100% - 290px);
}

.hud-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.hud-top-line::-webkit-scrollbar {
  display: none;
}

.hud-collapse-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tv-cyan);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 11.5px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hud-ohlc-vals {
  color: var(--text-primary);
  font-weight: 700;
}

.hud-wide-ticker {
  display: none;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-inline-end: 4px;
}

body.ultrawide-mode .hud-wide-ticker {
  display: inline;
}

.hud-ohlc-vals .up { color: var(--kalshi-bull); }
.hud-ohlc-vals .down { color: var(--kalshi-bear); }

.hud-date-val {
  color: var(--text-muted);
  font-size: 10.9px;
}

.hud-indicators-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin-top: 2px;
  background: transparent !important;
  pointer-events: auto;
}

.chart-hud-overlay.collapsed .hud-indicators-list {
  display: none !important;
}

.hud-ind-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 3px 0 0;
  border-radius: 3px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-mono);
  font-size: 11.33px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-secondary);
}

.hud-ind-pill .hud-ind-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 10.9px;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.85;
}

.hud-ind-pill .hud-ind-btn:hover,
.hud-ind-pill .hud-ind-btn:active {
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.14);
  opacity: 1;
}

.hud-ind-pill .hud-ind-btn.close:hover,
.hud-ind-pill .hud-ind-btn.close:active {
  color: var(--kalshi-bear);
}

/* Precision Touch Loupe (Magnifier) */
.touch-loupe {
  position: absolute;
  top: 10px;
  right: 70px;
  z-index: 50;
  width: 136px;
  background: rgba(7, 11, 20, 0.94);
  border: 2px solid var(--tv-cyan);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(148, 163, 184, 0.32);
  overflow: hidden;
  pointer-events: none;
}

.touch-loupe canvas {
  display: block;
  width: 136px;
  height: 112px;
}

.touch-loupe-meta {
  padding: 3px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #050912;
  background: var(--tv-cyan);
}

/* Drawing Step Guidance Banner */
.drawing-step-banner {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.94);
  color: #040811;
  font-size: 13.8px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.banner-cancel-btn {
  border: 0;
  border-radius: 99px;
  background: #070B14;
  color: var(--tv-cyan);
  padding: 3px 10px;
  font-size: 12.6px;
  font-weight: 800;
  cursor: pointer;
}

/* Floating Selected Shape Inspector Bar (Draggable anywhere inside chart area) */
.shape-inspector-bar {
  position: absolute;
  bottom: 10px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 16px);
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--bg-glass-heavy);
  border: 1.5px solid var(--border-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  touch-action: none;
  user-select: none;
}
.shape-inspector-bar[hidden] {
  display: none !important;
}
body.ultrawide-mode #shape-inspector-bar:not([hidden]) {
  display: flex !important;
  z-index: 98 !important;
}

.insp-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  height: 28px;
  color: var(--accent-amber, #F59E0B);
  font-size: 14.9px;
  font-weight: 900;
  letter-spacing: -1px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.insp-drag-handle:active {
  cursor: grabbing;
}

.insp-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.2px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}
.insp-btn[hidden] {
  display: none !important;
}

.insp-btn.danger {
  color: #FFFFFF;
  background: var(--kalshi-bear);
}

.insp-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

.insp-price-input {
  width: 72px;
  height: 26px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12.6px;
  text-align: center;
}

.insp-color-palette {
  position: absolute;
  bottom: calc(100% + 8px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-subtle);
}

.insp-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

/* Bar Replay Time Machine Bar */
.replay-control-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 44;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(11, 16, 30, 0.95);
  border: 1.5px solid var(--tv-gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.replay-badge {
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 900;
  color: var(--tv-gold);
}

.replay-btn {
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  cursor: pointer;
}

.replay-btn.primary {
  background: var(--tv-gold);
  color: #050811;
  border-color: var(--tv-gold);
}

.replay-btn.danger {
  color: var(--kalshi-bear);
}

.replay-date {
  font-family: var(--font-mono);
  font-size: 12.1px;
  color: var(--text-secondary);
}

/* ==========================================================================
   TIMEFRAME & HISTORICAL RANGE STRIP + BOTTOM CHART CONTROL STRIP
   ========================================================================== */

.chart-tf-range-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 32px;
  padding: 2px 8px;
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.chart-tf-range-strip::-webkit-scrollbar {
  display: none;
}

.tf-pill-group,
.range-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.tf-pill,
.range-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.tf-pill.active,
.range-pill.active {
  background: var(--tv-cyan);
  color: #040811;
  border-color: var(--tv-cyan);
}

.range-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

html[data-theme="light"] .range-pill {
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .tf-pill.active,
html[data-theme="light"] .range-pill.active {
  color: #FFFFFF;
}

.tf-sep {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
  flex-shrink: 0;
  margin: 0 2px;
}

.chart-control-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  height: var(--strip-h);
  padding: 5px 8px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.chart-control-strip::-webkit-scrollbar {
  display: none;
}

.strip-seg-group {
  display: flex;
  align-items: center;
  background: var(--bg-void);
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12.6px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1.1;
}

.strip-seg-group .strip-btn {
  border: 0;
  background: transparent;
  height: 28px;
  padding: 0 7px;
}

.strip-btn.active {
  background: var(--tv-cyan);
  color: #040811;
  border-color: var(--tv-cyan);
}

.strip-btn.accent-subtle {
  border-color: rgba(148, 163, 184, 0.32);
  color: var(--text-primary);
}

.strip-ic {
  font-size: 14.2px;
  font-weight: 900;
  color: var(--tv-cyan);
}

.strip-btn.active .strip-ic {
  color: #040811;
}

.strip-count-badge {
  background: var(--tv-cyan);
  color: #040811;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 99px;
}

.mono-btn {
  font-family: var(--font-mono);
  font-size: 12.6px;
}

.strip-divider {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ==========================================================================
   ULTRAWIDE CINEMA MODE & LANDSCAPE OPTIMIZATIONS
   (Keep #chart-top-bar with Ticker, Light/Dark & EN/AR visible in Wide Screen!)
   ========================================================================== */

body.ultrawide-mode #app-bottom-nav {
  display: none !important;
}

body.ultrawide-mode #chart-top-bar {
  display: none !important;
}

body.ultrawide-mode .app-tab-view {
  height: 100% !important;
}

#touch-loupe,
.touch-loupe {
  display: none !important;
}

body.ultrawide-mode .ultrawide-left-rail {
  display: flex !important;
}

body.ultrawide-mode .ultrawide-floating-pill {
  display: flex !important;
}

body.ultrawide-mode .touch-loupe {
  top: auto;
  bottom: 12px;
  right: 60px;
}

@media (orientation: landscape) and (max-height: 540px) {
  .ultrawide-left-rail {
    display: flex;
  }
  .subpane-box {
    height: 72px;
  }
}

.ultrawide-floating-pill {
  position: absolute;
  top: 6px;
  right: 68px;
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 99px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(10px);
}

.uw-pill-btn, .uw-pill-ticker {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.2px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 99px;
  cursor: pointer;
}

.uw-pill-ticker {
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.12);
}

.uw-pill-btn.exit {
  color: var(--kalshi-bear);
}

.uw-sep {
  width: 1px;
  height: 14px;
  background: var(--border-subtle);
}

/* ==========================================================================
   BOTTOM APP NAVIGATION DOCK
   ========================================================================== */

.app-bottom-nav {
  height: var(--nav-h);
  padding: 3px 6px calc(3px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  align-items: stretch;
  flex-shrink: 0;
  z-index: 70;
}

.bnav-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 2px 2px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12.1px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bnav-btn.active {
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.1);
}

/* ==========================================================================
   TAB 2, 3, 4: KALSHI PULSE, SPEED RADAR, AND REPLAY LAB PAGES
   ========================================================================== */

.tab-scroll-page {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 12px 32px;
}

.page-hero {
  background: linear-gradient(145deg, #10192E 0%, #090E1A 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.hero-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--kalshi-bull);
  margin-bottom: 2px;
}

.hero-title {
  margin: 0;
  font-size: 20.7px;
  font-weight: 900;
  color: #FFFFFF;
}

.hero-stats-pill {
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
}

.hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 16.1px;
  font-weight: 900;
  color: var(--kalshi-bull);
}

.hero-stat-lbl {
  font-size: 10.9px;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Market-Wide Sentiment Bar */
.market-sentiment-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.msc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.8px;
  font-weight: 800;
  margin-bottom: 7px;
}

.msc-tag.bull { color: var(--kalshi-bull); }
.msc-tag.bear { color: var(--kalshi-bear); }

.msc-bar {
  display: flex;
  height: 24px;
  border-radius: 99px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 900;
}

.msc-bull-fill {
  background: linear-gradient(90deg, #00B86B, #00F59B);
  color: #04120C;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.msc-bear-fill {
  background: linear-gradient(90deg, #FF3B69, #C81942);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

/* Filter Pills Row */
.filter-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--tv-cyan);
  color: #040811;
  border-color: var(--tv-cyan);
}

/* Kalshi Pulse Cards Grid */
.pulse-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.kalshi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.kalshi-card:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.kc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kc-ticker-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.kc-symbol-badge {
  font-family: var(--font-mono);
  font-size: 16.1px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--tv-cyan);
}

.kc-name-wrap {
  display: flex;
  flex-direction: column;
}

.kc-name {
  font-size: 14.9px;
  font-weight: 800;
  color: var(--text-primary);
}

.kc-sector {
  font-size: 12.1px;
  color: var(--text-muted);
}

.kc-price-box {
  text-align: right;
  font-family: var(--font-mono);
}

.kc-price {
  font-size: 17.2px;
  font-weight: 800;
}

.kc-question {
  font-size: 14.9px;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Radar Scanner & Swipe Deck */
.radar-search-row {
  margin-bottom: 10px;
}

.radar-search-input {
  width: 100%;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  color: var(--text-primary);
  padding: 0 12px;
  font-size: 14.9px;
  font-weight: 700;
  outline: none;
}

.radar-search-input:focus {
  border-color: var(--tv-cyan);
}

.radar-mode-switch {
  display: flex;
  background: var(--bg-void);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.mode-switch-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12.6px;
  font-weight: 800;
  cursor: pointer;
}

.mode-switch-btn.active {
  background: var(--tv-cyan);
  color: #040811;
}

.radar-scanner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scanner-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.scanner-row-card:active {
  transform: scale(0.99);
  border-color: var(--tv-cyan);
}

.src-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.src-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.sig-chip {
  font-size: 10.9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.sig-chip.bull {
  background: var(--kalshi-bull-dim);
  color: var(--kalshi-bull);
}

.sig-chip.bear {
  background: var(--kalshi-bear-dim);
  color: var(--kalshi-bear);
}

.sig-chip.info {
  background: var(--tv-cyan-dim);
  color: var(--tv-cyan);
}

. sig-chip.warn {
  background: rgba(255, 184, 0, 0.16);
  color: var(--tv-gold);
}

/* Swipe Deck View */
.radar-deck-view {
  max-width: 460px;
  margin: 8px auto 20px;
}

.deck-card {
  background: linear-gradient(165deg, #121B30 0%, #090E1A 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

/* Mystery Chart Challenge & Mastery Arena */
.mastery-rank-pill {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.18), rgba(148, 163, 184, 0.14));
  border: 1px solid rgba(255, 184, 0, 0.45);
  border-radius: 12px;
  padding: 6px 12px;
  text-align: center;
}

.rank-title {
  display: block;
  font-size: 13.8px;
  font-weight: 900;
  color: var(--tv-gold);
}

.rank-xp {
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  color: var(--tv-cyan);
}

.mastery-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mstat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 8px 6px;
  text-align: center;
}

.mstat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 17.2px;
  font-weight: 900;
  color: #FFFFFF;
}

.mstat-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.mystery-challenge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mc-badge {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--tv-gold);
}

.mc-title {
  margin: 2px 0 0;
  font-size: 16.1px;
  font-weight: 800;
}

.mc-next-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-bright);
  background: var(--bg-elevated);
  color: var(--tv-cyan);
  font-size: 13.8px;
  font-weight: 800;
  cursor: pointer;
}

.mystery-chart-box {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mystery-chart-box canvas {
  display: block;
  width: 100%;
  height: 230px;
}

.mc-indicators-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mc-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mc-call-btn {
  padding: 12px;
  border-radius: 12px;
  font-size: 14.9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.mc-call-btn.bull {
  background: rgba(0, 245, 155, 0.15);
  border: 1.5px solid var(--kalshi-bull);
  color: var(--kalshi-bull);
}

.mc-call-btn.bear {
  background: rgba(255, 59, 105, 0.15);
  border: 1.5px solid var(--kalshi-bear);
  color: var(--kalshi-bear);
}

.mc-result-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 14.9px;
  font-weight: 800;
  text-align: center;
}

.mc-result-banner.win {
  background: var(--kalshi-bull-dim);
  border: 1px solid var(--kalshi-bull);
  color: var(--kalshi-bull);
}

.mc-result-banner.loss {
  background: var(--kalshi-bear-dim);
  border: 1px solid var(--kalshi-bear);
  color: var(--kalshi-bear);
}

.mastery-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.badge-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-tile.unlocked {
  border-color: rgba(0, 245, 155, 0.4);
  background: rgba(0, 245, 155, 0.06);
}

/* ==========================================================================
   BOTTOM SHEETS (TICKER SEARCH, INDICATORS STUDIO, DRAWINGS STUDIO, STYLE)
   ========================================================================== */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 6, 12, 0.68);
  backdrop-filter: blur(4px);
}

.sheet-backdrop[hidden],
.bottom-sheet[hidden] {
  display: none !important;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  max-height: 82dvh;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-bright);
  border-radius: 20px 20px 0 0;
  padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.75);
  overflow-y: auto;
}

.bottom-sheet.tall {
  max-height: 86dvh;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 2px auto 10px;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sheet-header h3 {
  margin: 0;
  font-size: 17.8px;
  font-weight: 900;
}

.sheet-sub {
  margin: 2px 0 0;
  font-size: 13.2px;
  color: var(--text-muted);
}

.sheet-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 16.1px;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-search-box {
  margin-bottom: 8px;
}

.sheet-search-box input {
  width: 100%;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  color: var(--text-primary);
  padding: 0 12px;
  font-size: 14.9px;
  font-weight: 700;
  outline: none;
}

.sheet-search-box input:focus {
  border-color: var(--tv-cyan);
}

.picker-stocks-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 55dvh;
}

.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  cursor: pointer;
}

.picker-row.active, .picker-row:hover {
  border-color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.08);
}

.model-mark {
  color: #F59E0B;
  font-size: 8px;
  line-height: 1;
  flex: 0 0 auto;
}

/* Indicators & Drawings Studio Grids */
.sheet-section {
  margin-top: 12px;
}

.sheet-sec-title {
  margin: 0 0 8px;
  font-size: 12.6px;
  font-weight: 900;
  color: var(--tv-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preset-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
}

.preset-chip.active {
  background: var(--tv-cyan);
  color: #040811;
}

.preset-chip.danger {
  border-color: rgba(255, 59, 105, 0.35);
  background: rgba(255, 59, 105, 0.1);
  color: var(--kalshi-bear);
}

/* Minimal Professional Single-Row Indicators List */
.ind-minimal-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ind-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ind-list-row.on {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.07);
}

.ind-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.ind-color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ind-row-titles {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.ind-row-name {
  font-size: 13.8px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ind-row-short {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ind-row-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ind-ma-type-group,
.ind-ma-presets {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-void);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.ind-mini-chip {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.ind-mini-chip.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--tv-gold);
}

.ind-param-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
}

.ind-period-input {
  width: 46px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 700;
  text-align: center;
  padding: 0 2px;
}

.ind-period-input:focus {
  outline: none;
  border-color: var(--tv-gold);
}

.ind-row-switch {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  position: relative;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.ind-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.15s ease, background 0.15s ease;
}

.ind-row-switch.on {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.22);
}

.ind-row-switch.on .ind-switch-knob {
  transform: translateX(14px);
  background: var(--tv-gold);
}

.ind-empty-msg {
  padding: 10px;
  text-align: center;
  font-size: 13.2px;
  color: var(--text-muted);
}

.ind-params-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.ind-param-input {
  width: 48px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  color: var(--tv-cyan);
  font-family: var(--font-mono);
  font-size: 12.1px;
  text-align: center;
}

/* Drawings Studio Quickbar & Tool Grid */
.draw-sheet-Quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.ds-qbtn {
  flex: 1 1 auto;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
}

.ds-qbtn.on {
  border-color: var(--tv-cyan);
  color: var(--tv-cyan);
  background: var(--tv-cyan-dim);
}

.ds-qbtn.danger {
  color: var(--kalshi-bear);
}

.draw-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 7px;
}

.draw-tool-card {
  min-height: 58px;
  padding: 7px 6px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12.6px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.draw-tool-card.active {
  border-color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.14);
  color: var(--tv-cyan);
}

.dt-icon {
  font-size: 19.5px;
  color: var(--tv-cyan);
}

.fib-levels-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.fib-lvl-pill {
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  cursor: pointer;
}

.fib-lvl-pill.on {
  border-color: var(--tv-cyan);
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.14);
}

/* Style Grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.style-card {
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13.8px;
  font-weight: 800;
  cursor: pointer;
}

.style-card.active {
  border-color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.14);
  color: var(--tv-cyan);
}

.candle-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.candle-theme-card {
  padding: 6px 3px 5px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
}

.candle-theme-card.active {
  border-color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.14);
  color: var(--tv-cyan);
}

.ct-candles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 20px;
  padding-bottom: 3px;
  box-sizing: border-box;
}

.ct-candles i {
  display: block;
  width: 6px;
  border-radius: 1px;
  position: relative;
}

.ct-candles i[data-ct-up] { height: 13px; }
.ct-candles i[data-ct-down] { height: 9px; }

.ct-candles i::before,
.ct-candles i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 3px;
  background: currentColor;
  transform: translateX(-50%);
}

.ct-candles i::before { top: -3px; }
.ct-candles i::after { bottom: -3px; }

.sc-ic {
  font-size: 23px;
}

/* Toast Notification */
.app-toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(0, 245, 155, 0.95);
  color: #04120C;
  font-size: 14.4px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* ==========================================================================
   LIGHT MODE COMPONENT REFINEMENTS
   ========================================================================== */
html[data-theme="light"] .ticker-code {
  color: #0F172A;
}

html[data-theme="light"] .ticker-pill {
  background: #F8FAFC;
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .ticker-nav-arrow {
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .chart-hud-overlay {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .hud-collapse-btn {
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .subpane-header {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

html[data-theme="light"] .inline-pulse-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .price-meter-box {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .page-hero,
html[data-theme="light"] .kalshi-hero,
html[data-theme="light"] .radar-hero,
html[data-theme="light"] .arena-hero {
  background: linear-gradient(145deg, #FFFFFF, #F8FAFC);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .market-sentiment-card,
html[data-theme="light"] .kalshi-card,
html[data-theme="light"] .scanner-row-card,
html[data-theme="light"] .mystery-challenge-card,
html[data-theme="light"] .mstat-card,
html[data-theme="light"] .badge-card,
html[data-theme="light"] .deck-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .bottom-sheet {
  background: #FFFFFF;
  border-top-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .app-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .strip-btn.active,
html[data-theme="light"] .filter-pill.active,
html[data-theme="light"] .mode-switch-btn.active {
  color: #FFFFFF;
}

html[data-theme="light"] .mystery-chart-box {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   V4 ENHANCEMENTS:
   1. Single Clean Fullscreen Exit Icon & Pure-Icon Wide Screen Rail/Strip
   2. Selected Drawing Settings Sheet (⚙) & Per-Shape Fibonacci Level Toggles
   3. High-Density Multi-Timeframe (1H / 1D / 1W / 1M) Market Pulse Table
   ========================================================================== */

/* 1. Clean Exit Wide Screen Floating Pill Button (Visible in Wide / Landscape Mode) */
.uw-exit-icon-btn {
  position: absolute;
  top: 6px;
  right: 68px;
  z-index: 52;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid rgba(245, 158, 11, 0.65);
  background: rgba(7, 11, 20, 0.92);
  color: #F59E0B;
  font-size: 12.6px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.uw-exit-icon-btn[hidden] {
  display: none !important;
}

html[data-theme="light"] .uw-exit-icon-btn {
  background: rgba(255, 255, 255, 0.96);
  color: #D97706;
  border-color: rgba(217, 119, 6, 0.45);
}

.rail-divider {
  width: 22px;
  height: 1px;
  background: var(--border-subtle);
  margin: 2px 0;
  flex-shrink: 0;
}

.rail-btn.feature-icon {
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.22);
}

/* In Wide Screen mode, show bottom feature strip items & rail as clean pure icons */
body.ultrawide-mode .chart-control-strip .strip-label,
body.ultrawide-mode .chart-control-strip .strip-btn > span[data-ar] {
  display: none;
}

body.ultrawide-mode .chart-control-strip .strip-btn {
  padding: 0 9px;
}

body.ultrawide-mode .ultrawide-left-rail {
  width: 38px;
  padding: 4px 3px;
  gap: 2px;
}

body.ultrawide-mode .ultrawide-left-rail .rail-btn {
  width: 28.5px;
  height: 23.8px;
  font-size: 13.1px;
}

.ultrawide-left-rail .rail-btn svg {
  width: 14.25px;
  height: 14.25px;
}

.chart-control-strip .strip-btn svg {
  width: 13.3px;
  height: 13.3px;
}

body.ultrawide-mode .chart-hud-overlay {
  max-width: calc(100% - 115px);
}

/* 2. Selected Drawing Settings Icon (⚙) & Settings Bottom Sheet */
.insp-btn.accent {
  background: rgba(148, 163, 184, 0.18);
  color: var(--tv-cyan);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 16.1px;
}

.dset-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px 2px 16px;
}

.dset-section {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.dset-sec-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.dset-sec-title {
  display: block;
  font-size: 13.2px;
  font-weight: 900;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.dset-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fib-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 6px;
}

.fib-levels-grid .fib-lvl-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 6px;
}

.fib-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dset-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dset-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.dset-color-swatch.active {
  transform: scale(1.16);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--tv-cyan);
}

.dset-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dset-btn-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.dset-seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.dset-seg-btn.active {
  background: var(--tv-cyan);
  color: #040811;
}

.dset-toggles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dset-toggle-chip {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
}

.dset-toggle-chip.on {
  border-color: var(--tv-cyan);
  color: var(--tv-cyan);
  background: rgba(148, 163, 184, 0.12);
}

.dset-pts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.dset-pt-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dset-pt-field label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.dset-num-input,
.dset-text-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.8px;
  font-weight: 700;
}

/* 3. Multi-Timeframe (1H, 1D, 1W, 1M) Inline Drawer & Compact Market Pulse */
.ipd-mtf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.ipd-tf-card {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ipd-tf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 900;
}

.ipd-tf-name {
  color: var(--text-secondary);
}

.ipd-tf-pct.bull { color: var(--kalshi-bull); }
.ipd-tf-pct.bear { color: var(--kalshi-bear); }

.ipd-tf-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.ipd-vote-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 2px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.ipd-vote-btn.bull.voted {
  background: rgba(0, 245, 155, 0.2);
  border-color: var(--kalshi-bull);
  color: var(--kalshi-bull);
}

.ipd-vote-btn.bear.voted {
  background: rgba(255, 59, 105, 0.2);
  border-color: var(--kalshi-bear);
  color: var(--kalshi-bear);
}

/* Top 4-Timeframe Market Summary Bar (1H | 1D | 1W | 1M) */
.pulse-mtf-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.pmtf-sum-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-theme="light"] .pmtf-sum-card {
  background: #F8FAFC;
}

.pmtf-sum-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.pmtf-sum-tf {
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 900;
  color: var(--text-primary);
}

.pmtf-sum-pct {
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 900;
}

.pmtf-sum-pct.bull { color: var(--kalshi-bull); }
.pmtf-sum-pct.bear { color: var(--kalshi-bear); }

.pmtf-sum-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 59, 105, 0.35);
  overflow: hidden;
}

.pmtf-sum-fill-bull {
  height: 100%;
  background: var(--kalshi-bull);
}

.pmtf-sum-sub {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.9px;
  font-weight: 700;
}

.pmtf-sum-sub .up { color: var(--kalshi-bull); }
.pmtf-sum-sub .down { color: var(--kalshi-bear); }

.pulse-controls-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-search-wrap {
  width: 100%;
}

/* Sticky Multi-Timeframe Table Header & High-Density Rows */
.pulse-table-header {
  position: sticky;
  top: -14px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(108px, 1.45fr) repeat(4, minmax(50px, 1fr)) minmax(54px, 0.85fr);
  gap: 4px;
  align-items: center;
  padding: 7px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 900;
  color: var(--text-secondary);
  text-align: center;
}

.pulse-table-header .pth-stock {
  text-align: left;
}

.pulse-compact-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pulse-table-row {
  display: grid;
  grid-template-columns: minmax(108px, 1.45fr) repeat(4, minmax(50px, 1fr)) minmax(54px, 0.85fr);
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

html[data-theme="light"] .pulse-table-row {
  background: #FFFFFF;
}

.ptr-stock-col {
  min-width: 0;
  cursor: pointer;
  padding-right: 2px;
}

.ptr-sym-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
}

.ptr-sym {
  font-family: var(--font-mono);
  font-size: 13.8px;
  font-weight: 900;
  color: var(--tv-cyan);
}

.ptr-price {
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 800;
  color: var(--text-primary);
}

.ptr-chg {
  font-family: var(--font-mono);
  font-size: 10.9px;
  font-weight: 800;
}

.ptr-chg.up { color: var(--kalshi-bull); }
.ptr-chg.down { color: var(--kalshi-bear); }

.ptr-name {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.ptr-tf-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 2px;
  border-radius: 7px;
  background: var(--bg-void);
  border: 1px solid transparent;
}

.ptr-tf-cell.bull-bias {
  border-color: rgba(0, 245, 155, 0.18);
}

.ptr-tf-cell.bear-bias {
  border-color: rgba(255, 59, 105, 0.18);
}

.ptr-tf-pct {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.1;
}

.ptr-tf-pct.up { color: var(--kalshi-bull); }
.ptr-tf-pct.down { color: var(--kalshi-bear); }

.ptr-tf-actions {
  display: flex;
  gap: 2px;
  width: 100%;
  justify-content: center;
}

.ptr-vote-mini {
  flex: 1;
  max-width: 22px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 9.8px;
  font-weight: 900;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ptr-vote-mini.bull:hover,
.ptr-vote-mini.bull.voted {
  background: rgba(0, 245, 155, 0.24);
  border-color: var(--kalshi-bull);
  color: var(--kalshi-bull);
}

.ptr-vote-mini.bear:hover,
.ptr-vote-mini.bear.voted {
  background: rgba(255, 59, 105, 0.24);
  border-color: var(--kalshi-bear);
  color: var(--kalshi-bear);
}

.ptr-all-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  border-radius: 7px;
  font-family: var(--font-mono);
  cursor: pointer;
}

.ptr-all-col.bull {
  background: rgba(0, 245, 155, 0.12);
  color: var(--kalshi-bull);
}

.ptr-all-col.bear {
  background: rgba(255, 59, 105, 0.12);
  color: var(--kalshi-bear);
}

.ptr-all-pct {
  font-size: 12.1px;
  font-weight: 900;
}

.ptr-all-sub {
  font-size: 10.3px;
  opacity: 0.85;
}

/* ==========================================================================
   V5 ADDITIONS: 5-Tab Bottom Dock, Multi-Stock Compare, Technical Breakdown
   Chips, Market Summary Page (#tab-summary), and Screener Tab (#tab-screener)
   ========================================================================== */

#app-bottom-nav.five-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
}

#app-bottom-nav.five-tabs .nav-tab {
  min-width: 0;
  padding: 4px 2px;
  gap: 2px;
}

#app-bottom-nav.five-tabs .nav-ico {
  font-size: 17.2px;
}

#app-bottom-nav.five-tabs .nav-lbl {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HUD Compare Legend Pills */
.hud-compare-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  pointer-events: auto;
}

.hud-cmp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(7, 11, 20, 0.86);
  font-family: var(--font-mono);
  font-size: 12.1px;
}

.hud-cmp-pill button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
}

/* Compare Sheet Chips */
.compare-active-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 4px;
}

.cmp-empty-hint {
  font-size: 13.2px;
  color: var(--text-muted);
}

.cmp-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 700;
}

.cmp-active-chip.primary {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.cmp-active-chip button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
  padding: 0 2px;
}

/* Inline Technical Indicator Chips & User Opinion Badge */
.ipd-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 8px;
}

.ipd-tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.ipd-tech-chip.bull {
  background: rgba(0, 245, 155, 0.12);
  color: var(--kalshi-bull);
  border: 1px solid rgba(0, 245, 155, 0.28);
}

.ipd-tech-chip.bear {
  background: rgba(255, 59, 105, 0.12);
  color: var(--kalshi-bear);
  border: 1px solid rgba(255, 59, 105, 0.28);
}

.mtf-user-call {
  display: block;
  font-size: 10.9px;
  font-weight: 800;
  margin-top: 1px;
}

.mtf-user-call.bull { color: var(--kalshi-bull); }
.mtf-user-call.bear { color: var(--kalshi-bear); }
.mtf-user-call.none { color: var(--text-muted); font-family: var(--font-mono); }

.rpc-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 8px;
  cursor: pointer;
}

/* Market Summary Page (#tab-summary) & Screener Page (#tab-screener) */
.summary-page-scroll,
.screener-page-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 12px 12px 84px;
  -webkit-overflow-scrolling: touch;
}

.summary-hero-header h1,
.screener-hero-header h1 {
  font-size: 18.4px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--text-primary);
}

.summary-hero-header p,
.screener-hero-header p {
  font-size: 13.2px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.summary-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.summary-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-kpi-card .kpi-lbl {
  font-size: 12.1px;
  color: var(--text-muted);
  font-weight: 700;
}

.summary-kpi-card .kpi-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14.9px;
  font-weight: 800;
}

.summary-kpi-card .kpi-val-row .up { color: var(--kalshi-bull); }
.summary-kpi-card .kpi-val-row .down { color: var(--kalshi-bear); }
.summary-kpi-card .kpi-val-row .flat { color: var(--text-muted); font-size: 12.6px; }
.summary-kpi-card .kpi-sub { font-size: 12.6px; color: var(--accent-cyan); }
.summary-kpi-card .kpi-foot { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

.summary-breadth-bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.summary-breadth-bar .bb-adv { background: var(--kalshi-bull); }
.summary-breadth-bar .bb-unch { background: #64748B; }
.summary-breadth-bar .bb-dec { background: var(--kalshi-bear); }

.summary-subnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.summary-sec-btn {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13.2px;
  font-weight: 700;
  cursor: pointer;
}

.summary-sec-btn.active {
  background: rgba(148, 163, 184, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.summary-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.summary-block-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.summary-block-title {
  font-size: 14.9px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.btn-sum-more {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--accent-cyan);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12.1px;
  font-weight: 700;
  cursor: pointer;
}

.summary-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 6px;
  border-top: 1px solid var(--border-subtle);
}

.summary-stock-row:first-of-type {
  border-top: none;
}

.ssr-left {
  flex: 1.2;
  min-width: 0;
  cursor: pointer;
}

.ssr-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ssr-sym {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 14.9px;
  color: var(--text-primary);
}

.ssr-name {
  display: block;
  font-size: 12.6px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssr-sig {
  font-family: var(--font-mono);
  font-size: 10.3px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.ssr-sig.strong_buy, .ssr-sig.buy {
  background: rgba(0, 245, 155, 0.14);
  color: var(--kalshi-bull);
}

.ssr-sig.sell, .ssr-sig.strong_sell {
  background: rgba(255, 59, 105, 0.14);
  color: var(--kalshi-bear);
}

.ssr-sig.neutral {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
}

.ssr-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  cursor: pointer;
}

.ssr-tech-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
}

.ssr-tech-pill.bull { background: rgba(0, 245, 155, 0.12); color: var(--kalshi-bull); }
.ssr-tech-pill.bear { background: rgba(255, 59, 105, 0.12); color: var(--kalshi-bear); }

.ssr-metric-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.ssr-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ssr-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  cursor: pointer;
  min-width: 62px;
}

.ssr-price {
  font-size: 14.4px;
  font-weight: 800;
  color: var(--text-primary);
}

.ssr-chg {
  font-size: 12.6px;
  font-weight: 800;
}

.ssr-chg.up { color: var(--kalshi-bull); }
.ssr-chg.down { color: var(--kalshi-bear); }

.btn-row-compare {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 16.1px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-row-compare.active {
  background: rgba(255, 184, 0, 0.18);
  border-color: #FFB800;
  color: #FFB800;
}

.summary-sector-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 7px;
}

.sec-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sec-name {
  display: block;
  font-size: 14.9px;
  color: var(--text-primary);
}

.sec-count {
  font-size: 12.1px;
  color: var(--text-muted);
}

.sec-metrics {
  text-align: end;
  font-family: var(--font-mono);
}

.sec-d1 {
  display: block;
  font-size: 14.4px;
  font-weight: 800;
}

.sec-d1.up { color: var(--kalshi-bull); }
.sec-d1.down { color: var(--kalshi-bear); }
.sec-ytd { font-size: 12.1px; color: var(--text-muted); }

.sec-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 12.6px;
  color: var(--text-secondary);
}

.btn-sec-open-screener {
  border: 1px solid var(--accent-cyan);
  background: rgba(148, 163, 184, 0.1);
  color: var(--accent-cyan);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12.1px;
  font-weight: 700;
  cursor: pointer;
}

/* Screener Tab Controls & Cards */
.screener-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.screener-filter-bar input {
  flex: 1;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14.4px;
}

.screener-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 13.2px;
  font-weight: 800;
  white-space: nowrap;
}

.screener-pills-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 7px;
  margin-bottom: 7px;
}

.scr-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.6px;
  font-weight: 700;
  cursor: pointer;
}

.scr-pill.active {
  background: rgba(0, 245, 155, 0.14);
  border-color: var(--kalshi-bull);
  color: var(--kalshi-bull);
}

.screener-selects-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.screener-selects-row select {
  flex: 1;
  min-width: 105px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12.6px;
}

.scr-sort-dir-btn,
.scr-reset-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
}

.screener-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screener-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 9px 11px;
}

.scr-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.scr-ident {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.scr-sym-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.scr-sym {
  font-family: var(--font-mono);
  font-size: 16.1px;
  font-weight: 900;
  color: var(--text-primary);
}

.scr-name {
  display: block;
  font-size: 12.6px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scr-price-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.scr-price-col {
  text-align: end;
  font-family: var(--font-mono);
  cursor: pointer;
}

.scr-close {
  display: block;
  font-size: 14.9px;
  font-weight: 800;
  color: var(--text-primary);
}

.scr-d1 {
  font-size: 13.2px;
  font-weight: 800;
}

.scr-d1.up { color: var(--kalshi-bull); }
.scr-d1.down { color: var(--kalshi-bear); }

.scr-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
}

.scr-m-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 3px 2px;
  font-family: var(--font-mono);
}

.scr-m-cell span {
  font-size: 10.3px;
  color: var(--text-muted);
}

.scr-m-cell b {
  font-size: 12.1px;
  color: var(--text-primary);
}

.scr-m-cell b.up { color: var(--kalshi-bull); }
.scr-m-cell b.down { color: var(--kalshi-bear); }

.scr-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  cursor: pointer;
}

.scr-badge {
  font-family: var(--font-mono);
  font-size: 10.9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.scr-badge.bull { background: rgba(0, 245, 155, 0.13); color: var(--kalshi-bull); }
.scr-badge.gold { background: rgba(255, 184, 0, 0.14); color: #FFB800; }
.scr-badge.cyan { background: rgba(148, 163, 184, 0.13); color: var(--accent-cyan); }
.scr-badge.purple { background: rgba(168, 85, 247, 0.15); color: #C084FC; }

#app-bottom-nav.five-tabs .bnav-btn {
  min-width: 0;
  padding: 5px 2px;
  font-size: 11.5px;
}

.ipd-tech-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 8px;
}

.ipd-tf-card.active-tf {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.screener-selects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 7px;
  margin-top: 6px;
}

.scr-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scr-field label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.scr-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 12.6px;
}

.scr-sort-box {
  display: flex;
  gap: 4px;
}

.scr-dir-btn {
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.8px;
  font-weight: 900;
  cursor: pointer;
}

.screener-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: 6px 0;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 800;
  color: var(--text-muted);
}

.screener-table-header [data-scr-col] {
  cursor: pointer;
}

.screener-table-header [data-scr-col]:hover {
  color: var(--accent-cyan);
}

.screener-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
}

/* ==========================================================================
   V6.1 SINGLE-LINE BOTTOM CHART BAR & 4-TAB BOTTOM NAVIGATION
   ========================================================================== */

.chart-control-strip.single-chart-bar {
  height: 36px;
  padding: 3px 6px;
  gap: 4px;
  align-items: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.chart-control-strip.single-chart-bar .strip-btn {
  height: 24.7px;
  padding: 0 5.7px;
  font-size: 11.5px;
  border-radius: 6px;
}

.chart-control-strip.single-chart-bar .tf-pill,
.chart-control-strip.single-chart-bar .range-pill {
  height: 24px;
  padding: 0 6px;
  font-size: 11.5px;
}

.strip-ticker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  padding: 1px 3px;
  flex-shrink: 0;
}

.strip-nav-mini {
  border: 0;
  background: transparent;
  color: var(--tv-cyan);
  font-size: 14.9px;
  font-weight: 900;
  width: 18px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.strip-ticker-btn {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.1px;
  font-weight: 800;
  padding: 0 4px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.strip-ticker-code {
  font-weight: 900;
  color: var(--tv-cyan);
}

.strip-ticker-price {
  color: var(--text-primary);
}

.strip-ticker-chg {
  font-size: 10.9px;
  padding: 0 3px;
  border-radius: 4px;
}

.strip-ticker-chg.up {
  color: var(--kalshi-bull);
  background: var(--kalshi-bull-dim);
}

.strip-ticker-chg.down {
  color: var(--kalshi-bear);
  background: var(--kalshi-bear-dim);
}

#app-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  height: 54px;
  padding: 3px 6px calc(3px + env(safe-area-inset-bottom, 0px));
}

#app-bottom-nav .bnav-btn {
  min-width: 0;
  padding: 3px 2px;
  font-size: 11.5px;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide stock ticker top bar when navigating to non-chart tabs (Summary, Screener, Disclosures, Challenge) */
body[data-active-tab]:not([data-active-tab="chart"]) #chart-top-bar {
  display: none !important;
}

.screener-table-header {
  grid-template-columns: 1.5fr repeat(5, 0.72fr) !important;
}

/* ==========================================================================
   V6.3 UI/UX & LAYOUT FIXES (GROUP 2 + GROUP 4)
   - Fix Picker & Compare sheets overlapping filter pills in AR & EN
   - Compact Candles / Chart Style sheet
   - Remove X exit icon on Wide Screen (rotate/toggle exits cleanly)
   - Light Mode Bar Replay control bar visibility fix
   - Summary page EN/AR button visibility & zero horizontal overflow
   - Ultra-compact vertical spacing across Summary, Screener, Disclosures & Challenge
   - Market Benchmarks & Local Gold/Silver grid on Summary
   ========================================================================== */

/* 1. Show Exit Wide Screen & Top Menu button only when ultrawide-mode is active */
body:not(.ultrawide-mode) #btn-uw-exit,
body:not(.ultrawide-mode) #btn-uw-menu {
  display: none !important;
}
body.ultrawide-mode #btn-uw-menu {
  display: inline-flex !important;
}

/* 2. Anchor Ticker Picker & Compare sheets to TOP of screen on mobile with generous height (including Wide Mode) */
#sheet-ticker-picker,
#sheet-compare {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  top: calc(env(safe-area-inset-top, 4px) + 6px) !important;
  bottom: auto !important;
  height: calc(100dvh - 18px) !important;
  max-height: calc(100dvh - 18px) !important;
  border-radius: 16px !important;
  border: 1px solid var(--border-bright) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75) !important;
}

body.ultrawide-mode #sheet-ticker-picker,
body.ultrawide-mode #sheet-compare {
  top: 4px !important;
  height: calc(100dvh - 8px) !important;
  max-height: calc(100dvh - 8px) !important;
  width: min(96vw, 680px) !important;
  padding: 6px 12px 8px !important;
}
body.ultrawide-mode #sheet-ticker-picker .sheet-handle,
body.ultrawide-mode #sheet-compare .sheet-handle {
  display: none !important;
}
body.ultrawide-mode #sheet-ticker-picker .sheet-header,
body.ultrawide-mode #sheet-compare .sheet-header {
  margin-bottom: 4px !important;
  padding-bottom: 2px !important;
}

@media (orientation: landscape) and (max-height: 560px) {
  #sheet-ticker-picker,
  #sheet-compare {
    top: 4px !important;
    height: calc(100dvh - 8px) !important;
    max-height: calc(100dvh - 8px) !important;
    width: min(96vw, 680px) !important;
    padding: 6px 12px 8px !important;
  }
  #sheet-ticker-picker .sheet-handle,
  #sheet-compare .sheet-handle {
    display: none !important;
  }
  #sheet-ticker-picker .sheet-header,
  #sheet-compare .sheet-header {
    margin-bottom: 4px !important;
    padding-bottom: 2px !important;
  }
}

#sheet-ticker-picker.has-search-query #picker-quick-filters,
#sheet-ticker-picker.has-search-query .sheet-handle,
#sheet-ticker-picker.keyboard-open-top .sheet-handle,
#sheet-ticker-picker.keyboard-open-top .sheet-header,
#sheet-ticker-picker.keyboard-open-top #picker-quick-filters,
#sheet-compare.has-search-query #compare-quick-filters,
#sheet-compare.has-search-query .sheet-handle,
#sheet-compare.keyboard-open-top .sheet-handle,
#sheet-compare.keyboard-open-top .sheet-header,
#sheet-compare.keyboard-open-top #compare-quick-filters {
  display: none !important;
}

#sheet-ticker-picker.has-search-query .sheet-header,
#sheet-compare.has-search-query .sheet-header {
  margin-bottom: 4px !important;
  padding-bottom: 2px !important;
}

#sheet-ticker-picker[hidden],
#sheet-compare[hidden] {
  display: none !important;
}

.bottom-sheet .sheet-handle,
.bottom-sheet .sheet-header,
.bottom-sheet .sheet-search-box,
.bottom-sheet .compare-active-chips,
.bottom-sheet .filter-pills-row {
  flex-shrink: 0 !important;
  position: relative;
  z-index: 3;
}

#picker-quick-filters,
#compare-quick-filters {
  min-height: 32px;
  padding: 2px 0 4px;
  margin-bottom: 2px;
  background: var(--bg-surface);
}

html[data-theme="light"] #picker-quick-filters,
html[data-theme="light"] #compare-quick-filters {
  background: #FFFFFF;
}

.picker-stocks-list {
  flex: 1 1 0% !important;
  min-height: 150px !important;
  max-height: none !important;
  overflow-y: auto !important;
  margin-top: 4px !important;
  position: relative;
  z-index: 1;
}

/* 3. Compact Candles / Chart Style Sheet (#sheet-style) */
#sheet-style {
  padding: 6px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

#sheet-style .sheet-header {
  margin-bottom: 6px;
}

#sheet-style .sheet-header h3 {
  font-size: 16.1px;
}

#sheet-style .sheet-section {
  margin-top: 4px;
}

#sheet-style .sheet-sec-title {
  display: none;
}

#sheet-style .style-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

#sheet-style .style-card {
  padding: 6px 4px;
  border-radius: 9px;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  font-size: 12.6px;
  min-height: 34px;
}

#sheet-style .sc-ic {
  font-size: 16.1px;
}

/* 4. Light Mode Bar Replay Control Bar Fix (#replay-control-bar) */
html[data-theme="light"] .replay-control-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid #D97706 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .replay-btn {
  background: #F1F5F9 !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .replay-btn.primary {
  background: #D97706 !important;
  border-color: #D97706 !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] .replay-btn.danger {
  color: #E11D48 !important;
  border-color: rgba(225, 29, 72, 0.3) !important;
}

html[data-theme="light"] .replay-date {
  color: #334155 !important;
  font-weight: 800;
}

/* 5. Fix Summary EN/AR Icon Visibility & Compact Vertical Spacing Across All Pages */
.tab-scroll-page {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto;
  padding: 6px 8px 20px !important;
}

.page-hero {
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  max-width: 100%;
  overflow: hidden;
}

.hero-top-row {
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  gap: 6px !important;
  margin-bottom: 6px !important;
  width: 100%;
  max-width: 100%;
}

.hero-top-row > div:first-child {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.hero-top-row > div:last-child {
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;
  gap: 4px !important;
}

.hero-kicker {
  font-size: 10.3px !important;
  margin-bottom: 1px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-title {
  font-size: 16.7px !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .hero-title {
  color: #0F172A !important;
}

.hero-stats-pill,
.mastery-rank-pill {
  padding: 3px 7px !important;
  border-radius: 8px !important;
  flex-shrink: 0;
}

.hero-stat-num {
  font-size: 12.6px !important;
  line-height: 1.15;
}

.hero-stat-lbl {
  font-size: 9.8px !important;
  line-height: 1.1;
}

/* Compact Challenge / Arena top cards */
.mastery-stats-grid {
  gap: 5px !important;
  margin-top: 4px;
}

.mstat-card {
  padding: 4px 4px !important;
  border-radius: 8px !important;
}

.mstat-val {
  font-size: 14.4px !important;
  line-height: 1.2;
}

html[data-theme="light"] .mstat-val {
  color: #0F172A !important;
}

.mstat-lbl {
  font-size: 10.3px !important;
}

.mystery-challenge-card {
  padding: 9px 10px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

.mystery-chart-box canvas {
  height: 185px !important;
}

.mc-call-btn {
  padding: 8px 10px !important;
  font-size: 13.8px !important;
}

/* Compact Summary, Screener & Disclosures Cards */
.summary-kpi-grid {
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.summary-kpi-card {
  padding: 6px 9px !important;
}

.summary-block {
  padding: 8px 9px !important;
  margin-bottom: 7px !important;
}

.summary-stock-row {
  padding: 6px 4px !important;
}

.screener-results-list {
  gap: 6px !important;
  padding-bottom: 16px !important;
}

.screener-card {
  padding: 7px 9px !important;
  border-radius: 10px !important;
}

/* Benchmarks & Local Precious Metals Strip on Market Summary — 2-Column Compact Grid on Vertical Screens */
.benchmarks-ticker-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  padding: 5px 2px 8px 2px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .benchmarks-ticker-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 6px 4px 9px 4px;
  }
}

.bm-strip-item {
  appearance: none;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 4px 7px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  min-width: 0;
  color: var(--text-primary);
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .bm-strip-item {
    width: auto;
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 3px 6px;
    gap: 7px;
  }
}

.bm-strip-item:hover,
.bm-strip-item:active {
  background: rgba(0, 229, 255, 0.10);
  transform: translateY(-1px);
}

html[data-theme="light"] .bm-strip-item {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .bm-strip-item:hover,
html[data-theme="light"] .bm-strip-item:active {
  background: rgba(2, 132, 199, 0.08);
}

.bm-strip-lbl {
  font-size: 12.1px;
  font-weight: 900;
  color: var(--tv-cyan);
  letter-spacing: 0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bm-strip-val {
  font-family: var(--font-mono);
  font-size: 12.6px;
  font-weight: 900;
  color: var(--text-primary);
  margin-inline-start: auto;
  flex-shrink: 0;
}

.bm-strip-chg {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.3;
  flex-shrink: 0;
}

.bm-strip-chg.up {
  color: var(--kalshi-bull);
  background: var(--kalshi-bull-dim);
}

.bm-strip-chg.down {
  color: var(--kalshi-bear);
  background: var(--kalshi-bear-dim);
}

.bm-strip-arrow {
  display: none;
}

@media (min-width: 768px) {
  .bm-strip-lbl { font-size: 13.2px; }
  .bm-strip-val { font-size: 13.8px; }
  .bm-strip-chg { font-size: 12.1px; padding: 1px 5px; }
  .bm-strip-arrow { display: inline; font-size: 13.8px; }
}
  font-weight: 900;
  color: var(--text-muted);
  margin-inline-start: 1px;
}

.bm-strip-item:hover .bm-strip-arrow {
  color: var(--tv-cyan);
}

/* Single Compact Market Breadth Bar (No Duplicate EGX30 Box) */
.summary-breadth-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 6px;
}

.summary-breadth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Screener Pattern Chips directly under Ticker */
.sc-pattern-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.sc-pattern-chip.bull {
  color: var(--kalshi-bull) !important;
  background: var(--kalshi-bull-dim) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.sc-pattern-chip.bear {
  color: var(--kalshi-bear) !important;
  background: var(--kalshi-bear-dim) !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
}

/* Star Watchlist Button — Distinctive Platform Gold/Orange (#F59E0B) Everywhere */
.btn-star-watch {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 7px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16.1px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-star-watch.active,
.btn-star-watch.watched,
#btn-hdr-watch.active,
#btn-strip-watch.active,
#rail-watch-btn.active {
  color: #F59E0B !important;
  border-color: #F59E0B !important;
  background: rgba(245, 158, 11, 0.22) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.30);
  font-weight: 900;
}

/* High-Contrast Official Disclosure PDF Button in Both Dark & Light Themes */
.btn-open-official-doc {
  background: #F59E0B !important;
  color: #070B14 !important;
  border: 1px solid #FBBF24 !important;
  font-weight: 900 !important;
  border-radius: 9px !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.32);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-open-official-doc:hover,
.btn-open-official-doc:active {
  background: #FBBF24 !important;
  color: #04070D !important;
}

/* Install App Prompt Banner (Website Visitors) */
.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(245, 158, 11, 0.16));
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
  z-index: 88;
  flex-shrink: 0;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-ib-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pwa-ib-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  flex-shrink: 0;
}

.pwa-ib-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.pwa-ib-text strong {
  font-size: 13.2px;
  font-weight: 900;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-ib-text span {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-ib-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-ib-btn {
  background: #F59E0B;
  color: #070B14;
  border: 1px solid #FBBF24;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 12.6px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.pwa-ib-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94A3B8;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.6px;
  cursor: pointer;
}

/* Web / Desktop & Tablet: Show Menu (#sheet-app-menu) and modals at the TOP and make them movable */
@media (pointer: fine), (min-width: 640px) {
  .bottom-sheet.app-menu-sheet,
  .bottom-sheet {
    top: 46px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    width: min(94vw, 680px);
    max-width: 680px;
    max-height: calc(100dvh - 64px);
    transform: translate(calc(-50% + var(--sheet-dx, 0px)), var(--sheet-dy, 0px)) !important;
    border-radius: 16px;
    border: 1px solid var(--border-bright);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.78);
  }
  .bottom-sheet.app-menu-sheet {
    width: min(95vw, 960px);
    max-width: 960px;
  }
  .bottom-sheet .sheet-handle,
  .bottom-sheet .sheet-header {
    cursor: move;
    cursor: grab;
    user-select: none;
  }
  .bottom-sheet.dragging-sheet .sheet-handle,
  .bottom-sheet.dragging-sheet .sheet-header {
    cursor: grabbing;
  }
}

/* ==========================================================================
   DESKTOP / WEB PLATFORM RESPONSIVE PARITY (@media min-width: 960px)
   Scaled ~125% for comfortable reading at 100% browser zoom on PC/Edge
   (Zero impact on mobile screens < 960px)
   ========================================================================== */
@media (min-width: 960px) {
  :root {
    --topbar-h: 64px;
    --strip-h: 56px;
    --nav-h: 68px;
  }

  /* Top Header Bar & Ticker Info (+25% desktop sizing) */
  #chart-top-bar {
    min-height: 64px;
    height: auto;
    padding: 0 18px;
    gap: 12px;
  }

  .ticker-selector-btn {
    padding: 6px 12px;
    gap: 8px;
  }

  .ticker-sym {
    font-size: 20.7px !important;
  }

  .ticker-name {
    font-size: 14.9px !important;
    max-width: 240px !important;
  }

  .live-price-val {
    font-size: 23px !important;
  }

  .live-chg-pill {
    font-size: 14.9px !important;
    padding: 4px 9px !important;
  }

  .top-icon-btn,
  .hdr-action-btn {
    font-size: 15.5px !important;
    padding: 7px 12px !important;
    min-height: 36px;
  }

  /* Chart Control Strip (+25% desktop sizing) */
  .chart-control-strip {
    height: 56px;
    padding: 0 16px;
    gap: 8px;
  }

  .tf-btn {
    font-size: 15.5px !important;
    padding: 6px 11px !important;
    min-height: 34px;
  }

  .strip-btn {
    font-size: 14.7px !important;
    padding: 5.7px 11.4px !important;
    min-height: 32.3px;
  }

  /* Chart HUD Overlay & Left Drawing Rail (+25% desktop sizing) */
  .chart-hud-overlay {
    font-size: 14.9px !important;
    padding: 7px 12px !important;
    gap: 8px !important;
  }

  .hud-ohlc-row span,
  .hud-ohlc-row b,
  #hud-date-val {
    font-size: 14.9px !important;
  }

  .ultrawide-left-rail {
    width: 48px !important;
    padding: 8px 4px !important;
    gap: 6px !important;
  }

  .ultrawide-left-rail .rail-btn {
    width: 36.1px !important;
    height: 36.1px !important;
    font-size: 17.5px !important;
  }

  /* Bottom Navigation Bar (+25% desktop sizing) */
  #app-bottom-nav {
    height: 68px;
  }

  #app-bottom-nav .nav-tab {
    font-size: 14.9px !important;
    gap: 4px;
  }

  #app-bottom-nav .nav-icon {
    font-size: 23px !important;
  }

  /* Main Content Tabs (Summary, Screener, Disclosures, Arena) */
  #tab-summary,
  #tab-screener,
  #tab-disclosures,
  #tab-arena {
    max-width: 1480px;
    margin: 0 auto;
    padding-left: 24px !important;
    padding-right: 24px !important;
    font-size: 17.2px;
  }

  .benchmarks-summary-grid,
  .summary-benchmarks-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

  .bm-card,
  .summary-bm-card {
    padding: 12px 14px !important;
  }

  .bm-label,
  .summary-bm-label {
    font-size: 14.9px !important;
  }

  .bm-price,
  .summary-bm-val {
    font-size: 19.5px !important;
  }

  .bm-chg,
  .summary-bm-chg {
    font-size: 14.9px !important;
  }

  .summary-movers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .section-hdr-title,
  .sec-title {
    font-size: 19.5px !important;
  }

  .filter-pill {
    font-size: 15.5px !important;
    padding: 7px 14px !important;
  }

  .picker-row,
  .mover-row,
  .kc-card {
    font-size: 16.1px !important;
    padding: 10px 14px !important;
  }

  .kc-symbol-badge {
    font-size: 15.5px !important;
    padding: 4px 9px !important;
  }

  .disclosures-feed-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .disc-card,
  .kc-disc-card {
    padding: 16px !important;
    font-size: 16.1px !important;
  }

  .disc-title,
  .kc-disc-title {
    font-size: 17.8px !important;
    line-height: 1.5 !important;
  }

  .disc-summary,
  .kc-disc-summary {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
  }

  /* Sheets & Command Menu (+25% desktop sizing) */
  .bottom-sheet {
    top: 48px !important;
    bottom: auto !important;
    max-width: 780px;
    left: 50% !important;
    right: auto !important;
    width: 92vw;
    max-height: calc(100dvh - 68px);
    transform: translate(calc(-50% + var(--sheet-dx, 0px)), var(--sheet-dy, 0px)) !important;
    border-radius: 16px;
    border: 1px solid var(--border-bright);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.78);
    font-size: 16.7px;
  }

  .bottom-sheet .sheet-header h3 {
    font-size: 19.5px !important;
  }

  .sheet-search-box input {
    font-size: 17.2px !important;
    padding: 10px 14px !important;
  }

  .bottom-sheet[hidden] {
    display: none !important;
  }

  .bottom-sheet.open {
    transform: translate(calc(-50% + var(--sheet-dx, 0px)), var(--sheet-dy, 0px)) !important;
  }

  .bottom-sheet.app-menu-sheet {
    top: 42px !important;
    bottom: auto !important;
    max-width: 1120px;
  }

  .am-shortcut-chip {
    font-size: 15.5px !important;
    padding: 8px 14px !important;
  }

  .am-mini-table th,
  .am-mini-table td,
  .am-num {
    font-size: 14.9px !important;
    padding: 7px 6px !important;
  }

  .am-mini-ticker {
    font-size: 15.5px !important;
  }

  .am-stock-name {
    font-size: 13.8px !important;
    max-width: 140px !important;
  }

  .am-card-title {
    font-size: 17.2px !important;
  }

  .am-card-desc {
    font-size: 14.9px !important;
  }

  .dset-select,
  .am-input {
    font-size: 15.5px !important;
    padding: 9px 12px !important;
  }

  .bottom-sheet .sheet-handle,
  .bottom-sheet .sheet-header {
    cursor: move;
    cursor: grab;
    user-select: none;
  }

  .bottom-sheet.dragging-sheet .sheet-handle,
  .bottom-sheet.dragging-sheet .sheet-header {
    cursor: grabbing;
  }
}

/* ==========================================================================
   REPLAY BUTTON BRAND COLOR & COMMAND MENU / MULTI-METRIC HUB (v7.0)
   ========================================================================== */
.replay-accent-btn {
  color: var(--tv-cyan, #F59E0B) !important;
  border-color: rgba(245, 158, 11, 0.52) !important;
  background: rgba(245, 158, 11, 0.14) !important;
}
.replay-accent-btn:hover,
.replay-accent-btn:active,
.replay-accent-btn.active {
  background: var(--tv-cyan, #F59E0B) !important;
  color: #040811 !important;
  border-color: var(--tv-cyan, #F59E0B) !important;
}

.menu-hub-trigger {
  color: var(--tv-cyan, #F59E0B) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

.app-menu-shortcuts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.am-shortcut-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12.6px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-shortcut-chip:hover {
  border-color: #F59E0B;
  color: #F59E0B;
}

.app-menu-tabs-row {
  margin-bottom: 8px;
}

.am-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-inline-start: 4px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.22);
  color: #F59E0B;
  font-size: 11.5px;
  font-weight: 900;
}

.am-toolbar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.am-switch-add-btn {
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
}

.am-table-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.1px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  padding: 0 2px;
}

.am-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface);
}

.am-metrics-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.am-metrics-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 10.9px;
  font-weight: 800;
  padding: 6px 2px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.am-metrics-table th:first-child {
  text-align: start;
  padding-inline-start: 5px;
}

.am-metrics-table th.sorted {
  color: #F59E0B;
}

.am-stock-row {
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s ease;
}
.am-stock-row:hover {
  background: rgba(245, 158, 11, 0.08);
}

.am-sticky-col {
  padding: 4px 3px;
  min-width: 58px;
  max-width: 68px;
}

.am-stock-cell {
  display: flex;
  align-items: center;
  gap: 3px;
}

.am-star-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.8px;
  line-height: 1;
  padding: 1px 2px;
  cursor: pointer;
}
.am-star-btn.on {
  color: #F59E0B;
}

.am-stock-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.am-stock-code-line {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.1px;
  color: var(--text-primary);
}

.am-mini-shariah {
  font-size: 10.3px;
}

.am-stock-name {
  font-size: 9.8px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58px;
}

.am-num {
  padding: 4px 1.5px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.3px;
  font-weight: 700;
  white-space: nowrap;
}
.am-num.up { color: #10B981; }
.am-num.down { color: #F43F5E; }
.am-num.flat { color: var(--text-muted); }

.am-section-card {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

#sheet-script-studio .am-section-card {
  background: transparent !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

.am-card-title {
  font-size: 14.4px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.am-card-desc {
  font-size: 12.6px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.am-portfolio-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
}

.am-ps-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.am-ps-kpi span {
  font-size: 12.1px;
  color: var(--text-secondary);
}

.am-ps-kpi b {
  font-family: var(--font-mono);
  font-size: 14.9px;
  font-weight: 800;
  color: var(--text-primary);
}

.am-ps-kpi b.up { color: #10B981; }
.am-ps-kpi b.down { color: #EF4444; }

.dset-select,
.am-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  font-size: 13.2px;
  font-weight: 700;
  outline: none;
}

.dset-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.am-sec-title {
  margin: 0 0 8px;
  font-size: 14.9px;
  font-weight: 800;
  color: var(--text-primary);
}

.am-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.am-kpi-box {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.am-kpi-lbl {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.am-kpi-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 14.4px;
  font-weight: 800;
  color: var(--text-primary);
}
.am-kpi-val.up { color: #10B981; }
.am-kpi-val.down { color: #F43F5E; }

.am-add-pos-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.am-mini-input {
  flex: 1;
  min-width: 78px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13.8px;
  font-weight: 700;
}

.am-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
  font-size: 13.8px;
  font-weight: 800;
  cursor: pointer;
}

.am-del-pos-btn {
  background: transparent;
  border: none;
  color: #F43F5E;
  font-weight: 900;
  cursor: pointer;
}

.am-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.am-calc-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.6px;
  color: var(--text-secondary);
}

.am-notif-banner {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13.8px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.am-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.am-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13.2px;
  color: var(--text-primary);
  cursor: pointer;
}

.am-profile-active-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.am-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #070B14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19.5px;
  font-weight: 900;
  flex-shrink: 0;
}

.am-empty-box {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.8px;
}

/* ==========================================================================
   SUMMARY SCOPE SWITCHER CARDS (EGX Local vs. Global Markets)
   ========================================================================== */
.summary-scope-toggle-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
  padding: 0;
  background: transparent;
  border: none;
}

.scope-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 78, 59, 0.28));
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: var(--text-primary);
  cursor: pointer;
  text-align: start;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.18);
}

.scope-switch-card[data-sum-scope="global"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(30, 58, 138, 0.32));
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.20);
}

.scope-switch-card:hover {
  border-color: rgba(245, 158, 11, 0.65);
  transform: translateY(-1px);
}

.scope-switch-card[data-sum-scope="local"].active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(245, 158, 11, 0.18));
  border: 1.5px solid #10B981;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.scope-switch-card[data-sum-scope="global"].active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(37, 99, 235, 0.26));
  border: 1.5px solid #F59E0B;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.scope-card-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.scope-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19.5px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.scope-switch-card.active .scope-card-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-color: #FBBF24;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.scope-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.scope-card-title {
  font-size: 14.4px;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scope-switch-card.active .scope-card-title {
  color: #FBBF24;
}

.scope-card-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scope-card-chev {
  font-size: 14.9px;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.scope-switch-card.active .scope-card-chev {
  color: #F59E0B;
  opacity: 1;
}

html[data-theme="light"] .scope-switch-card[data-sum-scope="local"] {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #6EE7B7;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}

html[data-theme="light"] .scope-switch-card[data-sum-scope="global"] {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #93C5FD;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.08);
}

html[data-theme="light"] .scope-switch-card:hover {
  border-color: #F59E0B;
}

html[data-theme="light"] .scope-switch-card[data-sum-scope="local"].active {
  background: linear-gradient(135deg, #D1FAE5 0%, #FEF3C7 100%);
  border: 1.5px solid #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
}

html[data-theme="light"] .scope-switch-card[data-sum-scope="global"].active {
  background: linear-gradient(135deg, #FEF3C7 0%, #DBEAFE 100%);
  border: 1.5px solid #D97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.16);
}

html[data-theme="light"] .scope-switch-card.active .scope-card-title {
  color: #0F172A;
}

html[data-theme="light"] .scope-card-sub {
  color: #334155;
}












/* === EGX-PRO V37: 15% TYPOGRAPHY SCALE + CANDLE SOURCE SELECTED UI + MULTI-SELECT === */
html {
  font-size: 115%;
}

/* ---- Candle Source & Corporate Action Selected Toggle Buttons (#sheet-style) ---- */
.dset-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dset-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.dset-toggle-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dset-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  text-align: center;
  line-height: 1.3;
}

.dset-toggle-btn:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--text-primary);
}

.dset-toggle-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 185, 129, 0.16));
  border-color: #F59E0B;
  color: #FEF3C7;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.45), 0 4px 12px rgba(245, 158, 11, 0.18);
}

.dset-toggle-btn.active::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #F59E0B;
  color: #05080F;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

html[data-theme="light"] .dset-toggle-btn {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.14);
  color: #475569;
}

html[data-theme="light"] .dset-toggle-btn.active {
  background: linear-gradient(135deg, #FEF3C7, #D1FAE5);
  border-color: #D97706;
  color: #0F172A;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.42), 0 3px 10px rgba(217, 119, 6, 0.15);
}

html[data-theme="light"] .dset-toggle-btn.active::before {
  background: #D97706;
  color: #FFFFFF;
}

/* ---- Screener Multi-Select Dropdown Filters ---- */
.page-hero.screener-hero {
  overflow: visible !important;
  position: relative;
  z-index: 40;
}

.scr-multiselect {
  position: relative;
  width: 100%;
}

.scr-multiselect.open {
  z-index: 280;
}

.scr-ms-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
  min-height: 36px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.scr-ms-trigger:hover,
.scr-multiselect.open .scr-ms-trigger {
  border-color: rgba(245, 158, 11, 0.55);
}

.scr-ms-trigger.has-selection {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  color: #FDE68A;
}

html[data-theme="light"] .scr-ms-trigger.has-selection {
  border-color: #D97706;
  background: #FEF3C7;
  color: #92400E;
}

.scr-ms-lbl,
.scr-ms-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scr-ms-caret,
.scr-ms-chev {
  font-size: 11px;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.scr-multiselect.open .scr-ms-caret,
.scr-multiselect.open .scr-ms-chev {
  transform: rotate(180deg);
}

.scr-ms-menu {
  position: absolute;
  top: calc(100% + 5px);
  inset-inline-start: 0;
  min-width: 220px;
  width: max-content;
  max-width: min(310px, calc(100vw - 20px));
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  z-index: 260;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#scr-ms-tech .scr-ms-menu {
  left: 0;
  right: auto;
  inset-inline-start: auto;
}

html[data-theme="light"] .scr-ms-menu {
  background: #FFFFFF;
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.scr-ms-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.scr-ms-act-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.scr-ms-act-btn.done {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #FBBF24;
}

html[data-theme="light"] .scr-ms-act-btn.done {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}

.scr-ms-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scr-ms-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  transition: background 0.12s ease;
}

.scr-ms-item:hover {
  background: rgba(148, 163, 184, 0.12);
}

.scr-ms-item.checked {
  background: rgba(245, 158, 11, 0.14);
  color: #FDE68A !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .scr-ms-item.checked {
  background: #FEF3C7;
  color: #92400E !important;
}

.scr-ms-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.scr-ms-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  background: var(--bg-canvas);
  color: #05080F;
}

.scr-ms-item.checked .scr-ms-box {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #05080F;
}

.scr-ms-txt {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.scr-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.scr-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
  color: #FDE68A;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.scr-active-chip:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
  color: #FCA5A5;
}

html[data-theme="light"] .scr-active-chip {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}

.scr-chip-x {
  font-size: 11px;
  opacity: 0.85;
}

/* ======================== FULL-PAGE 5TH TAB VERTICAL MENU HUB ======================== */
.fullpage-menu-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px 32px;
  align-items: start;
}

.fullpage-vertical-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px;
}

.fp-vtab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-align: start;
  cursor: pointer;
  transition: all 0.16s ease;
}

.fp-vtab-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
}

.fp-vtab-btn.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.55);
  color: #FBBF24;
}

html[data-theme="light"] .fp-vtab-btn.active {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}

.fp-vtab-ic {
  font-size: 18px;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}

.fp-vtab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.fp-vtab-text strong {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.3;
}

.fp-vtab-text small {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.25;
}

.fp-vtab-chev {
  font-size: 12px;
  opacity: 0.65;
  flex-shrink: 0;
}

.fullpage-menu-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}

@media (max-width: 820px) {
  .fullpage-menu-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 10px 28px;
  }
}

/* ==========================================================================
   INSTITUTIONAL SESSION DATE & COUNTDOWN TIMER BOX (#summary-session-date-pill)
   Consistent Dark Navy/Slate + Warm Amber Gold (Closed) & Emerald (Open)
   ========================================================================== */

.summary-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-hero-titles {
  min-width: 0;
  flex: 1 1 200px;
}

.summary-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.summary-hero-icon-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.session-timer-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 13px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(19, 28, 49, 0.96) 0%, rgba(11, 17, 30, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.session-timer-box.is-open {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.42) 0%, rgba(11, 20, 32, 0.96) 100%);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stb-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stb-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.32);
  line-height: 1.35;
  white-space: nowrap;
}

.session-timer-box.is-open .stb-state-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.42);
}

.stb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.75);
  flex-shrink: 0;
}

.session-timer-box.is-open .stb-dot {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
  animation: stbPulseDot 1.8s infinite ease-in-out;
}

@keyframes stbPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.65; }
}

.stb-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stb-date-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.stb-date-val {
  font-family: var(--font-mono);
  font-size: 12.5px !important;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.stb-countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stb-countdown-val {
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  color: #FBBF24;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.session-timer-box.is-open .stb-countdown-val {
  color: #34D399;
}

/* Light Mode Overrides for Session Date & Countdown Box */
html[data-theme="light"] .session-timer-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.42);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .session-timer-box.is-open {
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.09);
}

html[data-theme="light"] .stb-state-pill {
  background: #FEF3C7;
  color: #92400E;
  border-color: rgba(217, 119, 6, 0.35);
}

html[data-theme="light"] .session-timer-box.is-open .stb-state-pill {
  background: #D1FAE5;
  color: #065F46;
  border-color: rgba(5, 150, 105, 0.38);
}

html[data-theme="light"] .stb-date-val {
  color: #0F172A;
}

html[data-theme="light"] .stb-countdown-val {
  color: #B45309;
}

html[data-theme="light"] .session-timer-box.is-open .stb-countdown-val {
  color: #047857;
}

@media (max-width: 767px) {
  .hero-top-row.summary-hero-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .hero-top-row.summary-hero-top > .summary-hero-actions {
    display: contents !important;
  }
  .summary-hero-icon-btns {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .session-timer-box {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 10px !important;
    gap: 6px 8px !important;
  }
  .stb-meta-row {
    gap: 6px !important;
    flex-shrink: 0;
  }
  .stb-state-pill {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
  }
  .stb-date-chip {
    font-size: 11px !important;
  }
  .stb-date-val {
    font-size: 11.5px !important;
  }
  .stb-countdown-row {
    flex-shrink: 0;
  }
  .stb-countdown-val {
    font-size: 13px !important;
    font-weight: 900 !important;
  }
}

/* ==========================================================================
   DISCLOSURES VS. NEWS TWO-TAB SEGMENTED SWITCHER
   ========================================================================== */

.disc-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
}

.disc-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.disc-mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.disc-mode-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.12));
  border-color: rgba(245, 158, 11, 0.55);
  color: #FBBF24;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .disc-mode-tabs {
  background: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .disc-mode-tab.active {
  background: #FFFFFF;
  border-color: rgba(217, 119, 6, 0.5);
  color: #B45309;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.dmt-icon {
  font-size: 15px;
  line-height: 1;
}

/* ==========================================================================
   VALUE PROPOSITION & QUICK-START ONBOARDING HERO (#egx-welcome-hero)
   ========================================================================== */

.guide-btn {
  border-color: rgba(16, 185, 129, 0.42) !important;
  color: #34D399 !important;
  background: rgba(16, 185, 129, 0.09) !important;
}
.guide-btn.active {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(16, 185, 129, 0.72) !important;
}
html[data-theme="light"] .guide-btn {
  border-color: rgba(4, 120, 87, 0.35) !important;
  color: #047857 !important;
  background: rgba(4, 120, 87, 0.07) !important;
}

body.ultrawide-mode .egx-welcome-hero,
body.ultrawide-rotated-90 .egx-welcome-hero {
  display: none !important;
}

.egx-welcome-hero {
  flex-shrink: 0;
  position: relative;
  z-index: 25;
  padding: 10px 14px 9px;
  background: linear-gradient(180deg, rgba(13, 21, 38, 0.98) 0%, rgba(8, 13, 24, 0.96) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .egx-welcome-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ewh-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ewh-title-block {
  min-width: 0;
  flex: 1;
}

.ewh-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.ewh-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
  padding: 2px 7px;
}

html[data-theme="light"] .ewh-kicker-badge {
  color: #B45309;
  background: #FEF3C7;
  border-color: rgba(217, 119, 6, 0.35);
}

.ewh-kicker-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 6px;
  padding: 2px 7px;
}

html[data-theme="light"] .ewh-kicker-pill {
  color: #047857;
  background: #ECFDF5;
  border-color: rgba(4, 120, 87, 0.28);
}

.ewh-headline {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
}

.ewh-subtitle {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
}

.ewh-dismiss-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ewh-dismiss-btn:hover {
  background: rgba(245, 158, 11, 0.24);
}

html[data-theme="light"] .ewh-dismiss-btn {
  background: #FFFBEB;
  border-color: rgba(217, 119, 6, 0.45);
  color: #B45309;
}

.ewh-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.ewh-feature-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(19, 28, 49, 0.72);
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ewh-feature-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}

html[data-theme="light"] .ewh-feature-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .ewh-feature-card:hover {
  border-color: rgba(217, 119, 6, 0.5);
  background: #FFFBEB;
}

.ewh-fc-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.ewh-fc-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ewh-fc-body strong {
  font-size: 11.8px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ewh-fc-body small {
  font-size: 10.2px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ewh-steps-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.ewh-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.8px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ewh-step-chip:hover {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--text-primary);
}

html[data-theme="light"] .ewh-step-chip {
  background: #F1F5F9;
}

.ewh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

html[data-theme="light"] .ewh-step-num {
  background: #D1FAE5;
  color: #047857;
}

@media (max-width: 760px) {
  .egx-welcome-hero {
    padding: 8px 10px 7px;
  }
  .ewh-headline {
    font-size: 12.2px;
  }
  .ewh-subtitle {
    display: none;
  }
  .ewh-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }
  .ewh-feature-card {
    padding: 5px 7px;
  }
  .ewh-steps-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 5px;
    padding-top: 5px;
  }
  .ewh-steps-strip::-webkit-scrollbar {
    display: none;
  }
  .ewh-step-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
}


/* ==========================================================================
   KALSHI LIVE CROWD ODDS TUG-OF-WAR REVEAL & LIVE SESSION TAPE (v41)
   ========================================================================== */

.ipd-kalshi-reveal-banner {
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(6, 9, 17, 0.96));
  border: 1px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] .ipd-kalshi-reveal-banner {
  background: linear-gradient(135deg, #FFFBEB, #F8FAFC);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.kalshi-reveal-headline {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.kalshi-tow-bar {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 59, 105, 0.85);
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.kalshi-tow-bull {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #00F59B);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.kalshi-tow-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
}

.live-session-tape {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.85));
  border-top: 1px solid rgba(245, 158, 11, 0.24);
  border-bottom: 1px solid rgba(245, 158, 11, 0.24);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.live-session-tape::-webkit-scrollbar {
  display: none;
}

.live-session-tape.compact-chart-tape {
  padding: 3px 8px;
  font-size: 11px;
}

html[data-theme="light"] .live-session-tape {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), #F8FAFC);
  border-color: rgba(217, 119, 6, 0.28);
}

.lst-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #FBBF24;
  font-size: 10.5px;
  font-weight: 900;
  flex-shrink: 0;
}

html[data-theme="light"] .lst-badge {
  color: #B45309;
  background: rgba(245, 158, 11, 0.16);
}

.lst-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lst-pill:hover {
  border-color: #F59E0B;
  transform: translateY(-1px);
}

html[data-theme="light"] .lst-pill {
  background: #FFFFFF;
}

.mc-daily-leaderboard-box {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.mc-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.mc-lb-row:last-child {
  border-bottom: none;
}


