/* Shared checkbox states. Keep native input behaviour, draw a visible mark. */
body[data-theme]{
 --fc-off:var(--bg1,#1b1d22);--fc-border:#8993a7;--fc-on:#a6b8ff;--fc-mark:#151c38;
 --fc-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23151c38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
body[data-theme=light],body[data-theme=bubble]{
 --fc-off:#fff;--fc-border:#72788b;--fc-on:#4056b5;--fc-mark:#fff;
 --fc-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
body[data-theme=bubble]{--fc-on:#5d319c}
body[data-theme] :is(.cl-shell,.cl-home,.cl-dialog){
 --fc-off:#12131a;--fc-border:#8993a7;--fc-on:#d8ff78;--fc-mark:#171b10;
 --fc-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23171b10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
body[data-theme] input[type=checkbox]{
 -webkit-appearance:none!important;appearance:none!important;box-sizing:border-box;display:inline-block;
 width:22px!important;min-width:22px;max-width:22px;height:22px!important;min-height:22px;max-height:22px;flex:0 0 22px;
 padding:0!important;margin:2px 0;vertical-align:middle;border:2px solid var(--fc-border);border-radius:5px;
 background:var(--fc-off);box-shadow:none;opacity:1;cursor:pointer;touch-action:manipulation;
 transition:background-color 120ms ease,border-color 120ms ease;
}
body[data-theme] input[type=checkbox]::before,body[data-theme] input[type=checkbox]::after{content:none!important;display:none!important}
body[data-theme] input[type=checkbox]:checked{
 border-color:var(--fc-on);background:var(--fc-on) var(--fc-tick) center / 20px 20px no-repeat;box-shadow:none;
}
body[data-theme] input[type=checkbox]:indeterminate{
 border-color:var(--fc-on);background:linear-gradient(var(--fc-mark),var(--fc-mark)) center / 12px 3px no-repeat var(--fc-on);
}
body[data-theme] input[type=checkbox]:focus-visible{outline:2px solid var(--fc-on);outline-offset:3px}
body[data-theme] input[type=checkbox]:disabled{opacity:.55;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){body[data-theme] input[type=checkbox]{transition:none}}
@media(forced-colors:active){body[data-theme] input[type=checkbox]{-webkit-appearance:auto!important;appearance:auto!important;forced-color-adjust:auto}}
