/* LessonSky RC115 — mobile/accessibility pass on portal, learning and guidance surfaces. */
/* Use explicit paired foreground/background colors. No external fonts/images/URLs. */
html:not(.lessonsky-dark) body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]),select,textarea){color:#192f49!important;background-color:#fff!important;border-color:#94aeca!important;caret-color:#192f49!important}
html.lessonsky-dark body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]),select,textarea){color:#f2f7ff!important;background-color:#12253b!important;border-color:#869eb9!important;caret-color:#f2f7ff!important}
html:not(.lessonsky-dark) body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(input,textarea)::placeholder{color:#465b74!important;opacity:1!important}
html.lessonsky-dark body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(input,textarea)::placeholder{color:#cedced!important;opacity:1!important}
/* List and status areas: contrasting text in both schemes and accessible form feedback. */
html:not(.lessonsky-dark) body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(.sk-empty,.sk-placeholder,.sk-hint-box,.sk-notice){background-color:#f1f6fd!important;color:#193b60!important;border-color:#9bb6d3!important}
html.lessonsky-dark body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(.sk-empty,.sk-placeholder,.sk-hint-box,.sk-notice){background-color:#23364e!important;color:#eff6ff!important;border-color:#7490ad!important}
html:not(.lessonsky-dark) body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(.sk-muted,.hint,.sk-description,.sk-help){color:#384e69!important;opacity:1!important}
html.lessonsky-dark body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(.sk-muted,.hint,.sk-description,.sk-help){color:#d3e2f3!important;opacity:1!important}
/* Focus rings stay visible for keyboard users; buttons need no link navigation changes. */
html:not(.lessonsky-dark) body :is(.sk-profile-center,.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(button,a,input,select,textarea,[role="button"],[role="tab"]):focus-visible{outline:3px solid #135394!important;outline-offset:3px!important}
html.lessonsky-dark body :is(.sk-profile-center,.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(button,a,input,select,textarea,[role="button"],[role="tab"]):focus-visible{outline:3px solid #c6e4ff!important;outline-offset:3px!important}
@media(max-width:760px){
  body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement){width:auto;max-width:100%;min-width:0;box-sizing:border-box}
  body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(.sk-card,.sk-panel,.sk-lesson-card,.sk-habit-card){max-width:100%;min-width:0;box-sizing:border-box}
  body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(h1,h2,h3,h4,p,summary,label,.sk-muted,.hint){overflow-wrap:anywhere}
  body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk-profile-center,.sk103-placement) :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box;font-size:max(16px,1rem)}
  /* Inputs scroll above the fixed bottom bar unless the keyboard intentionally hides it. */
  body:is(.lessonsky-android-app,.lessonsky-huawei-app,.lessonsky-ios-app) :is(input,textarea,select,[contenteditable="true"]){scroll-margin-bottom:calc(var(--sk-mobile-nav-h,76px) + env(safe-area-inset-bottom,0px) + 14px)}
  body:is(.lessonsky-android-app,.lessonsky-huawei-app,.lessonsky-ios-app).sk111-keyboard-open :is(input,textarea,select,[contenteditable="true"]){scroll-margin-bottom:24px}
}
@media(prefers-reduced-motion:reduce){body :is(.sk-profile-center,.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(button,a,input,select,textarea){animation-duration:0.01ms!important;transition-duration:0.01ms!important}}
@media(forced-colors:active){body :is(.sk-learn-library-shell,.sk-habit-recovery,.sk103-placement) :is(.sk-empty,.sk-placeholder,.sk-hint-box,.sk-notice){background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important}}
