/* RC113: local, stable light/dark readability, without outbound assets. */
/* Long titles and numeric identifiers wrap instead of escaping narrow cards. */
body :is(.sk-profile-center,.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery) :is(h1,h2,h3,h4,p,small,.sk-muted,.hint,figcaption){overflow-wrap:break-word;min-width:0}
body :is(.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery) :is(.sk-card,.sk-panel,.sk-lesson-card,.sk-habit-card){min-width:0;max-width:100%}
/* Never rely on inherited low-opacity helper text against mixed backgrounds. */
html:not(.lessonsky-dark) body :is(.sk-profile-center,.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery) :is(.sk-muted,.hint,.sk-help,.sk-description,figcaption){color:#384c65!important;opacity:1!important}
html.lessonsky-dark body :is(.sk-profile-center,.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery) :is(.sk-muted,.hint,.sk-help,.sk-description,figcaption){color:#d3dfed!important;opacity:1!important}
/* Disabled controls must remain legible but visibly inactive; native checkboxes keep their system appearance. */
html:not(.lessonsky-dark) body :is(.sk-shell,.sk-profile-center,.sk103-placement) :is(input:not([type=checkbox]):not([type=radio]):disabled,textarea:disabled,select:disabled){background-color:#e9eef5!important;color:#354861!important;opacity:1!important}
html.lessonsky-dark body :is(.sk-shell,.sk-profile-center,.sk103-placement) :is(input:not([type=checkbox]):not([type=radio]):disabled,textarea:disabled,select:disabled){background-color:#26374c!important;color:#dce8f5!important;opacity:1!important}
/* Reading and form controls remain keyboard-accessible in both modes. */
html:not(.lessonsky-dark) body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(button,a,input,select,textarea,[role=button]):focus-visible{outline:3px solid #124b91!important;outline-offset:3px!important}
html.lessonsky-dark body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(button,a,input,select,textarea,[role=button]):focus-visible{outline:3px solid #add9ff!important;outline-offset:3px!important}
/* Keep reading content within one-column mobile layouts; allow tables their own scroll area. */
@media(max-width:760px){body :is(.sk-profile-center,.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery){max-width:100%;min-width:0}body :is(.sk-profile-center,.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery) :is(.sk-card,.sk-panel,.sk-lesson-card,.sk-habit-card){max-width:100%;box-sizing:border-box}body :is(.sk-learn-library-shell,.sk103-placement) :is(table,.sk-table){min-width:0}body :is(.sk-shell,.sk-profile-center,.sk103-placement) :is(input,textarea,select){max-width:100%;box-sizing:border-box}}
@media(forced-colors:active){body :is(.sk-learn-library-shell,.sk103-placement,.sk-habit-recovery) :is(a,button,input,select,textarea):focus-visible{outline-color:Highlight!important}}
