.mcsw{--w:52px;--h:28px;--k:20px;width:var(--w);height:var(--h);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;flex:none;padding:0;position:relative}.mcsw.is-sm{--w:42px;--h:22px;--k:16px}.mcsw:disabled{cursor:default;opacity:.45}.mcsw-track{background:#2b2b2e;transition:background-color .14s ease-out;position:absolute;inset:0;box-shadow:0 0 0 2px #000,inset 2px 2px #151517,inset -2px -2px #4a4a4e}.mcsw.is-on .mcsw-track{background:#3c8527;box-shadow:0 0 0 2px #000,inset 2px 2px #1d4d13,inset -2px -2px #6cc349}.mcsw-mark{width:10px;height:10px;image-rendering:pixelated;opacity:0;margin-top:-5px;transition:opacity .14s;position:absolute;top:50%}.mcsw-mark.is-on-mark{left:7px}.mcsw-mark.is-off-mark{right:7px}.mcsw.is-sm .mcsw-mark{width:8px;height:8px;margin-top:-4px}.mcsw.is-sm .mcsw-mark.is-on-mark{left:5px}.mcsw.is-sm .mcsw-mark.is-off-mark{right:5px}.mcsw-mark.is-on-mark{background:linear-gradient(#fff,#fff) 0/2px 2px no-repeat,linear-gradient(#fff,#fff) 20% 70%/2px 2px no-repeat,linear-gradient(#fff,#fff) 40% 90%/2px 2px no-repeat,linear-gradient(#fff,#fff) 60% 70%/2px 2px no-repeat,linear-gradient(#fff,#fff) 80% 40%/2px 2px no-repeat,linear-gradient(#fff,#fff) 100% 10%/2px 2px no-repeat}.mcsw-mark.is-off-mark{background:linear-gradient(45deg,#0000 42%,#8b8b90 42% 58%,#0000 58%),linear-gradient(-45deg,#0000 42%,#8b8b90 42% 58%,#0000 58%)}.mcsw.is-on .mcsw-mark.is-on-mark,.mcsw:not(.is-on) .mcsw-mark.is-off-mark{opacity:1}.mcsw-knob{top:calc((var(--h) - var(--k))/2);left:calc((var(--h) - var(--k))/2);width:var(--k);height:var(--k);background:#c6c6c6;transition:transform .16s cubic-bezier(.3,1.4,.5,1),background-color .12s;position:absolute;transform:translate(0);box-shadow:0 0 0 2px #000,inset 2px 2px #fff,inset -2px -2px #5a5a5a}.mcsw.is-on .mcsw-knob{transform:translateX(calc(var(--w) - var(--h)))}.mcsw:hover:not(:disabled) .mcsw-knob{background:#d8d8dc}.mcsw:active:not(:disabled) .mcsw-knob{box-shadow:0 0 0 2px #000,inset 2px 2px #5a5a5a,inset -2px -2px #fff}.mcsw:focus-visible{outline-offset:4px;outline:2px solid #fff}@media (prefers-reduced-motion:reduce){.mcsw-knob{transition-duration:80ms;transition-timing-function:linear}}:root[data-theme=light] .mcsw-track:where(:not(.theme-fixed,.theme-fixed *)){background:#c0c0c4}:root[data-theme=light] .mcsw-mark.is-on-mark:where(:not(.theme-fixed,.theme-fixed *)){background:linear-gradient(#030303,#030303) 0/2px 2px no-repeat,linear-gradient(#030303,#030303) 20% 70%/2px 2px no-repeat,linear-gradient(#030303,#030303) 40% 90%/2px 2px no-repeat,linear-gradient(#030303,#030303) 60% 70%/2px 2px no-repeat,linear-gradient(#030303,#030303) 80% 40%/2px 2px no-repeat,linear-gradient(#030303,#030303) 100% 10%/2px 2px no-repeat}:root[data-theme=light] .mcsw-mark.is-off-mark:where(:not(.theme-fixed,.theme-fixed *)){background:linear-gradient(45deg,#0000 42%,#58585d 42% 58%,#0000 58%),linear-gradient(-45deg,#0000 42%,#58585d 42% 58%,#0000 58%)}:root[data-theme=light] .mcsw-knob:where(:not(.theme-fixed,.theme-fixed *)){background:#272727}:root[data-theme=light] .mcsw:hover:not(:disabled) .mcsw-knob:where(:not(.theme-fixed,.theme-fixed *)){background:#19191c}:root[data-theme=light] .mcsw:focus-visible:where(:not(.theme-fixed,.theme-fixed *)){outline:2px solid #030303}
