/* ─── Switch (single boolean) ─── */
.form-switch-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  cursor: pointer;
  background: var(--surface);
  transition: var(--transition);
}
.form-switch-row:hover {
  border-color: var(--primary);
  background: var(--surface-raised);
}
.form-switch-brand {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
}
.form-switch-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.form-switch-label {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.form-switch-hint {
  line-height: 1.3;
}
.form-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.form-switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.form-switch-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.form-switch-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.2);
  transition: transform 0.15s ease;
}
.form-switch input[type="checkbox"]:checked ~ .form-switch-track {
  background: var(--primary);
}
.form-switch input[type="checkbox"]:checked ~ .form-switch-track::before {
  transform: translateX(16px);
}
.form-switch input[type="checkbox"]:focus-visible ~ .form-switch-track {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
