/* ═══════════════════════════════════════════════════════════════════════
   signal.css — Page 3: Signal Tab + Liquidity Tab
   Components: signal wrap, score bar, factor table, history,
               price levels, liq bar, cluster rows
   ═══════════════════════════════════════════════════════════════════════ */

/* ── SIGNAL TAB LAYOUT ───────────────────────────────────────────────── */
#signal-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-top: 3px solid var(--green);
  padding: 20px;
  margin-bottom: 12px;
  animation: fadeIn .2s ease;
}

[data-theme="night"] #signal-wrap {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
[data-theme="corporate"] #signal-wrap {
  box-shadow: 0 2px 12px rgba(1, 65, 28, 0.06);
}

/* ── SIGNAL TOP (score + direction) ──────────────────────────────────── */
.sig-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.sig-stat .s-lbl {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sig-stat .s-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}

/* ── SCORE BAR ───────────────────────────────────────────────────────── */
.score-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.score-bar {
  background: var(--bg3);
  height: 8px;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.score-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  transition: all .5s ease;
}

/* ── FACTOR TABLE ────────────────────────────────────────────────────── */
.factor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: var(--mono);
}

.factor-table th {
  text-align: left;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  background: var(--bg1);
}
.factor-table th:first-child { border-radius: 6px 0 0 0; }
.factor-table th:last-child  { border-radius: 0 6px 0 0; }

.factor-table td {
  padding: 7px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--white);
  transition: background .12s;
}

.factor-table tr:last-child td { border-bottom: none; }
.factor-table tr:hover td     { background: var(--bg2); }

/* Factor inline bar */
.f-bar {
  display: inline-block;
  height: 3px;
  vertical-align: middle;
  margin-left: 8px;
  border-radius: 2px;
}

/* ── PRICE LEVELS GRID ───────────────────────────────────────────────── */
.levels-grid {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 16px;
}

/* ── SIGNAL HISTORY ──────────────────────────────────────────────────── */
.sig-history-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

.sig-history-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}

.sig-history-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

.sig-history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
}

.sig-history-table th {
  text-align: left;
  color: var(--dimmer);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  background: var(--bg1);
}

.sig-history-table td {
  padding: 7px 12px;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  transition: background .1s;
}

.sig-history-table tr:last-child td { border-bottom: none; }
.sig-history-table tr:hover td     { background: var(--bg2); }

/* ── NO DATA STATES ──────────────────────────────────────────────────── */
.no-signal {
  text-align: center;
  padding: 48px 24px;
  color: var(--dim);
}

.no-signal strong {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: .05em;
}

.no-signal p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dimmer);
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════════════
   LIQUIDITY TAB — same file, different panel
   ═══════════════════════════════════════════════════════════════════════ */

/* Liquidity stat cells */
.liq-stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }

/* Bias bar */
.liq-bar-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 4px solid var(--green);
}

[data-theme="corporate"] .liq-bar-wrap { border-left-color: var(--green); }
[data-theme="night"]     .liq-bar-wrap { border-left-color: var(--green); }

.liq-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.liq-bar {
  height: 10px;
  background: var(--bg3);
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.liq-bar-short {
  position: absolute;
  left: 0;
  height: 100%;
  background: var(--green);
  transition: width .5s ease;
  border-radius: 5px 0 0 5px;
}

.liq-bar-long {
  position: absolute;
  right: 0;
  height: 100%;
  background: var(--red);
  transition: width .5s ease;
  border-radius: 0 5px 5px 0;
}

.liq-bias {
  text-align: center;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Cluster liquidation panels */
.liq-clusters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cluster-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 14px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
}

.cluster-header.squeeze {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green);
}
.cluster-header.cascade {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red);
}

.cluster-row {
  display: grid;
  grid-template-columns: 24px 1fr 70px 80px 55px;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  transition: background .12s;
}
.cluster-row:last-child { border-radius: 0 0 6px 6px; }
.cluster-row:hover { background: var(--bg2); }

.cr-sym   { font-size: 14px; text-align: center; }
.cr-price { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--white); }
.cr-bar   { height: 4px; border-radius: 2px; }
.cr-usd   { font-family: var(--mono); font-size: 11px; color: var(--green); text-align: right; font-weight: 700; }
.cr-dist  { font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; }

.price-marker {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-top: none;
  padding: 9px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .06em;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sig-top        { grid-template-columns: 1fr; gap: 16px; }
  .liq-clusters   { grid-template-columns: 1fr; }
  .liq-stats      { grid-template-columns: 1fr 1fr; }
  .levels-grid    { grid-template-columns: repeat(3, 1fr); }
  .cluster-row    { grid-template-columns: 24px 1fr 70px 50px; }
  .cr-dist        { display: none; }
}

@media (max-width: 600px) {
  #signal-wrap    { padding: 14px; }
  .sig-stat .s-val { font-size: 18px; }
  .factor-table th, .factor-table td { padding: 6px 8px; }
  .liq-bar-wrap   { padding: 12px 14px; }
}

/* ── EXCHANGE TOGGLES (Liquidity tab filter row) ─────────────────────── */
#exchange-toggles {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 12px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.ex-toggle {
  padding: 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  cursor: pointer; border: 1px solid; border-radius: 2px; transition: all .15s;
  user-select: none;
}
.toggle-on   { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.toggle-off  { background: var(--bg2);      color: var(--dimmer); border-color: var(--border2); }
.toggle-on:hover   { background: var(--green); color: #fff; }
.toggle-off:hover  { background: var(--bg3); color: var(--dim); }
.toggle-all  { background: var(--green); color: #fff; border-color: var(--green); font-size: 10px; }
.toggle-none { background: var(--bg2); color: var(--dim); border-color: var(--border2); font-size: 10px; }
.toggle-all:hover  { background: var(--green-lt); }
.toggle-none:hover { background: var(--bg3); }

/* ═══════════════════════════════════════════════════════════════════════
   Phase 2: Live signal card classes (replaces inline styles in signal.js)
   ═══════════════════════════════════════════════════════════════════════ */

/* No-data state with spacing */
.no-data-mb { margin-bottom: 16px; }

/* Signal card top header row */
.sig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green); /* overridden inline for signal type color */
}
.sig-header-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.sig-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* NEW signal badge pulse */
.sig-new-announce { margin-bottom: 10px; }

/* Signal type mini-badges (SCALP / BREAKOUT / REJECTION) */
.sig-type-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  letter-spacing: .1em;
  border: 1px solid;
  border-radius: 3px;
}
.sig-type-scalp     { background: rgba(124,58,237,.18); color: #a78bfa; border-color: #7c3aed; }
.sig-type-breakout  { background: rgba(8,145,178,.18);  color: #67e8f9; border-color: #0891b2; }
.sig-type-rejection { background: rgba(194,65,12,.18);  color: #fb923c; border-color: #c2410c; }

/* Forensic flags banner */
.sig-forensic-banner {
  background: var(--red-bg);
  border: 1px solid var(--red);
  border-left: 4px solid var(--red);
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 4px;
}
.sig-forensic-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.sig-forensic-flag {
  font-size: 11px;
  color: var(--red);
  margin-bottom: 3px;
}

/* Score stat — larger than default .s-val */
.s-val-score {
  font-size: 28px;
  color: var(--white); /* overridden inline: green/red/dim */
}
.s-val-score-unit {
  font-size: 14px;
  color: var(--dim);
}

/* Confidence unit */
.s-val-unit {
  font-size: 14px;
  color: var(--dim);
}

/* Price stat */
.s-val-price {
  font-size: 24px;
  color: var(--green);
}

/* Regime stat — smaller */
.s-val-regime { font-size: 14px; }

/* sig-stat spacing variants */
.sig-stat-mb { margin-bottom: 14px; }

/* Section titles with top spacing */
.section-title-mt    { margin-top: 8px; }
.section-title-mt-lg { margin-top: 20px; }

/* Factor table: score cell */
.ft-score { font-weight: 600; }

/* Factor table: signal text and detail columns */
.ft-signal { color: var(--green); font-size: 11px; }
.ft-detail  { color: var(--dim);   font-size: 11px; }

/* ═══════════════════════════════════════════════════════════════════════
   Phase 3: Liquidity tab helper classes (replaces inline in liquidity.js)
   ═══════════════════════════════════════════════════════════════════════ */

/* Loading indicator */
.liq-loading-state {
  text-align: center;
  padding: 40px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .1em;
}

/* Subtle "↻ updating…" badge shown during background refresh */
.liq-refresh-badge {
  margin-left: auto;
  font-size: 10px;
  color: var(--amber, #f59e0b);
  letter-spacing: .08em;
  animation: liq-pulse 1.2s ease-in-out infinite;
}
@keyframes liq-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* "EXCHANGES" filter label */
.liq-toggle-label {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: 10px;
}

/* Stats section top margin */
.liq-stats { margin-top: 14px; }

/* Large liquidity value (22px override for reused .c-val) */
.c-val-liq { font-size: 22px; }

/* L/S ratio footer row */
.liq-ls-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
}
.liq-ls-row strong { color: var(--white); }
.liq-ls-row .text-green { color: var(--green); font-weight: 600; }
.liq-ls-row .text-bold  { font-weight: 700; letter-spacing: .1em; }  /* bias label — color stays inline */

/* Cluster bar fill (height/border-radius static; width+bg dynamic) */
.cr-bar-fill { height: 4px; border-radius: 2px; }

/* Small no-data variant for cluster sections */
.no-data-sm { padding: 16px; font-size: 11px; }

/* no-data with top margin for liquidity error state */
.no-data-mt { margin-top: 16px; }

/* Phase 7: liq-labels bold spans, liq-stats price color */
.liq-labels .pos, .liq-labels .neg { font-weight: 600; }
.liq-stats .c-val-liq.pos-price     { color: var(--green); } /* replaces style="color:var(--green)" */
.cell .c-sub .text-green            { font-weight: 600; }    /* replaces style="font-weight:600" on exUsed span */

/* ── TRADING MODE SELECTOR ────────────────────────────────────────────────── */
.sig-mode-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.sig-mode-bar-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sig-mode-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sig-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}

.sig-mode-tab:hover {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.sig-mode-tab.active {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  border-color: var(--accent);
  color: var(--white);
}

.sig-mode-icon  { font-size: 13px; }
.sig-mode-lbl   { letter-spacing: .04em; }

.sig-mode-count {
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  letter-spacing: 0;
}

.sig-mode-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 4px var(--green);
  animation: pulse-dot 1.4s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* Mode context card */
.sig-mode-context {
  margin-top: 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 6px;
  font-size: 12px;
}

.sig-mode-context-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.sig-mode-context-status {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.sig-mode-context-tip {
  color: var(--dim);
  font-size: 11px;
  font-family: var(--mono);
}

.sig-mode-context-meta {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.sig-mode-ctx-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── LIQUIDITY SUB-TABS ───────────────────────────────────────────────────── */
.liq-sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  padding: 0 16px;
  margin-bottom: 0;
}
.liq-sub-tab {
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--dim);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.liq-sub-tab:hover  { color: var(--text); }
.liq-sub-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── CME GAPS PANEL ──────────────────────────────────────────────────────── */
.cme-wrap {
  padding: 16px 20px 20px;
  max-width: 960px;
}

.cme-header { margin-bottom: 14px; }
.cme-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cme-subtitle {
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}
.cme-refresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--dim);
  font-size: 13px;
  padding: 2px 7px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  line-height: 1;
}
.cme-refresh-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Context bar */
.cme-context-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.cme-ctx-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}
.cme-ctx-cell.cme-ctx-inside {
  border-color: var(--red, #ef4444);
  background: rgba(239, 68, 68, .06);
  animation: cme-inside-pulse 1.2s ease infinite;
}
@keyframes cme-inside-pulse {
  0%,100% { border-color: #ef4444; }
  50%      { border-color: rgba(239,68,68,.3); }
}
.cme-ctx-lbl {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.cme-ctx-val {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.cme-ctx-above { color: #22c55e; }
.cme-ctx-below { color: #f59e0b; }
.cme-ctx-stat  { color: var(--accent); }

/* Section headers */
.cme-section-hdr {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--dim);
  text-transform: uppercase;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  margin-bottom: 4px;
}
.cme-section-hdr-filled { color: var(--dim); opacity: .6; margin-top: 16px; }

/* Gap rows */
.cme-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 6px;
  transition: border-color .15s;
}
.cme-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

.cme-row-inside {
  border-color: #ef4444;
  background: rgba(239,68,68,.05);
  animation: cme-inside-pulse 1.2s ease infinite;
}
.cme-row-above  { border-left: 3px solid #22c55e; }
.cme-row-below  { border-left: 3px solid #f59e0b; }
.cme-row-filled { opacity: .5; }
.cme-row-filled:hover { opacity: .8; }

.cme-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.cme-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cme-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badges */
.cme-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.cme-filled { background: rgba(100,100,100,.15); color: var(--dim); border: 1px solid var(--border); }
.cme-inside { background: rgba(239,68,68,.2); color: #f87171; border: 1px solid rgba(239,68,68,.4); }
.cme-open   { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }

.cme-dir-up { font-size: 11px; font-weight: 700; color: #22c55e; font-family: var(--mono); }
.cme-dir-dn { font-size: 11px; font-weight: 700; color: #ef4444; font-family: var(--mono); }

.cme-range {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}
.cme-size {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.cme-dist {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.cme-dist-above { color: #22c55e; }
.cme-dist-below { color: #f59e0b; }

.cme-magnet {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  cursor: help;
}
.cme-date       { font-size: 10px; color: var(--dim); font-family: var(--mono); }
.cme-age        { font-size: 10px; color: var(--dim); font-family: var(--mono); }
.cme-days-filled{ font-size: 10px; color: #22c55e; font-family: var(--mono); }

/* Fill progress */
.cme-row-fill {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cme-fill-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cme-fill-track { background: var(--bg3); height: 4px; border-radius: 2px; width: 120px; position: relative; display: inline-block; }
.cme-fill-bar   { height: 4px; border-radius: 2px; position: absolute; left: 0; top: 0; transition: width .3s; }
.cme-fill-pct   { font-size: 10px; color: var(--dim); font-family: var(--mono); margin-left: 4px; }

/* Mini gap visualizer bar */
.cme-bar-wrap   { margin-top: 4px; }
.cme-bar-track  {
  position: relative;
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: visible;
}
.cme-bar-gap {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  min-width: 3px;
}
.cme-bar-filled-zone {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  min-width: 3px;
}
.cme-bar-price {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: var(--white);
  border-radius: 1px;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(255,255,255,.5);
}
.cme-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--dim);
  font-family: var(--mono);
  margin-top: 3px;
  padding: 0 1px;
}
.cme-bar-lbl-gap { color: var(--accent); }

/* Footer + misc */
.cme-footer {
  font-size: 10px;
  color: var(--dim);
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 10px;
  font-family: var(--mono);
}
.cme-footer strong { color: var(--text); }
.cme-loading { padding: 20px; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.cme-empty   { padding: 12px; color: var(--dim); font-size: 12px; }
