/* A single visual checkbox for every selectable library or analysis card. */
:root{
 --card-check-line:light-dark(rgb(120 126 136 / .65),rgb(193 199 209 / .65));
 --card-check-surface:light-dark(rgb(255 255 255 / .88),rgb(38 39 43 / .9));
 --card-check-fill:color-mix(in srgb,var(--accent) 78%,var(--surface));
 --card-check-mark:var(--surface);
}
html :is(.card-select-control,.replay-select-control){
 display:inline-flex;align-items:center;justify-content:center;
 width:44px;height:44px;min-width:44px;min-height:44px;cursor:pointer;
}
html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]){
 appearance:none;-webkit-appearance:none;position:relative;display:inline-grid;place-items:center;
 box-sizing:border-box;flex:none;width:16px;height:16px;min-width:16px;min-height:16px;
 padding:0;margin:0;border:1px solid var(--card-check-line);border-radius:4px;
 background:var(--card-check-surface);color:var(--card-check-mark);box-shadow:none;
 cursor:pointer;vertical-align:middle;transition:background-color .14s ease,border-color .14s ease;
}
html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox])::after{
 content:'';width:4px;height:7px;box-sizing:content-box;border:solid currentColor;
 border-width:0 1.4px 1.4px 0;transform:translateY(-1px) rotate(45deg);opacity:0;
 transition:opacity .12s ease;
}
html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]):is(:checked,:indeterminate){
 background:var(--card-check-fill);border-color:var(--card-check-fill);box-shadow:none;
}
html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]):is(:checked,:indeterminate)::after{opacity:1}
html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]):indeterminate::after{
 width:7px;height:0;border-width:0 0 1.4px;transform:none;
}
html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]):focus-visible{
 outline:1px solid var(--focus-ring);outline-offset:-1px;box-shadow:none;
}
html .an-passage-card{position:relative}
html .an-passage-card .card-select-control{position:absolute;left:6px;top:6px}
html .an-passage-card .an-passage-labels{padding-left:32px;min-height:26px}
@media(prefers-reduced-motion:reduce){
 html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]),
 html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox])::after{transition:none}
}
@media(forced-colors:active){
 html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox]){appearance:auto;background:Canvas;color:CanvasText;border-color:ButtonText}
 html :is(.card-select-checkbox,.replay-select-control input[type=checkbox],.library-card-grid article input[type=checkbox],.snippet-grid article input[type=checkbox],.an-speech-list article input[type=checkbox])::after{display:none}
}
