.theme-switch {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2rem;
  background: transparent;
  cursor: pointer;
}
.theme-track {
  display: grid;
  grid-template-columns: repeat(2, 26px);
  place-items: center;
  position: relative;
  padding: 3px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface-2, var(--paper));
  color: var(--ink-2, var(--muted));
}
.theme-track::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f8c91c;
}
.theme-track svg { position: relative; width: 17px; height: 17px; }
.theme-switch[aria-checked="true"] .theme-track::before { transform: translateX(26px); }
.theme-switch[aria-checked="false"] svg:first-child,
.theme-switch[aria-checked="true"] svg:last-child { color: #102831; }
.theme-switch:focus-visible, .theme-device:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
.theme-device {
  display: block;
  margin: .35rem 0 0;
  padding: .5rem 0;
  border: 0;
  background: none;
  color: var(--ink-2, var(--muted));
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
footer.copyright .theme-device { margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .theme-track::before { transition: transform 150ms ease-out; }
}
@media (forced-colors: active) {
  .theme-track::before { border: 2px solid ButtonText; box-sizing: border-box; }
}
.appearance-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.appearance-row:has(> :only-child) { justify-content: flex-end; }
.appearance-row .install-logo, .appearance-row .eyebrow { margin: 0; }
@media (max-width: 410px) {
  .top .brand .brandtag { display: none; }
  .top .atlas-actions { gap: .25rem; }
}
