.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #3a3f4b;
  border-radius: 30px;
  transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.switch input:checked + .slider {
  background: linear-gradient(135deg, #ffc857, #f4a261);
}
.switch input:checked + .slider.fan {
  background: linear-gradient(135deg, #2ec4b6, #1a936f);
}
.switch input:checked + .slider.env {
  background: linear-gradient(135deg, #6c9bcf, #4cc9f0);
}
.switch input:checked + .slider::before {
  transform: translateX(22px);
}
.switch.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.range-wrap {
  margin-top: 12px;
}
.range-wrap input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  appearance: none;
  background: linear-gradient(90deg, #1a1d24, #ffc857);
  outline: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.range-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9aa3b2;
  margin-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  border: 1px solid #3d4452;
  background: #252932;
  color: #e8eaed;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.chip:hover {
  border-color: #6c9bcf;
  background: #2e3440;
}
.chip:active {
  transform: scale(0.97);
}

.capsule {
  display: inline-flex;
  background: #1e2229;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin-top: 10px;
}
.capsule button {
  border: none;
  background: transparent;
  color: #9aa3b2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.capsule button.active {
  background: #2ec4b6;
  color: #0d1f1c;
  font-weight: 600;
}
