/* Переключатель вида: по разделам / как в щите */
.view-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.view-switch__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.view-switch__text-off { opacity: .55; }
.view-switch__text-on { opacity: .55; }
.view-switch.is-on .view-switch__text-on { opacity: 1; color: var(--ink); font-weight: 500; }
.view-switch:not(.is-on) .view-switch__text-off { opacity: 1; color: var(--ink); font-weight: 500; }

/* Сам тумблер */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease;
  pointer-events: none;
}
.switch input:checked + .switch__track {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .switch__track + .switch__thumb {
  transform: translateX(20px);
  background: var(--accent-ink);
  border-color: transparent;
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
