/* pitchedge — soccer-first prediction-market frontend.
   Visual language: editorial dark, low chrome, dense data, restrained color. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #07090f;
  --bg-elev-1: #0d1018;
  --bg-elev-2: #141826;
  --border: #1d2230;
  --border-strong: #2a3042;
  --text: #eef0f5;
  --text-soft: #c9cdd6;
  --muted: #7a8092;
  --muted-2: #545a6c;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --link: #93c5fd;
  --up: #22c55e;
  --down: #ef4444;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* a11y skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04140b;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  outline: none;
}

/* visible focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(34, 197, 94, 0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
button { font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 22, 0.78);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 28px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0a1f12 0%, #061008 100%);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px 5px 0 5px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 1px 1px 0 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 7px 2px 7px;
  background:
    repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.32) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(34, 197, 94, 0.22) 0 1px, transparent 1px 3px);
}
.primary-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.primary-nav a {
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a.active {
  color: var(--text);
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.header-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 380px;
  margin-left: auto;
}
.header-search input {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  font: 13px/1.4 var(--font-sans);
  padding: 8px 12px 8px 30px;
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.15s, background 0.15s;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { border-color: var(--accent); background: var(--bg-elev-1); }
.header-search::before {
  content: "";
  position: absolute;
  left: 11px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
.header-search::after {
  content: "";
  position: absolute;
  left: 19px; top: 18px;
  width: 5px; height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg);
}
.header-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  max-height: 60vh; overflow: auto;
  z-index: 30;
  padding: 4px;
}
.header-search-results.open { display: block; }
.hsr-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}
.hsr-item:hover, .hsr-item.focused { background: var(--bg-elev-2); }
.hsr-title { font-weight: 500; font-size: 13.5px; line-height: 1.3; letter-spacing: -0.005em; }
.hsr-title mark { background: rgba(34, 197, 94, 0.18); color: var(--text); padding: 0 1px; border-radius: 2px; }
.hsr-meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; font-family: var(--font-mono); }
.hsr-empty { padding: 18px 14px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 720px) {
  .header-search { order: 99; flex: 1 1 100%; max-width: 100%; margin-left: 0; }
}

.connect-btn {
  background: var(--accent);
  color: #04140b;
  border: 0;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: filter 0.15s, transform 0.06s;
  white-space: nowrap;
  margin-left: auto;
}
.api-status {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: 0 0 auto;
  cursor: help;
}
.api-status-ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.api-status-down { background: var(--down); box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
.api-status-checking { background: var(--muted-2); opacity: 0.6; }

body.fog-api-down .trade-button {
  opacity: 0.5;
  cursor: not-allowed;
}
body.fog-api-down .trade-button::after {
  content: " (offline)";
  font-size: 11px;
  color: var(--down);
}

.connect-btn:hover { filter: brightness(1.05); }
.connect-btn:active { transform: translateY(1px); }
.connect-btn[disabled] { opacity: 0.55; cursor: progress; }
.connect-btn.connected {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.connect-btn.connected:hover { background: var(--bg-elev-1); border-color: var(--down); color: var(--down); }
.connect-btn.connected:hover::after { content: "  ·  disconnect"; }

.header-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ---------- main ---------- */

main.container { padding-top: 40px; padding-bottom: 96px; }

.section { margin-top: 56px; }
.section h2 {
  font-size: 18px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section h2 .section-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* ---------- hero ---------- */

.hero {
  padding: 32px 0 8px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 22ch;
}
.hero p.lede {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 60ch;
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #04140b;
}
.btn-primary:hover { filter: brightness(1.05); color: #04140b; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--bg-elev-1);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elev-2); }

/* ---------- stat strip (hero) ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 36px;
  overflow: hidden;
}
.stat-cell {
  background: var(--bg-elev-1);
  padding: 16px 18px;
}
.stat-cell .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.stat-cell .stat-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
}
.stat-cell .stat-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- competition cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.card {
  display: block;
  padding: 18px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--border-strong); }
.card .card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--bg-elev-2);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
}
.card .card-volume {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin: 6px 0 2px;
}
.card .card-meta {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- lists ---------- */

.event-list, .match-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.event-list li, .match-list li {
  border-bottom: 1px solid var(--border);
}
.event-list li:last-child, .match-list li:last-child { border-bottom: 0; }
.event-list a, .match-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  align-items: center;
  transition: background 0.12s;
}
.event-list a:hover, .match-list a:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}
.event-title, .match-teams {
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.event-meta, .match-meta {
  color: var(--muted);
  font-size: 12.5px;
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}
.event-volume {
  font-family: var(--font-mono);
  color: var(--text-soft);
  font-weight: 500;
}
.match-vs {
  display: inline;
  color: var(--muted-2);
  margin: 0 6px;
  font-weight: 400;
}

/* price movement chips */
.move-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.move-up   { color: var(--up); background: rgba(34, 197, 94, 0.10); }
.move-down { color: var(--down); background: rgba(239, 68, 68, 0.10); }
.move-flat { color: var(--muted); background: var(--bg-elev-2); }
.move-chip::before {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.move-up::before   { border-bottom: 5px solid var(--up); }
.move-down::before { border-top: 5px solid var(--down); }
.move-flat::before { display: none; }

/* charts */
.chart-wrap {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 8px;
  margin: 12px 0 28px;
}
.chart-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.chart-tab {
  background: var(--bg-elev-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  font-weight: 600;
}
.chart-tab.active { color: var(--text); background: var(--accent-soft); border-color: rgba(34,197,94,0.3); }
.chart-tab:hover:not(.active) { color: var(--text); }
.chart {
  width: 100%;
  height: 220px;
  position: relative;
}
.chart-svg { display: block; width: 100%; height: 100%; }
.chart-line { fill: none; stroke-width: 2; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 10.5px; font-family: var(--font-mono); }
.chart-crosshair { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-dot { fill: var(--accent); stroke: var(--bg-elev-1); stroke-width: 2; }
.chart-readout { fill: var(--text); font-size: 12px; font-family: var(--font-mono); font-weight: 600; }
.chart-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-mono);
}
.chart-loading { opacity: 0.5; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 0;
}
.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 3px 10px 3px 6px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  cursor: pointer;
  line-height: 1.4;
  max-width: 280px;
}
.chart-legend-item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.chart-legend-muted { opacity: 0.35; cursor: default; }
.chart-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
}

/* trade modal */
#fog-modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.fog-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
  animation: fogFade 160ms ease-out;
}
@keyframes fogFade { from { opacity: 0; } to { opacity: 1; } }
.fog-modal {
  width: min(540px, 92vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
  display: flex; flex-direction: column;
}
.fog-modal-h {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.fog-modal-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 700; margin-bottom: 4px;
}
.fog-modal-title {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.3; max-width: 36ch;
}
.fog-modal-x {
  background: transparent; border: 0; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
}
.fog-modal-x:hover { color: var(--text); background: var(--bg-elev-2); }
.fog-modal-body { padding: 18px 22px 6px; }
.fog-modal-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-bottom: 16px;
}
.fog-modal-grid > div { background: var(--bg-elev-1); padding: 12px 14px; }
.fog-modal-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 600;
}
.fog-modal-value { margin-top: 4px; font-weight: 700; font-size: 15px; }
.fog-modal-value.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.fog-modal-row {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px;
}
.fog-modal-row input {
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  color: var(--text); font: 18px/1 var(--font-mono);
  padding: 14px 14px; border-radius: 10px;
  width: 100%; font-variant-numeric: tabular-nums;
}
.fog-modal-row input:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.fog-modal-summary {
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.6; color: var(--text-soft);
}
.fog-modal-summary strong { color: var(--text); }
.fog-modal-summary .muted { color: var(--muted); margin-top: 6px; font-size: 12.5px; }
.fog-modal-warning {
  margin-top: 12px; min-height: 0;
  font-size: 13px; color: var(--down);
}
.fog-modal-warning[data-kind="error"] {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px; padding: 10px 12px; margin-top: 12px;
}
.fog-modal-f {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px 22px;
}
.fog-modal-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 8px 0 10px;
}
.fog-modal-success-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(34, 197, 94, 0.15); color: var(--up);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 14px;
  border: 2px solid rgba(34, 197, 94, 0.4);
}
.fog-modal-success h3 { margin: 0 0 14px; font-size: 18px; }
.fog-modal-success dl {
  width: 100%; margin: 0; padding: 12px 14px;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13.5px;
}
.fog-modal-success dl > div {
  display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.fog-modal-success dl > div:last-child { border-bottom: 0; }
.fog-modal-success dt { color: var(--muted); }
.fog-modal-success dd { margin: 0; color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .fog-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .fog-modal-grid { grid-template-columns: 1fr; }
}

/* live price flash */
.flash-up   { animation: flashUp 700ms ease-out; }
.flash-down { animation: flashDown 700ms ease-out; }
@keyframes flashUp {
  0%   { background: rgba(34, 197, 94, 0.32); color: var(--up); }
  100% { background: transparent; }
}
@keyframes flashDown {
  0%   { background: rgba(239, 68, 68, 0.32); color: var(--down); }
  100% { background: transparent; }
}
.header-status.live-on::before {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
}

/* world cup hub */
.wc-hero {
  background: linear-gradient(135deg, #0d1f15 0%, #0a0e1a 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.wc-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(34, 197, 94, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.wc-hero h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  font-weight: 800;
}
.wc-hero p { color: var(--text-soft); margin: 0 0 20px; max-width: 56ch; }
.wc-countdown {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.wc-countdown div { text-align: center; }
.wc-countdown .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.wc-countdown .lab {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 5px;
}

.wc-contenders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.wc-row {
  background: var(--bg-elev-1);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.12s;
}
.wc-row:hover { background: var(--bg-elev-2); }
.wc-row .team-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  width: 22px;
}
.wc-row .team-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.005em;
  flex: 1;
  min-width: 0;
}
.wc-row .team-implied {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wc-implied-bar {
  flex: 0 0 100px;
  height: 4px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  overflow: hidden;
}
.wc-implied-bar .fill { display: block; height: 100%; background: var(--accent); }

/* tier grid */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.tier {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tier header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}
.tier h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.tier-sub {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tier-summary {
  color: var(--text-soft);
  font-size: 13px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.tier-list li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.tier-list li:last-child { border-bottom: 0; }
.tier-team { color: var(--text); font-weight: 500; }
.tier-pct {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* account page */
.account-empty {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  margin: 24px 0;
}
.account-empty h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.account-empty p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 22px 0 28px;
  overflow: hidden;
}
.account-stats > div { background: var(--bg-elev-1); padding: 14px 16px; }
.account-stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 600;
}
.account-stat-value {
  margin-top: 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.005em;
}
.account-stat-value.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.account-stat-value.up { color: var(--up); }
.account-stat-value.down { color: var(--down); }

.account-positions {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.account-pos {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.account-pos:last-child { border-bottom: 0; }
.account-pos:hover { background: var(--bg-elev-2); }
.account-pos-main { min-width: 0; }
.account-pos-title {
  display: block; color: var(--text); font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.005em;
}
.account-pos-title:hover { color: var(--link); }
.account-pos-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; font-family: var(--font-mono); }
.account-pos-value { font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.account-pos-pnl { font-size: 14px; font-weight: 600; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.account-pos-pnl.up { color: var(--up); }
.account-pos-pnl.down { color: var(--down); }
.account-loading, .account-empty-list {
  padding: 28px 18px; color: var(--muted); font-size: 13px; text-align: center;
}
.btn-sm {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.btn-sm:hover { background: var(--accent); color: #04140b; border-color: var(--accent); }

@media (max-width: 700px) {
  .account-pos { grid-template-columns: 1fr auto; row-gap: 6px; }
  .account-pos-value { grid-column: 2; text-align: right; }
  .account-pos-pnl { grid-column: 2; text-align: right; }
  .account-pos-main { grid-column: 1; grid-row: 1; }
  .btn-sm { grid-column: 1 / -1; justify-self: stretch; }
}

/* 404 */
.not-found {
  text-align: center;
  padding: 60px 0 80px;
}
.not-found-num {
  font-family: var(--font-mono);
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  opacity: 0.85;
}
.not-found h1 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.not-found p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 24px;
  font-size: 15px;
}
.not-found-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* about page */
.about article { max-width: 64ch; margin: 0 auto; }
.about h1 {
  font-size: clamp(28px, 3.6vw, 36px);
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
  font-weight: 800;
}
.about .lede {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0 0 28px;
}
.about h2 {
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 32px 0 8px;
  font-weight: 700;
}
.about p { margin: 0 0 14px; color: var(--text-soft); line-height: 1.65; }
.about strong { color: var(--text); font-weight: 600; }
.about .signoff {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { color: var(--muted-2); margin: 0 6px; }

/* ---------- event page ---------- */

.event-header h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
  line-height: 1.15;
  font-weight: 800;
}
.event-description {
  color: var(--text-soft);
  margin: 0 0 22px;
  max-width: 70ch;
}
.event-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 22px 0 36px;
  padding: 0;
  overflow: hidden;
}
.event-stats > div {
  background: var(--bg-elev-1);
  padding: 14px 16px;
  margin: 0;
}
.event-stats dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.event-stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  font-family: var(--font-mono);
}

/* ---------- odds table ---------- */

.markets {
  margin-top: 8px;
}
.markets h2 {
  font-size: 16px;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.odds-table th, .odds-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.odds-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.odds-table td.numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.odds-table tbody tr { transition: background 0.1s; }
.odds-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.odds-table tbody tr:last-child td { border-bottom: 0; }

.spread-cell { font-size: 13px; line-height: 1.25; }
.spread-bid { color: var(--up); }
.spread-ask { color: var(--down); }
.spread-sep { color: var(--muted-2); margin: 0 4px; }
.spread-meta { color: var(--muted); font-size: 11px; margin-top: 2px; font-family: var(--font-mono); }

.outcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
}
.outcome-yes { color: var(--up); border-color: rgba(34, 197, 94, 0.22); background: rgba(34, 197, 94, 0.08); }
.outcome-no  { color: var(--down); border-color: rgba(239, 68, 68, 0.22); background: rgba(239, 68, 68, 0.08); }
.outcome-over { color: var(--up); border-color: rgba(34, 197, 94, 0.22); background: rgba(34, 197, 94, 0.08); }
.outcome-under { color: var(--down); border-color: rgba(239, 68, 68, 0.22); background: rgba(239, 68, 68, 0.08); }

.implied-bar {
  width: 96px;
  height: 6px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}
.implied-bar .fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.trade-button {
  background: var(--accent);
  color: #04140b;
  border: 0;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: -0.005em;
  transition: filter 0.15s, transform 0.06s;
}
.trade-button:hover { filter: brightness(1.06); }
.trade-button:active { transform: translateY(1px); }
.trade-button[disabled] { opacity: 0.55; cursor: not-allowed; }
.trade-button-sell {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--down);
  margin-left: 6px;
}
.trade-button-sell:hover { background: rgba(239,68,68,0.08); }

#fog-shortcut-help {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 200;
}
#fog-shortcut-help.show { opacity: 1; transform: translateY(0); }
#fog-shortcut-help strong { display: block; margin-bottom: 6px; }
#fog-shortcut-help ul { list-style: none; margin: 0; padding: 0; }
#fog-shortcut-help li { padding: 2px 0; color: var(--text-soft); }
#fog-shortcut-help kbd {
  display: inline-block;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-right: 8px;
  min-width: 18px;
  text-align: center;
}

/* ---------- related and trust ---------- */

.related ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.related li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.related li:last-child { border-bottom: 0; }
.related li span.muted { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }

.trust {
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.trust h2 {
  margin-top: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.trust ul { margin: 12px 0 0; padding-left: 18px; }
.trust li { margin-bottom: 6px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 28px 0 56px;
  color: var(--muted);
  font-size: 12.5px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01));
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 18px;
}
.site-footer h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover { color: var(--text); }
.footer-fine {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- competition page ---------- */

.competition-header h1 {
  font-size: clamp(28px, 3.6vw, 36px);
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
  font-weight: 800;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .header-status { display: none; }
  .site-header .container { gap: 20px; }
  .primary-nav { gap: 14px; }
}

@media (max-width: 880px) {
  .site-header .container { gap: 14px; }
  .primary-nav { gap: 12px; font-size: 13px; }
  .header-search { flex-basis: 180px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .site-header .container { height: auto; padding: 12px 18px; flex-wrap: wrap; gap: 14px; }
  .header-status { display: none; }
  .primary-nav {
    gap: 14px;
    font-size: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 100%;
    order: 4;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .primary-nav::-webkit-scrollbar { display: none; }
  .header-search { order: 3; }
  .connect-btn { order: 2; }
  main.container { padding-top: 28px; }
  .hero h1 { font-size: 28px; }
  .hero p.lede { font-size: 15.5px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .odds-table { font-size: 13px; }
  .odds-table th, .odds-table td { padding: 10px 12px; }
  .odds-table th:nth-child(3), .odds-table td:nth-child(3),
  .odds-table th:nth-child(5), .odds-table td:nth-child(5),
  .odds-table th:nth-child(6), .odds-table td:nth-child(6) { display: none; }
  .event-list a, .match-list a { padding: 14px 14px; }
  .chart { height: 200px; }
  .fog-modal-row input { font-size: 16px; }  /* prevent iOS zoom on focus */
  .fog-modal-grid { grid-template-columns: 1fr 1fr !important; }
  .trade-button-sell { margin-left: 4px; padding: 7px 10px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .trade-button { width: 100%; margin-bottom: 4px; }
  .trade-button-sell { width: 100%; margin-left: 0; margin-bottom: 0; }
}

/* ---- Order book widget ---- */
.book-section { margin-top: 28px; }
.book-section > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.book-section .section-meta { color: var(--muted); font-size: 12px; font-weight: 400; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.book-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.book-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: inherit;
}
.book-mid-wrap { display: inline-flex; gap: 6px; align-items: baseline; font-size: 12px; }
.book-mid-wrap .muted { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.book-mid, .book-spread { font-weight: 600; }
.book-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.book-mid-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.book-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  overflow: hidden;
  z-index: 0;
}
.book-bar {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
}
.book-row-bid .book-bar { background: var(--up); }
.book-row-ask .book-bar { background: var(--down); }
.book-row-bid .book-price { color: var(--up); }
.book-row-ask .book-price { color: var(--down); }
.book-size { color: var(--muted); text-align: right; padding-left: 8px; font-size: 11.5px; }
.book-empty { color: var(--muted); font-size: 11px; padding: 4px 6px; font-family: var(--font-mono); }

/* Live WebSocket indicator: tighter pulse when WS feed is open. */
.header-status.live-on { color: var(--text); }
.header-status.live-ws::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  vertical-align: 0;
  animation: live-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

@media (max-width: 880px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ---- Account: open orders & recent fills ---- */
.account-orders, .account-fills { display: flex; flex-direction: column; gap: 6px; }
.account-order, .account-fill {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.account-order-main, .account-fill-main { min-width: 0; }
.account-order-title, .account-fill-title {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.account-fill-title:hover { text-decoration: underline; }
.account-order-sub, .account-fill-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.account-fill-value { font-weight: 500; }
.account-fill-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.account-fill-time a { color: var(--accent); text-decoration: none; }
.account-fill-time a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .account-order, .account-fill { grid-template-columns: 1fr auto; }
  .account-fill-time { grid-column: 1 / -1; }
}

/* ---- Trade modal: market/limit tabs ---- */
.fog-modal-tabs {
  display: flex;
  gap: 0;
  align-items: center;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.fog-modal-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: color 0.1s, border-color 0.1s;
  margin-bottom: -1px;
}
.fog-modal-tab:hover { color: var(--text); }
.fog-modal-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.fog-modal-tab-hint {
  margin-left: auto;
  font-size: 11.5px;
  padding: 4px 0 4px 8px;
}
@media (max-width: 480px) {
  .fog-modal-tab-hint { display: none; }
}

/* ---- Status page ---- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}
.status-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.status-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.status-card h3 { margin: 0; font-size: 14px; font-weight: 500; }
.status-detail { color: var(--muted); font-size: 12.5px; margin: 0; font-family: var(--font-mono); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--bg-elev-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill-ok { color: #22c55e; border-color: rgba(34,197,94,0.32); background: rgba(34,197,94,0.08); }
.status-pill-slow { color: #f59e0b; border-color: rgba(245,158,11,0.32); background: rgba(245,158,11,0.08); }
.status-pill-down { color: var(--down); border-color: rgba(239,68,68,0.32); background: rgba(239,68,68,0.08); }
.status-pill-checking { color: var(--muted); }

/* ---- Footer risk strip ---- */
.footer-risk {
  display: block;
  padding: 8px 12px;
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev-1);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.footer-fine { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
