/* The light/dark toggle: the one control drawn the same in every app (BUILD_GUIDANCE,
   "One theme toggle"), the way a light switch is the same in every room. A round key with a
   hairline ring in the header's own ink, no fill, the icon for the mode you're in. It takes
   nothing from the app's tokens on purpose (its timings fall back when an app has none), so copy this file unchanged and link it after
   the app's own stylesheets. 36px with a mouse, 44px on touch. */
[data-theme-toggle].theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; min-width: 0; min-height: 0; margin: 0; padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 50%;
  background: transparent; box-shadow: none; color: inherit; opacity: 0.86;
  cursor: pointer; transform: none;
  transition: opacity var(--dur-fast, 120ms) var(--ease, ease), border-color var(--dur-fast, 120ms) var(--ease, ease);
}
[data-theme-toggle].theme-toggle svg { display: none; width: 18px; height: 18px; }
:root[data-theme-pref="system"] [data-theme-toggle] .tt-system,
:root[data-theme-pref="light"] [data-theme-toggle] .tt-light,
:root[data-theme-pref="dark"] [data-theme-toggle] .tt-dark { display: block; }
[data-theme-toggle].theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  [data-theme-toggle].theme-toggle:hover { opacity: 1; border-color: color-mix(in srgb, currentColor 55%, transparent); background: transparent; transform: none; box-shadow: none; }
}
@media (pointer: coarse) {
  [data-theme-toggle].theme-toggle { width: 44px; height: 44px; }
}
