body.theme-dark {
  background: #0f172a;
  color: #e5e7eb;
}

body.theme-dark .shell {
  color: #e5e7eb;
}

body.theme-dark .panel,
body.theme-dark .subpanel,
body.theme-dark .company-card,
body.theme-dark .chat-box,
body.theme-dark .score,
body.theme-dark .accordion {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .topbar,
body.theme-dark .url-form input,
body.theme-dark .chat-input input,
body.theme-dark .theme-toggle {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.12);
}

body.theme-dark .panel-title,
body.theme-dark .eyebrow,
body.theme-dark dt,
body.theme-dark .muted,
body.theme-dark .rec-row-desc {
  color: #cbd5e1;
}

body.theme-dark .audit-table th,
body.theme-dark .audit-table td,
body.theme-dark .rec-row,
body.theme-dark .simple-list li,
body.theme-dark .subpanel {
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .gated-btn {
  background: #1f2937;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.1);
}

body.theme-dark .gated-btn .lock {
  color: #cbd5e1;
}

body.theme-dark .pill-credit {
  background: #1e293b;
  color: #c7d2fe;
  border-color: #475569;
}

body.theme-dark .drawer-ai-output code {
  background: rgba(255,255,255,0.12);
}

body.theme-dark .ai-intro-callout {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .ai-followup-note {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.18);
}

body.theme-dark .ai-example-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

body.theme-dark .temp-workspace-list li {
  color: #e5e7eb;
}

body.theme-dark .stat-card,
body.theme-dark .geo-issue-card,
body.theme-dark .passed-check-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .competitor-watch-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}

body.theme-dark .competitor-watch-domain {
  color: #cbd5e1;
}

body.theme-dark .competitor-badge {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .empty-hero-form input[type="url"],
body.theme-dark .empty-preview-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .theme-icon-btn,
body.theme-dark .company-switcher {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .platform-fix-btn-chatgpt,
body.theme-dark .platform-fix-btn-perplexity,
body.theme-dark .platform-fix-btn-claude,
body.theme-dark .platform-fix-btn-gemini {
  border: 0 !important;
}

body.theme-dark .workspace-summary.panel-dark h2 {
  color: #ffffff;
}

body.theme-dark .workspace-summary.panel-dark p,
body.theme-dark .workspace-summary.panel-dark dd {
  color: rgba(255,255,255,0.8);
}

body.theme-dark .workspace-summary.panel-dark dt {
  color: rgba(255,255,255,0.5);
}

body.theme-dark .premium-intelligence-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}

body.theme-dark .premium-intelligence-credit {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .premium-context-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .competitor-snapshot-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .competitor-snapshot-close {
  color: #e5e7eb;
}

body.theme-dark .competitor-snapshot-eyebrow,
body.theme-dark .competitor-snapshot-metric span {
  color: #cbd5e1;
}

body.theme-dark .competitor-snapshot-section {
  background: #0f172a;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .competitor-snapshot-section p {
  color: #cbd5e1;
}

body.theme-dark .competitor-snapshot-metric {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .brand-voice-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .brand-voice-close {
  color: #e5e7eb;
}

body.theme-dark .brand-voice-eyebrow,
body.theme-dark .brand-voice-tone-card span {
  color: #cbd5e1;
}

body.theme-dark .brand-voice-section {
  background: #0f172a;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .brand-voice-section p {
  color: #cbd5e1;
}

body.theme-dark .brand-voice-tone-card,
body.theme-dark .brand-voice-example {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .ai-code-block {
  background: #020617;
}

/* =========================================================
   migrated from compat.css - second split pass
   ========================================================= */
body.theme-dark .msg.user {
  background: #1e293b;
  border-color: rgba(255,255,255,0.10);
  color: #e5e7eb;
}

body.theme-dark .priority-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}

body.theme-dark .priority-card span {
  color: #cbd5e1;
}

body.theme-dark .recommendation-action-btn {
  background: #fff;
  color: #111827;
}

body.theme-dark .priority-accordion {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .priority-title {
  color: #e5e7eb;
}

body.theme-dark .priority-body {
  color: #e5e7eb;
}

body.theme-dark .priority-limit-select,
body.theme-dark .core-web-vital-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .strategic-impact-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .strategic-impact-type-pill,
body.theme-dark .strategic-impact-status-pill {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .strategic-impact-type-pill-subtle {
  color: #cbd5e1;
}
