:root[data-theme="dark"] .theme-logo__light,
:root:not([data-theme="dark"]) .theme-logo__dark { display:none; }
.theme-logo { display:block; flex:none; }
:root .wrap { padding-bottom:80px; }
.theme-toggle {
  position:fixed;
  right:max(20px, env(safe-area-inset-right));
  bottom:max(14px, env(safe-area-inset-bottom));
  z-index:60;
  display:grid;
  place-items:center;
  width:52px;
  height:44px;
  padding:0;
  border:0;
  border-radius:999px;
  background:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.theme-toggle__track {
  position:relative;
  display:block;
  width:52px;
  height:32px;
  border-radius:999px;
  background:var(--sw-off);
  transition:background .2s ease;
}
.theme-toggle__thumb {
  position:absolute;
  top:2px;
  left:2px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px #0003;
  transition:transform .2s ease;
}
.theme-toggle[aria-checked="true"] .theme-toggle__track { background:var(--sw-on); }
.theme-toggle[aria-checked="true"] .theme-toggle__thumb { transform:translateX(20px); }
.theme-toggle:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }
@media (max-width:600px) {
  .theme-toggle { right:max(14px, env(safe-area-inset-right)); bottom:max(8px, env(safe-area-inset-bottom)); }
}
@media (max-height:560px) {
  :root .gate.gate--flow { padding-block:24px 76px; }
}
@media (prefers-reduced-motion:reduce) {
  .theme-toggle__track, .theme-toggle__thumb { transition:none; }
}
