.root {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-subtle);
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition: background 160ms ease, border-color 160ms ease;
}

.thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-base);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition: transform 160ms ease, background 160ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
}

.thumbDark {
  transform: translateX(22px);
  background: rgba(231, 236, 255, 0.92);
  box-shadow: 0 6px 18px rgba(8, 11, 32, 0.35);
}
