/* ═══════════════════════════════════════════════════════════════════
   Signal Command Center — Dashboard CSS v2
   3-column terminal layout, Bloomberg-style density
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay ──────────────────────────────────────────────────────── */
#sccOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
#sccOverlay.scc-open { display: flex; }

/* ── Modal shell ──────────────────────────────────────────────────── */
#sccModal {
  display: flex;
  flex-direction: column;
  width: min(1440px, 97vw);
  height: 92vh;
  background: #0b0f16;
  border: 1px solid #1e2d3d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.03);
  font-family: inherit;
  color: #c8d0df;
  font-size: 12px;
}

/* ── Compact header ───────────────────────────────────────────────── */
#sccHeader {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: #070b11;
  border-bottom: 1px solid #182030;
}
#sccHeaderSymbol { font-size: 15px; font-weight: 700; color: #e8edf5; letter-spacing: 0.05em; }
#sccHeaderPrice  { font-size: 13px; color: #94a3b8; }
.scc-hsep        { width: 1px; height: 14px; background: #182030; }
#sccHeaderInterval {
  font-size: 10px; color: #64748b;
  background: #182030; border-radius: 3px; padding: 1px 6px;
}
#sccHeaderAsOf   { font-size: 10px; color: #334155; margin-right: auto; }

#sccScoreBadge {
  padding: 3px 10px; border-radius: 5px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; letter-spacing: 0.02em; white-space: nowrap;
}
#sccScoreBadge.scc-strong-bull { background: rgba(34,197,94,0.12); border-color: #16a34a; color: #4ade80; }
#sccScoreBadge.scc-bull        { background: rgba(34,197,94,0.07); border-color: #166534; color: #86efac; }
#sccScoreBadge.scc-neutral     { background: rgba(100,116,139,0.09); border-color: #2a3a4e; color: #94a3b8; }
#sccScoreBadge.scc-bear        { background: rgba(239,68,68,0.07); border-color: #7f1d1d; color: #fca5a5; }
#sccScoreBadge.scc-strong-bear { background: rgba(239,68,68,0.14); border-color: #dc2626; color: #f87171; }

.scc-icon-btn {
  padding: 4px 9px; border-radius: 4px; border: 1px solid #1e2d3d;
  background: #111827; color: #64748b; font-size: 13px; cursor: pointer;
  transition: all 0.12s; line-height: 1;
}
.scc-icon-btn:hover { background: #1e2d3d; color: #e2e8f0; }

/* ── Filter toolbar ───────────────────────────────────────────────── */
#sccFilterBar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #0b0f16;
  border-bottom: 1px solid #131c28;
  flex-wrap: wrap;
}
.scc-dir-pills { display: flex; gap: 2px; }
.scc-dir-pill {
  padding: 2px 8px; border-radius: 3px; border: 1px solid #1e2d3d;
  background: transparent; font-size: 11px; color: #475569; cursor: pointer; transition: all 0.1s;
}
.scc-dir-pill:hover { border-color: #3b82f6; color: #93c5fd; }
.scc-dir-pill.active[data-dir="all"]     { background: #172038; border-color: #3b82f6; color: #93c5fd; }
.scc-dir-pill.active[data-dir="bullish"] { background: #0f3020; border-color: #16a34a; color: #4ade80; }
.scc-dir-pill.active[data-dir="bearish"] { background: #2d0a0a; border-color: #dc2626; color: #f87171; }
.scc-dir-pill.active[data-dir="neutral"] { background: #1a2535; border-color: #475569; color: #94a3b8; }
.scc-filter-sep { width: 1px; height: 14px; background: #182030; margin: 0 2px; }
.scc-filter-select, .scc-filter-input {
  font-size: 11px; background: #0f1724; border: 1px solid #1e2d3d; color: #94a3b8;
  border-radius: 3px; padding: 2px 6px; outline: none;
}
.scc-filter-select:focus, .scc-filter-input:focus { border-color: #3b82f6; color: #e2e8f0; }
.scc-filter-input { width: 110px; }
.scc-toggle-label {
  display: flex; align-items: center; gap: 4px; font-size: 10px;
  color: #475569; cursor: pointer; user-select: none;
}
.scc-toggle-label input { accent-color: #3b82f6; }

/* ── Dashboard body: 3-column grid ───────────────────────────────── */
#sccBody {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 16px;
  display: grid;
  grid-template-columns: 252px 1fr 272px;
  column-gap: 8px;
  row-gap: 0;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #1e2d3d transparent;
}
#sccBody::-webkit-scrollbar { width: 4px; }
#sccBody::-webkit-scrollbar-thumb { background: #1e2d3d; border-radius: 4px; }

.scc-col-left   { grid-column: 1; display: flex; flex-direction: column; gap: 6px; }
.scc-col-center { grid-column: 2; display: flex; flex-direction: column; gap: 6px; }
.scc-col-right  { grid-column: 3; display: flex; flex-direction: column; gap: 6px; }
.scc-col-full   { grid-column: 1 / -1; }

/* ── Loading / error ──────────────────────────────────────────────── */
.scc-loading {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 20px; color: #334155; font-size: 13px;
}
.scc-spinner {
  width: 24px; height: 24px;
  border: 2px solid #1a2535; border-top-color: #3b82f6;
  border-radius: 50%; animation: scc-spin 0.65s linear infinite;
}
@keyframes scc-spin { to { transform: rotate(360deg); } }

.scc-refreshing-bar {
  height: 2px; background: #131c28; overflow: hidden; position: relative;
  margin-bottom: 2px;
}
.scc-refreshing-bar::after {
  content: ""; position: absolute; top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: scc-scan 1s linear infinite;
}
@keyframes scc-scan { to { left: 140%; } }

/* ── Base card ────────────────────────────────────────────────────── */
.scc-card {
  background: #0f1724;
  border: 1px solid #1a2535;
  border-radius: 6px;
  overflow: hidden;
}
.scc-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid #131c28;
  background: #0b1220;
}
.scc-card-title {
  font-size: 9px; font-weight: 600; color: #4a6080;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.scc-card-badge {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: 3px; border: 1px solid transparent;
}
.scc-card-badge.bull    { color: #4ade80; border-color: #166534; background: rgba(34,197,94,0.06); }
.scc-card-badge.bear    { color: #f87171; border-color: #7f1d1d; background: rgba(239,68,68,0.06); }
.scc-card-badge.neutral { color: #64748b; border-color: #1e2d3d; background: transparent; }
.scc-card-badge.warning { color: #fbbf24; border-color: #78350f; background: rgba(245,158,11,0.06); }

/* ── Score panel ──────────────────────────────────────────────────── */
.scc-score-meter-wrap {
  padding: 8px 10px 4px;
  display: flex; flex-direction: column; gap: 3px;
}
.scc-score-meter-track {
  position: relative; height: 7px;
  background: linear-gradient(90deg, #5c1919 0%, #1e293b 42%, #1e293b 58%, #14532d 100%);
  border-radius: 4px;
}
.scc-score-meter-fill {
  position: absolute; top: 0; height: 100%; border-radius: 4px;
}
.scc-score-meter-needle {
  position: absolute; top: -3px; width: 2px; height: 13px;
  background: #e2e8f0; border-radius: 1px; transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(226,232,240,0.5);
}
.scc-score-axis {
  display: flex; justify-content: space-between;
  font-size: 8px; color: #2a3a4e;
}
.scc-score-main {
  display: flex; align-items: baseline; gap: 8px;
  padding: 4px 10px 0;
}
.scc-score-number {
  font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
}
.scc-score-number.bull { color: #4ade80; }
.scc-score-number.bear { color: #f87171; }
.scc-score-number.neutral { color: #64748b; }
.scc-score-label-text { font-size: 12px; font-weight: 600; color: #94a3b8; }
.scc-score-stats {
  display: flex;
  border-top: 1px solid #131c28;
  margin-top: 6px;
}
.scc-score-stat {
  flex: 1; text-align: center; padding: 4px 0;
  border-right: 1px solid #131c28;
}
.scc-score-stat:last-child { border-right: none; }
.scc-score-stat-val { font-size: 13px; font-weight: 700; color: #c8d0df; }
.scc-score-stat-lbl { font-size: 9px; color: #334155; margin-top: 1px; }
.scc-score-summary {
  padding: 5px 10px 7px;
  font-size: 10px; color: #4a6080; line-height: 1.45;
  border-top: 1px solid #131c28;
}

/* ── Drivers panel ────────────────────────────────────────────────── */
.scc-drivers-body { padding: 4px 10px 6px; }
.scc-drivers-section-label {
  font-size: 9px; font-weight: 600; color: #334155;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 0 2px;
  border-top: 1px solid #0f1724;
  margin-top: 2px;
}
.scc-drivers-section-label:first-child { border-top: none; margin-top: 0; padding-top: 2px; }
.scc-driver-row {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 3px 0; border-bottom: 1px solid #0d1520; font-size: 11px;
}
.scc-driver-row:last-child { border-bottom: none; }
.scc-driver-row .scc-dot { margin-top: 2px; flex-shrink: 0; }
.scc-driver-row-name { flex: 1; color: #7a8fa8; }
.scc-driver-row-str  { font-size: 10px; color: #334155; white-space: nowrap; }
.scc-driver-row.bull .scc-driver-row-name { color: #86efac; }
.scc-driver-row.bear .scc-driver-row-name { color: #fca5a5; }
.scc-driver-row.risk .scc-driver-row-name { color: #fcd34d; }

/* ── Data health ──────────────────────────────────────────────────── */
.scc-health-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-bottom: 1px solid #0d1520; font-size: 11px;
}
.scc-health-row:last-child { border-bottom: none; }
.scc-health-name { flex: 1; color: #4a6080; font-size: 10px; }
.scc-health-status {
  font-size: 9px; padding: 1px 5px; border-radius: 2px; white-space: nowrap;
}
.scc-health-status.ok      { color: #4ade80; background: rgba(34,197,94,0.07); }
.scc-health-status.warn    { color: #fbbf24; background: rgba(245,158,11,0.07); }
.scc-health-status.error   { color: #f87171; background: rgba(239,68,68,0.07); }
.scc-health-status.loading { color: #60a5fa; background: rgba(59,130,246,0.07); }

/* ── Signal matrix ────────────────────────────────────────────────── */
.scc-matrix-table { width: 100%; border-collapse: collapse; }
.scc-matrix-table th {
  font-size: 9px; color: #334155; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 8px; border-bottom: 1px solid #131c28;
  text-align: left; background: #0b1220; white-space: nowrap;
}
.scc-matrix-table th:not(:first-child) { text-align: center; }
.scc-matrix-row { border-bottom: 1px solid #0d1520; cursor: default; }
.scc-matrix-row:last-child { border-bottom: none; }
.scc-matrix-row td { padding: 5px 8px; vertical-align: middle; }
.scc-matrix-td-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #7a8fa8;
}
.scc-matrix-td-name strong { color: #b0bdd0; font-weight: 600; }
.scc-matrix-score-wrap { display: flex; align-items: center; gap: 4px; }
.scc-matrix-score-bar {
  width: 44px; height: 4px; background: #182030; border-radius: 2px;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.scc-matrix-score-fill {
  position: absolute; top: 0; height: 100%; border-radius: 2px;
}
.scc-matrix-score-fill.bull { background: #22c55e; left: 50%; }
.scc-matrix-score-fill.bear { background: #ef4444; right: 50%; }
.scc-matrix-score-fill.neutral { width: 0 !important; }
.scc-matrix-score-num {
  font-size: 11px; font-weight: 700; min-width: 28px; text-align: right; white-space: nowrap;
}
.scc-matrix-score-num.bull { color: #4ade80; }
.scc-matrix-score-num.bear { color: #f87171; }
.scc-matrix-score-num.neutral { color: #3d5068; }
.scc-matrix-td-center { text-align: center; font-size: 10px; color: #4a6080; }

/* ── Confluence card ──────────────────────────────────────────────── */
.scc-confluence-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: #131c28;
}
.scc-confluence-half { padding: 8px 10px; background: #0f1724; }
.scc-confluence-sub-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #334155; margin-bottom: 4px;
}
.scc-confluence-sig {
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
}
.scc-confluence-sig-name { font-size: 11px; font-weight: 600; }
.scc-confluence-sig-name.bull { color: #4ade80; }
.scc-confluence-sig-name.bear { color: #f87171; }
.scc-confluence-sig-name.neutral { color: #4a6080; }
.scc-confluence-detail { font-size: 10px; color: #3d5068; line-height: 1.4; margin-bottom: 4px; }
.scc-confluence-align {
  padding: 5px 10px;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid #131c28; font-size: 11px;
}
.scc-confluence-align-label { font-weight: 600; }
.scc-confluence-align-label.aligned { color: #4ade80; }
.scc-confluence-align-label.conflict { color: #fbbf24; }
.scc-confluence-align-label.no-signal { color: #4a6080; }
.scc-confluence-score-str { font-size: 10px; color: #334155; margin-left: auto; }

/* ── Qi cycle half ────────────────────────────────────────────────── */
.scc-qi-half { position: relative; }
.scc-qi-cycle-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
}
.scc-qi-phase-badge {
  font-size: 8px; font-weight: 700; letter-spacing: 0.06em;
  padding: 1px 4px; border-radius: 3px; text-transform: uppercase;
  margin-left: auto; flex-shrink: 0;
}
.scc-qi-phase-badge.bull    { color: #4ade80; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); }
.scc-qi-phase-badge.bear    { color: #f87171; background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.25); }
.scc-qi-phase-badge.warn    { color: #fbbf24; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); }
.scc-qi-phase-badge.neutral { color: #4a6080; background: rgba(74,96,128,0.10); border: 1px solid #1e2d3d; }
.scc-qi-evidence {
  font-size: 9px; color: #2a7a5a; margin-bottom: 3px; line-height: 1.3;
}
.scc-qi-warn {
  font-size: 9px; color: #b45309; margin-bottom: 3px; line-height: 1.3;
}
.scc-qi-footer {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px;
}
.scc-qi-td-count {
  font-size: 9px; font-weight: 600; color: #4a6080;
  padding: 1px 4px; border-radius: 2px; background: #0b1220; border: 1px solid #1e2d3d;
}
.scc-qi-ago {
  font-size: 9px; color: #334155; margin-left: auto;
}

/* ── Technical table ──────────────────────────────────────────────── */
.scc-tech-table { width: 100%; border-collapse: collapse; }
.scc-tech-table th {
  font-size: 9px; color: #334155; font-weight: 500; text-align: left;
  padding: 3px 8px; border-bottom: 1px solid #131c28; background: #0b1220;
  white-space: nowrap;
}
.scc-tech-table th:not(:first-child) { text-align: right; }
.scc-tech-group-row td {
  padding: 3px 8px 2px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #2a3a4e; font-weight: 600; background: #0b1220;
  border-top: 1px solid #131c28;
}
.scc-tech-row { border-bottom: 1px solid #0d1520; }
.scc-tech-row:last-child { border-bottom: none; }
.scc-tech-row td { padding: 4px 8px; vertical-align: middle; }
.scc-tech-name-cell {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: #7a8fa8;
}
.scc-tech-value { color: #4a6080; font-size: 10px; text-align: right; white-space: nowrap; }
.scc-tech-conf  { color: #334155; font-size: 10px; text-align: right; }
.scc-tech-str-cell { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.scc-tech-str-bar {
  width: 32px; height: 3px; background: #182030; border-radius: 2px; overflow: hidden;
}
.scc-tech-str-fill { height: 100%; border-radius: 2px; }
.scc-tech-str-fill.bull { background: #22c55e; }
.scc-tech-str-fill.bear { background: #ef4444; }
.scc-tech-str-fill.neutral { background: #334155; }
.scc-tech-str-fill.warning { background: #f59e0b; }
.scc-tech-str-num { font-size: 9px; color: #334155; min-width: 18px; }

/* ── Quant rows ───────────────────────────────────────────────────── */
.scc-quant-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-bottom: 1px solid #0d1520; font-size: 11px;
}
.scc-quant-row:last-child { border-bottom: none; }
.scc-quant-name { flex: 1; color: #7a8fa8; }
.scc-quant-val  { font-size: 10px; color: #334155; min-width: 36px; text-align: right; }
.scc-quant-row.inactive { opacity: 0.45; }

/* ── Generic pills ────────────────────────────────────────────────── */
.scc-pill {
  display: inline-block; font-size: 9px; padding: 1px 5px; border-radius: 2px;
  border: 1px solid transparent; white-space: nowrap;
}
.scc-pill.bull    { color: #4ade80; border-color: #166534; background: rgba(34,197,94,0.06); }
.scc-pill.bear    { color: #f87171; border-color: #7f1d1d; background: rgba(239,68,68,0.06); }
.scc-pill.neutral { color: #64748b; border-color: #1e2d3d; }
.scc-pill.warning { color: #fbbf24; border-color: #78350f; background: rgba(245,158,11,0.06); }
.scc-pill.inactive{ color: #334155; border-color: #182030; }
.scc-pill.unavail { color: #2a3a4e; border-color: #182030; font-style: italic; }

/* ── Matrix pills (slightly larger) ─────────────────────────────── */
.scc-mpill {
  display: inline-block; font-size: 9px; padding: 1px 6px; border-radius: 2px;
  border: 1px solid transparent; white-space: nowrap;
}
.scc-mpill.bull    { color: #4ade80; border-color: #166534; background: rgba(34,197,94,0.06); }
.scc-mpill.bear    { color: #f87171; border-color: #7f1d1d; background: rgba(239,68,68,0.06); }
.scc-mpill.neutral { color: #64748b; border-color: #1e2d3d; }
.scc-mpill.warning { color: #fbbf24; border-color: #78350f; background: rgba(245,158,11,0.06); }
.scc-mpill.unavail { color: #2a3a4e; border-color: #182030; font-style: italic; }

/* ── Options: stat tiles ──────────────────────────────────────────── */
.scc-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #131c28;
}
.scc-stat-tile { padding: 5px 8px; background: #0f1724; }
.scc-stat-tile-label { font-size: 9px; color: #2a3a4e; margin-bottom: 2px; }
.scc-stat-tile-value { font-size: 13px; font-weight: 700; color: #c0cad8; line-height: 1; }
.scc-stat-tile-value.bull { color: #4ade80; }
.scc-stat-tile-value.bear { color: #f87171; }
.scc-stat-tile-value.warn { color: #fbbf24; }
.scc-stat-tile-value.sm   { font-size: 11px; }
.scc-stat-tile-sub { font-size: 9px; color: #2a3a4e; margin-top: 1px; }

/* ── Options: bias bar ────────────────────────────────────────────── */
.scc-bias-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-top: 1px solid #131c28;
}
.scc-bias-label { font-size: 9px; color: #2a3a4e; white-space: nowrap; }
.scc-bias-track {
  flex: 1; height: 5px; border-radius: 3px;
  background: #182030; overflow: hidden; position: relative;
}
.scc-bias-fill-call {
  position: absolute; top: 0; left: 0; height: 100%;
  background: #2563eb; border-radius: 3px 0 0 3px;
}
.scc-bias-fill-put {
  position: absolute; top: 0; right: 0; height: 100%;
  background: #dc2626; border-radius: 0 3px 3px 0;
}
.scc-bias-pct-call { font-size: 9px; color: #60a5fa; }
.scc-bias-pct-put  { font-size: 9px; color: #f87171; }

/* ── Options: strike table ────────────────────────────────────────── */
.scc-strike-wrap { overflow-x: auto; }
.scc-strike-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.scc-strike-table th {
  padding: 3px 5px; color: #2a3a4e; font-weight: 500;
  border-bottom: 1px solid #131c28; text-align: right; white-space: nowrap;
  background: #0b1220;
}
.scc-strike-table th:first-child { text-align: left; }
.scc-strike-table td {
  padding: 3px 5px; text-align: right; color: #4a6080;
  border-bottom: 1px solid #0d1520;
}
.scc-strike-table td:first-child { text-align: left; font-weight: 600; color: #7a8fa8; }
.scc-strike-table tr:last-child td { border-bottom: none; }
.scc-strike-table tr.atm td { background: rgba(59,130,246,0.04); }
.scc-strike-table tr.atm td:first-child { color: #93c5fd; }
.scc-col-call { color: #60a5fa !important; }
.scc-col-put  { color: #f87171 !important; }
.scc-col-bull { color: #4ade80 !important; }
.scc-col-bear { color: #fca5a5 !important; }
.scc-strike-tag {
  font-size: 8px; padding: 0 3px; border-radius: 2px; vertical-align: middle; margin-left: 3px;
}
.scc-strike-tag.call { color: #60a5fa; background: rgba(96,165,250,0.1); }
.scc-strike-tag.put  { color: #f87171; background: rgba(248,113,113,0.1); }

/* ── S/R ladder ───────────────────────────────────────────────────── */
.scc-ladder { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; }
.scc-ladder-row {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 6px; border-radius: 3px; font-size: 11px;
  border: 1px solid transparent;
}
.scc-ladder-row.resistance { border-color: #2d0a0a; background: rgba(239,68,68,0.03); }
.scc-ladder-row.support    { border-color: #0f3020; background: rgba(34,197,94,0.03); }
.scc-ladder-row.pivot      { border-color: #172038; background: rgba(59,130,246,0.03); }
.scc-ladder-row.current    {
  border-color: #1e2d3d; background: #131d2e;
  font-weight: 700; color: #e2e8f0; font-size: 12px;
  justify-content: center; letter-spacing: 0.02em;
}
.scc-ladder-price {
  font-weight: 600; min-width: 54px; font-variant-numeric: tabular-nums;
}
.scc-ladder-row.resistance .scc-ladder-price { color: #f87171; }
.scc-ladder-row.support    .scc-ladder-price { color: #4ade80; }
.scc-ladder-row.pivot      .scc-ladder-price { color: #93c5fd; }
.scc-ladder-source {
  font-size: 8px; padding: 1px 4px; border-radius: 2px;
  background: #0d1520; color: #334155; border: 1px solid #182030; white-space: nowrap;
}
.scc-ladder-label {
  flex: 1; font-size: 10px; color: #2a3a4e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scc-ladder-str {
  width: 26px; height: 2px; background: #182030; border-radius: 1px; overflow: hidden; flex-shrink: 0;
}
.scc-ladder-str-fill { height: 100%; border-radius: 1px; }
.scc-ladder-row.resistance .scc-ladder-str-fill { background: #dc2626; }
.scc-ladder-row.support    .scc-ladder-str-fill { background: #16a34a; }
.scc-ladder-row.pivot      .scc-ladder-str-fill { background: #2563eb; }
.scc-ladder-dist { font-size: 9px; color: #2a3a4e; min-width: 36px; text-align: right; white-space: nowrap; }

/* ── Risk tiles ───────────────────────────────────────────────────── */
.scc-risk-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: #131c28;
}
.scc-risk-tile { padding: 6px 10px; background: #0f1724; }
.scc-risk-tile-label { font-size: 9px; color: #2a3a4e; margin-bottom: 2px; }
.scc-risk-tile-value { font-size: 13px; font-weight: 700; color: #c0cad8; line-height: 1; }
.scc-risk-tile-value.high { color: #f87171; }
.scc-risk-tile-value.warn { color: #fbbf24; }
.scc-risk-tile-value.low  { color: #4ade80; }
.scc-risk-tile-note { font-size: 9px; color: #2a3a4e; margin-top: 2px; }
.scc-risk-warn-row {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 5px 10px; font-size: 10px; color: #fbbf24;
  background: rgba(245,158,11,0.04); border-top: 1px solid #131c28; line-height: 1.4;
}

/* ── Signal dots ──────────────────────────────────────────────────── */
.scc-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; transition: box-shadow 0.2s;
}
.scc-dot.lg { width: 10px; height: 10px; }
.scc-dot.bull    { background: #22c55e; }
.scc-dot.bear    { background: #ef4444; }
.scc-dot.neutral { background: #2a3a4e; }
.scc-dot.warning { background: #f59e0b; }
.scc-dot.unavail { background: #182030; border: 1px solid #2a3a4e; }
.scc-dot.bull.glow-1  { box-shadow: 0 0 3px 1px rgba(34,197,94,0.25); }
.scc-dot.bull.glow-2  { box-shadow: 0 0 6px 2px rgba(34,197,94,0.45); }
.scc-dot.bull.glow-3  { box-shadow: 0 0 10px 3px rgba(34,197,94,0.65); }
.scc-dot.bull.pulse   { animation: scc-pulse-bull 1.8s ease-in-out infinite; }
.scc-dot.bear.glow-1  { box-shadow: 0 0 3px 1px rgba(239,68,68,0.25); }
.scc-dot.bear.glow-2  { box-shadow: 0 0 6px 2px rgba(239,68,68,0.45); }
.scc-dot.bear.glow-3  { box-shadow: 0 0 10px 3px rgba(239,68,68,0.65); }
.scc-dot.bear.pulse   { animation: scc-pulse-bear 1.8s ease-in-out infinite; }
.scc-dot.warning.glow-1 { box-shadow: 0 0 4px 1px rgba(245,158,11,0.4); }
@keyframes scc-pulse-bull {
  0%, 100% { box-shadow: 0 0 10px 3px rgba(34,197,94,0.65); }
  50%       { box-shadow: 0 0 18px 6px rgba(34,197,94,0.9); }
}
@keyframes scc-pulse-bear {
  0%, 100% { box-shadow: 0 0 10px 3px rgba(239,68,68,0.65); }
  50%       { box-shadow: 0 0 18px 6px rgba(239,68,68,0.9); }
}

/* ── Unavailable block ────────────────────────────────────────────── */
.scc-unavail-block {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; font-size: 11px; color: #334155;
}
.scc-unavail-icon { font-size: 16px; color: #182030; }

/* ── Footer ───────────────────────────────────────────────────────── */
#sccFooter {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 4px 14px; background: #070b11; border-top: 1px solid #131c28;
  font-size: 9px; color: #182030;
}
#sccFooterStatus { margin-left: auto; }

/* ── Open button on signals tab ───────────────────────────────────── */
.scc-open-btn-wrap { display: flex; justify-content: flex-end; padding: 0 0 12px; }
#sccOpenBtn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 6px;
  border: 1px solid #2563eb; background: rgba(37,99,235,0.1);
  color: #60a5fa; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.14s;
}
#sccOpenBtn:hover { background: rgba(37,99,235,0.2); color: #93c5fd; border-color: #3b82f6; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  #sccBody { grid-template-columns: 230px 1fr; }
  .scc-col-left   { grid-column: 1; }
  .scc-col-center { grid-column: 2; }
  .scc-col-right  { grid-column: 1 / -1; }
  .scc-stat-grid  { grid-template-columns: repeat(4, 1fr); }
  .scc-risk-grid  { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 660px) {
  #sccModal { border-radius: 0; height: 100vh; }
  #sccOverlay { align-items: flex-start; }
  #sccBody { grid-template-columns: 1fr; padding: 6px; }
  .scc-col-left, .scc-col-center, .scc-col-right { grid-column: 1; }
  .scc-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .scc-confluence-grid { grid-template-columns: 1fr; }
}
