:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1a1a1a;
  background: #f4f5f8;
}

body {
  margin: 0;
  padding: 24px;
  background: #f4f5f8;
}

#app {
  max-width: clamp(980px, 92vw, 1600px);
  margin: 0 auto;
}

.app-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d7dbe2;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.danger-banner {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #7c2d12;
}

.danger-banner-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.danger-banner-title {
  font-weight: 700;
}

.danger-banner-subtitle {
  font-size: 0.85rem;
  color: #9a3412;
}

.danger-banner-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.budget-banner {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.budget-banner-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-banner-title {
  font-weight: 700;
}

.budget-banner-subtitle {
  font-size: 0.85rem;
  color: #b91c1c;
}

.budget-banner-body {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.top-bar-left h1 {
  margin: 0 0 8px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mission-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.mission-title h2 {
  margin: 0 0 4px;
}

.mission-subtitle {
  margin: 0;
  color: #5f6673;
  font-size: 0.9rem;
}

.mission-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.mission-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4b5563;
  gap: 12px;
}

.mission-progress-value {
  font-variant-numeric: tabular-nums;
}

.mission-timeline-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: start;
}

.mission-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.mission-step {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-step.is-current {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  background: #eff6ff;
}

.mission-step.is-complete {
  border-color: rgba(34, 197, 94, 0.5);
  background: #f0fdf4;
}

.mission-step-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.mission-step-title {
  font-weight: 600;
}

.mission-step-meta {
  font-size: 0.8rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.mission-step-footer {
  font-size: 0.8rem;
  color: #4b5563;
}

.timeline-progress {
  width: 100%;
}

.timeline-progress-track {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.timeline-progress.compact .timeline-progress-track {
  height: 6px;
}

.mission-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-conditions h3,
.mission-milestones h3 {
  margin: 0 0 6px;
}

.list.compact {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #4b5563;
}

.mission-milestones {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding-top: 10px;
}

.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.milestone-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.milestone-label input {
  accent-color: #2563eb;
}

.milestone-status {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.milestone-status.is-complete {
  color: #137333;
}

.mission-phase-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: #4b5563;
}

.mission-phase-rule-label {
  font-weight: 600;
}

.objectives-panel {
  align-self: flex-start;
  max-width: 360px;
}

.objectives-panel h2 {
  margin-top: 0;
}

.objective-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.objective-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.objective-label {
  font-weight: 600;
}

.objective-status {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.objective-complete .objective-status {
  color: #137333;
}

.objective-future .objective-status {
  color: #9aa0a6;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: #eef1f6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stats-odds {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
}

.stats-panel h2,
.odds-panel h2 {
  margin-top: 0;
}

.stats-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-group h4 {
  margin: 12px 0 8px;
}

.stat-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 120px 1fr 52px 40px;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stat-label {
  font-weight: 600;
}

.stat-bar {
  width: 100%;
}

.stat-bar-track {
  position: relative;
  height: 10px;
  background: #eef1f6;
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f6fde, #67a0ff);
  border-radius: 999px;
}

.stat-bar-fill-positive {
  background: linear-gradient(90deg, #1f8b4c, #47c878);
}

.stat-bar-fill-warning {
  background: linear-gradient(90deg, #d4a62a, #f2c94c);
}

.stat-bar-fill-danger {
  background: linear-gradient(90deg, #b42318, #f97066);
}

.stat-bar-start {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  background: #1a1a1a;
  opacity: 0.55;
}

.stat-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat-delta {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.stat-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #5f6673;
}

.stat-legend-marker {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #1a1a1a;
  opacity: 0.55;
}

.delta-positive {
  color: #137333;
}

.delta-negative {
  color: #b42318;
}

.odds-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.odds-section h2 {
  margin-top: 0;
}

.panel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-tab {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 12px;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #0f172a;
  cursor: pointer;
}

.panel-tab.is-active {
  background: #0f172a;
  color: #f8fafc;
  border-color: #0f172a;
}

.panel-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lab-panel {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.lab-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lab-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.lab-section {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding-top: 12px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lab-section h3 {
  margin: 0;
  font-size: 1rem;
}

.lab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lab-label {
  font-size: 0.85rem;
  color: #4b5563;
}

.lab-select,
.lab-input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.9rem;
  background: #ffffff;
  min-width: 160px;
}

.lab-input {
  max-width: 180px;
}

.secondary-button {
  background: #e2e8f0;
  color: #1f2937;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}

.secondary-button:hover {
  background: #d5dde8;
}

.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lab-checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

.lab-textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 8px;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #ffffff;
  color: #1f2937;
}

.lab-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.lab-results-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
}

.lab-results-label {
  font-weight: 600;
  color: #1f2937;
}

.objectives-panel.compact {
  background: transparent;
  border: none;
  padding: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding-top: 12px;
}

.objectives-panel.compact h3 {
  margin: 0 0 8px;
}

.objectives-panel.compact .objective-list {
  margin: 0;
}

.primary-button {
  background: #1f4f9b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.primary-button:hover {
  background: #1a4180;
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.choice-tile {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  border: none;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  background-size: cover;
  background-position: center;
}

.choice-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25);
}

.choice-tile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.choice-tile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  font-weight: 700;
}

.choice-label {
  font-size: 1rem;
}

.choice-preview-wrapper {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 8px;
  padding: 10px;
}

.choice-preview {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.4;
  display: grid;
  gap: 6px;
}

.choice-preview.empty {
  color: #e2e8f0;
}

.choice-preview-section {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.choice-preview-heading {
  font-weight: 600;
  color: #f8fafc;
}

.choice-preview-item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.choice-preview-label.important {
  font-weight: 700;
}

.choice-preview-value {
  font-variant-numeric: tabular-nums;
}

.choice-preview-warning {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #fbbf24;
  font-weight: 600;
}

.stat-positive {
  color: #137333;
}

.stat-negative {
  color: #b42318;
}

.card-context {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.card-why {
  margin: 4px 0 8px;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.card-panel {
  position: relative;
  color: #f8fafc;
}

.card-hero {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.card-panel h2,
.card-panel h3,
.card-panel p {
  margin-top: 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.card-title-group h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.debug-panel {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.debug-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
}

.debug-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.debug-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px;
  border-radius: 6px;
  min-height: 80px;
  white-space: pre-wrap;
}

.debug-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.editor-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #d7dbe2;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.editor-title h1 {
  margin: 0;
  font-size: 24px;
}

.editor-subtitle {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
}

.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.2fr) minmax(240px, 1fr);
  gap: 16px;
}

.editor-pane {
  background: #ffffff;
  border: 1px solid #d7dbe2;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  gap: 12px;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pane-actions {
  display: flex;
  gap: 8px;
}

.pane-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filters input,
.filters select {
  width: 100%;
}

.import-drop {
  border: 2px dashed #cbd5f5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: #4b5563;
  background: #f8fafc;
  cursor: pointer;
}

.import-drop.is-dragging {
  border-color: #6366f1;
  background: #eef2ff;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.card-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  background: #f9fafb;
  cursor: pointer;
}

.card-row.is-selected {
  border-color: #6366f1;
  background: #eef2ff;
}

.card-row-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.card-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.form-grid label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 13px;
}

.shortcut-hint {
  font-size: 12px;
  color: #6b7280;
}

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  overflow-x: auto;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4b5563;
}

.diagnostic-list,
.shortcut-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #374151;
}

.error-text {
  color: #b91c1c;
  font-size: 12px;
}

.analytics-grid {
  display: grid;
  gap: 6px;
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #374151;
}

.analytics-subsection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #374151;
}

.detail-block {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fafb;
}

.detail-block summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.status-pill {
  text-transform: uppercase;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.status-pill.ok {
  background: #dcfce7;
  color: #166534;
}

.status-pill.below {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.above {
  background: #fef3c7;
  color: #92400e;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
}

.stat-grid {
  display: grid;
  gap: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.stat-row input[type="range"] {
  width: 100%;
}

.stat-row input[type="number"] {
  width: 60px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 12px;
}

.danger-button {
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.danger-button:hover {
  background: #fecaca;
}

.muted {
  color: #6b7280;
}

.list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #eef1f6;
  color: #1a1a1a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.card-panel .tag {
  background: rgba(15, 23, 42, 0.4);
  color: #f8fafc;
}

.boot-panel h1 {
  margin-top: 0;
}

.end-panel h1 {
  margin-top: 0;
}

.end-section {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .editor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .stats-odds {
    grid-template-columns: 1fr;
  }

  .stats-columns {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .mission-timeline-body {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #e6e9ef;
    background: #0f141b;
  }

  body {
    background: #0f141b;
  }

  .panel {
    background: #151b24;
    border-color: #263043;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  .editor-header,
  .editor-pane {
    background: #111827;
    border-color: #263043;
  }

  .editor-subtitle,
  .shortcut-hint {
    color: #9aa4b2;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .filters input,
  .filters select {
    background: #0f172a;
    border-color: #263043;
    color: #e2e8f0;
  }

  .import-drop {
    background: #0b1120;
    border-color: #334155;
    color: #cbd5f5;
  }

  .card-row {
    background: #0f172a;
    border-color: #1f2937;
    color: #e2e8f0;
  }

  .card-row.is-selected {
    background: #1e1b4b;
    border-color: #6366f1;
  }

  .diagnostic-row,
  .diagnostic-list,
  .shortcut-list,
  .card-row-meta {
    color: #94a3b8;
  }

  .pill,
  .tag {
    background: #1c2534;
    color: #d6dbe5;
  }

  .mission-subtitle,
  .mission-progress-row,
  .mission-step-meta,
  .mission-step-footer,
  .mission-phase-rule,
  .list.compact {
    color: #94a3b8;
  }

  .mission-step {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
  }

  .mission-step.is-current {
    background: rgba(30, 64, 175, 0.2);
  }

  .mission-step.is-complete {
    background: rgba(20, 83, 45, 0.2);
  }

  .timeline-progress-track {
    background: #1f2937;
  }

  .mission-milestones {
    border-top-color: rgba(214, 219, 229, 0.2);
  }

  .stat-bar-track {
    background: #1f2838;
  }

  .stat-bar-fill {
    background: linear-gradient(90deg, #4c8dff, #7aa9ff);
  }

  .stat-bar-fill-positive {
    background: linear-gradient(90deg, #1f8b4c, #47c878);
  }

  .stat-bar-fill-warning {
    background: linear-gradient(90deg, #d4a62a, #f2c94c);
  }

  .stat-bar-fill-danger {
    background: linear-gradient(90deg, #b42318, #f97066);
  }

  .stat-bar-start,
  .stat-legend-marker {
    background: #e6e9ef;
    opacity: 0.6;
  }

  .stat-legend,
  .card-context,
  .card-why,
  .choice-preview {
    color: #b6bdc9;
  }

  .choice-preview-heading {
    color: #e2e8f0;
  }

  .primary-button {
    background: #2b5ac3;
  }

  .primary-button:hover {
    background: #244da8;
  }

  .objectives-panel.compact {
    border-top-color: rgba(214, 219, 229, 0.2);
  }

  .lab-panel {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.3);
  }

  .lab-subtitle,
  .lab-label {
    color: #94a3b8;
  }

  .lab-select,
  .lab-input,
  .lab-textarea {
    background: #111827;
    border-color: #263043;
    color: #e2e8f0;
  }

  .secondary-button {
    background: #1f2937;
    border-color: #374151;
    color: #e2e8f0;
  }

  .secondary-button:hover {
    background: #334155;
  }

  .lab-results-label {
    color: #e2e8f0;
  }

  .debug-block {
    background: #0b111b;
  }
}
