/* Slim visual switch inside a full 44px touch target. Existing switch semantics and save handling remain in widgets.js. */
#widget-settings .widget-switch{position:relative;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;border-radius:12px;box-shadow:none;flex:none;overflow:visible;touch-action:manipulation;}
#widget-settings .widget-switch::before{content:"";position:absolute;left:1px;top:11px;width:42px;height:22px;border-radius:20px;background:#c9d6d1;box-shadow:inset 0 1px 2px #153e3b12;transition:background .18s ease;}
#widget-settings .widget-switch>span{position:absolute;left:3px;top:13px;width:18px;height:18px;border-radius:50%;background:linear-gradient(145deg,#fff,#f0f5f2);box-shadow:0 1px 3px #123d3c30;transform:translateX(0);transition:transform .2s cubic-bezier(.2,.7,.2,1),background .18s ease;pointer-events:none;}
#widget-settings .widget-switch[aria-checked=true]{background:transparent;}
#widget-settings .widget-switch[aria-checked=true]::before{background:linear-gradient(110deg,#1e6764,#53a497);}
#widget-settings .widget-switch[aria-checked=true]>span{transform:translateX(20px);background:linear-gradient(145deg,#fff,#d7f5e9);}
#widget-settings .widget-switch:focus-visible{outline:2px solid var(--petrol);outline-offset:2px;}
#widget-settings .widget-switch:disabled{opacity:.5;cursor:wait;}
#widget-settings .widget-choice-icon svg{width:25px;height:25px;}
[data-theme=dark] #widget-settings .widget-switch::before{background:#637b73;box-shadow:inset 0 1px 3px #0003;}
[data-theme=dark] #widget-settings .widget-switch[aria-checked=true]::before{background:linear-gradient(110deg,#34887e,#6cc1a9);}
@media(prefers-reduced-motion:reduce){#widget-settings .widget-switch::before,#widget-settings .widget-switch>span{transition:none;}}
@media(forced-colors:active){#widget-settings .widget-switch::before{background:Canvas;border:1px solid ButtonText;}#widget-settings .widget-switch>span{background:ButtonText;}#widget-settings .widget-switch[aria-checked=true]::before{background:Highlight;}#widget-settings .widget-switch[aria-checked=true]>span{background:HighlightText;}}
