/* Two themes, one click. Keep the control usable in the menu and mobile drawer. */
body button[data-nydaq-theme-switch] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 168px;
  padding: 4px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent !important;
  color: var(--glass-muted) !important;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body button[data-nydaq-theme-switch]:focus-visible {
  outline: 2px solid var(--glass-accent) !important;
  outline-offset: 2px;
}
body [data-nydaq-theme-switch] .nydaq-theme-track {
  display: inline-flex;
  align-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
  padding: 3px;
  border: 1px solid rgba(91, 149, 134, .5);
  border-radius: 999px;
  background: rgba(72, 143, 125, .14);
}
body [data-nydaq-theme-switch] .nydaq-theme-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--glass-accent);
  transform: translateX(0);
  transition: transform 150ms ease-out;
}
body [data-nydaq-theme-switch="dark"] .nydaq-theme-thumb {
  transform: translateX(20px);
}
body [data-nydaq-theme-switch="light"] .nydaq-theme-light,
body [data-nydaq-theme-switch="dark"] .nydaq-theme-dark {
  color: var(--glass-ink);
  font-weight: 650;
}
@media (prefers-reduced-motion: reduce) {
  body [data-nydaq-theme-switch] .nydaq-theme-thumb { transition: none; }
}
