html {
  color-scheme: light;
  --accent-soft: #6f91d4;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151d;
  --ink: #edf1f8;
  --ink-soft: #c0c7d4;
  --ink-faint: #8e99ac;
  --accent: #79a2ff;
  --accent-wash: rgba(121, 162, 255, 0.14);
  --card: #1a202c;
  --card-edge: #354052;
  --rule: #2b3443;
  --rule-strong: #79a2ff;
  --wash: #192231;
  --sk-1: #262d3a;
  --sk-2: #30394a;
  --shadow-lift: 0 12px 28px rgba(0, 0, 0, 0.32);
  --accent-soft: #a8c3ff;
}

html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(121, 162, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 162, 255, 0.08) 1px, transparent 1px);
}

html[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(121, 162, 255, 0.14), transparent 65%);
}

html[data-theme="dark"] .trend-status-ok {
  background: #1d3a2a;
  color: #a8e0b9;
}

html[data-theme="dark"] .trend-status-stale {
  background: #49371d;
  color: #f1c77e;
}

html[data-theme="dark"] .trend-status-empty {
  background: #4a2928;
  color: #f1aaa4;
}

html[data-theme="dark"] .weekly-missing {
  color: #f1aaa4;
}

.meta-row > .meta-keywords,
.meta-row > .meta-coverage {
  color: var(--accent-soft);
}

.theme-toggle {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.28rem 0.55rem;
  font: 0.72rem/1.3 var(--font-mono);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 47.99rem) {
  .theme-toggle {
    padding: 0.25rem 0.45rem;
  }
}
