/* Explicit binary settings only; record/filter selections keep their checkboxes. */
html body input[type="checkbox"].cms-switch[role="switch"] {
    --cms-switch-track: var(--cms-line-strong, #a9bed6);
    --cms-switch-border: var(--cms-line-strong, #a9bed6);
    --cms-switch-thumb-position: left 2px center;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    align-self: center;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none;
    border: 1px solid var(--cms-switch-border) !important;
    border-radius: 999px !important;
    background-color: var(--cms-switch-track) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='white'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    background-position: var(--cms-switch-thumb-position) !important;
    box-shadow: inset 0 1px 2px #17294420;
    cursor: pointer;
    transition: background-color .16s ease, background-position .16s ease, border-color .16s ease;
}
html body input[type="checkbox"].cms-switch[role="switch"]:checked {
    --cms-switch-track: var(--cms-brand, #1b3c66);
    --cms-switch-border: var(--cms-brand-hover, #122e52);
    --cms-switch-thumb-position: right 2px center;
}
html body input[type="checkbox"].cms-switch[role="switch"]:focus-visible {
    outline: 2px solid var(--cms-brand, #1b3c66) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px #3169ac28;
}
html body input[type="checkbox"].cms-switch[role="switch"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}
html body label:has(> input.cms-switch[role="switch"]) {
    align-items: center;
    min-height: 32px;
    cursor: pointer;
}
html body label:has(> input.cms-switch[role="switch"]:disabled) { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
    html body input[type="checkbox"].cms-switch[role="switch"] { transition: none; }
}
@media (forced-colors: active) {
    html body input[type="checkbox"].cms-switch[role="switch"] {
        forced-color-adjust: none;
        --cms-switch-track: GrayText;
        --cms-switch-border: ButtonText;
    }
    html body input[type="checkbox"].cms-switch[role="switch"]:checked { --cms-switch-track: Highlight; }
}
