.dual-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.2;
}

.dual-switch:hover,
.dual-switch:focus {
  text-decoration: none;
}

.dual-switch-label,
.dual-switch .switch-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.dual-switch .switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.35);
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.dual-switch .switch-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.dual-switch .switch-toggle.active {
  background-color: #0061b3;
}

.dual-switch .switch-toggle.active::before {
  transform: translateX(18px);
}

/* Engineering mode */
.dual-switch.engineering-mode .dual-switch-label,
.dual-switch.engineering-mode .switch-text {
  color: #0061b3;
}

.dual-switch.engineering-mode .switch-toggle.active {
  background-color: #0061b3;
}

/* Pump mode — toggle + label always orange */
.dual-switch.pump-mode .dual-switch-label,
.dual-switch.pump-mode .switch-text {
  color: #fe8800;
}

.dual-switch.pump-mode .switch-toggle {
  background-color: #fe8800;
}
