.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid var(--theme-control-line, #8f8e89);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-toggle:focus-visible {
  outline: 2px solid var(--theme-focus, #047857);
  outline-offset: 4px;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .theme-icon-moon,
:root[data-theme="light"] .theme-icon-sun { display: none; }
.auth-theme-control {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10;
}
@media (max-width: 480px) {
  .auth-theme-control { top: 16px; right: 16px; }
}
@media (forced-colors: active) {
  .theme-toggle { border-color: ButtonText; color: ButtonText; }
}
