/* Light / dark / system switch. Uses the generic semantic tokens, so it
   renders correctly on both the signed-in app and the admin console. */
.theme-switch {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 1px);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.theme-switch button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--accent-subtle);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.theme-switch svg {
  width: 14px;
  height: 14px;
}

.theme-switch button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
