:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d19 !important;
  --card: #111c2f !important;
  --ink: #f8fafc !important;
  --muted: #b3c0d1 !important;
  --line: #334155 !important;
  --accent: #60a5fa !important;
  --accent-soft: #173463 !important;
  --paper: #111c2f !important;
  --blue: #60a5fa !important;
  --amber: #fbbf24 !important;
}

:root[data-theme="dark"] body {
  background: #070d19 !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .section-card,
:root[data-theme="dark"] .search-card,
:root[data-theme="dark"] .faq-card,
:root[data-theme="dark"] .summary-card,
:root[data-theme="dark"] .cluster-card,
:root[data-theme="dark"] .post-card,
:root[data-theme="dark"] .topic-panel,
:root[data-theme="dark"] .intro,
:root[data-theme="dark"] .mini-chart,
:root[data-theme="dark"] .comparison {
  background: #111c2f !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
}

:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .scenario-card,
:root[data-theme="dark"] .page-link,
:root[data-theme="dark"] .topic-link-card,
:root[data-theme="dark"] .meta-item,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .market-path,
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-clear,
:root[data-theme="dark"] .post-toggle,
:root[data-theme="dark"] .post-list-toggle,
:root[data-theme="dark"] code {
  background: #172033 !important;
  border-color: #3b4a60 !important;
  color: #e2e8f0 !important;
}

:root[data-theme="dark"] .faq-item:hover,
:root[data-theme="dark"] .scenario-card:hover,
:root[data-theme="dark"] .page-link:hover,
:root[data-theme="dark"] .topic-link-card:hover,
:root[data-theme="dark"] .chip:hover {
  background: #1b2940 !important;
  border-color: #4d7fba !important;
}

:root[data-theme="dark"] .trust,
:root[data-theme="dark"] .affiliate-card,
:root[data-theme="dark"] .affiliate-disclosure,
:root[data-theme="dark"] .share-case-button {
  background: #10264a !important;
  border-color: #315b91 !important;
  color: #bfdbfe !important;
}

:root[data-theme="dark"] .assumptions,
:root[data-theme="dark"] .review-note {
  background: #2a1b08 !important;
  border-color: #b77718 !important;
  color: #fcd58a !important;
}

:root[data-theme="dark"] .section-intro,
:root[data-theme="dark"] .search-help,
:root[data-theme="dark"] .search-count,
:root[data-theme="dark"] .search-empty,
:root[data-theme="dark"] .answer,
:root[data-theme="dark"] .post-summary,
:root[data-theme="dark"] .post-meta,
:root[data-theme="dark"] .post-date,
:root[data-theme="dark"] .post-copy,
:root[data-theme="dark"] .related-copy,
:root[data-theme="dark"] .page-link-copy,
:root[data-theme="dark"] .cluster-name,
:root[data-theme="dark"] .meta-label,
:root[data-theme="dark"] .share-case-status,
:root[data-theme="dark"] .gap-note,
:root[data-theme="dark"] footer {
  color: #b3c0d1 !important;
}

:root[data-theme="dark"] .post-title,
:root[data-theme="dark"] .related-title,
:root[data-theme="dark"] .page-link-title,
:root[data-theme="dark"] .meta-value,
:root[data-theme="dark"] .summary-value,
:root[data-theme="dark"] .cluster-heading,
:root[data-theme="dark"] .faq-item summary {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .post-read-link,
:root[data-theme="dark"] .text-link,
:root[data-theme="dark"] .case-date,
:root[data-theme="dark"] .path-point small,
:root[data-theme="dark"] .greek-row small,
:root[data-theme="dark"] main a:not(.button) {
  color: #7db4ff;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  background: #0f172a !important;
  border-color: #3b4a60 !important;
  color: #f8fafc !important;
  caret-color: #93c5fd;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #8fa0b7;
}

:root[data-theme="dark"] .track {
  background: #263449 !important;
}

:root[data-theme="dark"] .facts,
:root[data-theme="dark"] .facts div,
:root[data-theme="dark"] .case,
:root[data-theme="dark"] .greek-shift,
:root[data-theme="dark"] .greek-head,
:root[data-theme="dark"] .greek-row,
:root[data-theme="dark"] .steps,
:root[data-theme="dark"] .step {
  border-color: #334155 !important;
}

:root[data-theme="dark"] .optionspeek-feedback-modal {
  color: #f8fafc;
}

:root[data-theme="dark"] .optionspeek-feedback-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

:root[data-theme="dark"] .optionspeek-feedback-dialog {
  border-color: #3b4a60;
  background: #111c2f;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .optionspeek-feedback-header p,
:root[data-theme="dark"] .optionspeek-feedback-actions span {
  color: #b3c0d1;
}

:root[data-theme="dark"] .optionspeek-feedback-close {
  color: #8fa0b7;
}

:root[data-theme="dark"] .optionspeek-feedback-close:hover {
  background: #172033;
  color: #e2e8f0;
}

:root[data-theme="dark"] .optionspeek-feedback-types button,
:root[data-theme="dark"] .optionspeek-feedback-action-buttons button,
:root[data-theme="dark"] .optionspeek-feedback-dialog textarea {
  border-color: #3b4a60;
  background: #0f172a;
  color: #e2e8f0;
}

:root[data-theme="dark"] .optionspeek-feedback-types button[aria-pressed="true"] {
  border-color: #4d7fba;
  background: #173463;
  color: #bfdbfe;
}

:root[data-theme="dark"] .optionspeek-feedback-dialog textarea:focus {
  border-color: #60a5fa;
}

:root[data-theme="dark"] .optionspeek-feedback-status {
  color: #7dd3fc;
}

:root[data-theme="dark"] .optionspeek-feedback-status[data-error="true"] {
  color: #fda4af;
}

:root[data-theme="dark"] ::selection {
  background: rgba(59, 130, 246, 0.42);
  color: #ffffff;
}
