/* Standalone styles for the dark/light toggle button.
 * Used by pages that have their own design tokens and do not load theme.css
 * (privacy, terms, admin, standalone tool). Independent of page tokens. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(128, 138, 160, 0.4);
  background: rgba(128, 138, 160, 0.14);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: rgba(91, 140, 255, 0.7); background: rgba(91, 140, 255, 0.14); }
.theme-toggle:focus-visible { outline: 2px solid #5b8cff; outline-offset: 2px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.theme-toggle--floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle--floating.theme-toggle--bl { top: auto; right: auto; left: 16px; bottom: 16px; }
