/* ============================================================
   BEEF OPS — design tokens
   Theme: a control-room console for an app whose own brand mark
   is an ember-to-pasture gradient (the bull logo). That gradient
   is reused everywhere here as a literal "heat gauge" — full
   pasture-green when a metric is healthy, receding toward ember
   as it heats up / degrades. Mono type for anything that's data.
   ============================================================ */

:root {
  --void: #0A0C0D;
  --char: #14181A;
  --char-2: #1B2023;
  --hairline: #262C2F;
  --bone: #ECEFEE;
  --ash: #8C9598;
  --ash-dim: #5E6669;

  --ember: #FF5B33;
  --amber: #F4B731;
  --pasture: #2FD980;
  --red: #FF4D6A;

  --grad: linear-gradient(90deg, var(--ember) 0%, var(--amber) 50%, var(--pasture) 100%);

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

button, input { font-family: inherit; }

code {
  font-family: var(--mono);
  background: var(--char-2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* brand spine — full-width gradient hairline, the one bold stroke */
.spine {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  z-index: 50;
}

/* ───────────────────── Auth screen ───────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 91, 51, 0.07) 0%, rgba(47, 217, 128, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--char);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 36px 32px 32px;
  position: relative;
  z-index: 1;
}

.auth-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  margin-bottom: 20px;
  box-shadow: 0 8px 28px -8px rgba(255, 91, 51, 0.35);
}

.auth-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.auth-sub {
  color: var(--ash);
  font-size: 13.5px;
  margin: 0 0 26px;
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ash); }

.field input {
  background: var(--void);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--bone);
  font-size: 13.5px;
  font-family: var(--mono);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--pasture); }

.btn-primary {
  background: var(--bone);
  color: var(--void);
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { opacity: 0.7; }

.btn-ghost {
  background: transparent;
  color: var(--ash);
  border: none;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-ghost:hover { color: var(--bone); }

.hint {
  font-size: 11.5px;
  color: var(--ash-dim);
  line-height: 1.5;
  margin: 2px 0 0;
}

.auth-error {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--red);
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.25);
  border-radius: 8px;
  padding: 9px 11px;
}

/* ───────────────────── App shell ───────────────────── */
.app { min-height: 100vh; padding-top: 3px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 3px;
  background: rgba(10, 12, 13, 0.92);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--grad);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tabs { display: flex; gap: 4px; flex: 1; }
.tab {
  background: transparent;
  border: none;
  color: var(--ash);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--bone); }
.tab.active { background: var(--char-2); color: var(--bone); }

.topbar-right { display: flex; align-items: center; gap: 14px; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ash-dim);
  flex-shrink: 0;
}
.live-dot.connected {
  background: var(--pasture);
  box-shadow: 0 0 0 0 rgba(47, 217, 128, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 217, 128, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(47, 217, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 128, 0); }
}

.updated-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ash-dim);
  white-space: nowrap;
}

.icon-btn {
  background: var(--char-2);
  border: 1px solid var(--hairline);
  color: var(--ash);
  width: 30px; height: 30px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--bone); border-color: var(--ash-dim); }

.content { max-width: 1180px; margin: 0 auto; padding: 26px 28px 60px; }

.panel { display: flex; flex-direction: column; gap: 26px; }

/* ───────────────────── Hero status band ─────────────────────
   The one number that matters most (overall status, or total users)
   gets real visual weight instead of being sized the same as every
   secondary stat next to it. */
.hero-status {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--char);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--ash-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-status.is-ok { border-left-color: var(--pasture); background: linear-gradient(90deg, rgba(47,217,128,0.05), var(--char) 30%); }
.hero-status.is-warn { border-left-color: var(--amber); background: linear-gradient(90deg, rgba(244,183,49,0.06), var(--char) 30%); }
.hero-status.is-bad { border-left-color: var(--ember); background: linear-gradient(90deg, rgba(255,91,51,0.07), var(--char) 30%); }

.hero-main {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 200px;
}
.hero-main-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ash);
}
.hero-main-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero-main-value.ok { color: var(--pasture); }
.hero-main-value.warn { color: var(--amber); }
.hero-main-value.bad { color: var(--ember); }

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 24px;
  gap: 28px;
  border-left: 1px solid var(--hairline);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}
.hero-stat-value.ok { color: var(--pasture); }
.hero-stat-value.warn { color: var(--amber); }
.hero-stat-value.bad { color: var(--ember); }
.hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ash-dim);
}

@media (max-width: 720px) {
  .hero-status { flex-direction: column; }
  .hero-stats { border-left: none; border-top: 1px solid var(--hairline); padding: 14px 26px; gap: 20px; }
}

/* ───────────────────── Cards ───────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.metric-card {
  background: var(--char);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ash-dim);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-left-color 0.2s;
}
.metric-card.severity-ok { border-left-color: var(--pasture); }
.metric-card.severity-warn { border-left-color: var(--amber); }
.metric-card.severity-bad { border-left-color: var(--ember); }

.metric-card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.metric-card-main {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}
.metric-card-main small {
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  color: var(--ash);
  margin-left: 4px;
}

.metric-card-rows { display: flex; flex-direction: column; gap: 4px; }
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ash);
}
.metric-row b { color: var(--bone); font-weight: 500; font-family: var(--mono); }

/* heat gauge — the signature element. A thin gradient track; the filled
   portion uses the same brand gradient clipped to its own width, so a
   healthy (low-fill) gauge reads green and a hot (high-fill) one reads
   ember, without needing a separate color per state. */
.gauge {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: var(--char-2);
  overflow: hidden;
}
.gauge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.22;
}
.gauge-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 4px;
}

/* ───────────────────── Blocks / tables ───────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.block {
  background: var(--char);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}

.block-title {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.block-title-sub {
  font-family: var(--body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ash-dim);
}

.block-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.block-head-row .block-title { margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th {
  text-align: left;
  color: var(--ash-dim);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--hairline);
}
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  color: var(--bone);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
.muted { color: var(--ash); }
.empty-row td { font-family: var(--body); color: var(--ash-dim); padding: 18px 10px; white-space: normal; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-family: var(--body);
  font-weight: 500;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-pill.ok { background: rgba(47, 217, 128, 0.12); color: var(--pasture); }
.status-pill.ok::before { background: var(--pasture); }
.status-pill.warn { background: rgba(244, 183, 49, 0.12); color: var(--amber); }
.status-pill.warn::before { background: var(--amber); }
.status-pill.bad { background: rgba(255, 91, 51, 0.13); color: var(--ember); }
.status-pill.bad::before { background: var(--ember); }
.status-pill.idle { background: rgba(140, 149, 152, 0.12); color: var(--ash); }
.status-pill.idle::before { background: var(--ash-dim); }

/* ───────────────────── Live feed ───────────────────── */
.feed { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.feed-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}
.feed-row:last-child { border-bottom: none; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.feed-dot.ok { background: var(--pasture); }
.feed-dot.bad { background: var(--ember); }
.feed-dot.run { background: var(--ash-dim); }
.feed-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-title { font-family: var(--mono); color: var(--bone); }
.feed-meta { color: var(--ash-dim); font-size: 11px; }
.feed-row.flash { animation: flash-in 1.4s ease-out; }
@keyframes flash-in {
  0% { background: rgba(47, 217, 128, 0.14); }
  100% { background: transparent; }
}
.feed-row.flash.is-error { animation-name: flash-in-err; }
@keyframes flash-in-err {
  0% { background: rgba(255, 91, 51, 0.16); }
  100% { background: transparent; }
}

/* ───────────────────── Users: chart ───────────────────── */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 110px;
  padding-top: 6px;
}
.chart-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--grad);
  background-size: 100% 320%;
  background-position: bottom;
  position: relative;
  cursor: default;
}
.chart-bar:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--char-2);
  border: 1px solid var(--hairline);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
  margin-bottom: 5px;
  pointer-events: none;
}

/* ───────────────────── Users: search + pager ───────────────────── */
.search-input {
  background: var(--void);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--bone);
  font-size: 12.5px;
  width: 240px;
  outline: none;
}
.search-input:focus { border-color: var(--pasture); }

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ash);
}
.pager button {
  background: var(--char-2);
  border: 1px solid var(--hairline);
  color: var(--bone);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
}
.pager button:disabled { opacity: 0.35; cursor: default; }

.avatar-cell { display: flex; align-items: center; gap: 8px; font-family: var(--body); }
.avatar-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--char-2);
  border: 1px solid var(--hairline);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .content { padding: 18px 16px 50px; }
  .tabs { gap: 2px; order: 3; width: 100%; }
  .search-input { width: 100%; }
  .topbar-right { gap: 10px; }
  .updated-label { display: none; }
  .liveday-badge { padding: 3px 7px; }
  .block-head-row { flex-wrap: wrap; gap: 8px; }
  .block-head-row > div { width: 100%; }
  .summary-strip { gap: 18px; }
  .trends-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 4vh 12px 12px; }
}

/* ───────────────────── Error banner ───────────────────── */
.error-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  background: rgba(255, 91, 51, 0.1);
  border-bottom: 1px solid rgba(255, 91, 51, 0.3);
  color: var(--ember);
  font-size: 12.5px;
}
.error-banner span { flex: 1; }
.error-banner button {
  background: transparent;
  border: 1px solid rgba(255, 91, 51, 0.4);
  color: var(--ember);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  cursor: pointer;
}
.error-banner #error-banner-dismiss { border: none; padding: 4px 6px; }

/* ───────────────────── Trends / sparklines ───────────────────── */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.trend-card {
  background: var(--char-2);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 13px 15px;
}
.trend-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.trend-card-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ash); }
.trend-card-total { font-family: var(--display); font-size: 15px; font-weight: 600; }
.sparkline { width: 100%; height: 44px; display: block; }
.sparkline .fill { fill: rgba(47, 217, 128, 0.12); stroke: none; }
.sparkline .line { fill: none; stroke: var(--pasture); stroke-width: 1.6; }
.sparkline .line.is-bad { stroke: var(--ember); }
.sparkline .line.is-secondary { stroke: var(--ash-dim); stroke-dasharray: 2 2; }

.readiness-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--char-2);
  color: var(--ash);
  font-size: 12px;
  line-height: 1.45;
}
.readiness-note .status-pill {
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ───────────────────── Skeleton loading ───────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--char-2);
  border-radius: 6px;
  color: transparent !important;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ───────────────────── Modal ───────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 7, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 20px 20px;
  z-index: 100;
}
.modal {
  width: 100%;
  max-width: 640px;
  max-height: 78vh;
  background: var(--char);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
}
.modal-head h3 {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
}
.modal-body { padding: 16px 18px 20px; overflow-y: auto; }
.modal-body p.lead { color: var(--ash); font-size: 12.5px; margin: 0 0 14px; line-height: 1.6; }
.modal-section { margin-bottom: 18px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ash-dim); margin-bottom: 8px; }
.error-detail {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ember);
  background: rgba(255, 91, 51, 0.07);
  border: 1px solid rgba(255, 91, 51, 0.2);
  border-radius: 7px;
  padding: 9px 11px;
  white-space: pre-wrap;
  word-break: break-word;
}
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kv-item { background: var(--char-2); border-radius: 8px; padding: 9px 11px; }
.kv-item .kv-label { font-size: 10.5px; color: var(--ash-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.kv-item .kv-value { font-family: var(--mono); font-size: 13px; margin-top: 2px; }

.btn-ghost-card { font-size: 11.5px; padding: 2px; }

.status-filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.status-chip {
  background: var(--char-2);
  border: 1px solid var(--hairline);
  color: var(--ash);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
}
.status-chip.active { background: var(--bone); color: var(--void); border-color: var(--bone); }

.league-debug-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.league-debug-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.league-debug-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
}
.league-debug-action {
  min-height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: var(--char-2);
  color: var(--bone);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
}
.league-debug-action:hover:not(:disabled) {
  border-color: var(--ash);
  background: #20272A;
}
.league-debug-action.primary {
  border-color: rgba(47, 217, 128, 0.45);
  color: var(--pasture);
}
.league-debug-action.danger {
  border-color: rgba(255, 91, 51, 0.45);
  color: var(--ember);
}
.league-debug-action:disabled {
  opacity: 0.42;
  cursor: default;
}
.league-debug-result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--char-2);
  padding: 10px 12px;
  margin-bottom: 16px;
}
.league-debug-result strong {
  display: block;
  font-size: 12.5px;
}
.league-debug-result p {
  margin: 3px 0 0;
  color: var(--ash);
  font-size: 12px;
}
.league-debug-result span {
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.league-debug-result.ok { border-color: rgba(47, 217, 128, 0.35); }
.league-debug-result.ok strong { color: var(--pasture); }
.league-debug-result.bad { border-color: rgba(255, 91, 51, 0.35); }
.league-debug-result.bad strong { color: var(--ember); }
.league-debug-issues {
  display: grid;
  gap: 8px;
}
.league-debug-issue {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--char-2);
  padding: 9px 11px;
}
.league-debug-issue span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
}
.league-debug-issue p {
  margin: 0;
  color: var(--ash);
  font-size: 12.5px;
  line-height: 1.4;
}

.row-clickable { cursor: pointer; }
.row-clickable:hover td { background: var(--char-2); }

.alert-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--char-2);
  border-radius: 9px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

#alerts-btn.configured { color: var(--pasture); border-color: rgba(47, 217, 128, 0.35); }

.liveday-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ember);
  background: rgba(255, 91, 51, 0.12);
  border: 1px solid rgba(255, 91, 51, 0.3);
  border-radius: 99px;
  padding: 3px 9px;
  animation: pulse-ember 2s infinite;
}
@keyframes pulse-ember {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ───────────────────── Accessibility quality floor ───────────────────── */
:focus-visible {
  outline: 2px solid var(--pasture);
  outline-offset: 2px;
  border-radius: 4px;
}
.row-clickable:focus-visible {
  outline: 2px solid var(--pasture);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .live-dot.connected { animation: none; box-shadow: 0 0 0 2px rgba(47, 217, 128, 0.45); }
  .liveday-badge { animation: none; }
}
