/* The appearance control: a light switch between a sun and a moon, in the dialogs and
   the studio alike. It changes state without travelling, as nothing else here moves. */
.theme-switch {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer;
}
.theme-switch svg { inline-size: 1.15rem; block-size: 1.15rem; }
.theme-switch-track {
  position: relative; inline-size: 2.75rem; block-size: 1.5rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.theme-switch-knob {
  position: absolute; inset-block-start: 50%; inset-inline-start: 0.15rem; transform: translateY(-50%);
  inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%;
  background: light-dark(#ffffff, #f2f5f8); box-shadow: 0 1px 3px rgb(0 0 0 / 35%);
}
.theme-switch[aria-checked="true"] .theme-switch-track { background: var(--accent); border-color: var(--accent); }
.theme-switch[aria-checked="true"] .theme-switch-knob { inset-inline-start: calc(100% - 1.3rem); }
.theme-switch[aria-checked="false"] > :first-child, .theme-switch[aria-checked="true"] > :last-child { color: var(--ink); }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-switch[hidden] { display: none; }
/* A switch whose ends are words rather than marks -- the register's `Sie` and `du`. */
.theme-switch .switch-word { font-size: 0.85rem; font-weight: 600; line-height: 1; white-space: nowrap; }
