/* ─── Signal Monitor v2 — 2026-05-12 Phase 3 ───────────────────────── */

.sm-shell {
  display: flex; flex-direction: column;
  height: 100vh;
  font-family: var(--ta-mono, "JetBrains Mono", monospace);
  background: var(--ta-bg, #0c0f12);
  color: var(--ta-text, #e6e6e6);
}

/* Header */
.sm-header {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  border-bottom: 1px solid var(--ta-border, #222);
  background: var(--ta-pane, #131722);
  position: sticky; top: 0; z-index: 10;
}
/* .sm-menu-btn removed 2026-05-13 — replaced by .ta-inline-menu-btn (shared) */
.sm-title { font-weight: 700; font-size: 14px; }
.sm-spacer { flex: 1; }
.sm-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--ta-text-2, #aaa);
  cursor: pointer;
}
.sm-clock {
  font-family: var(--ta-mono);
  font-size: 12px;
  color: var(--ta-text-3, #888);
  min-width: 64px;
  text-align: right;
}

/* Filter bar */
.sm-filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ta-border);
  background: var(--ta-pane-2, #0e1218);
  overflow-x: auto;
}
.sm-loading-strip { font-size: 11px; color: var(--ta-text-dim); }
.sm-sport-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--ta-card-elev, #1a1f2e);
  border: 1px solid var(--ta-border);
  border-radius: 14px;
  font-size: 11px;
  color: var(--ta-text-2, #aaa);
  cursor: pointer;
  transition: background 0.08s;
  font-family: var(--ta-mono);
}
.sm-sport-chip:hover { background: var(--ta-active, #1d3a5f); color: var(--ta-text-hi, #fff); }
.sm-sport-chip.sm-active {
  background: var(--ta-accent, #5a8cff);
  color: #fff;
  border-color: var(--ta-accent);
}
.sm-chip-name { font-weight: 700; }
.sm-chip-total {
  background: rgba(0,0,0,0.3);
  padding: 0 6px;
  border-radius: 8px;
  font-size: 10px;
}
.sm-chip-light {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.sm-chip-light.sm-green { background: rgba(52,211,153,0.18); color: #34d399; }
.sm-chip-light.sm-amber { background: rgba(245,158,11,0.18); color: #f59e0b; }
.sm-chip-light.sm-red   { background: rgba(255,88,112,0.18); color: #ff5870; }

/* Body */
.sm-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  flex: 1;
  overflow: hidden;
}
.sm-body.sm-detail-closed { grid-template-columns: 1fr 0; }

.sm-grid-wrap {
  overflow-y: auto;
  padding: 12px 14px 40px;
}
.sm-loading, .sm-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--ta-text-dim, #666);
  font-style: italic;
}
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* Match card */
.sm-card {
  background: var(--ta-pane, #131722);
  border: 1px solid var(--ta-border);
  border-left: 4px solid var(--ta-border);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.08s, border-color 0.08s;
}
.sm-card:hover { transform: translateY(-1px); border-color: var(--ta-accent, #5a8cff); }
.sm-card-sm-green { border-left-color: #34d399; }
.sm-card-sm-amber { border-left-color: #f59e0b; }
.sm-card-sm-red   { border-left-color: #ff5870; box-shadow: 0 0 0 1px rgba(255,88,112,0.12); }

.sm-card-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  color: var(--ta-text-3, #888);
  margin-bottom: 6px;
}
.sm-light-pip { font-size: 11px; line-height: 1; }
.sm-light-pip.sm-green { color: #34d399; animation: sm-pulse-green 2s ease-in-out infinite; }
.sm-light-pip.sm-amber { color: #f59e0b; }
.sm-light-pip.sm-red   { color: #ff5870; animation: sm-pulse-red 1s ease-in-out infinite; }
/* 2026-05-14 #10 — prematch / no-signal-yet pip — no animation, dim */
.sm-light-pip.sm-dark  { color: #5a6478; opacity: 0.55; }
@keyframes sm-pulse-green {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes sm-pulse-red {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.sm-card-sport {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ta-text-2, #aaa);
}
.sm-card-spacer { flex: 1; }
.sm-card-state {
  font-family: var(--ta-mono);
  background: var(--ta-card-elev);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--ta-text);
}
.sm-card-age {
  font-family: var(--ta-mono);
  font-size: 10px;
  color: var(--ta-text-3);
  min-width: 30px;
  text-align: right;
}

.sm-card-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
}
.sm-team {
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
  color: var(--ta-text);
}
.sm-team-home { text-align: right; }
.sm-team-away { text-align: left; }
.sm-score {
  font-family: var(--ta-mono);
  font-size: 14px;
  font-weight: 800;
  padding: 1px 8px;
  background: var(--ta-card-elev);
  border-radius: 4px;
  min-width: 56px;
  text-align: center;
  color: var(--ta-text-hi, #fff);
}
.sm-card-sm-red .sm-score { color: #ff5870; }

.sm-card-tour {
  display: flex; gap: 6px; align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ta-border-soft, rgba(255,255,255,0.05));
  font-size: 10px;
  color: var(--ta-text-3);
}
.sm-tour-country { font-style: italic; }
.sm-tour-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detail panel */
.sm-detail {
  border-left: 1px solid var(--ta-border);
  background: var(--ta-pane-2, #0e1218);
  overflow-y: auto;
  padding: 0;
  display: none;
}
.sm-detail.sm-detail-open { display: block; }
.sm-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--ta-pane, #131722);
  border-bottom: 1px solid var(--ta-border);
}
.sm-detail-title { font-weight: 700; font-size: 13px; }
.sm-detail-close {
  background: transparent;
  border: none;
  color: var(--ta-text-dim);
  font-size: 18px;
  cursor: pointer;
  width: 24px; height: 24px;
  line-height: 1;
  border-radius: 4px;
}
.sm-detail-close:hover { background: var(--ta-card-elev); color: var(--ta-text); }
.sm-detail-meta {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--ta-text-2);
  border-bottom: 1px solid var(--ta-border);
}
.sm-detail-meta > div { padding: 2px 0; }
.sm-detail-meta code { font-family: var(--ta-mono); color: var(--ta-text); }
.sm-detail-events-loading {
  padding: 20px;
  text-align: center;
  color: var(--ta-text-dim);
  font-style: italic;
}
.sm-detail-events {
  padding: 6px 0;
}
.sm-event {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 8px;
  padding: 5px 14px;
  font-size: 11px;
  border-bottom: 1px solid var(--ta-border-soft, rgba(255,255,255,0.04));
}
.sm-event-time { color: var(--ta-text-3); font-family: var(--ta-mono); }
.sm-event-label { color: var(--ta-text); }
.sm-event-min { color: var(--ta-text-dim); }
.sm-event-state_change .sm-event-label { color: #5a8cff; }
.sm-event-score_change .sm-event-label { color: #34d399; font-weight: 700; }
.sm-event-signal_loss .sm-event-label { color: #ff5870; }
.sm-event-signal_recover .sm-event-label { color: #34d399; }

/* Mobile */
@media (max-width: 720px) {
  .sm-body { grid-template-columns: 1fr; }
  .sm-detail { position: fixed; inset: 50px 0 0 0; z-index: 20; }
}


/* 2026-05-13 stat pills row under teams */
.sm-card-stats {
  display: flex; flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.sm-stat-pill {
  display: inline-flex; align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  background: var(--ta-card-elev, #1a1f2e);
  border: 1px solid var(--ta-border, #222);
  color: var(--ta-text-3, #888);
  font-family: var(--ta-mono);
  letter-spacing: 0.04em;
}
.sm-stat-label { color: var(--ta-text-3, #888); }
.sm-stat-val { color: var(--ta-text-hi, #fff); font-weight: 800; }
.sm-stat-pill.sm-stat-warn { border-color: rgba(245,158,11,0.4); }
.sm-stat-pill.sm-stat-warn .sm-stat-val { color: #f59e0b; }
.sm-stat-pill.sm-stat-bad  { border-color: rgba(255,88,112,0.4); }
.sm-stat-pill.sm-stat-bad  .sm-stat-val { color: #ff5870; }


/* 2026-05-13 detail panel match stats */
.sm-detail-raw { color: var(--ta-text-dim, #555); font-size: 10px; }
.sm-detail-section {
  border-top: 1px solid var(--ta-border, #222);
  padding: 10px 14px;
}
.sm-detail-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ta-text-3, #888);
  margin-bottom: 6px;
}
.sm-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.sm-stat-row {
  display: flex; justify-content: space-between;
  font-size: 11px;
  padding: 2px 0;
}
.sm-stat-row-l { color: var(--ta-text-2, #aaa); }
.sm-stat-row-v {
  font-family: var(--ta-mono);
  color: var(--ta-text-hi, #fff);
  font-weight: 700;
}


/* 2026-05-13 vendor event feed */
.sm-event-feed {
  display: flex; flex-direction: column;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--ta-mono);
}
.sm-event-line {
  padding: 4px 8px;
  font-size: 11px;
  background: var(--ta-card-elev, #1a1f2e);
  border-radius: 4px;
  color: var(--ta-text-2, #aaa);
  border-left: 2px solid var(--ta-border, #222);
  line-height: 1.35;
}
.sm-event-line:hover { color: var(--ta-text, #fff); border-left-color: var(--ta-accent, #5a8cff); }


/* 2026-05-13 ticket exposure pill on card head */
.sm-exposure-pill {
  display: inline-flex; align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.5);
  color: #f59e0b;
  font-family: var(--ta-mono);
}
.sm-exposure-pill .sm-exp-count { color: #f59e0b; }
.sm-exposure-pill .sm-exp-amount { color: #fff; letter-spacing: 0.04em; }


/* 2026-05-13 list mode + tabs + viewmode + sort + sig pill */
.sm-tabs { display: flex; gap: 0; border: 1px solid var(--ta-border, #222); border-radius: 5px; overflow: hidden; }
.sm-tab {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  border: 0;
  color: var(--ta-text-2, #aaa);
  cursor: pointer;
  font-family: inherit;
}
.sm-tab:hover { background: var(--ta-card-elev, #1a1f2e); color: var(--ta-text); }
.sm-tab-active { background: var(--ta-accent, #5a8cff); color: #fff; }

.sm-viewmode { display: flex; gap: 0; border: 1px solid var(--ta-border, #222); border-radius: 5px; overflow: hidden; }
.sm-vm {
  padding: 4px 8px;
  font-size: 13px;
  background: transparent;
  border: 0;
  color: var(--ta-text-2, #aaa);
  cursor: pointer;
}
.sm-vm:hover { background: var(--ta-card-elev, #1a1f2e); }
.sm-vm-active { background: var(--ta-accent, #5a8cff); color: #fff; }

.sm-sort {
  padding: 3px 6px;
  font-size: 10px;
  background: var(--ta-card-elev, #1a1f2e);
  border: 1px solid var(--ta-border, #222);
  color: var(--ta-text-2, #aaa);
  border-radius: 5px;
  font-family: inherit;
  cursor: pointer;
}

.sm-sig-pill {
  display: inline-flex; align-items: center;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(90,140,255,.12);
  color: var(--ta-accent, #5a8cff);
  border: 1px solid rgba(90,140,255,.4);
  font-family: var(--ta-mono);
}

/* List view */
.sm-list {
  background: var(--ta-pane, #131722);
  border: 1px solid var(--ta-border, #222);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--ta-mono);
}
.sm-list-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px 70px 50px 60px 60px 100px;
  gap: 8px;
  padding: 6px 12px;
  align-items: center;
  font-size: 11px;
}
.sm-list-head {
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ta-text-3, #888);
  background: var(--ta-card-elev, #1a1f2e);
  border-bottom: 1px solid var(--ta-border, #222);
  text-transform: uppercase;
  /* 2026-05-13 C.5 — sticky header on scroll */
  position: sticky;
  top: 0;
  z-index: 5;
}
.sm-list-data {
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .08s;
}
.sm-list-data:hover { background: var(--ta-card-elev, #1a1f2e); }
.sm-list-data:last-child { border-bottom: 0; }
.sm-list-c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-list-c-sport {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700;
  color: var(--ta-text-2, #aaa);
  text-transform: uppercase;
  font-size: 9px;
}
.sm-list-c-match { color: var(--ta-text, #e6e6e6); font-weight: 600; font-size: 11px; }
.sm-list-c-state { color: var(--ta-accent, #5a8cff); font-weight: 700; }
.sm-list-c-score { color: var(--ta-text-hi, #fff); font-weight: 800; font-size: 13px; }
.sm-list-c-min { color: #ff5870; font-weight: 700; }
.sm-list-c-sig {
  color: var(--ta-accent, #5a8cff);
  text-align: right;
  font-weight: 700;
}
.sm-list-c-age { color: var(--ta-text-3, #888); text-align: right; font-size: 10px; }
.sm-list-c-exp { color: var(--ta-text-dim, #666); text-align: right; font-weight: 700; }
.sm-list-c-exp-hot { color: #f59e0b !important; }


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Dual-pane Sinjalet (Live | Prematch).
   Mirrors Pranimi pattern. Sports nav at top filters both panels.
   ═════════════════════════════════════════════════════════════════════ */
.sm-body-dual { overflow: hidden; }
.sm-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}
.sm-pane {
  background: var(--ta-pane, #131722);
  border: 1px solid var(--ta-border, #222);
  border-radius: 8px;
  overflow: visible;
  display: flex; flex-direction: column;
  min-width: 0;
}
.sm-pane-live { border-top: 3px solid #ff5870; }
.sm-pane-pre  { border-top: 3px solid #5a8cff; }

.sm-pane-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ta-border, #222);
  background: var(--ta-card-elev, #1a1f2e);
  position: sticky; top: 0; z-index: 6;
  cursor: pointer;
}
.sm-pane-head:hover { background: rgba(255,255,255,0.02); }
/* 2026-05-13 C.3 — collapsed pane: hide body, rotate chevron */
.sm-pane-collapsed .sm-pane-body { display: none !important; }
.sm-pane-chevron {
  display: inline-block;
  transition: transform .15s ease;
  margin-right: 2px;
  color: var(--ta-text-dim, #888);
  font-size: 11px;
}
.sm-pane-collapsed .sm-pane-chevron { transform: rotate(-90deg); }

/* 2026-05-13 C.2 — Critical-only toggle */
.sm-toggle-critical {
  background: rgba(239,68,68,0.08);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
}
.sm-toggle-critical:has(input:checked) {
  background: rgba(239,68,68,0.22);
  color: #ff7080;
  font-weight: 700;
}
.sm-pane-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--ta-text, #e6e6e6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}
.sm-pane-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sm-pane-dot-live { background: #ff5870; box-shadow: 0 0 8px rgba(255,88,112,.7); }
.sm-pane-dot-pre  { background: #5a8cff; }

.sm-pane-count {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--ta-bg, #0c0f12);
  font-size: 10px;
  color: var(--ta-text-2, #aaa);
  font-family: var(--ta-mono);
  font-weight: 700;
}

.sm-pane-tools {
  display: flex; align-items: center; gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.sm-pane-search {
  flex: 1;
  max-width: 280px;
  padding: 5px 10px;
  background: var(--ta-bg, #0c0f12);
  border: 1px solid var(--ta-border, #222);
  border-radius: 5px;
  color: var(--ta-text, #e6e6e6);
  font-family: var(--ta-mono);
  font-size: 11px;
  outline: none;
}
.sm-pane-search:focus { border-color: var(--ta-accent, #5a8cff); }

.sm-pane-body {
  overflow-y: auto;
  padding: 8px 10px 16px;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 200px);
}
.sm-pane-body .sm-grid {
  grid-template-columns: 1fr; /* one card per row in narrow pane */
}
.sm-pane-body .sm-list-row {
  /* slightly tighter columns for dual-pane width */
  grid-template-columns: 80px 1fr 70px 60px 40px 50px 50px 80px;
  font-size: 10.5px;
}



/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Sports carousel chips (matching player frontend)
   Vertical: LIVE badge → circular icon → name underneath. Active = yellow.
   ═════════════════════════════════════════════════════════════════════ */
.sm-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  padding: 8px 4px 6px;
  background: var(--ta-pane-2, #0e1218);
  border-bottom: 1px solid var(--ta-border, #222);
  scrollbar-width: thin;
}
.sm-filter-bar::-webkit-scrollbar { height: 4px; }
.sm-filter-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sm-sport-chip {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  gap: 4px !important;
  min-width: 78px;
  padding: 6px 8px 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--ta-text-2, #aaa);
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  transition: color .12s;
}
.sm-sport-chip:hover {
  color: var(--ta-text-hi, #fff);
  background: rgba(255,255,255,0.02) !important;
}
.sm-sport-chip.sm-active {
  color: #f5b528;
  border-bottom-color: #f5b528 !important;
}

.sm-chip-iconwrap {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  margin: 0 auto;
}
.sm-sport-chip:hover .sm-chip-iconwrap { background: rgba(255,255,255,0.04); }
.sm-sport-chip.sm-active .sm-chip-iconwrap {
  background: rgba(245,181,40,0.08);
  box-shadow: 0 0 12px rgba(245,181,40,0.3);
}

.sm-chip-icon {
  display: block;
  width: 28px;
  height: 28px;
  /* sport-icons.css only sets background-position per sport — need to
     also set the image source + size. Original sprite is 37×4593;
     scaled proportionally to 28-wide keeps percent-Y positions valid. */
  background-image: url(/sport-icons.svg) !important;
  background-size: 28px 3475px !important;
  background-repeat: no-repeat !important;
  background-position-x: 0 !important;
}

.sm-chip-livebadge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #b248d9;          /* purple, matches player frontend */
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  font-family: var(--ta-mono);
  z-index: 1;
  line-height: 1.3;
}

.sm-chip-redbadge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 14px; height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: #ff5870;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ta-mono);
  z-index: 1;
}

.sm-chip-name {
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  margin-top: 2px;
}


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Match detail as centered POPUP (was right-side aside).
   Panes now use full body width.
   ═════════════════════════════════════════════════════════════════════ */
.sm-body-dual { padding: 0; }
.sm-panes {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  padding: 8px !important;
  height: calc(100vh - 180px);  /* topbar + carousel + clock */
  align-items: stretch;
}
.sm-pane-body {
  max-height: none !important;  /* free vertical, parent grid handles height */
}

/* Hide the legacy aside if any version still renders it */
.sm-detail, aside.sm-detail { display: none !important; }

/* ─── Popup container ─── */
.sm-match-pop {
  position: fixed;
  inset: 0;
  z-index: 970;
  display: flex; align-items: center; justify-content: center;
}
.sm-match-pop-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: smfadein .12s ease-out;
}
@keyframes smfadein { from { opacity: 0; } to { opacity: 1; } }
.sm-match-pop-panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--ta-pane, #131722);
  border: 1px solid var(--ta-border, #2a3142);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  animation: smpopin .15s cubic-bezier(0.2, 0, 0.2, 1);
}
@keyframes smpopin { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.sm-match-pop-panel .sm-detail-head {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ta-card-elev, #1a1f2e);
  border-bottom: 1px solid var(--ta-border, #222);
  border-radius: 12px 12px 0 0;
  flex: 0 0 auto;
  position: sticky; top: 0; z-index: 1;
}
.sm-match-pop-panel .sm-detail-title {
  font-size: 16px; font-weight: 700; color: var(--ta-text-hi, #fff);
}
.sm-match-pop-panel .sm-detail-close {
  background: transparent; border: 0;
  color: var(--ta-text-dim, #888);
  font-size: 22px; cursor: pointer;
  width: 30px; height: 30px;
  line-height: 1; border-radius: 6px;
}
.sm-match-pop-panel .sm-detail-close:hover {
  background: var(--ta-card-elev); color: var(--ta-text);
}

.sm-match-pop-panel .sm-detail-meta,
.sm-match-pop-panel .sm-detail-section {
  padding: 12px 18px;
  border-bottom: 1px solid var(--ta-border, #222);
}
.sm-match-pop-panel .sm-detail-section:last-child { border-bottom: 0; }
.sm-match-pop-panel .sm-detail-section-title {
  font-size: 10px; font-weight: 800;
  color: var(--ta-text-3, #888);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Layout tightening + Load-more button.
   Trim every reserved pixel so panels get max vertical space.
   ═════════════════════════════════════════════════════════════════════ */
.sm-header {
  padding: 4px 12px !important;
  min-height: 32px !important;
}
.sm-title { font-size: 12px !important; }
.sm-clock { font-size: 11px !important; }
.sm-sort, .sm-toggle { font-size: 10px !important; }

/* Carousel — compact chips */
.sm-filter-bar { padding: 5px 4px 4px !important; }
.sm-sport-chip {
  min-width: 64px !important;
  padding: 4px 6px 3px !important;
}
.sm-chip-iconwrap {
  width: 32px !important;
  height: 32px !important;
}
.sm-chip-icon {
  width: 22px !important;
  height: 22px !important;
  background-size: 22px 2731px !important;  /* keep aspect: 37/4593 = 22/2731 */
}
.sm-chip-livebadge {
  font-size: 7px !important;
  padding: 1px 4px !important;
  top: -6px !important;
}
.sm-chip-name { font-size: 8px !important; margin-top: 1px !important; }

/* Panes — tighter heads, more body */
.sm-panes {
  height: calc(100vh - 130px) !important;
  padding: 4px !important;
  gap: 4px !important;
}
.sm-pane-head {
  padding: 6px 10px !important;
  gap: 8px !important;
}
.sm-pane-title { font-size: 11px !important; }
.sm-pane-search {
  font-size: 10px !important;
  padding: 3px 8px !important;
}
.sm-pane-body { padding: 4px 6px 12px !important; }

/* List rows: more compact */
.sm-list-row {
  padding: 4px 10px !important;
  font-size: 10px !important;
}
.sm-list-head { font-size: 8px !important; }

/* Load more button */
.sm-loadmore {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: var(--ta-card-elev, #1a1f2e);
  border: 1px dashed var(--ta-border, #2a3142);
  color: var(--ta-text-2, #aaa);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--ta-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sm-loadmore:hover {
  background: var(--ta-bg-elev-hi, #1f2536);
  border-style: solid;
  color: var(--ta-text, #fff);
  border-color: var(--ta-accent, #5a8cff);
}
.sm-loadmore-busy { opacity: .6; cursor: wait; }



/* ═════════════════════════════════════════════════════════════════════
   2026-05-14 Step 18d — Single-panel sticky layout (Step 17 redesign).
   Killed the old window-scroll sticky stack (referenced .sm-pane-head and
   hardcoded 150px which was wrong after the redesign).
   New strategy: shell is fixed-height flex column. Header rows sit above a
   scroll container (.sm-result). Only the list-head sticks within that
   scroll container. Result: column titles always visible; control deck
   stays put; no overlapping sticky elements.
   ═════════════════════════════════════════════════════════════════════ */
body.sm-page-active,
body.sm-page-active #content {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
body.sm-page-active #content { padding: 0 !important; }

.sm-shell.sm-shell-v3 {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

/* Control-deck rows above the result panel: stay in place naturally
   (they're outside the scroll container). */
.sm-shell-v3 > .sm-header,
.sm-shell-v3 > .sm-galarm,
.sm-shell-v3 > .sm-loopticker,
.sm-shell-v3 > .sm-state-toggle-wrap,
.sm-shell-v3 > .sm-nav-wrap,
.sm-shell-v3 > .sm-health-filter-strip,
.sm-shell-v3 > .sm-result-bar {
  flex: 0 0 auto;
}

/* The body wraps the scroll container; takes remaining vertical space. */
.sm-shell-v3 > .sm-body-single {
  flex: 1 1 auto;
  min-height: 0;        /* required for flex child to shrink */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* The actual scroll container — list scrolls here, header rows stay outside. */
.sm-shell-v3 .sm-result {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 12px 24px;
}

/* List wrapper inside the scroll area: don't clip sticky head. */
.sm-shell-v3 .sm-list { overflow: visible !important; }

/* Column header: sticks at the TOP of .sm-result. Z-index above row content
   only — not above modals, popups, alert center. */
.sm-shell-v3 .sm-list-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  /* Solid bg required so rows behind it don't bleed through during scroll. */
  background: var(--ta-card-elev, #1a1f2e) !important;
}


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Smart score + signal bar + improved columns
   ═════════════════════════════════════════════════════════════════════ */

/* Score column: primary big, secondary small below */
.sm-list-c-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
}
.sm-score-primary {
  font-weight: 800;
  color: var(--ta-text-hi, #fff);
  font-size: 11px;
}
.sm-score-secondary {
  font-size: 8px;
  color: var(--ta-text-dim, #777);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Signal bar gauge — visual signal-rate indicator */
.sm-sigbar {
  position: relative;
  width: 44px;
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--ta-border, #222);
}
.sm-sigbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #34d399, #5a8cff);
  transition: width .3s ease;
  border-radius: 2px;
}
.sm-sigbar-text {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ta-mono);
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,.8);
  z-index: 1;
  letter-spacing: 0.04em;
}
.sm-sigbar.smb-q0 .sm-sigbar-fill { background: transparent; }
.sm-sigbar.smb-q0 .sm-sigbar-text { color: var(--ta-text-dim, #555); }
.sm-sigbar.smb-q1 .sm-sigbar-fill { background: linear-gradient(90deg, #66bb6a, #66bb6a); }
.sm-sigbar.smb-q2 .sm-sigbar-fill { background: linear-gradient(90deg, #66bb6a, #34d399); }
.sm-sigbar.smb-q3 .sm-sigbar-fill { background: linear-gradient(90deg, #34d399, #5a8cff); }
.sm-sigbar.smb-q4 .sm-sigbar-fill { background: linear-gradient(90deg, #5a8cff, #b248d9); animation: smpulse 1.2s ease-in-out infinite; }
.sm-sigbar.smb-stale .sm-sigbar-fill { background: linear-gradient(90deg, #ff5870, #ff5870); }
.sm-sigbar.smb-stale .sm-sigbar-text { color: #ff5870; }
.sm-sigbar.smb-amber { border-color: rgba(245,158,11,0.5); }
@keyframes smpulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.55; }
}

/* Exposure column: ticket-count chip then amount */
.sm-exp-tx {
  display: inline-block;
  font-size: 8px;
  background: rgba(245,158,11,.15);
  color: #f59e0b;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 800;
  margin-right: 4px;
  font-family: var(--ta-mono);
}
.sm-exp-amount-inline {
  color: #f59e0b;
  font-weight: 800;
}
.sm-list-c-exp-hot {
  background: rgba(245,158,11,0.04);
}


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Column header LEGIBILITY pass.
   The earlier tightening block forced .sm-list-head to 8px which is
   illegible against the dark bg — operator can't tell what each column
   means. Override: bigger, brighter, distinct bg, bottom border, real
   letter-spacing, sticky stays at top:150 below pane-head.
   ═════════════════════════════════════════════════════════════════════ */
.sm-list-head {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--ta-accent, #5a8cff) !important;
  background: linear-gradient(180deg,
    rgba(90,140,255,0.08) 0%,
    rgba(90,140,255,0.04) 100%) !important;
  border-bottom: 2px solid rgba(90,140,255,0.35) !important;
  padding: 7px 10px !important;
  min-height: 28px !important;
  align-items: center !important;
  cursor: default !important;
}
.sm-list-head .sm-list-c {
  /* override any dim color from data-row .sm-list-c */
  color: inherit !important;
  opacity: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hover hint that columns have tooltips */
.sm-list-head .sm-list-c[title] { cursor: help; }
.sm-list-head .sm-list-c[title]:hover {
  color: #fff !important;
  background: rgba(90,140,255,0.10);
}
/* Make sure data rows don't accidentally inherit the head treatment */
.sm-list-data { letter-spacing: 0 !important; text-transform: none !important; }


/* 2026-05-13 — Free sticky context for .sm-list-head.
   .sm-list had overflow:hidden which trapped sticky inside the list and
   pinned the header 150px below the first row (overlapping data).
   Removing overflow:hidden so window is the sticky scrolling-ancestor. */
.sm-list { overflow: visible !important; }


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — MOSSAD decode UI: typed signal chips + Bilet button.
   New 9th column "Tools" (Bilet jump). Signal column now shows chips per
   event type with icons. Lifetime totals available in hover tooltip.
   ═════════════════════════════════════════════════════════════════════ */

/* 2026-05-14 #3 — TEN columns (was 9, broke when Markets cell was added).
   Cell order: sport / match / state / score / min / TREGJE / signals / age / exposure / tools */
.sm-list-row {
  grid-template-columns: 100px 1fr 80px 70px 44px 64px 110px 56px 110px 80px !important;
}
.sm-pane-body .sm-list-row {
  grid-template-columns: 78px 1fr 64px 60px 38px 56px 96px 46px 96px 70px !important;
  font-size: 10.5px;
}

/* ─── Signal chips ─── */
.sm-sigchips {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 3px;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.sm-sigchips-empty {
  color: var(--ta-text-dim, #444);
  font-family: var(--ta-mono);
  font-size: 11px;
}
.sm-sigchip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px 1px 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--ta-mono);
  font-size: 9.5px;
  line-height: 1;
  cursor: help;
  transition: background .08s, border-color .08s, transform .08s;
  flex-shrink: 0;
}
.sm-sigchip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.sm-sigchip-icon { font-size: 10px; line-height: 1; }
.sm-sigchip-n {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ta-text-hi, #fff);
  min-width: 8px;
  text-align: center;
}
/* Per-type accents */
.smc-goal   { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.45); animation: smc-pulse 1.6s ease-in-out infinite; }
.smc-goal .sm-sigchip-n   { color: #34d399; }
.smc-pen    { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.5); }
.smc-pen .sm-sigchip-n    { color: #f59e0b; }
.smc-red    { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.55); }
.smc-red .sm-sigchip-n    { color: #ff5870; }
.smc-yel    { background: rgba(245,204,90,.12); border-color: rgba(245,204,90,.40); }
.smc-yel .sm-sigchip-n    { color: #f5cc5a; }
.smc-var    { background: rgba(180,80,255,.14); border-color: rgba(180,80,255,.45); }
.smc-var .sm-sigchip-n    { color: #b450ff; }
.smc-score  { background: rgba(90,140,255,.14); border-color: rgba(90,140,255,.45); }
.smc-score .sm-sigchip-n  { color: #5a8cff; }
.smc-state  { background: rgba(160,160,160,.10); border-color: rgba(160,160,160,.30); }
.smc-state .sm-sigchip-n  { color: #ddd; }
.smc-corner { background: rgba(120,180,255,.10); }
.smc-corner .sm-sigchip-n { color: #78b4ff; }
.smc-shot   { background: rgba(80,200,150,.10); }
.smc-shot .sm-sigchip-n   { color: #50c896; }
.smc-sub    { background: rgba(200,200,255,.08); }
.smc-sub .sm-sigchip-n    { color: #c8c8ff; }
.smc-loss   { background: rgba(255,88,112,.20); border-color: rgba(255,88,112,.6); animation: smc-pulse 0.9s ease-in-out infinite; }
.smc-loss .sm-sigchip-n   { color: #ff5870; }
.smc-recov  { background: rgba(52,211,153,.12); }
.smc-recov .sm-sigchip-n  { color: #34d399; }
.smc-overflow {
  background: rgba(90,140,255,.18);
  border-color: rgba(90,140,255,.45);
  color: #5a8cff;
  font-weight: 800;
  padding: 1px 6px;
}
@keyframes smc-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.0); }
  50%     { box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
}

/* ─── Bilet (jump to all-tickets) button ─── */
.sm-list-c-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
}
.sm-bilet-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 5px;
  border-radius: 5px;
  background: rgba(90,140,255,0.08);
  border: 1px solid rgba(90,140,255,0.25);
  color: var(--ta-text-2, #c5c5d5);
  font-family: var(--ta-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.sm-bilet-btn:hover {
  background: rgba(90,140,255,0.18);
  border-color: rgba(90,140,255,0.55);
  color: #fff;
  transform: translateY(-1px);
}
.sm-bilet-btn:active { transform: translateY(0); }
.sm-bilet-btn-hot {
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.45);
  color: #f59e0b;
}
.sm-bilet-btn-hot:hover {
  background: rgba(245,158,11,.20);
  border-color: rgba(245,158,11,.7);
  color: #fff;
}
.sm-bilet-icon { font-size: 10px; line-height: 1; }
.sm-bilet-label { font-size: 9px; }
.sm-bilet-count {
  background: rgba(245,158,11,.4);
  color: #fff;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Signal-health row coloring + filter chips.
   Visual verdict per match (green/amber/red/stale/dark) with left-border
   accent + subtle bg tint. Health filter strip sits above the sport
   carousel so operator can isolate broken matches with one click.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Row coloring ── */
.sm-list-data {
  border-left: 3px solid transparent;
  transition: background .14s, border-left-color .14s;
}
.sm-list-data.sm-row-health-green {
  border-left-color: rgba(52,211,153,.55);
}
.sm-list-data.sm-row-health-amber {
  border-left-color: rgba(245,158,11,.7);
  background: linear-gradient(90deg, rgba(245,158,11,.04) 0%, transparent 50%);
}
.sm-list-data.sm-row-health-red {
  border-left-color: rgba(239,68,68,.85);
  background: linear-gradient(90deg, rgba(239,68,68,.06) 0%, rgba(239,68,68,.02) 60%, transparent 100%);
  animation: smrow-red-breath 2.8s ease-in-out infinite;
}
.sm-list-data.sm-row-health-stale {
  border-left-color: rgba(120,120,120,.6);
  opacity: 0.78;
  background: linear-gradient(90deg, rgba(100,100,100,.05) 0%, transparent 50%);
}
.sm-list-data.sm-row-health-stale .sm-list-c {
  color: var(--ta-text-dim, #666) !important;
}
.sm-list-data.sm-row-health-dark {
  border-left-color: rgba(90,140,255,.30);
}
.sm-list-data.sm-row-health-red:hover    { background: rgba(239,68,68,.10); }
.sm-list-data.sm-row-health-amber:hover  { background: rgba(245,158,11,.08); }
.sm-list-data.sm-row-health-green:hover  { background: rgba(52,211,153,.08); }
.sm-list-data.sm-row-health-stale:hover  { background: rgba(120,120,120,.10); opacity: 0.95; }
@keyframes smrow-red-breath {
  0%,100% { box-shadow: inset 3px 0 0 0 rgba(239,68,68,.0); }
  50%     { box-shadow: inset 3px 0 0 0 rgba(239,68,68,.20); }
}

/* ── Health filter strip ── */
.sm-nav-wrap {
  display: flex;
  flex-direction: column;
}
.sm-health-filter {
  display: flex;
  gap: 6px;
  padding: 5px 12px 4px;
  align-items: center;
  background: var(--ta-pane-2, #0e1218);
  border-bottom: 1px solid var(--ta-border, #1a1f2e);
  overflow-x: auto;
  scrollbar-width: thin;
}
.smhf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ta-text-2, #aaa);
  font-family: var(--ta-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
  flex-shrink: 0;
}
.smhf-chip:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: var(--ta-text, #e6e6e6);
  transform: translateY(-1px);
}
.smhf-icon { font-size: 10px; }
.smhf-label { font-size: 10px; }
.smhf-count {
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  min-width: 14px;
  text-align: center;
}
/* Per-bucket accent */
.smhf-chip.smhf-green { color: #34d399; border-color: rgba(52,211,153,.20); }
.smhf-chip.smhf-green:hover { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.45); color: #34d399; }
.smhf-chip.smhf-green.smhf-active { background: rgba(52,211,153,.20); border-color: rgba(52,211,153,.7); color: #fff; }
.smhf-chip.smhf-green.smhf-active .smhf-count { background: rgba(52,211,153,.6); }

.smhf-chip.smhf-amber { color: #f59e0b; border-color: rgba(245,158,11,.22); }
.smhf-chip.smhf-amber:hover { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.5); color: #f59e0b; }
.smhf-chip.smhf-amber.smhf-active { background: rgba(245,158,11,.22); border-color: rgba(245,158,11,.7); color: #fff; }
.smhf-chip.smhf-amber.smhf-active .smhf-count { background: rgba(245,158,11,.7); }

.smhf-chip.smhf-red { color: #ff5870; border-color: rgba(239,68,68,.28); }
.smhf-chip.smhf-red:hover { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.55); color: #ff5870; }
.smhf-chip.smhf-red.smhf-active { background: rgba(239,68,68,.26); border-color: rgba(239,68,68,.75); color: #fff; animation: smrow-red-breath 2s ease-in-out infinite; }
.smhf-chip.smhf-red.smhf-active .smhf-count { background: rgba(239,68,68,.8); }

.smhf-chip.smhf-stale { color: #888; border-color: rgba(160,160,160,.22); }
.smhf-chip.smhf-stale:hover { background: rgba(160,160,160,.12); color: #aaa; }
.smhf-chip.smhf-stale.smhf-active { background: rgba(140,140,140,.30); color: #fff; }
.smhf-chip.smhf-stale.smhf-active .smhf-count { background: rgba(140,140,140,.6); }

.smhf-chip.smhf-all { color: var(--ta-accent, #5a8cff); border-color: rgba(90,140,255,.22); }
.smhf-chip.smhf-all:hover { background: rgba(90,140,255,.12); color: #fff; }
.smhf-chip.smhf-all.smhf-active { background: rgba(90,140,255,.24); border-color: rgba(90,140,255,.7); color: #fff; }
.smhf-chip.smhf-all.smhf-active .smhf-count { background: rgba(90,140,255,.6); }

/* Health filter ALSO sticks (stack with carousel below it) */
body.sm-page-active .sm-nav-wrap {
  position: sticky !important;
  top: 32px !important; /* below header */
  z-index: 11 !important;
}
/* Adjust pane-head top to account for new health strip ~30px */
body.sm-page-active .sm-filter-bar {
  position: static !important; /* part of sticky parent now */
  top: auto !important;
}
.sm-pane-head {
  /* header 32 + health 30 + carousel 74 = 136 */
  top: 136px !important;
}
.sm-list-head {
  /* pane-head 44 below 136 = 180 */
  top: 180px !important;
}



/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 v2 — Global alarm bar (top sticky) + anomaly chips.
   Surfaces vendor-wide pain instantly:
     EKSPOZIM NË RREZIK · 7 të prishur (3 me ekspozim) · 4 anomali
   Color of the bar adapts to severity (calm green → critical red-pulse).
   ═════════════════════════════════════════════════════════════════════ */

.sm-galarm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-family: var(--ta-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}
.sm-galarm-headline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sm-galarm-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: smga-blink 1s ease-in-out infinite;
}
@keyframes smga-blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.35; transform: scale(0.75); }
}
.sm-galarm.smga-calm {
  background: linear-gradient(90deg, rgba(52,211,153,0.06), rgba(52,211,153,0.02));
  border-bottom-color: rgba(52,211,153,0.20);
  color: #34d399;
}
.sm-galarm.smga-watch {
  background: linear-gradient(90deg, rgba(245,204,90,0.08), rgba(245,204,90,0.02));
  border-bottom-color: rgba(245,204,90,0.30);
  color: #f5cc5a;
}
.sm-galarm.smga-warn {
  background: linear-gradient(90deg, rgba(245,158,11,0.10), rgba(245,158,11,0.02));
  border-bottom-color: rgba(245,158,11,0.40);
  color: #f59e0b;
}
.sm-galarm.smga-danger {
  background: linear-gradient(90deg, rgba(239,68,68,0.14), rgba(239,68,68,0.04));
  border-bottom-color: rgba(239,68,68,0.55);
  color: #ff5870;
}
.sm-galarm.smga-critical {
  background: linear-gradient(90deg, rgba(239,68,68,0.28), rgba(239,68,68,0.10));
  border-bottom-color: rgba(239,68,68,0.85);
  color: #ff8090;
  animation: smga-critical-throb 2.2s ease-in-out infinite;
}
@keyframes smga-critical-throb {
  0%,100% { box-shadow: inset 0 -2px 0 0 rgba(239,68,68,0.4); }
  50%     { box-shadow: inset 0 -2px 0 0 rgba(239,68,68,0.0); }
}

.sm-galarm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ta-text-2, #aaa);
  font-family: var(--ta-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .12s;
  flex-shrink: 0;
}
.sm-galarm-chip:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.sm-galarm-chip-n {
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  min-width: 14px;
  text-align: center;
}
.sm-galarm-chip-l { font-size: 9px; }
.smgc-live    { border-color: rgba(90,140,255,.30); color: #5a8cff; }
.smgc-live .sm-galarm-chip-n { color: #5a8cff; }
.smgc-green   { border-color: rgba(52,211,153,.30); color: #34d399; }
.smgc-green .sm-galarm-chip-n { color: #34d399; }
.smgc-amber   { border-color: rgba(245,158,11,.32); color: #f59e0b; }
.smgc-amber .sm-galarm-chip-n { color: #f59e0b; }
.smgc-red     { border-color: rgba(239,68,68,.50); color: #ff5870; background: rgba(239,68,68,.10); }
.smgc-red .sm-galarm-chip-n  { color: #ff5870; }
.smgc-stale   { border-color: rgba(140,140,140,.30); color: #999; }
.smgc-stale .sm-galarm-chip-n { color: #999; }
.smgc-anomaly { border-color: rgba(180,80,255,.40); color: #c97aff; background: rgba(180,80,255,.08); }
.smgc-anomaly .sm-galarm-chip-n { color: #c97aff; }
.smgc-money   {
  border-color: rgba(245,158,11,.70);
  color: #f59e0b;
  background: rgba(245,158,11,.18);
  animation: smga-money-pulse 1.4s ease-in-out infinite;
}
.smgc-money .sm-galarm-chip-n { color: #fff; }
@keyframes smga-money-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%     { box-shadow: 0 0 0 4px rgba(245,158,11,0.30); }
}

/* Global alarm sticky — slot above health filter strip */
body.sm-page-active .sm-galarm {
  position: sticky !important;
  top: 32px !important;  /* under main header */
  z-index: 11 !important;
  background-color: var(--ta-pane-2, #0e1218) !important;
}
/* Shift health filter / carousel / pane-head down to make room (~30px more) */
body.sm-page-active .sm-nav-wrap { top: 62px !important; }
.sm-pane-head { top: 166px !important; }
.sm-list-head { top: 210px !important; }

/* ── Anomaly chips on rows ── */
.sm-sigchip.smc-anomaly {
  background: rgba(180,80,255,.18);
  border-color: rgba(180,80,255,.55);
}
.sm-sigchip.smc-anomaly .sm-sigchip-n { color: #c97aff; }
.sm-sigchip.smc-slowdown { animation: smc-anom-slow 2s ease-in-out infinite; }
.sm-sigchip.smc-storm    {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.55);
  animation: smc-anom-storm 0.9s ease-in-out infinite;
}
.sm-sigchip.smc-storm .sm-sigchip-n { color: #ff5870; }
@keyframes smc-anom-slow  { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes smc-anom-storm { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 v2 — Real-time row flash animations.
   SSE delivers health_transition / anomaly_onset events; the row flashes
   for 1.6s to draw the operator's eye instantly. Bad transitions (green→red,
   amber→stale) flash red; recoveries flash green; anomalies flash purple.
   ═════════════════════════════════════════════════════════════════════ */

.sm-list-data.sm-flash-bad {
  animation: smflash-bad 1.6s ease-out forwards;
}
.sm-list-data.sm-flash-good {
  animation: smflash-good 1.6s ease-out forwards;
}
.sm-list-data.sm-flash-info {
  animation: smflash-info 1.6s ease-out forwards;
}
@keyframes smflash-bad {
  0%   { background: rgba(239,68,68, 0.55); transform: translateX(0); }
  15%  { background: rgba(239,68,68, 0.55); transform: translateX(2px); box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  30%  { background: rgba(239,68,68, 0.45); transform: translateX(-2px); }
  45%  { background: rgba(239,68,68, 0.35); transform: translateX(2px); box-shadow: 0 0 18px 0 rgba(239,68,68,0.45); }
  60%  { background: rgba(239,68,68, 0.25); transform: translateX(0); }
  100% { background: transparent; box-shadow: none; }
}
@keyframes smflash-good {
  0%   { background: rgba(52,211,153, 0.50); }
  30%  { background: rgba(52,211,153, 0.35); box-shadow: 0 0 18px 0 rgba(52,211,153,0.45); }
  100% { background: transparent; box-shadow: none; }
}
@keyframes smflash-info {
  0%   { background: rgba(180,80,255, 0.40); }
  30%  { background: rgba(180,80,255, 0.25); box-shadow: 0 0 14px 0 rgba(180,80,255,0.40); }
  100% { background: transparent; box-shadow: none; }
}

/* SSE connection indicator — tiny dot next to the clock when connected */
.sm-sse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  margin-left: 6px;
  box-shadow: 0 0 4px rgba(52,211,153,.7);
  animation: smsse-pulse 2s ease-in-out infinite;
}
.sm-sse-dot.sm-sse-off {
  background: #888;
  box-shadow: none;
  animation: none;
}
@keyframes smsse-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}

/* 2026-05-13 audit — kickoff window selector (prematch pane only) */
.sm-pane-kw {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ta-text-2, #c5c5d5);
  font-family: var(--ta-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}
.sm-pane-kw:hover  { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); color: #fff; }
.sm-pane-kw:focus  { outline: none; border-color: var(--ta-accent, #5a8cff); }


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 — Match popup v2: real-time signal intelligence.
   Dense, dark, focused. Operator sees match's pulse the moment they click.
   ═════════════════════════════════════════════════════════════════════ */

.sm-match-pop-panel.smp-v2 {
  background: var(--ta-pane, #131722);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  max-width: 900px;
  width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  font-family: var(--ta-mono);
  color: var(--ta-text, #e6e6e6);
}

/* ── Header ── */
.smp-v2 .smp-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: start;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(90,140,255,0.05) 0%, transparent 100%);
}
.smp-head-l { display: flex; flex-direction: column; gap: 6px; }
.smp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  width: max-content;
}
.smp-badge-live { background: rgba(239,68,68,.18); color: #ff5870; border: 1px solid rgba(239,68,68,.45); }
.smp-badge-pre  { background: rgba(90,140,255,.18); color: #5a8cff; border: 1px solid rgba(90,140,255,.45); }
.smp-teams { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.smp-vs { color: var(--ta-text-dim, #777); padding: 0 7px; font-weight: 600; font-size: 13px; }
.smp-subhead {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--ta-text-2, #aaa);
}
.smp-sep { opacity: 0.5; }
.smp-mid { background: rgba(255,255,255,0.04); padding: 1px 5px; border-radius: 3px; font-size: 10px; }
.smp-score-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.smp-score {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 26px; font-weight: 800; line-height: 1;
}
.smp-score-h, .smp-score-a { color: var(--ta-text-hi, #fff); }
.smp-score-dash { color: var(--ta-text-dim, #555); font-weight: 400; }
.smp-ht { font-size: 10px; color: var(--ta-text-dim, #777); text-transform: uppercase; letter-spacing: 0.08em; }
.smp-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  width: 32px; height: 32px;
  color: var(--ta-text-2, #aaa);
  font-size: 14px;
  cursor: pointer;
  transition: all .12s;
}
.smp-close:hover { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.5); color: #ff5870; }

/* ── Health card ── */
.smp-healthcard {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: background .25s;
}
.smp-healthcard.smp-flash {
  animation: smp-flashcard 1.4s ease-out;
}
@keyframes smp-flashcard {
  0%   { background: rgba(90,140,255,0.20); }
  100% { background: rgba(255,255,255,0.02); }
}
.smp-h-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.smp-h-label-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.smp-h-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.smp-h-label { font-size: 12px; }
.smp-h-green .smp-h-label-wrap { background: rgba(52,211,153,.16); color: #34d399; border: 1px solid rgba(52,211,153,.45); }
.smp-h-green .smp-h-dot { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
.smp-h-amber .smp-h-label-wrap { background: rgba(245,158,11,.18); color: #f59e0b; border: 1px solid rgba(245,158,11,.55); }
.smp-h-amber .smp-h-dot { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.7); }
.smp-h-red   .smp-h-label-wrap { background: rgba(239,68,68,.22); color: #ff5870; border: 1px solid rgba(239,68,68,.65); animation: smp-pulse 1.4s ease-in-out infinite; }
.smp-h-red   .smp-h-dot { background: #ff5870; box-shadow: 0 0 10px rgba(239,68,68,.85); }
.smp-h-stale .smp-h-label-wrap { background: rgba(140,140,140,.20); color: #aaa; border: 1px solid rgba(140,140,140,.40); }
.smp-h-stale .smp-h-dot { background: #aaa; }
.smp-h-dark  .smp-h-label-wrap { background: rgba(90,140,255,.10); color: #5a8cff; border: 1px solid rgba(90,140,255,.30); }
.smp-h-dark  .smp-h-dot { background: #5a8cff; }
@keyframes smp-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%     { box-shadow: 0 0 0 4px rgba(239,68,68,0.30); }
}
.smp-h-rates {
  display: inline-flex; gap: 6px; margin-left: auto; align-items: center;
}
.smp-rate {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1;
}
.smp-rate-n { font-size: 14px; font-weight: 800; color: var(--ta-text-hi, #fff); }
.smp-rate-l { font-size: 8px; color: var(--ta-text-dim, #777); letter-spacing: 0.04em; margin-top: 2px; text-transform: uppercase; }
.smp-rate-cold  { color: var(--ta-text-dim, #888); }
.smp-rate-warm  { border-color: rgba(245,204,90,.40); }
.smp-rate-warm .smp-rate-n  { color: #f5cc5a; }
.smp-rate-hot   { border-color: rgba(245,158,11,.50); background: rgba(245,158,11,.06); }
.smp-rate-hot .smp-rate-n   { color: #f59e0b; }
.smp-rate-blaze { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.08); animation: smp-pulse 1.8s infinite; }
.smp-rate-blaze .smp-rate-n { color: #ff5870; }
.smp-h-anom {
  display: inline-flex; align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em;
}
.smp-h-anom-slowdown { background: rgba(180,80,255,.16); color: #c97aff; border: 1px solid rgba(180,80,255,.50); }
.smp-h-anom-storm    { background: rgba(239,68,68,.18); color: #ff5870; border: 1px solid rgba(239,68,68,.55); animation: smp-pulse 0.9s infinite; }
.smp-h-reasons {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--ta-text-2, #c5c5d5);
  line-height: 1.45;
}
.smp-h-reasons li { margin-bottom: 2px; }
.smp-h-reasons.smp-h-ok { padding-left: 0; list-style: none; color: var(--ta-text-dim, #888); font-style: italic; }

/* ── Action bar ── */
.smp-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.smp-action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ta-text-2, #c5c5d5);
  font-family: var(--ta-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
}
.smp-action:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); color: #fff; }
.smp-action-primary {
  background: rgba(90,140,255,.10);
  border-color: rgba(90,140,255,.40);
  color: #5a8cff;
}
.smp-action-primary:hover { background: rgba(90,140,255,.22); border-color: rgba(90,140,255,.7); color: #fff; }
.smp-exposure {
  display: inline-flex; gap: 5px; align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.45);
  color: #f59e0b;
  font-family: var(--ta-mono);
  font-size: 10.5px;
}
.smp-exposure-l { font-size: 9px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }
.smp-exposure-v { font-weight: 800; color: #fff; }
.smp-spacer { flex: 1; }
.smp-age-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  font-size: 10px;
  color: var(--ta-text-dim, #aaa);
}
.smp-age-dot {
  width: 7px; height: 7px; border-radius: 50%;
}

/* ── Stats grid ── */
.smp-section { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.smp-section:last-child { border-bottom: none; }
.smp-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ta-text-dim, #888);
  margin-bottom: 10px;
}
.smp-statgrid {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.smp-statpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 11px;
}
.smp-statpill-l { color: var(--ta-text-dim, #888); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.smp-statpill-v { color: var(--ta-text-hi, #fff); font-weight: 800; }
.smp-statpill.smp-yel { background: rgba(245,204,90,.06); border-color: rgba(245,204,90,.25); }
.smp-statpill.smp-redc { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.40); }

/* ── Event timeline ── */
.smp-events-section { padding-bottom: 18px; }
.smp-live-indicator {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border-radius: 9px;
  background: rgba(52,211,153,.10);
  border: 1px solid rgba(52,211,153,.35);
  color: #34d399;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.smp-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.7);
  animation: smp-livepulse 1.4s ease-in-out infinite;
}
@keyframes smp-livepulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.smp-events {
  display: flex; flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 6px;
}
.sme {
  display: grid;
  grid-template-columns: 28px 64px 50px 1fr;
  gap: 8px;
  padding: 5px 10px;
  font-size: 11px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.sme:last-child { border-bottom: none; }
.sme:hover { background: rgba(255,255,255,.03); }
.sme-icon { font-size: 13px; text-align: center; }
.sme-time { color: var(--ta-text-dim, #888); font-size: 10px; }
.sme-min  { color: var(--ta-accent, #5a8cff); font-weight: 700; font-size: 9.5px; }
.sme-label { color: var(--ta-text, #e6e6e6); }
.sme.sme-goal    { background: rgba(52,211,153,.05); }
.sme.sme-goal .sme-label    { color: #34d399; font-weight: 700; }
.sme.sme-red     .sme-label, .sme.sme-pen .sme-label { color: #ff5870; font-weight: 700; }
.sme.sme-yel     .sme-label { color: #f5cc5a; }
.sme.sme-health  { background: rgba(90,140,255,.05); }
.sme.sme-health  .sme-label { color: #5a8cff; font-weight: 700; }
.sme.sme-loss    { background: rgba(239,68,68,.06); }
.sme.sme-loss    .sme-label { color: #ff5870; }
.sme.sme-recov   { background: rgba(52,211,153,.04); }
.sme.sme-recov   .sme-label { color: #34d399; }
.sme.sme-score   .sme-label { color: #5a8cff; font-weight: 700; }
.smp-loading, .smp-empty { padding: 18px; text-align: center; color: var(--ta-text-dim, #777); font-size: 11px; }
.smp-empty.smp-err { color: #ff5870; }


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 iter1 — Popup additions: sparkline, period progress, tickets,
   loop ticker.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Health sparkline ── */
.smp-sparkline {
  padding: 6px 0;
}
.smp-sparkline-track {
  display: grid;
  grid-template-columns: repeat(60, 1fr);
  gap: 1px;
  height: 24px;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 3px;
}
.smp-sl-bar {
  display: block;
  height: 100%;
  border-radius: 1px;
  transition: opacity .12s;
}
.smp-sl-green { background: linear-gradient(180deg, rgba(52,211,153,.6), rgba(52,211,153,.95)); }
.smp-sl-amber { background: linear-gradient(180deg, rgba(245,158,11,.6), rgba(245,158,11,.95)); }
.smp-sl-red   { background: linear-gradient(180deg, rgba(239,68,68,.7),  rgba(239,68,68,1));    }
.smp-sl-stale { background: rgba(140,140,140,.45); }
.smp-sl-dark  { background: rgba(90,140,255,.30); }
.smp-sl-bar:hover { opacity: 0.5; cursor: help; }

/* 2026-05-13 C.9 — Velocity sparkline (events/min bars) */
.smp-velocity {
  padding: 6px 0;
}
.smp-velocity-track {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
  align-items: flex-end;
  height: 34px;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 3px;
}
.smp-velo-bar {
  display: block;
  width: 100%;
  border-radius: 2px;
  transition: opacity .12s, transform .12s;
}
.smp-velo-bar:hover { opacity: 0.7; cursor: help; transform: translateY(-1px); }
.smp-velo-q0 { background: rgba(80,90,110,.35); }
.smp-velo-q1 { background: linear-gradient(180deg, rgba(95,165,255,.5), rgba(95,165,255,.9)); }
.smp-velo-q2 { background: linear-gradient(180deg, rgba(52,211,153,.55), rgba(52,211,153,.95)); }
.smp-velo-q3 { background: linear-gradient(180deg, rgba(245,158,11,.65), rgba(245,158,11,1)); }
.smp-velo-q4 { background: linear-gradient(180deg, rgba(239,68,68,.75), rgba(239,68,68,1)); }

/* 2026-05-13 B.5 — multi/single exposure chips in row */
.sm-exp-multi {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(239,68,68,0.18);
  color: #ff5870;
  font-weight: 800;
  font-size: 10px;
  margin-right: 4px;
}
.sm-exp-single {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(95,165,255,0.12);
  color: #5fa5ff;
  font-size: 10px;
  margin-right: 4px;
}
.sm-row-has-multi {
  border-left: 2px solid rgba(239,68,68,0.55) !important;
}

/* 2026-05-13 Step 16 — Operator notes section */
.smp-notes-section .smp-section-title {
  display: flex; align-items: center; justify-content: space-between;
}
.smp-add-note-btn {
  background: rgba(95,165,255,0.16);
  border: 1px solid rgba(95,165,255,0.36);
  color: #5fa5ff;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
}
.smp-add-note-btn:hover { background: rgba(95,165,255,0.28); }
.smp-notes-list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: 200px; overflow-y: auto;
}
.smp-note {
  background: rgba(255,255,255,0.03);
  border-left: 2px solid #5fa5ff;
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
}
.smp-note-meta {
  display: flex; gap: 10px;
  font-size: 10px; color: var(--ta-text-dim, #888);
  margin-bottom: 3px;
}
.smp-note-by { font-weight: 700; color: #5fa5ff; }
.smp-note-body { color: var(--ta-text, #e6e6e6); white-space: pre-wrap; }

/* 2026-05-13 Step 15 — Snooze modal */
.sm-snooze-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.sm-snooze-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.sm-snooze-panel {
  position: relative;
  background: #131722;
  border: 1px solid var(--ta-border, #222);
  border-radius: 8px;
  width: 480px; max-width: 92vw;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  font-family: var(--ta-mono);
}
.sm-snooze-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sm-snooze-title { font-weight: 800; font-size: 14px; color: #f59e0b; }
.sm-snooze-close {
  background: transparent; border: 0; color: var(--ta-text-dim, #888);
  font-size: 16px; cursor: pointer;
}
.sm-snooze-row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px;
}
.sm-snooze-row label {
  font-size: 10px; text-transform: uppercase;
  color: var(--ta-text-dim, #888);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.sm-snooze-scope-opts {
  display: flex; flex-direction: column; gap: 4px;
}
.sm-snooze-scope-opt {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ta-border, #222);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.sm-snooze-scope-opt:hover { background: rgba(255,255,255,0.06); }
.sm-snooze-scope-opt-active {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.10);
}
.sm-snooze-scope-pri { font-size: 11px; font-weight: 700; }
.sm-snooze-scope-sec { font-size: 10px; color: var(--ta-text-dim, #888); }
.sm-snooze-pills {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.sm-snooze-pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ta-border, #222);
  color: var(--ta-text, #e6e6e6);
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.sm-snooze-pill:hover { background: rgba(255,255,255,0.07); }
.sm-snooze-pill-active {
  background: rgba(245,158,11,0.18);
  border-color: #f59e0b;
  color: #f59e0b;
}
.sm-snooze-pill-red.sm-snooze-pill-active   { background: rgba(239,68,68,0.20); border-color: #ff5870; color: #ff5870; }
.sm-snooze-pill-amber.sm-snooze-pill-active { background: rgba(245,158,11,0.20); border-color: #f59e0b; color: #f59e0b; }
.sm-snooze-reason {
  width: 100%;
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--ta-border, #222);
  border-radius: 4px;
  color: var(--ta-text, #e6e6e6);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 11px;
}
.sm-snooze-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 16px;
}
.sm-snooze-cancel, .sm-snooze-submit {
  border: 0; border-radius: 4px;
  padding: 8px 16px; cursor: pointer;
  font-weight: 700; font-size: 12px;
}
.sm-snooze-cancel { background: rgba(255,255,255,0.06); color: var(--ta-text, #e6e6e6); }
.sm-snooze-submit { background: #f59e0b; color: #1a1208; }
.sm-snooze-submit:hover { background: #fbb731; }

/* Active snoozes badge in header */
.sm-snoozes-badge {
  background: transparent;
  border: 1px solid var(--ta-border, #222);
  color: var(--ta-text-dim, #888);
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--ta-mono);
}
.sm-snoozes-badge:hover { background: rgba(255,255,255,0.04); }
.sm-snoozes-badge-active {
  background: rgba(245,158,11,0.16);
  color: #f59e0b;
  border-color: rgba(245,158,11,0.45);
  font-weight: 800;
}

/* Snoozes list popover */
.sm-snoozes-pop {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}
.sm-snoozes-pop-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.sm-snoozes-pop-panel {
  position: relative;
  background: #131722;
  border: 1px solid var(--ta-border, #222);
  border-radius: 8px;
  width: 580px; max-width: 92vw;
  max-height: 70vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  font-family: var(--ta-mono);
}
.sm-snoozes-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ta-border);
  font-weight: 800;
  font-size: 13px;
  color: #f59e0b;
}
.sm-snoozes-pop-close {
  background: transparent; border: 0; color: var(--ta-text-dim, #888);
  font-size: 16px; cursor: pointer;
}
.sm-snoozes-pop-empty {
  padding: 24px; text-align: center; color: var(--ta-text-dim, #888);
}
.sm-snoozes-pop-body {
  flex: 1; overflow-y: auto; padding: 6px 8px;
}
.sm-snoozes-pop-row {
  display: grid;
  grid-template-columns: 1fr 70px 100px 90px 30px;
  align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.sm-snoozes-pop-scope { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.sm-snoozes-pop-type {
  font-size: 9px; color: var(--ta-text-dim, #888);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sm-snoozes-pop-id { font-weight: 700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sm-snoozes-pop-label {
  text-align: center;
  padding: 2px 6px; border-radius: 3px;
  font-weight: 800; font-size: 10px;
}
.sm-snoozes-pop-label-amber   { background: rgba(245,158,11,0.18); color: #f59e0b; }
.sm-snoozes-pop-label-red     { background: rgba(239,68,68,0.20); color: #ff5870; }
.sm-snoozes-pop-label-anomaly { background: rgba(168,120,255,0.18); color: #c4a3ff; }
.sm-snoozes-pop-label-all     { background: rgba(140,140,140,0.18); color: #aaa; }
.sm-snoozes-pop-rem { color: var(--ta-text-dim, #888); }
.sm-snoozes-pop-by  { color: var(--ta-text-dim, #888); font-size: 10px; }
.sm-snoozes-pop-clear {
  background: transparent; border: 1px solid rgba(52,211,153,0.40);
  color: #34d399; cursor: pointer;
  border-radius: 3px; padding: 2px 6px; font-size: 11px;
}
.sm-snoozes-pop-clear:hover { background: rgba(52,211,153,0.12); }

/* 2026-05-14 Step 17 — Single-panel redesign (.sm-body-single + .sm-result
   layout moved to the consolidated sticky block above; this section now
   only carries non-conflicting Step 17 styles.) */

/* State toggle (Live / Prematch / All) */
.sm-state-toggle-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--ta-border, #222);
  background: var(--ta-pane-2, #0e1218);
}
.sm-state-toggle {
  display: inline-flex;
  background: var(--ta-card-elev, #1a1f2e);
  border-radius: 6px;
  padding: 2px;
  gap: 0;
}
.sm-st-btn {
  background: transparent; border: 0;
  color: var(--ta-text-2, #aaa);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ta-mono);
}
.sm-st-btn:hover { background: rgba(255,255,255,0.04); color: var(--ta-text, #e6e6e6); }
.sm-st-btn-active {
  background: var(--ta-accent, #5a8cff);
  color: #fff;
}
.sm-st-icon { font-size: 13px; }
.sm-st-count {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 600;
}
.sm-state-kw {
  background: var(--ta-card-elev, #1a1f2e);
  border: 1px solid var(--ta-border);
  color: var(--ta-text, #e6e6e6);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--ta-mono);
  cursor: pointer;
}

/* Health filter as own row */
.sm-health-filter-strip {
  border-bottom: 1px solid var(--ta-border, #222);
  background: var(--ta-pane-2, #0e1218);
  padding: 4px 14px;
}

/* Result bar (search + viewmode + count) */
.sm-result-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--ta-border, #222);
  background: var(--ta-pane, #131722);
}
.sm-result-search {
  flex: 1; max-width: 420px;
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--ta-border);
  color: var(--ta-text, #e6e6e6);
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--ta-mono);
  font-size: 11px;
}
.sm-result-count {
  font-size: 11px;
  color: var(--ta-text-dim, #888);
  font-variant-numeric: tabular-nums;
  font-family: var(--ta-mono);
}

/* Sport chips with split (live/prematch) badges */
.sm-chip-counts {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
}
.sm-chip-live { color: #ff5870; }
.sm-chip-pre  { color: #5fa5ff; }
.sm-chip-sep  { color: var(--ta-text-dim, #555); }
.sm-chip-zero { opacity: 0.32; }
.sm-chip-prematch-only {
  opacity: 0.78;
}
.sm-chip-prematch-only .sm-chip-live { display: none; }
.sm-chip-prematch-only .sm-chip-sep  { display: none; }
.sm-chip-has-live .sm-chip-name {
  text-shadow: 0 0 8px rgba(255,88,112,0.30);
}
.sm-sport-chip-all {
  background: var(--ta-pane, #131722) !important;
  font-weight: 800 !important;
}

/* 2026-05-14 Step 21b — Tighter sport chips, no icons */
.sm-filter-bar {
  padding: 6px 12px !important;
  gap: 4px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
}
.sm-sport-chip {
  flex: 0 0 auto !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  border-radius: 12px !important;
  font-family: var(--ta-mono) !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  min-height: 22px !important;
}
.sm-sport-chip .sm-chip-name {
  font-weight: 700;
  font-size: 10px;
}
.sm-sport-chip .sm-chip-counts {
  display: inline-flex;
  gap: 2px;
  margin-left: 0;
  font-size: 9px;
  font-weight: 700;
  padding-left: 5px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.sm-sport-chip-empty {
  opacity: 0.36;
}
.sm-sport-chip-empty .sm-chip-counts { display: none; }

/* TË GJITHA chip — bigger, prominent, total + L/P split */
.sm-sport-chip-all {
  background: linear-gradient(135deg, rgba(90,140,255,0.20), rgba(90,140,255,0.10)) !important;
  border: 1px solid rgba(90,140,255,0.55) !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  margin-right: 6px !important;
  position: relative;
}
.sm-sport-chip-all .sm-chip-name {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.sm-chip-counts-all {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  border-left: 1px solid rgba(90,140,255,0.45) !important;
  padding-left: 7px !important;
  gap: 0 !important;
}
.sm-chip-total {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
}
.sm-chip-split {
  font-size: 8px;
  opacity: 0.85;
  display: inline-flex;
  gap: 2px;
}

/* Highlight chips with red/amber activity */
.sm-chip-has-red {
  border-color: rgba(239,68,68,0.65) !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.30), 0 0 8px rgba(239,68,68,0.20);
  animation: sm-chip-red-glow 2s ease-in-out infinite;
}
@keyframes sm-chip-red-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(239,68,68,0.30), 0 0 6px rgba(239,68,68,0.20); }
  50%      { box-shadow: 0 0 0 1px rgba(239,68,68,0.55), 0 0 12px rgba(239,68,68,0.35); }
}
.sm-chip-has-amber:not(.sm-chip-has-red) {
  border-color: rgba(245,158,11,0.55) !important;
}
.sm-chip-has-live:not(.sm-chip-has-red):not(.sm-chip-has-amber) {
  border-color: rgba(52,211,153,0.40) !important;
}

/* Compact alert center toolbar (Step 21b — no "Top X" header) */
.sm-alertcenter-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

/* 2026-05-14 Step 21c — Period badges in row state column */
.sm-pn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--ta-mono);
  max-width: 100%;
  overflow: hidden;
}
.sm-pn-icon { font-size: 10px; line-height: 1; }
.sm-pn-label { overflow: hidden; text-overflow: ellipsis; }
.sm-pn-live    { background: rgba(52,211,153,0.18);  color: #34d399; border-color: rgba(52,211,153,0.42); }
.sm-pn-break   { background: rgba(245,158,11,0.18);  color: #f59e0b; border-color: rgba(245,158,11,0.42); animation: sm-pn-break-pulse 3s ease-in-out infinite; }
.sm-pn-pso     { background: rgba(168,120,255,0.20); color: #c4a3ff; border-color: rgba(168,120,255,0.45); animation: sm-pn-pso-pulse 1.6s ease-in-out infinite; }
.sm-pn-ended   { background: rgba(120,120,140,0.18); color: #888;    border-color: rgba(120,120,140,0.36); opacity: 0.72; }
.sm-pn-pre     { background: rgba(95,165,255,0.16);  color: #5fa5ff; border-color: rgba(95,165,255,0.40); }
@keyframes sm-pn-break-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@keyframes sm-pn-pso-pulse {
  0%, 100% { background: rgba(168,120,255,0.20); }
  50%      { background: rgba(168,120,255,0.45); }
}

/* 2026-05-14 Step 19 — Sports +N popover */
.sm-sport-chip-more {
  background: rgba(255,255,255,0.06) !important;
  color: var(--ta-text-2, #aaa) !important;
  border-style: dashed !important;
  font-style: italic;
}
.sm-sport-chip-more:hover { background: rgba(90,140,255,0.18) !important; color: #5fa5ff !important; }
.sm-chip-has-red {
  border-color: rgba(239,68,68,0.55) !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.20);
}
.sm-chip-has-amber:not(.sm-chip-has-red) {
  border-color: rgba(245,158,11,0.55) !important;
}
.sm-sports-pop {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}
.sm-sports-pop-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.sm-sports-pop-panel {
  position: relative;
  background: #131722;
  border: 1px solid var(--ta-border, #222);
  border-radius: 8px;
  width: 720px; max-width: 92vw;
  max-height: 75vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  font-family: var(--ta-mono);
}
.sm-sports-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ta-border);
  font-weight: 800; font-size: 13px;
  color: var(--ta-accent, #5a8cff);
}
.sm-sports-pop-close {
  background: transparent; border: 0;
  color: var(--ta-text-dim, #888);
  font-size: 16px; cursor: pointer;
}
.sm-sports-pop-search {
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--ta-border);
  color: var(--ta-text, #e6e6e6);
  padding: 8px 12px;
  margin: 10px 14px 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
}
.sm-sports-pop-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.sm-sports-pop-item { font-size: 11px !important; }
.sm-sports-pop-empty {
  width: 100%;
  text-align: center;
  color: var(--ta-text-dim, #888);
  padding: 20px;
}

/* 2026-05-14 Step 19 — Compact Alert Center (top-3 inline + expander) */
.sm-alertcenter-compact .sm-alertcenter-list {
  max-height: 96px;
  overflow: hidden;
  transition: max-height .15s ease;
}
.sm-alertcenter-compact.sm-alertcenter-expanded .sm-alertcenter-list {
  max-height: 320px;
  overflow-y: auto;
}
.sm-alertcenter-compact .sm-alertcenter-title {
  display: flex; align-items: center;
}
.sm-ac-expander {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ta-border, #2a3142);
  color: var(--ta-text, #e6e6e6);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ta-mono);
  letter-spacing: 0.04em;
}
.sm-ac-expander:hover {
  background: var(--ta-accent, #5a8cff);
  color: #fff;
  border-color: var(--ta-accent, #5a8cff);
}

/* 2026-05-14 Step 19 — Active filter ledger (chips above results) */
.sm-active-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-right: 8px;
}
.sm-af-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(90,140,255,0.14);
  border: 1px solid rgba(90,140,255,0.36);
  color: #5fa5ff;
  border-radius: 12px;
  padding: 2px 4px 2px 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ta-mono);
  transition: background .08s, color .08s;
  letter-spacing: 0.02em;
}
.sm-af-chip:hover { background: rgba(239,68,68,0.18); color: #ff7080; border-color: rgba(239,68,68,0.45); }
.sm-af-chip-state    { background: rgba(168,120,255,0.16); color: #c4a3ff; border-color: rgba(168,120,255,0.40); }
.sm-af-chip-sport    { background: rgba(95,165,255,0.16); color: #5fa5ff; border-color: rgba(95,165,255,0.40); }
.sm-af-chip-health   { background: rgba(245,158,11,0.16); color: #f59e0b; border-color: rgba(245,158,11,0.40); }
.sm-af-chip-critical { background: rgba(239,68,68,0.18); color: #ff5870; border-color: rgba(239,68,68,0.42); }
.sm-af-chip-anomaly  { background: rgba(168,120,255,0.18); color: #c4a3ff; border-color: rgba(168,120,255,0.42); }
.sm-af-chip-stale    { background: rgba(140,140,140,0.18); color: #aaa;   border-color: rgba(140,140,140,0.40); }
.sm-af-chip-kickoff  { background: rgba(52,211,153,0.16); color: #34d399; border-color: rgba(52,211,153,0.40); }
.sm-af-chip-search   { background: rgba(255,255,255,0.08); color: #ddd; border-color: rgba(255,255,255,0.16); }
.sm-af-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.20);
  font-size: 11px;
  font-weight: 800;
}
.sm-af-clear-all {
  background: transparent;
  color: var(--ta-text-dim, #888);
  border: 1px dashed var(--ta-border, #2a3142);
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--ta-mono);
  margin-left: 6px;
}
.sm-af-clear-all:hover { color: #ff5870; border-color: rgba(239,68,68,0.40); text-decoration: none; }

/* 2026-05-14 Step 19 — Markets cell as a single freshness pill.
   Replaces the old two-line "82 / 5s" stack with a glanceable colored pill. */
.sm-list-c-mkts {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-mkt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  cursor: help;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sm-mkt-n { font-size: 11px; }
.sm-mkt-status { font-size: 8px; opacity: 0.85; letter-spacing: 0.06em; }
.sm-mkt-age { font-size: 9px; opacity: 0.75; }
.sm-mkt-fresh {
  background: rgba(52,211,153,0.16);
  color: #34d399;
  border-color: rgba(52,211,153,0.40);
}
.sm-mkt-warn {
  background: rgba(245,158,11,0.18);
  color: #f59e0b;
  border-color: rgba(245,158,11,0.45);
}
.sm-mkt-stale {
  background: rgba(239,68,68,0.20);
  color: #ff5870;
  border-color: rgba(239,68,68,0.50);
  animation: sm-mkt-pulse 2s ease-in-out infinite;
}
.sm-mkt-empty {
  background: rgba(140,140,140,0.12);
  color: #888;
  border-color: rgba(140,140,140,0.28);
}
@keyframes sm-mkt-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.sm-mkts-zero { color: #555; }
.sm-mkts-low  { color: #f59e0b; }   /* <5 markets — vendor only opened a few */
.sm-mkts-med  { color: #5fa5ff; }   /* 5-19 — moderate coverage */
.sm-mkts-high { color: #34d399; }   /* 20+ — full vendor coverage */
.sm-mkts-stale {
  text-decoration: line-through;
  opacity: 0.55;
}

/* 2026-05-13 E.2 — SSE-dead banner (real-time degraded notice) */
.sm-sse-dead {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(245,158,11,0.95);
  color: #2a1c00;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  z-index: 9998;
  border-top: 1px solid #d97706;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
  font-family: var(--ta-mono);
}

/* 2026-05-13 C.7 — Operator action buttons (snooze + note) */
.smp-action-snooze {
  background: rgba(245,158,11,0.16);
  border: 1px solid rgba(245,158,11,0.40);
  color: #f59e0b;
}
.smp-action-snooze:hover { background: rgba(245,158,11,0.28); }
.smp-action-note {
  background: rgba(95,165,255,0.14);
  border: 1px solid rgba(95,165,255,0.36);
  color: #5fa5ff;
}
.smp-action-note:hover { background: rgba(95,165,255,0.24); }

/* Toast for operator-action confirmations */
.sm-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(12,15,18,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #e6e6e6;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  font-family: var(--ta-mono, "JetBrains Mono", monospace);
}
.sm-toast-in { opacity: 1; transform: translateY(0); }
.sm-toast-ok  { border-left: 3px solid #34d399; }
.sm-toast-err { border-left: 3px solid #ff5870; color: #ffcccc; }

/* 2026-05-13 C.4 — Alert Center widget (multi-banner + critical row list) */
.sm-galarm-multi-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(239,68,68,0.18), rgba(239,68,68,0.06));
  border: 1px solid rgba(239,68,68,0.45);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  width: 100%;
  font-size: 12px;
  color: #ffcfcf;
  font-weight: 700;
}
.sm-galarm-multi-icon { font-size: 14px; color: #ff5870; }
.sm-galarm-multi-msg { flex: 1; }
.sm-galarm-multi-jump {
  background: rgba(239,68,68,0.35);
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}
.sm-galarm-multi-jump:hover { background: rgba(239,68,68,0.55); }

.sm-alertcenter {
  background: rgba(0,0,0,0.20);
  border: 1px solid var(--ta-border, #222);
  border-radius: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  width: 100%;
}
.sm-alertcenter-title {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ta-text-dim, #888);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.sm-alertcenter-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sm-alertcenter-row {
  display: grid;
  grid-template-columns: 14px 1fr 80px 6px auto;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background .08s;
}
.sm-alertcenter-row:hover { background: rgba(255,255,255,0.05); }
.sm-ac-pip {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.sm-ac-pip-red   { background: #ff5870; box-shadow: 0 0 8px rgba(239,68,68,0.6); }
.sm-ac-pip-amber { background: #f59e0b; }
.sm-ac-pip-stale { background: #888; }
.sm-ac-pip-green { background: #34d399; }
.sm-ac-match { font-weight: 700; color: var(--ta-text, #e6e6e6); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sm-ac-sport { font-size: 10px; color: var(--ta-text-dim, #888); text-transform: uppercase; }
.sm-ac-spacer { flex: 1; }
.sm-ac-reason { font-size: 10px; color: #ccc; font-weight: 600; white-space: nowrap; }
.sm-alertcenter-row-red    .sm-ac-reason { color: #ff7080; }
.sm-alertcenter-row-amber  .sm-ac-reason { color: #f59e0b; }
.sm-alertcenter-row-stale  .sm-ac-reason { color: #aaa; }

/* 2026-05-13 A.9 — colors for new SIGNAL_TYPES chips */
.smc-pen-miss    { background: rgba(239,68,68,0.18); color: #ff7080; }
.smc-pen-goal    { background: rgba(52,211,153,0.22); color: #34d399; }
.smc-pso         { background: rgba(168,120,255,0.18); color: #c4a3ff; }
.smc-corner-race { background: rgba(140,140,140,0.18); color: #aaa; }
.smc-assist      { background: rgba(255,200,90,0.18); color: #ffc85a; }
.smc-tns-hold    { background: rgba(95,165,255,0.16); color: #5fa5ff; }
.smc-tns-brk     { background: rgba(239,68,68,0.20); color: #ff7080; font-weight: 800; }
.smc-blip        { background: rgba(245,158,11,0.16); color: #f59e0b; }
.smp-sparkline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 9px;
  color: var(--ta-text-dim, #888);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Period progress ── */
.smp-progress { display: flex; flex-direction: column; gap: 5px; }
.smp-progress-track {
  position: relative;
  height: 8px;
  background: rgba(0,0,0,0.30);
  border-radius: 4px;
  overflow: visible;
}
.smp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ta-accent, #5a8cff), #b450ff);
  border-radius: 4px;
  transition: width .35s ease;
  box-shadow: 0 0 8px rgba(90,140,255,.4);
}
.smp-progress-mark {
  position: absolute;
  top: -3px;
  height: 14px;
  width: 1px;
  background: rgba(255,255,255,0.30);
  font-size: 0; /* hide text content, just the line */
}
.smp-progress-mark::after {
  content: attr(class);   /* unused, fallback */
}
.smp-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ta-text-dim, #888);
  letter-spacing: 0.04em;
}
.smp-progress-pct {
  font-weight: 800;
  color: var(--ta-accent, #5a8cff);
  font-family: var(--ta-mono);
}

/* ── Tickets mini-list ── */
.smp-section-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.45);
  color: #f59e0b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.smp-tickets-list {
  display: flex; flex-direction: column; gap: 4px;
}
.smp-tk {
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all .12s;
}
.smp-tk:hover {
  background: rgba(90,140,255,.10);
  border-color: rgba(90,140,255,.40);
  transform: translateX(2px);
}
.smp-tk-row1 {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
}
.smp-tk-stake { font-weight: 800; color: var(--ta-text-hi, #fff); }
.smp-tk-arrow { color: var(--ta-text-dim, #777); }
.smp-tk-win   { font-weight: 800; color: #f59e0b; }
.smp-tk-spacer{ flex: 1; }
.smp-tk-user  { color: #5a8cff; font-weight: 700; }
.smp-tk-type  { color: var(--ta-text-dim, #888); text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.04em; }
.smp-tk-row2 {
  display: flex; align-items: center; gap: 8px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--ta-text-2, #c5c5d5);
}
.smp-tk-mkt   { color: var(--ta-text-2, #aaa); }
.smp-tk-odds  { color: var(--ta-accent, #5a8cff); font-weight: 700; font-family: var(--ta-mono); }
.smp-tk-code  { color: var(--ta-text-dim, #888); font-family: var(--ta-mono); font-size: 9px; margin-left: auto; }
.smp-loading-sm { padding: 8px; font-size: 10px; }

/* ── Loop ticker ── */
.sm-loopticker {
  position: sticky;
  top: 62px; /* below alarm bar */
  z-index: 10;
  padding: 4px 12px;
  background: rgba(180,80,255,0.05);
  border-bottom: 1px solid rgba(180,80,255,0.18);
  min-height: 0;
  display: flex;
}
.sm-loopticker:empty { display: none; }
.sm-lt-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: 9px;
  background: rgba(180,80,255,0.10);
  border: 1px solid rgba(180,80,255,0.40);
  color: #c97aff;
  font-family: var(--ta-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sm-lt-icon { font-size: 11px; }
.sm-lt-n   { color: #fff; font-weight: 800; }
.sm-lt-sep { opacity: 0.5; }
.sm-lt-up  { color: var(--ta-text-2, #c5c5d5); }
.sm-lt-last{ color: var(--ta-text-dim, #888); }

/* Adjust sticky stack since ticker added a strip */
body.sm-page-active .sm-nav-wrap { top: 92px !important; } /* was 62 */
.sm-pane-head { top: 196px !important; }
.sm-list-head { top: 240px !important; }


/* ═════════════════════════════════════════════════════════════════════
   2026-05-13 iter2 — Match momentum + timeline grouping + pixel polish.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Match momentum widget ── */
.smp-momentum { display: flex; flex-direction: column; gap: 8px; }
.smp-mom-teams {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
}
.smp-mom-team {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smp-mom-home  { text-align: left;  color: #66bb6a; }
.smp-mom-away  { text-align: right; color: #5a8cff; }
.smp-mom-delta {
  font-family: var(--ta-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ta-text-hi, #fff);
  padding: 0 14px;
}
.smp-mom-pct { padding: 0 4px; }
.smp-mom-vs  { color: var(--ta-text-dim, #777); }

.smp-mom-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0,0,0,0.30);
}
.smp-mom-fill-h {
  background: linear-gradient(90deg, #66bb6a, #34d399);
  transition: width .35s ease;
  box-shadow: inset -2px 0 8px rgba(52,211,153,.40);
}
.smp-mom-fill-a {
  background: linear-gradient(270deg, #5a8cff, #b450ff);
  transition: width .35s ease;
  box-shadow: inset 2px 0 8px rgba(90,140,255,.40);
}

.smp-mom-poss {
  font-size: 10px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
}
.smp-mom-poss-l  { color: var(--ta-text-dim, #888); text-transform: uppercase; letter-spacing: 0.04em; font-size: 9px; }
.smp-mom-poss-h  { color: #66bb6a; font-weight: 800; font-family: var(--ta-mono); }
.smp-mom-poss-vs { color: var(--ta-text-dim, #555); font-size: 9px; }
.smp-mom-poss-a  { color: #5a8cff; font-weight: 800; font-family: var(--ta-mono); }

.smp-mom-grid {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 4px;
}
.smp-mom-stat {
  display: grid;
  grid-template-columns: 1fr 30px 80px 30px;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  font-family: var(--ta-mono);
}
.smp-mom-stat-l   { color: var(--ta-text-2, #aaa); letter-spacing: 0.02em; }
.smp-mom-stat-h   { color: #66bb6a; font-weight: 700; text-align: right; }
.smp-mom-stat-a   { color: #5a8cff; font-weight: 700; text-align: left; }
.smp-mom-stat-win { color: #fff !important; font-weight: 800; }
.smp-mom-stat-tie { opacity: 0.7; }
.smp-mom-stat-bar {
  position: relative;
  height: 4px;
  background: rgba(0,0,0,0.35);
  border-radius: 2px;
  overflow: hidden;
}
.smp-mom-stat-fill-h {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #66bb6a 0%, #66bb6a 100%);
  border-radius: 2px;
  transition: width .25s ease;
}

/* ── Timeline grouping ── */
.sme.sme-grouped {
  background: rgba(90,140,255,0.05);
  border-left: 2px solid rgba(90,140,255,0.40);
}
.sme-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 9px;
  background: var(--ta-accent, #5a8cff);
  color: #fff;
  font-weight: 800;
  font-size: 9.5px;
  font-family: var(--ta-mono);
  letter-spacing: 0.04em;
}

/* ── Pixel polish ── */
.smp-progress-fill {
  min-width: 4px; /* ensure visible even at <2% */
}
/* Tighter section padding for denser popup */
.smp-section { padding: 11px 20px; }
.smp-section-title { margin-bottom: 8px; }
