.ui-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 28px;
  min-width: 48px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 32%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 18%, transparent);
  transition: background .18s ease;
  cursor: pointer;
}

.ui-switch::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  transition: transform .18s ease;
}

.ui-switch:checked { background: #ff8a3d; }
.ui-switch:checked::before { transform: translateX(20px); }
.ui-switch:focus-visible { outline: 3px solid rgba(255, 138, 61, .42); outline-offset: 2px; }
.ui-switch:disabled { opacity: .45; cursor: default; }
