/* ============================================================
   signals.css — StockCurry Signals
   Drop this in /signals/signals.css
   ============================================================ */

/* ── Root / body ─────────────────────────────────────────── */
.sc-signals-body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* ── Nav ─────────────────────────────────────────────────── */
.sc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(148,163,184,0.16);
  background: rgba(8,12,20,0.96);
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sc-nav-left  { display: flex; align-items: center; gap: 24px; }
.sc-nav-right { display: flex; align-items: center; gap: 12px; }
.sc-nav-links { display: flex; gap: 6px; }
.sc-nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #aab0bf;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.sc-nav-links a:hover {
  background: rgba(148,163,184,0.12);
  color: #e8eaf0;
}
.sc-nav-links a.active {
  background: rgba(45,212,167,0.14);
  color: #2dd4a7;
}
.sc-nav-sup {
  font-size: 0.58em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2dd4a7;
  margin-left: 4px;
}
.sc-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: #e8eaf0;
  text-decoration: none;
}
.sc-logo span:first-child { color: #2dd4a7; }
.sc-logo-product {
  font-size: 11px;
  color: #6b7280;
  margin-left: 6px;
  font-weight: 400;
}
.sc-nav-bc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #8a8fa3;
}
.sc-nav-bc a { color: #2dd4a7; text-decoration: none; }
.sc-pro-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: linear-gradient(90deg,#2dd4a7,#60a5fa);
  color: #05090f;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.sc-nav-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  background: linear-gradient(135deg, #2dd4a7, #60a5fa);
  color: #05090f;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(45,212,167,0.18);
  box-shadow: 0 8px 16px rgba(45,212,167,0.12);
}
.sc-nav-link-btn {
  font-size: 13px;
  color: #aab0bf;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.sc-nav-link-btn:hover { background: rgba(148,163,184,0.12); color: #e8eaf0; }
.sc-nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(45,212,167,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #2dd4a7;
  border: 1px solid rgba(45,212,167,0.25);
  text-decoration: none;
}
.sc-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.04);
  color: #e8eaf0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.sc-theme-toggle:hover {
  border-color: rgba(45,212,167,0.25);
  color: #2dd4a7;
  transform: translateY(-1px);
}
.sc-theme-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4a7, #60a5fa);
  box-shadow: 0 0 0 3px rgba(45,212,167,0.08);
  flex-shrink: 0;
}

/* ── Shared typography ───────────────────────────────────── */
.sc-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #2dd4a7;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── INDEX: Hero ─────────────────────────────────────────── */
.sc-hero {
  padding: 40px 28px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.sc-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.sc-hero-title {
  font-size: 32px;
  font-weight: 300;
  color: #e8eaf0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-align: left;
}
.sc-hero-title em { font-style: normal; color: #2dd4a7; }
.sc-hero-sub {
  font-size: 13px;
  color: #8a8fa3;
  max-width: 520px;
  line-height: 1.6;
  text-align: left;
}
.sc-hero-stats { display: flex; gap: 24px; }
.sc-hstat { text-align: right; }
.sc-hstat-v { font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 500; color: #2dd4a7; }
.sc-hstat-l { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #8a8fa3; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── INDEX: Filter panel ─────────────────────────────────── */
.sc-filter-panel {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin: 0 28px 18px;
  max-width: 1100px;
  padding: 20px 24px;
  margin-left: auto; margin-right: auto;
}
.sc-filter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}
.sc-fg-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #6b7280;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.sc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #9ca3af;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  transition: all 0.15s;
  user-select: none;
}
.sc-chip:hover { border-color: rgba(255,255,255,0.35); color: #e8eaf0; }
.sc-chip.active { border-color: #2dd4a7; color: #2dd4a7; background: rgba(45,212,167,0.1); }
.sc-range-block { display: flex; flex-direction: column; gap: 12px; }
.sc-range-row   { display: flex; align-items: center; gap: 10px; }
.sc-range-lbl   { font-size: 11px; color: #9ca3af; width: 52px; flex-shrink: 0; }
.sc-range-val   { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #2dd4a7; min-width: 38px; text-align: right; }
input[type=range] { flex: 1; height: 3px; accent-color: #2dd4a7; cursor: pointer; }
.sc-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sc-filter-count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6b7280; }
.sc-reset-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6b7280;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ── INDEX: Section label ────────────────────────────────── */
.sc-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 28px 12px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── INDEX: Cards grid ───────────────────────────────────── */
.sc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  padding: 0 28px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.sc-card {
  background: #0c1320;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.sc-card:hover { border-color: rgba(45,212,167,0.25); transform: translateY(-2px); }
.sc-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.accent-green  { background: linear-gradient(90deg,#2dd4a7,transparent); }
.accent-amber  { background: linear-gradient(90deg,#f59e0b,transparent); }
.accent-blue   { background: linear-gradient(90deg,#60a5fa,transparent); }
.accent-purple { background: linear-gradient(90deg,#a78bfa,transparent); }
.sc-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.sc-card-name { font-size: 15px; font-weight: 500; color: #e8eaf0; margin-bottom: 3px; }
.sc-card-type { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #6b7280; letter-spacing: 0.05em; text-transform: uppercase; }
.sc-sig-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  padding: 4px 9px; border-radius: 3px;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.sig-invested  { background: rgba(45,212,167,0.1); color: #2dd4a7; border: 1px solid rgba(45,212,167,0.25); }
.sig-leveraged { background: rgba(167,139,250,0.1); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.sig-partial   { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.sig-cash      { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }
.sig-locked    { background: rgba(107,114,128,0.1); color: #6b7280; border: 1px solid rgba(107,114,128,0.2); }
.sc-mini-chart { width: 100%; height: 52px; position: relative; margin: 8px 0 12px; }
.sc-mini-chart canvas { width: 100% !important; height: 52px !important; }
.sc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.sc-stat { background: rgba(255,255,255,0.03); border-radius: 5px; padding: 8px 10px; }
.sc-stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #6b7280; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.sc-stat-val   { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; color: #e8eaf0; }
.sc-pos { color: #2dd4a7; } .sc-neg { color: #f87171; }
.sc-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.05); }
.sc-card-meta { font-size: 11px; color: #6b7280; }
.sc-view-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: #2dd4a7;
  background: transparent;
  border: 1px solid rgba(45,212,167,0.25);
  padding: 5px 11px; border-radius: 3px;
  text-decoration: none;
}
.sc-lock-overlay {
  position: absolute; inset: 0;
  background: rgba(5,9,15,0.65);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.sc-lock-icon { font-size: 20px; opacity: 0.5; }
.sc-lock-text { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #2dd4a7; letter-spacing: 0.1em; }
.sc-upgrade-btn-sm {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; background: #2dd4a7; color: #05090f;
  border: none; padding: 7px 14px; border-radius: 4px; cursor: pointer;
  text-decoration: none; font-weight: 500;
}

/* ── INDEX: Upgrade banner ───────────────────────────────── */
.sc-upgrade-banner { padding: 0 28px 24px; max-width: 1100px; margin: 0 auto; }
.sc-upgrade-inner {
  background: linear-gradient(135deg, rgba(45,212,167,0.07), rgba(96,165,250,0.04));
  border: 1px solid rgba(45,212,167,0.2);
  border-radius: 10px;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px; color: #8a8fa3;
}
.sc-upgrade-inner strong { color: #e8eaf0; font-weight: 500; }
.sc-upgrade-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; background: #2dd4a7; color: #05090f;
  padding: 10px 20px; border-radius: 5px;
  text-decoration: none; font-weight: 500; white-space: nowrap;
}

/* ── DETAIL: Header ──────────────────────────────────────── */
.sc-detail-hdr { padding: 32px 28px 20px; max-width: 1100px; margin: 0 auto; }
.sc-detail-hero-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  padding: 28px;
}
.sc-detail-hdr-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}
.sc-detail-hdr-inner > div:first-child {
  min-width: 0;
}
.sc-detail-title {
  font-size: 28px;
  font-weight: 300;
  color: #e8eaf0;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-align: left;
}
.sc-detail-subtitle {
  font-size: 14px;
  color: #b8c0cf;
  line-height: 1.65;
  max-width: 520px;
  text-align: left;
}
.sc-detail-signal {
  text-align: right;
  width: 280px;
  justify-self: end;
}
.sc-detail-sig-big { font-family: 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 500; letter-spacing: 0.05em; }
.sc-detail-sig-meta { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #a7b0c0; margin-top: 4px; letter-spacing: 0.08em; }
.sc-detail-sig-live { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #2dd4a7; background: rgba(45,212,167,0.1); padding: 3px 8px; border-radius: 3px; margin-top: 6px; display: inline-block; }
.sc-detail-sig-delayed { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #a7b0c0; margin-top: 6px; }
.sc-detail-sig-delayed a { color: #2dd4a7; text-decoration: none; }

/* ── DETAIL: KPI row ─────────────────────────────────────── */
.sc-kpi-section { padding: 0 28px 20px; max-width: 1100px; margin: 10px auto 0; }
.sc-kpi-legend  { display: flex; gap: 20px; margin-bottom: 10px; }
.sc-kleg        { display: flex; align-items: center; gap: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #c4ccda; }
.sc-kleg-dot    { width: 10px; height: 10px; border-radius: 2px; }
.sc-kpi-grid    { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sc-kpi         { background: #0c1320; border: 1px solid rgba(255,255,255,0.06); border-radius: 9px; padding: 14px 16px; position: relative; overflow: hidden; }
.sc-kpi-label   { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #94a3b8; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.sc-kpi-compare { display: flex; flex-direction: column; gap: 5px; }
.sc-kpi-row     { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-kpi-who     {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  width: 88px;
  flex: 0 0 88px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-who-n       { color: #2dd4a7; }
.sc-who-s       { color: #c4ccda; }
.sc-kpi-val     { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 500; white-space: nowrap; }
.sc-kpi-val-pos { color: #2dd4a7; } .sc-kpi-val-neg { color: #f87171; }
.sc-kpi-val-wht { color: #e8eaf0; } .sc-kpi-val-amb { color: #fbbf24; }
.sc-kpi-val-muted { color: #c4ccda; font-size: 14px; }
.sc-kpi-bar-wrap { flex: 1; height: 3px; background: rgba(255,255,255,0.05); border-radius: 1px; }
.sc-kpi-bar     { height: 3px; border-radius: 1px; }
.sc-bar-n       { background: #2dd4a7; }
.sc-bar-s       { background: #374151; }
.sc-kpi-win     { position: absolute; top: 10px; right: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #2dd4a7; background: rgba(45,212,167,0.1); padding: 2px 5px; border-radius: 2px; }

/* ── DETAIL: Body layout ─────────────────────────────────── */
.sc-detail-body  { display: grid; grid-template-columns: 1fr 280px; gap: 14px; padding: 0 28px 28px; max-width: 1100px; margin: 0 auto; }
.sc-detail-main  {}
.sc-detail-sidebar { display: flex; flex-direction: column; gap: 12px; }

/* ── Shared panel ────────────────────────────────────────── */
.sc-panel { background: #0c1320; border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 20px; margin-bottom: 12px; }
.sc-ptitle { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #94a3b8; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.sc-empty-state {
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  padding: 22px 18px;
  margin-top: 8px;
}
.sc-empty-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #2dd4a7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sc-empty-copy {
  font-size: 14px;
  line-height: 1.6;
  color: #8a8fa3;
}
.sc-tabs { display: flex; gap: 4px; }
.sc-tab { font-family: 'IBM Plex Mono', monospace; font-size: 10px; padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); color: #c4ccda; text-decoration: none; background: transparent; }
.sc-tab.on { background: rgba(45,212,167,0.1); border-color: rgba(45,212,167,0.3); color: #2dd4a7; }
.sc-chart-wrap { position: relative; height: 230px; }
.sc-legend { display: flex; gap: 20px; margin-top: 10px; }
.sc-leg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #c4ccda; }
.sc-leg-line { width: 24px; height: 2px; border-radius: 1px; }
.sc-leg-dashed { background: transparent; border-top: 2px dashed #374151; height: 0; }

/* Backtest stats */
.sc-bt-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; margin: 18px 0 10px; }
.sc-bt-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.sc-btc { background: rgba(255,255,255,0.03); border-radius: 6px; padding: 10px 12px; }
.sc-btl { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.sc-btv { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; }
.sc-pos { color: #2dd4a7; } .sc-neg { color: #f87171; }
.sc-wht { color: #e8eaf0; } .sc-blu { color: #60a5fa; } .sc-amb { color: #fbbf24; }
.sc-dd-note { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #a7b0c0; margin-top: 10px; }
.sc-export-btn { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #2dd4a7; text-decoration: none; }

/* Signal table */
.signal-history-placeholder {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(45,212,167,0.18);
  border-radius: 8px;
  background: rgba(45,212,167,0.05);
}
.placeholder-icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #2dd4a7;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.placeholder-text {
  font-size: 14px;
  line-height: 1.6;
  color: #c8cad4;
}
.signal-timeline { margin-top: 6px; }
.timeline-heading { display: flex; flex-direction: column; gap: 2px; }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timeline-control,
.timeline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #c4ccda;
  text-transform: none;
  letter-spacing: 0;
}
.timeline-control select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8eaf0;
  border-radius: 4px;
  padding: 6px 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
}
.timeline-check input {
  accent-color: #2dd4a7;
}
.history-sort-link {
  color: inherit;
  text-decoration: none;
}
.history-sort-link:hover {
  color: #2dd4a7;
}
.timeline-meta {
  color: #c4ccda;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.signal-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.signal-history-table th,
.signal-history-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.signal-history-table th:nth-child(1),
.signal-history-table td:nth-child(1) { width: 110px; }
.signal-history-table th:nth-child(2),
.signal-history-table td:nth-child(2) { width: 90px; }
.signal-history-table th:nth-child(3),
.signal-history-table td:nth-child(3) { width: 90px; }
.signal-history-table th:nth-child(4),
.signal-history-table td:nth-child(4) { width: 80px; }
.signal-history-table th:nth-child(6),
.signal-history-table td:nth-child(6) { width: 80px; }
.signal-history-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}
.event-date,
.event-exposure,
.event-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #c4ccda;
}
.event-signal {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #e8eaf0;
}
.event-detail {
  font-size: 13px;
  color: #e8eaf0;
  line-height: 1.45;
  word-break: break-word;
}
.event-badge,
.source-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.event-latest   { background: rgba(148,163,184,0.16); color: #e2e8f0; }
.event-daily    { background: rgba(255,255,255,0.08); color: #e5e7eb; }
.event-start    { background: rgba(148,163,184,0.18); color: #cbd5e1; }
.event-entered  { background: rgba(45,212,167,0.9); color: #05090f; }
.event-exited   { background: rgba(248,113,113,0.85); color: #fff; }
.event-rotated  { background: rgba(96,165,250,0.14); color: #60a5fa; }
.event-leveraged{ background: #7c3aed; color: #fff; }
.event-reduced  { background: rgba(239,68,68,0.22); color: #fca5a5; }
.event-added    { background: rgba(74,222,128,0.22); color: #86efac; }
.source-backtest { opacity: 0.9; color: #c4ccda; }
.source-paper,
.source-live { color: #2dd4a7; }
.signal-invested { color: #2dd4a7; }
.signal-partial { color: #fbbf24; }
.signal-leveraged { color: #a78bfa; }
.signal-cash { color: #f87171; }
.signal-history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.history-page-btn,
.history-page-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.history-page-btn {
  color: #2dd4a7;
  text-decoration: none;
  border: 1px solid rgba(45,212,167,0.22);
  border-radius: 4px;
  padding: 7px 10px;
  background: rgba(45,212,167,0.05);
}
.history-page-btn.disabled {
  color: #4b5563;
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.history-page-meta { color: #c4ccda; font-size: 12px; }
.sc-t-hdr, .sc-t-row {
  display: grid;
  grid-template-columns: 72px 1fr 80px 60px 60px;
  padding: 8px 0;
  align-items: center;
}
.sc-t-hdr { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sc-t-row  { border-bottom: 1px solid rgba(255,255,255,0.04); }
.sc-tdate  { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #c4ccda; }
.sc-tact   { font-size: 13px; color: #e8eaf0; }
.sc-tsig   { font-family: 'IBM Plex Mono', monospace; font-size: 10px; padding: 3px 7px; border-radius: 3px; text-align: center; }
.sc-texp   { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #c4ccda; text-align: right; }
.sc-tpnl   { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-align: right; }
.pnl-pos   { color: #2dd4a7; } .pnl-neg { color: #f87171; }
.sc-history-gate {
  text-align: center; padding: 14px 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  border: 1px solid rgba(45,212,167,0.2);
  border-radius: 6px; margin-top: 8px;
  background: rgba(45,212,167,0.04);
}
.sc-history-gate a { color: #2dd4a7; text-decoration: none; }

/* ── Sidebar components ──────────────────────────────────── */
.sc-pro-card {
  background: linear-gradient(135deg,rgba(45,212,167,0.07),rgba(96,165,250,0.04));
  border: 1px solid rgba(45,212,167,0.25); border-radius: 11px; padding: 18px;
}
.sc-pro-tag   { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #2dd4a7; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.sc-pro-name  { font-size: 15px; font-weight: 500; color: #e8eaf0; margin-bottom: 3px; }
.sc-pro-since { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #a7b0c0; margin-bottom: 12px; }
.sc-pro-feats { display: flex; flex-direction: column; gap: 7px; }
.sc-pf  { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c8cad4; }
.sc-pfd { width: 5px; height: 5px; border-radius: 50%; background: #2dd4a7; flex-shrink: 0; }
.sc-manage-btn { display: block; margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; background: transparent; color: #2dd4a7; border: 1px solid rgba(45,212,167,0.3); padding: 8px; border-radius: 4px; cursor: pointer; letter-spacing: 0.05em; text-decoration: none; text-align: center; }

.sc-upgrade-card {
  background: linear-gradient(135deg,rgba(45,212,167,0.07),rgba(96,165,250,0.04));
  border: 1px solid rgba(45,212,167,0.25); border-radius: 11px; padding: 18px;
}
.sc-upgrade-tag   { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #2dd4a7; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.sc-upgrade-price { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 500; color: #e8eaf0; margin-bottom: 4px; }
.sc-upgrade-price span { font-size: 13px; color: #a7b0c0; font-weight: 400; }
.sc-upgrade-desc  { font-size: 14px; color: #c4ccda; line-height: 1.55; margin-bottom: 12px; }
.sc-upgrade-feats { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.sc-upgrade-feats li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c8cad4; }
.sc-upgrade-feats li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #2dd4a7; flex-shrink: 0; }
.sc-upgrade-btn-full { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: #2dd4a7; color: #05090f; border: none; padding: 11px; border-radius: 5px; cursor: pointer; font-weight: 500; text-align: center; text-decoration: none; }
.sc-stay-free-btn { display: block; margin-top: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; background: transparent; color: #6b7280; border: 1px solid rgba(255,255,255,0.08); padding: 9px; border-radius: 5px; cursor: pointer; text-align: center; text-decoration: none; }

.sc-ic { background: #0c1320; border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 18px; }
.sc-ic.sc-blurred { filter: blur(4px); pointer-events: none; user-select: none; }
.sc-il { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #94a3b8; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.sc-pos-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.sc-pos-sym { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #e8eaf0; width: 42px; }
.sc-pos-bw  { flex: 1; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; }
.sc-pos-bf  { height: 4px; border-radius: 2px; background: #2dd4a7; }
.sc-pos-pct { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #e8eaf0; min-width: 30px; text-align: right; }
.sc-pos-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #a7b0c0; }
.sc-pos-total-val { color: #2dd4a7; font-size: 11px; font-weight: 500; }
.sc-pos-gate { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #333; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.04); }
.sc-al-row   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sc-al-lbl   { font-size: 13px; color: #c8cad4; }
.sc-tog      { width: 36px; height: 20px; border-radius: 10px; position: relative; cursor: pointer; border: none; }
.sc-tog.on   { background: rgba(45,212,167,0.25); border: 1px solid rgba(45,212,167,0.4); }
.sc-tog.off  { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.sc-tog-d    { width: 14px; height: 14px; border-radius: 50%; position: absolute; top: 2px; transition: left 0.2s; }
.sc-tog.on .sc-tog-d  { background: #2dd4a7; left: 18px; }
.sc-tog.off .sc-tog-d { background: #555; left: 2px; }
.sc-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.sc-fact-lbl {
  font-size: 12px;
  color: #6b7280;
  flex: 0 0 84px;
}
.sc-fact-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #e8eaf0;
  text-align: right;
  line-height: 1.45;
}
.sc-fact-val-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  max-width: 150px;
}
.sc-fact-val-green { color: #2dd4a7; }
.regime-bars { display: flex; flex-direction: column; gap: 8px; }
.regime-bar {
  min-height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
}
.regime-bar.invested { background: rgba(45,212,167,0.2); color: #2dd4a7; }
.regime-bar.cash { background: rgba(248,113,113,0.18); color: #f87171; }
.regime-bar.leveraged { background: rgba(124,58,237,0.2); color: #c4b5fd; }
.regime-since {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6b7280;
}

/* ── Disclaimer ──────────────────────────────────────────── */
.sc-disclaimer { font-size: 11px; color: #2a2f3d; line-height: 1.6; padding: 14px 28px 28px; max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.04); }

/* ── Light theme override ───────────────────────────────── */
html[data-sc-theme="light"] .sc-signals-body {
  background: #f7f8fc;
  color: #0f172a;
}
html[data-sc-theme="light"] .sc-nav {
  background: rgba(255,255,255,0.94);
  border-bottom-color: rgba(15,23,42,0.08);
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}
html[data-sc-theme="light"] .sc-nav-links a:hover {
  background: rgba(15,118,110,0.08);
  color: #0f172a;
}
html[data-sc-theme="light"] .sc-nav-links a {
  color: #475569;
}
html[data-sc-theme="light"] .sc-nav-links a.active {
  color: #0f766e;
}
html[data-sc-theme="light"] .sc-nav-sup {
  color: #0f766e;
}
html[data-sc-theme="light"] .sc-logo {
  color: #0f172a;
}
html[data-sc-theme="light"] .sc-logo span:first-child {
  color: #0f766e;
}
html[data-sc-theme="light"] .sc-logo-product,
html[data-sc-theme="light"] .sc-nav-bc,
html[data-sc-theme="light"] .sc-hero-sub,
html[data-sc-theme="light"] .sc-card-type,
html[data-sc-theme="light"] .sc-stat-label,
html[data-sc-theme="light"] .sc-kleg,
html[data-sc-theme="light"] .sc-filter-count,
html[data-sc-theme="light"] .sc-fg-label,
html[data-sc-theme="light"] .sc-range-lbl,
html[data-sc-theme="light"] .sc-section-label,
html[data-sc-theme="light"] .sc-detail-sig-meta,
html[data-sc-theme="light"] .sc-detail-sig-delayed,
html[data-sc-theme="light"] .sc-btl,
html[data-sc-theme="light"] .sc-btc,
html[data-sc-theme="light"] .sc-card-meta,
html[data-sc-theme="light"] .sc-ptitle,
html[data-sc-theme="light"] .sc-stat-label,
html[data-sc-theme="light"] .timeline-check,
html[data-sc-theme="light"] .timeline-meta,
html[data-sc-theme="light"] .sc-t-hdr,
html[data-sc-theme="light"] .sc-tdate,
html[data-sc-theme="light"] .sc-texp,
html[data-sc-theme="light"] .event-date,
html[data-sc-theme="light"] .event-exposure,
html[data-sc-theme="light"] .event-source,
html[data-sc-theme="light"] .history-page-meta,
html[data-sc-theme="light"] .sc-dd-note,
html[data-sc-theme="light"] .sc-pro-since,
html[data-sc-theme="light"] .sc-pro-desc,
html[data-sc-theme="light"] .sc-upgrade-desc,
html[data-sc-theme="light"] .sc-empty-copy,
html[data-sc-theme="light"] .sc-fact-lbl,
html[data-sc-theme="light"] .sc-pos-gate,
html[data-sc-theme="light"] .sc-regime-since,
html[data-sc-theme="light"] .sc-disclaimer {
  color: #64748b;
}
html[data-sc-theme="light"] .sc-eyebrow,
html[data-sc-theme="light"] .sc-hstat-v,
html[data-sc-theme="light"] .sc-range-val,
html[data-sc-theme="light"] .sc-detail-sig-live,
html[data-sc-theme="light"] .sc-btv.sc-pos,
html[data-sc-theme="light"] .sc-empty-title,
html[data-sc-theme="light"] .sc-history-gate a,
html[data-sc-theme="light"] .sc-manage-btn,
html[data-sc-theme="light"] .sc-export-btn,
html[data-sc-theme="light"] .sc-view-btn,
html[data-sc-theme="light"] .sc-nav-btn,
html[data-sc-theme="light"] .sc-upgrade-cta,
html[data-sc-theme="light"] .sc-upgrade-btn-full,
html[data-sc-theme="light"] .history-page-btn,
html[data-sc-theme="light"] .sc-detail-sig-delayed a,
html[data-sc-theme="light"] .sc-nav-avatar,
html[data-sc-theme="light"] .sc-theme-toggle:hover {
  color: #0f766e;
}
html[data-sc-theme="light"] .sc-theme-toggle {
  background: rgba(15,118,110,0.06);
  border-color: rgba(15,118,110,0.14);
  color: #0f766e;
}
html[data-sc-theme="light"] .sc-theme-toggle:hover {
  background: rgba(15,118,110,0.1);
}
html[data-sc-theme="light"] .sc-nav-btn,
html[data-sc-theme="light"] .sc-upgrade-cta,
html[data-sc-theme="light"] .sc-upgrade-btn-full {
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
}
html[data-sc-theme="light"] .sc-pro-badge {
  color: #fff;
}
html[data-sc-theme="light"] .sc-hero-title,
html[data-sc-theme="light"] .sc-detail-title,
html[data-sc-theme="light"] .sc-card-name,
html[data-sc-theme="light"] .sc-stat-val,
html[data-sc-theme="light"] .sc-card-meta,
html[data-sc-theme="light"] .event-detail,
html[data-sc-theme="light"] .sc-tact,
html[data-sc-theme="light"] .sc-kpi-val-wht,
html[data-sc-theme="light"] .sc-kpi-val-muted,
html[data-sc-theme="light"] .sc-btv,
html[data-sc-theme="light"] .sc-fact-val,
html[data-sc-theme="light"] .placeholder-text,
html[data-sc-theme="light"] .sc-pf,
html[data-sc-theme="light"] .sc-upgrade-feats li,
html[data-sc-theme="light"] .sc-empty-copy,
html[data-sc-theme="light"] .sc-detail-subtitle {
  color: #0f172a;
}
html[data-sc-theme="light"] .sc-hero-title em,
html[data-sc-theme="light"] .sc-section-label,
html[data-sc-theme="light"] .sc-card:hover .sc-card-name,
html[data-sc-theme="light"] .sc-card:hover .sc-view-btn,
html[data-sc-theme="light"] .sc-empty-title,
html[data-sc-theme="light"] .sc-history-gate,
html[data-sc-theme="light"] .sc-kpi-win,
html[data-sc-theme="light"] .sc-lock-text {
  color: #0f766e;
}
html[data-sc-theme="light"] .sc-hero-sub,
html[data-sc-theme="light"] .sc-detail-sig-delayed,
html[data-sc-theme="light"] .sc-detail-sig-meta,
html[data-sc-theme="light"] .sc-card-type,
html[data-sc-theme="light"] .sc-card-meta,
html[data-sc-theme="light"] .sc-fg-label,
html[data-sc-theme="light"] .sc-range-lbl,
html[data-sc-theme="light"] .sc-filter-count,
html[data-sc-theme="light"] .sc-kleg,
html[data-sc-theme="light"] .sc-stat-label,
html[data-sc-theme="light"] .sc-btl,
html[data-sc-theme="light"] .sc-dd-note,
html[data-sc-theme="light"] .timeline-header,
html[data-sc-theme="light"] .timeline-check,
html[data-sc-theme="light"] .history-page-meta {
  color: #64748b;
}
html[data-sc-theme="light"] .sc-filter-panel,
html[data-sc-theme="light"] .sc-card,
html[data-sc-theme="light"] .sc-kpi,
html[data-sc-theme="light"] .sc-panel,
html[data-sc-theme="light"] .sc-ic,
html[data-sc-theme="light"] .sc-pro-card,
html[data-sc-theme="light"] .sc-upgrade-card,
html[data-sc-theme="light"] .sc-detail-body .sc-panel,
html[data-sc-theme="light"] .sc-detail-hero-card,
html[data-sc-theme="light"] .sc-upgrade-inner,
html[data-sc-theme="light"] .signal-history-placeholder,
html[data-sc-theme="light"] .sc-history-gate {
  background: rgba(255,255,255,0.92);
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
html[data-sc-theme="light"] .sc-card:hover {
  border-color: rgba(15,118,110,0.18);
  transform: translateY(-2px);
}
html[data-sc-theme="light"] .sc-card-accent.accent-green { background: linear-gradient(90deg,#0f766e,transparent); }
html[data-sc-theme="light"] .sc-card-accent.accent-amber { background: linear-gradient(90deg,#d97706,transparent); }
html[data-sc-theme="light"] .sc-card-accent.accent-blue { background: linear-gradient(90deg,#2563eb,transparent); }
html[data-sc-theme="light"] .sc-card-accent.accent-purple { background: linear-gradient(90deg,#7c3aed,transparent); }
html[data-sc-theme="light"] .sc-chip,
html[data-sc-theme="light"] .sc-tab,
html[data-sc-theme="light"] .timeline-control select {
  background: rgba(255,255,255,0.92);
  border-color: rgba(15,23,42,0.12);
  color: #475569;
}
html[data-sc-theme="light"] .sc-chip:hover,
html[data-sc-theme="light"] .sc-tab.on,
html[data-sc-theme="light"] .sc-chip.active {
  border-color: rgba(15,118,110,0.24);
  color: #0f766e;
  background: rgba(15,118,110,0.08);
}
html[data-sc-theme="light"] .sig-invested,
html[data-sc-theme="light"] .event-entered,
html[data-sc-theme="light"] .sc-detail-sig-live,
html[data-sc-theme="light"] .sc-pos-bf,
html[data-sc-theme="light"] .sc-who-n,
html[data-sc-theme="light"] .sc-kpi-val-pos {
  color: #0f766e;
}
html[data-sc-theme="light"] .sig-leveraged,
html[data-sc-theme="light"] .event-leveraged {
  color: #7c3aed;
}
html[data-sc-theme="light"] .sig-partial {
  color: #b45309;
}
html[data-sc-theme="light"] .sig-cash,
html[data-sc-theme="light"] .event-exited,
html[data-sc-theme="light"] .pnl-neg {
  color: #dc2626;
}
html[data-sc-theme="light"] .history-page-btn {
  background: rgba(15,118,110,0.06);
  border-color: rgba(15,118,110,0.18);
}
html[data-sc-theme="light"] .history-page-btn.disabled {
  background: rgba(148,163,184,0.08);
  color: #94a3b8;
  border-color: rgba(148,163,184,0.18);
}
html[data-sc-theme="light"] .sc-empty-state,
html[data-sc-theme="light"] .sc-lock-overlay {
  background: rgba(255,255,255,0.72);
}
html[data-sc-theme="light"] .sc-lock-overlay {
  backdrop-filter: blur(5px);
}
html[data-sc-theme="light"] .sc-detail-sig-big,
html[data-sc-theme="light"] .sc-upgrade-price,
html[data-sc-theme="light"] .sc-hstat-v {
  color: #0f172a;
}
html[data-sc-theme="light"] .sc-nav-right .sc-pro-badge {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
}
html[data-sc-theme="light"] .sc-nav-avatar {
  background: rgba(15,118,110,0.08);
  border-color: rgba(15,118,110,0.18);
}
html[data-sc-theme="light"] .sc-nav-link-btn {
  color: #475569;
}
html[data-sc-theme="light"] .sc-nav-link-btn:hover {
  background: rgba(15,118,110,0.08);
  color: #0f172a;
}
html[data-sc-theme="light"] .sc-mini-chart canvas,
html[data-sc-theme="light"] .sc-chart-wrap canvas {
  filter: saturate(0.95);
}
html[data-sc-theme="light"] .sc-t-hdr,
html[data-sc-theme="light"] .signal-history-table th {
  color: #64748b;
  border-bottom-color: rgba(15,23,42,0.08);
}
html[data-sc-theme="light"] .signal-history-table td,
html[data-sc-theme="light"] .sc-t-row {
  border-bottom-color: rgba(15,23,42,0.06);
}
html[data-sc-theme="light"] .event-badge,
html[data-sc-theme="light"] .source-badge,
html[data-sc-theme="light"] .sc-sig-badge,
html[data-sc-theme="light"] .sc-tog {
  border-color: rgba(15,23,42,0.1);
}
html[data-sc-theme="light"] .event-latest,
html[data-sc-theme="light"] .event-daily,
html[data-sc-theme="light"] .event-start {
  background: rgba(15,23,42,0.06);
  color: #0f172a;
}
html[data-sc-theme="light"] .source-backtest,
html[data-sc-theme="light"] .source-paper,
html[data-sc-theme="light"] .source-live {
  color: #0f766e;
}
html[data-sc-theme="light"] .regime-bar.invested,
html[data-sc-theme="light"] .regime-bar.cash,
html[data-sc-theme="light"] .regime-bar.leveraged {
  background: rgba(15,23,42,0.06);
}
html[data-sc-theme="light"] .timeline-control select,
html[data-sc-theme="light"] .timeline-check input {
  accent-color: #0f766e;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sc-filter-inner       { grid-template-columns: 1fr 1fr; }
  .sc-kpi-grid           { grid-template-columns: repeat(3,1fr); }
  .sc-detail-body        { grid-template-columns: 1fr; }
  .sc-detail-sidebar     { display: grid; grid-template-columns: 1fr 1fr; }
  .sc-detail-hdr-inner   { grid-template-columns: 1fr; }
  .sc-detail-signal     { width: auto; justify-self: start; text-align: left; }
  .sc-detail-hero-card   { padding: 24px; }
}
@media (max-width: 600px) {
  .sc-filter-inner       { grid-template-columns: 1fr; }
  .sc-kpi-grid           { grid-template-columns: repeat(2,1fr); }
  .sc-bt-grid            { grid-template-columns: repeat(2,1fr); }
  .sc-detail-sidebar     { grid-template-columns: 1fr; }
  .sc-nav-links          { display: none; }
  .sc-hero-title         { font-size: 24px; }
  .timeline-header       { flex-direction: column; align-items: flex-start; }
  .timeline-controls     { flex-direction: column; align-items: flex-start; }
  .signal-history-table  { display: block; overflow-x: auto; }
  .sc-detail-hero-card   { padding: 20px; }
}
