#theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
#theme-toggle:hover { background: var(--line); }
#theme-toggle svg { width: 20px; height: 20px; }
#theme-toggle[hidden], #theme-toggle .theme-sun,
[data-theme="dark"] #theme-toggle .theme-moon { display: none; }
[data-theme="dark"] #theme-toggle .theme-sun { display: block; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --pearl: #18191d;
  --graphite: #f4eff2;
  --rose: #ddaac9;
  --rose-light: #e6bed6;
  --muted: #bcb6bf;
  --line: #443f48;
  --surface: #222227;
  --plum-surface: #30272f;
}
[data-theme="dark"] .usp-comparison {
  --usp-graphite: var(--graphite);
  --usp-pearl: var(--pearl);
  --usp-rose: var(--rose);
  --usp-muted: var(--muted);
  --usp-line: var(--line);
}
[data-theme="dark"] img[src$="elsewalk-primary.svg"] { content: url("assets/elsewalk-light.svg"); }
[data-theme="dark"] .dark-section { background: #101115; color: var(--graphite); }
[data-theme="dark"] :is(.button-dark, .button-rose, .image-stamp) { background: var(--rose-light); color: #251e25; }
[data-theme="dark"] :is(.skip-link, .noscript-note, .viewer-error) { background: #27242b; color: #fff; }
[data-theme="dark"] .button-light { background: var(--graphite); color: var(--pearl); }
[data-theme="dark"] .regional-case + .regional-case { background: var(--surface); }
[data-theme="dark"] :is(.usp-panel-tag, .origin-process p, .plan-instruction, .motion-description, .deadline-start) { color: var(--muted); }
[data-theme="dark"] :is(.usp-capture-result, .journey-classic, .tour-plan, .motion-node-icon) {
  background: var(--surface);
  border-color: var(--line);
  color: var(--graphite);
}
[data-theme="dark"] :is(.usp-panel-elsewalk, .journey-elsewalk, .journey-delivery) {
  background-color: var(--plum-surface);
  border-color: #634b5b !important;
}
@media (min-width: 761px) {
  [data-theme="dark"] .usp-panel-elsewalk { background: transparent; }
}
[data-theme="dark"] :is(.plan-heading > span, .origin-process .step-dot, .journey-brand > span,
  .journey-delivery strong, .journey-deadline > .eyebrow, .deadline-number) { color: var(--rose); }
[data-theme="dark"] .journey-elsewalk li p { color: var(--muted); }
[data-theme="dark"] :is(.classic-motion, .elsewalk-motion) {
  background: radial-gradient(ellipse at 50% 35%, #39323c, #222126);
  border-color: var(--line);
}
[data-theme="dark"] :is(.classic-symbol, .journey-icon, .motion-node.is-done .motion-node-icon) {
  background: #352c35; color: var(--rose-light); border-color: #654e60;
}
[data-theme="dark"] button.motion-node { color: var(--muted); }
[data-theme="dark"] button.motion-node.is-current { color: var(--rose-light); }
[data-theme="dark"] .motion-node.is-current .motion-node-icon { background: var(--rose); color: #251e25; border-color: var(--rose); }
[data-theme="dark"] .plan-map { background: #f1efea; border-radius: 4px; }
[data-theme="dark"] .capture-selector .view-buttons > button { border-color: var(--line); color: var(--graphite); }
[data-theme="dark"] .capture-selector .view-buttons > button[aria-pressed="true"] {
  background: var(--plum-surface); border-color: var(--rose); color: var(--graphite);
}
[data-theme="dark"] :is(input, textarea) { background: var(--surface); color: var(--graphite); border-color: #6d616d; }
[data-theme="dark"] :is(input, textarea)::placeholder { color: #aaa1ac; }
[data-theme="dark"] .languages option { background: var(--surface); color: var(--graphite); }
@media (min-width: 901px) and (max-width: 1250px) {
  .header, .header-actions, .navigation { gap: clamp(10px, 1.2vw, 18px); }
}
