/* Shared rounded toggle: native checkbox behavior and keyboard interaction. */
html body input[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;display:inline-block!important;position:relative!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:26px!important;min-height:26px!important;padding:0!important;border:1px solid var(--fw-muted,#657783)!important;border-radius:999px!important;background:var(--fw-border,#d2d9de)!important;vertical-align:middle;flex:0 0 44px;cursor:pointer;box-shadow:none!important;transition:background-color .16s ease,border-color .16s ease}
html body input[type="checkbox"]::before{content:"";position:absolute;display:block;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%!important;transition:transform .16s ease;box-shadow:none}
html body input[type="checkbox"]:checked{background:var(--fw-accent,#f47721)!important;border-color:var(--fw-accent,#f47721)!important}
html body input[type="checkbox"]:checked::before{transform:translateX(18px)}
html body input[type="checkbox"]:indeterminate::before{transform:translateX(9px);background:#17242e}
html body input[type="checkbox"]:focus-visible{outline:3px solid var(--fw-accent,#a44600)!important;outline-offset:3px}
html body input[type="checkbox"]:disabled{opacity:.5;cursor:default}
@media(prefers-reduced-motion:reduce){html body input[type="checkbox"],html body input[type="checkbox"]::before{transition:none}}
@media(forced-colors:active){html body input[type="checkbox"]{forced-color-adjust:none;background:Canvas!important;border-color:ButtonText!important}html body input[type="checkbox"]::before{background:ButtonText}html body input[type="checkbox"]:checked{background:Highlight!important;border-color:Highlight!important}html body input[type="checkbox"]:checked::before{background:HighlightText}}
/* Shared setting row: label left, switch at the trailing edge. */
html body label:not([hidden]):has(>input[type="checkbox"]){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%;box-sizing:border-box;text-align:left!important}
html body label>input[type="checkbox"]{order:99!important;flex:0 0 44px!important;float:none!important;margin:0 0 0 auto!important;align-self:center}
html body label:has(>input[data-random-day]){min-height:36px;margin:5px 0!important}
/* Randomizer count remains beside the label, with the switch furthest right. */
html body .random-row{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
html body .random-row .random-toggle{flex:1;min-width:0}
html body .random-row>.random-switch{order:99;margin-left:auto!important;flex-shrink:0}

/* Settings uses a pill track with a centered thumb in both positions. */
html.minimal-ui body :is(#modalRoot,.entry-thread-actions) .profile-choice input[type=checkbox]{
  border:0!important;border-radius:999px!important;background:#f2f2f2!important;
  clip-path:none!important;
}
html.minimal-ui body :is(#modalRoot,.entry-thread-actions) .profile-choice input[type=checkbox]:checked{background:#f47721!important}
html.minimal-ui body :is(#modalRoot,.entry-thread-actions) .profile-choice input[type=checkbox]::before{top:4px;left:4px}
