/* 图标开关：布尔设置用它（声音、通知这类只有开与关的项）。
   多选项一律用 .vz-seg，不要把「开/关」两个选项塞成分段选项卡。
   结构：<button class="vz-switch on" role="switch" aria-checked="true">
           <span class="vz-switch-ico">图标</span><span class="vz-switch-track"><i></i></span></button>
   图标是功能标识，轨道位置才是状态，键盘 Space/Enter 与 role=switch 由宿主按需补。 */
.vz-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--vz-space-2);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--vz-text-tertiary);
  font: inherit;
  transition: color var(--vz-dur-fast);
}
.vz-switch:hover { color: var(--vz-text-secondary); }
.vz-switch.on { color: var(--vz-text); }
.vz-switch-ico { display: inline-flex; width: 1.15em; height: 1.15em; }
.vz-switch-ico svg, .vz-switch-ico .ico { width: 100%; height: 100%; fill: currentColor; }
.vz-switch-track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: var(--vz-radius-pill);
  background: var(--vz-glass-4);
  border: 1px solid var(--vz-border-2);
  transition: background var(--vz-dur-fast), border-color var(--vz-dur-fast);
}
.vz-switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vz-text-tertiary);
  transition: transform var(--vz-dur-fast), background var(--vz-dur-fast);
}
.vz-switch.on .vz-switch-track {
  background: var(--vz-primary);
  border-color: var(--vz-primary);
}
.vz-switch.on .vz-switch-track i {
  transform: translateX(18px);
  background: var(--vz-white);
}
.vz-switch:focus-visible { outline: 2px solid var(--vz-border-focus); outline-offset: 3px; border-radius: var(--vz-radius-sm); }
