:root {
  --turf-900: #0f3d23;
  --turf-800: #14532d;
  --turf-700: #166534;
  --turf-500: #22c55e;
  --turf-100: #dcfce7;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-100: #fef3c7;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --danger: #dc2626;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

.app-viewport {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

@media (min-width: 520px) {
  .app-viewport { padding: 16px; align-items: center; }
}

.mobile-shell {
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  max-height: 860px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 520px) {
  .mobile-shell {
    height: min(92vh, 844px);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 6px #1e293b;
  }
}

.banner-warning {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.banner-warning code { background: #fee2e2; padding: 1px 4px; border-radius: 4px; }
.hidden { display: none !important; }

.top-bar {
  background: linear-gradient(135deg, var(--turf-900), var(--turf-700));
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.brand-group { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 0.7rem; color: #bbf7d0; display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#status-rank { overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.status-pills { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.pill-btn { cursor: pointer; min-height: 36px; transition: background 0.15s ease, border-color 0.15s ease; }
.pill-btn:hover, .pill-btn:focus-visible { background: rgba(255, 255, 255, 0.28); outline: 2px solid var(--gold-400); outline-offset: 1px; }
.pill-btn.active { background: #ffffff; color: var(--turf-900); border-color: #ffffff; font-weight: 800; }
.pill-btn.has-unclaimed:not(.active) { background: rgba(245, 158, 11, 0.34); border-color: #fcd34d; color: #fef3c7; }

.screen-host { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.screen-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink-900); }
.sprint-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gold-100);
  color: var(--gold-600);
}
.sprint-tag.live { background: var(--turf-100); color: var(--turf-800); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.card-title { margin: 0 0 8px 0; font-size: 0.92rem; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-copy { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--ink-700); }
.mentor-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }

/* Inline Edit Forms */
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.text-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--ink-900);
  font-size: 0.88rem;
  font-weight: 600;
}
.text-input:focus {
  outline: 2px solid var(--turf-700);
  outline-offset: 1px;
  background: #ffffff;
}
.form-feedback {
  margin: 6px 0 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
}
.form-feedback.ok { color: var(--turf-800); }
.form-feedback.error { color: var(--danger); }

/* 3D Stage */
.stage-card { padding: 0; overflow: hidden; border: 1px solid #cbd5e1; }
.stage-canvas-wrap { position: relative; width: 100%; height: 245px; background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 55%, #4ade80 100%); touch-action: none; }
.stage-canvas-wrap canvas { display: block; width: 100% !important; height: 100% !important; }
.stage-hud-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; gap: 6px; }
.hud-chip { background: rgba(15, 23, 42, 0.72); color: #f8fafc; font-size: 0.7rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(4px); font-variant-numeric: tabular-nums; }
.hud-chip.ok { background: rgba(20, 83, 45, 0.85); color: #dcfce7; }
.stage-controls { padding: 10px 12px; background: #ffffff; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.control-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.control-label { font-size: 0.72rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; margin-right: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border-radius: var(--radius-md);
  border: 1px solid transparent; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--turf-700), var(--turf-800)); color: #ffffff; width: 100%; }
.btn-primary.auto-w { width: auto; flex-shrink: 0; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #ffffff; width: 100%; }
.btn-secondary { background: #f8fafc; color: var(--ink-900); border-color: #cbd5e1; }
.btn-danger-soft { background: #fef2f2; color: #b91c1c; border-color: #fecaca; width: 100%; }
.btn-sm { width: auto; flex-shrink: 0; white-space: nowrap; min-height: 38px; padding: 6px 11px; font-size: 0.76rem; border-radius: var(--radius-sm); }
.btn-chip { min-height: 34px; padding: 4px 10px; font-size: 0.74rem; border-radius: 999px; background: #f1f5f9; color: var(--ink-700); border: 1px solid #cbd5e1; }
.btn-chip.active { background: var(--turf-800); color: #ffffff; border-color: var(--turf-800); }

/* Attribute Cards with Plain-Language Descriptions */
.attr-card-list { display: flex; flex-direction: column; gap: 10px; }
.attr-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.attr-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.attr-item-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-900);
}
.attr-item-badge {
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.attr-item-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink-500);
}

.stat-list { display: flex; flex-direction: column; gap: 8px; }
.stat-row { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: 0.8rem; }
.stat-name { font-weight: 600; color: var(--ink-700); }
.stat-bar-bg { height: 9px; background: #e2e8f0; border-radius: 999px; overflow: hidden; width: 100%; }
.stat-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--turf-700), var(--turf-500)); }
.stat-bar-fill.blue { background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }
.stat-bar-fill.gold { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); }
.stat-bar-fill.warn { background: linear-gradient(90deg, #f97316, #ef4444); }
.stat-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-900); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.list-stack { display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: #f8fafc; border: 1px solid var(--border); }
.list-item-title { font-size: 0.84rem; font-weight: 700; color: var(--ink-900); }
.list-item-sub { font-size: 0.74rem; color: var(--ink-500); margin-top: 2px; }
.race-hud-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.metric-box { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; text-align: center; }
.metric-label { font-size: 0.66rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; }
.metric-value { font-size: 0.92rem; font-weight: 800; color: var(--ink-900); margin-top: 2px; font-variant-numeric: tabular-nums; }

.bottom-nav {
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; border: none; background: transparent; color: var(--ink-500);
  font-size: 0.68rem; font-weight: 700; cursor: pointer; border-radius: var(--radius-sm); padding: 4px 2px;
}
.nav-item .nav-icon { font-size: 1.15rem; line-height: 1; }
.nav-item.active { color: var(--turf-800); background: var(--turf-100); }
.nav-item:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }
.footnote { font-size: 0.7rem; color: var(--ink-500); text-align: center; padding: 4px 0 6px; }

/* Sprint 2 Training UI */
.alert-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 10px;
}

.feedback-card {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #86efac;
}
.feedback-card.warn-tone {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
}

.delta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink-900);
}
.delta-chip.pos { background: #dcfce7; border-color: #86efac; color: #166534; }
.delta-chip.neg { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.delta-chip.neu { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }

.training-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border);
}
.training-action-card.rest-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.training-action-info { min-width: 0; flex: 1; }
.training-tradeoff {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--turf-800);
  margin-top: 4px;
}
.training-action-btn {
  min-width: 78px;
  min-height: 44px;
  flex-shrink: 0;
}

/* Sprint 3 Race Day & Results UI */
.race-canvas-wrap {
  position: relative;
  width: 100%;
  height: 295px;
  background: linear-gradient(180deg, #87ceeb 0%, #bae6fd 58%, #247a42 100%);
  touch-action: none;
}
.race-canvas-wrap canvas { display: block; width: 100% !important; height: 100% !important; }

.race-overlay-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.race-overlay-pill {
  background: rgba(15, 23, 42, 0.78);
  color: #fef08a;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid #facc15;
  backdrop-filter: blur(4px);
}
.race-overlay-pill.small { font-size: 1rem; color: #ffffff; border-color: rgba(255,255,255,0.4); }

.progress-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dcfce7 0%, #bbf7d0 85%, #fde68a 100%);
  border: 1px solid #86efac;
  margin: 8px 0 4px;
}
.runner-pip {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.runner-pip.player-pip {
  width: 15px;
  height: 15px;
  border: 2px solid #facc15;
  z-index: 3;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.standings-table th {
  text-align: left;
  padding: 6px 6px;
  color: var(--ink-500);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
}
.standings-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-900);
}
.standings-table tr.player-row td {
  background: #dcfce7;
  font-weight: 800;
  color: #0f3d23;
}
.disclaimer-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 9px 11px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-500);
}

/* Sprint 4 Strategy & Analysis UI */
.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.strategy-card.selected {
  background: #f0fdf4;
  border-color: var(--turf-700);
}
.strategy-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.strategy-card-title { font-size: 0.86rem; font-weight: 800; color: var(--ink-900); }
.strategy-card-desc { font-size: 0.75rem; line-height: 1.38; color: var(--ink-700); }

.factor-row {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.factor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.factor-val {
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.tag-edge { background: #dcfce7; color: #166534; }
.tag-trailing { background: #fee2e2; color: #991b1b; }

.tactical-panel {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid var(--gold-500);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.22);
}
.tactical-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.tactical-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  min-height: 54px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-900);
  cursor: pointer;
  text-align: left;
}
.tactical-choice-btn:hover, .tactical-choice-btn:focus-visible {
  border-color: var(--turf-700);
  background: #f0fdf4;
  outline: none;
}
.tactical-choice-title { font-size: 0.86rem; font-weight: 800; }
.tactical-choice-sub { font-size: 0.73rem; color: var(--ink-500); }

/* Sprint 5 — Racing Academy, Missions & Rewards */
.sme-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #1e3a8a;
}
.sme-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.lesson-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lesson-card-title { font-size: 0.9rem; font-weight: 800; color: var(--ink-900); }
.lesson-example {
  background: #f0fdf4;
  border-left: 3px solid var(--turf-700);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #14532d;
}

.quiz-option-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.quiz-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-900);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--turf-700);
  background: #f0fdf4;
}
.quiz-option-btn:disabled { cursor: default; }
.quiz-option-btn.correct {
  border-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
}
.quiz-option-btn.incorrect {
  border-color: #dc2626;
  background: #fee2e2;
  color: #991b1b;
}
.quiz-opt-letter {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.quiz-option-btn.correct .quiz-opt-letter { background: #16a34a; color: #ffffff; }
.quiz-option-btn.incorrect .quiz-opt-letter { background: #dc2626; color: #ffffff; }

.quiz-feedback-box {
  margin-top: 10px;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.42;
}
.quiz-feedback-box.ok {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
}
.quiz-feedback-box.wrong {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tab-btn {
  min-height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--turf-900);
  border-color: var(--turf-900);
  color: #ffffff;
}

.mission-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mission-item.claimable {
  background: #fffbeb;
  border-color: var(--gold-500);
}
.mission-item.claimed {
  opacity: 0.78;
  background: #f1f5f9;
}
.mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mission-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 999px;
}
.reward-banner {
  background: linear-gradient(135deg, #ecfdf5, #fef9c3);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #14532d;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.badge-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
}
.badge-card.unlocked {
  border-color: #86efac;
  background: #f0fdf4;
}
.badge-card.locked {
  background: #f8fafc;
  opacity: 0.72;
}
.badge-icon { font-size: 1.4rem; line-height: 1; }
.badge-title { font-size: 0.82rem; font-weight: 800; color: var(--ink-900); }
.badge-desc { font-size: 0.72rem; line-height: 1.35; color: var(--ink-500); }

/* Sprint 7 — Onboarding Quick Start & Local Pilot KPI Snapshot */
.onboarding-card {
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border: 1.5px solid #86efac;
}
.step-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
}
.step-row.done {
  color: #166534;
  text-decoration: line-through;
  opacity: 0.82;
}
.kpi-pre {
  margin: 8px 0 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.4;
  overflow-x: auto;
  max-height: 190px;
}





