/* The ONE on/off control of Studio, in both tabs: the switch of the Simple tab (.sm-switch, studio.css). Every on/off setting that is drawn from a real checkbox
   (Advanced settings, list and schema rows, a file's own tick boxes, the options of the pickers) gets the same look: same size, same knob, same colours.
   A list where several ITEMS are picked (the files to take out of an archive) is not an on/off setting and keeps its tick boxes. */
:is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"],
.pat-file-fields .pf-tick input[data-pf][type="checkbox"]{
  -webkit-appearance:none;appearance:none;flex:none;display:inline-block;position:relative;inline-size:36px !important;block-size:20px !important;min-block-size:0;margin:0;padding:0;border:0;border-radius:99px;
  background:var(--surface-3);cursor:pointer;transition:background .15s;vertical-align:middle;}
:is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"]::after{
  content:'';position:absolute;inset-block-start:2px;inset-inline-start:2px;inline-size:16px;block-size:16px;border-radius:50%;background:#fff;transition:transform .15s;}
:is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"]:checked{background:var(--accent);}
:is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"]:checked::after{transform:translateX(16px);}
[dir="rtl"] :is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"]:checked::after{transform:translateX(-16px);}
:is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
:is(.pf-switch, .pfw-check:not(.pfw-switchrow), .pat-file-fields .pf-tick, .vp-check, .me-only, .me-same) input[type="checkbox"]:disabled{opacity:.5;cursor:default;}
/* the words beside it, spaced and coloured as beside the Simple switch */
.pf-switch{gap:10px;color:var(--text-muted);font-size:12.5px;min-block-size:40px;}
