.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--ndio-border);
  border-radius: 999px;
  color: var(--ndio-text);
  background: rgba(255, 255, 255, .75);
  font-size: .82rem;
  font-weight: 750;
}

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

html[data-theme="dark"] {
  color-scheme: dark;
  --ndio-bg: #121713;
  --ndio-input-bg: #1c241e;
  --ndio-green-soft: #17351f;
  --ndio-orange-soft: #37221b;
  --ndio-border: #344237;
  --ndio-text: #eff5f0;
  --ndio-muted: #bdc9bf;
  --ndio-green-deep: #8bd18d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] body { background: var(--ndio-bg); color: var(--ndio-text); }
html[data-theme="dark"] .site-header { background: rgba(18, 23, 19, .84); border-color: #344237; }
html[data-theme="dark"] .nav-links a { color: #dbe7dd; }
html[data-theme="dark"] .menu-toggle span { background: #eff5f0; }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .input-wrap input,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select { background: #1d251f; color: #eff5f0; border-color: #405044; }
html[data-theme="dark"] .hero::after { background: linear-gradient(90deg, rgba(18, 23, 19, .97) 0%, rgba(18, 23, 19, .88) 46%, rgba(18, 23, 19, .18) 74%); }
html[data-theme="dark"] .hero-copy { color: #f3f7f3; }
html[data-theme="dark"] .glass { background: rgba(28, 36, 30, .86); border-color: rgba(126, 163, 130, .28); }
html[data-theme="dark"] .path-card,
html[data-theme="dark"] .reason,
html[data-theme="dark"] .service-list div,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .stack { background: #1c241e; border-color: #354438; }
html[data-theme="dark"] .path-card.business { background: #1a512c; }
html[data-theme="dark"] .page-hero { background: #17351f; }
html[data-theme="dark"] .feature-band { background: #2c1e19; }
html[data-theme="dark"] .contact-aside { background: #17351f; }
html[data-theme="dark"] .status-pill { background: #202b22; }
html[data-theme="dark"] .faq { border-color: #354438; }
html[data-theme="dark"] .faq button { color: #eff5f0; }
html[data-theme="dark"] .coverage .form-note { color: #bdc9bf; }
html[data-theme="dark"] .checker-status { background: #193c24; color: #bce6be; }
html[data-theme="dark"] .footer-brand img { background: #fff; }
html[data-theme="dark"] .home-coverage,
html[data-theme="dark"] .coverage-task-card,
html[data-theme="dark"] .quote-form { background: rgba(28, 36, 30, .94); border-color: #405044; }
html[data-theme="dark"] .coverage-path,
html[data-theme="dark"] .coverage-input-row input {
  background: #1c241e;
  border-color: #405044;
  color: #eff5f0;
}
html[data-theme="dark"] .home-address-field input,
html[data-theme="dark"] .home-address-field .address-input,
html[data-theme="dark"] .home-address-field #id_address {
  background: #1c241e;
  border-color: #405044;
  color: #eff5f0;
  caret-color: #eff5f0;
}
html[data-theme="dark"] .coverage-path.selected { background: #173b20; }
html[data-theme="dark"] .coverage-location { background: #1c241e; border-color: #405044; color: #b9edbb; }
html[data-theme="dark"] .coverage-location:hover { background: #25482b; border-color: #79c37b; }
html[data-theme="dark"] .contextual-contact,
html[data-theme="dark"] .related-services { border-color: #344237; }
html[data-theme="dark"] .solution-hero .lede,
html[data-theme="dark"] .solution-hero p,
html[data-theme="dark"] .quote-copy p { color: var(--ndio-muted); }
html[data-theme="dark"] .services-popover a { color: #e6eee7; }
html[data-theme="dark"] .services-popover a:hover { color: #a8e3aa; }

@media (max-width: 900px) {
  html[data-theme="dark"] .nav-links { background: #121713; border-color: #344237; }
}

@media (max-width: 620px) {
  .theme-toggle { padding: 8px 10px; }
  html[data-theme="dark"] .hero::after { background: linear-gradient(180deg, rgba(18, 23, 19, .96) 0%, rgba(18, 23, 19, .88) 55%, rgba(18, 23, 19, .16) 100%); }
}
