/* LessonSky RC168: Night surface/foreground must be corrected as a PAIR.
   This stylesheet loads after previous global fixes. No layout or app logic is changed. */

/* Login, register, child PIN and social-completion use the same stable card. */
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-shell.sk-auth-shell{
  --sk-auth-night-bg:#142740;
  --sk-auth-night-panel:#1b3350;
  --sk-auth-night-field:#0d2036;
  --sk-auth-night-border:#456687;
  --sk-auth-night-ink:#f2f7ff;
  --sk-auth-night-secondary:#c7d8ec;
  width:min(100%,560px)!important;max-width:560px!important;
  color:var(--sk-auth-night-ink)!important;
  background:transparent!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-card{
  background:linear-gradient(153deg,#1d3859 0%,#142942 61%,#12243c 100%)!important;
  background-color:#142740!important;
  border:1px solid #507298!important;
  color:#f2f7ff!important;
  box-shadow:0 26px 72px rgba(1,8,23,.40),inset 0 1px rgba(255,255,255,.07)!important;
  border-radius:25px!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-brand strong,.sk-auth-copy h1,.sk-auth-invite strong){
  color:#f7faff!important;opacity:1!important;text-shadow:none!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-brand small,.sk-auth-copy p,.sk-auth-foot,.sk-auth-form>small,.sk-auth-login-form small,.sk-auth-coming){
  color:#c5d8ef!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-brand>span{
  background:linear-gradient(130deg,#3e68c1,#7258d8)!important;
  box-shadow:0 7px 17px rgba(3,10,29,.28)!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language{
  background:#223c5c!important;border:1px solid #526e91!important;
  color:#ebf5ff!important;backdrop-filter:none!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language :is(label,span){
  color:#ddeafd!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language select,
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-form select{
  background:#10253f!important;color:#f4f8ff!important;border:1px solid #6684a6!important;
  color-scheme:dark!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language option,
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-form option{
  background:#10253f!important;color:#f4f8ff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-tabs{
  background:#0e2037!important;border:1px solid #3d5c7f!important;gap:5px!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-tabs a{
  background:transparent!important;color:#cbdbef!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-tabs a:is(.is-active,[aria-current="page"]){
  background:#315982!important;color:#fff!important;
  box-shadow:0 3px 12px rgba(0,12,31,.25)!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-form label,.sk-auth-login-form label,.sk-auth-login-form .login-remember label){
  color:#e9f3ff!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.sk-auth-login-form input[type="text"],.sk-auth-login-form input[type="password"],.sk-auth-form textarea){
  background:#0d2036!important;color:#f4f8ff!important;border:1px solid #6a87a9!important;
  caret-color:#eff7ff!important;box-shadow:none!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(input,textarea)::placeholder{
  color:#b7cae1!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .login-remember input[type="checkbox"],
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-form input[type="checkbox"]{
  accent-color:#79b2ff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-login-form .button-primary,.sk-auth-form .sk-btn-primary){
  background:linear-gradient(115deg,#3978d9,#5859d9)!important;
  color:#fff!important;border:1px solid #7d9fff!important;
  box-shadow:0 9px 19px rgba(1,11,31,.26)!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-login-form .button-primary,.sk-auth-form .sk-btn-primary):hover{
  background:linear-gradient(115deg,#4386ee,#6c68e7)!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-secondary a,.sk-auth-cancel){
  color:#a9d7ff!important;text-decoration:underline;text-underline-offset:3px;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-social-auth-btn,.sk-social-verified,.sk-auth-invite){
  background:#213b5a!important;border-color:#526f90!important;color:#f4f8ff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-social-verified span,.sk-social-verified strong,.sk-auth-invite p){color:#d6e5f7!important}
:is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell :is(.sk-auth-tabs a,.sk-auth-secondary a,.sk-auth-language select,.sk-auth-login-form input,.sk-auth-form input,.sk-auth-form select,.sk-btn-primary):focus-visible{
  outline:3px solid #a6d2ff!important;outline-offset:3px!important;
}
@media(max-width:560px){
 :is(html.lessonsky-dark body,body.lessonsky-dark) .sk-shell.sk-auth-shell{padding:0 12px!important;box-sizing:border-box!important}
 :is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-card{padding:24px 20px!important;border-radius:22px!important}
 :is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language{display:flex!important;align-items:center!important;gap:8px!important}
 :is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language label{width:100%!important;min-width:0!important}
 :is(html.lessonsky-dark body,body.lessonsky-dark) .sk-auth-shell .sk-auth-language select{width:100%!important;min-width:0!important}
}

/* Guidance: section -> cards -> nested data surfaces. No pale boxes in Night. */
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance{
  --sk80-guidance-card:#1b3350;--sk80-guidance-inset:#132a44;
  --sk80-guidance-border:#4d6c8e;--sk80-guidance-ink:#f2f7ff;
  --sk80-guidance-muted:#cbd9eb;
  background:transparent!important;color:var(--sk80-guidance-ink)!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk80-panel,.sk81-universities,.sk80-hub-card,.sk80-exam-tile,.sk80-school,.sk81-university,.sk81-match,.sk80-preference,.sk85-program-card,.sk85-saved-card,.sk88-journey-card,.sk88-type,.sk88-school,.sk88-choice){
  background:var(--sk80-guidance-card)!important;background-image:none!important;
  color:var(--sk80-guidance-ink)!important;border-color:var(--sk80-guidance-border)!important;
  box-shadow:0 7px 19px rgba(2,10,24,.12)!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk80-hero,.sk80-section-head){color:#f3f8ff!important}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(h1,h2,h3,h4,h5,legend,dt,dd,strong,b,label,summary){
  color:#f3f8ff!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(p,small,li,figcaption,.sk80-hub-card>span:last-child,.sk80-exam-tile span,.sk81-count){
  color:#cbd9eb!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk80-tabs,.sk81-catalog-filter,.sk80-form-grid,.sk80-date-form,.sk85-selection-summary,.sk86-university-history,.sk132-programme-preview,.sk88-source,.sk88-add,.sk88-legacy,.sk88-steps article,.sk88-choice,.sk80-history-body){
  background:var(--sk80-guidance-inset)!important;background-image:none!important;
  border-color:#4b6a89!important;color:#eff5ff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance .sk80-tabs a{
  color:#d5e6fa!important;background:transparent!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance .sk80-tabs a[aria-current="page"]{
  background:#315c8b!important;border-color:#7599bb!important;color:#fff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk81-pill,.sk80-exam-icon,.sk85-count,.sk80-school small,.sk88-group small,.sk88-school small){
  background:#294969!important;border-color:#577a9d!important;color:#e8f3ff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk132-programme-preview>summary,.sk86-university-history>summary,.sk88-legacy>summary){
  background:#254869!important;border-color:#527699!important;color:#f1f7ff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk132-programme-preview th,.sk132-programme-preview td,.sk86-history-scroll th,.sk86-history-scroll td,.sk80-school-stats>div){
  background:#18324f!important;color:#eaf3ff!important;border-color:#476887!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){
  background:#10253d!important;color:#f4f8ff!important;border:1px solid #6583a3!important;
  caret-color:#fff!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(input,textarea)::placeholder{color:#b9cce2!important;opacity:1!important}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance option{background:#10253d!important;color:#f4f8ff!important}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance :is(.sk80-button,.sk81-catalog-filter button,.sk88-actions button){
  background:#294e78!important;color:#f1f7ff!important;border:1px solid #6287ac!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance a:focus-visible,
:is(html.lessonsky-dark body,body.lessonsky-dark) #sk80-guidance button:focus-visible{
  outline:3px solid #a9d7ff!important;outline-offset:3px!important;
}
/* Guidance page only: avoid a universal CSS rule leaking into the app header. */

/* Public navigation: language and account pills must not be white-on-white. */
:is(html.lessonsky-dark body,body.lessonsky-dark) :is(
 .ls-site-header,.ls-global-header,.ls-app-header,.site-header,#masthead,
 .sk-mobile-topbar,header:has(nav)
) :is(
 .sk-account-identity,.ls-header-account,.ls-header-profile,.ls-profile-pill,
 .ls-profile-trigger,.sk-top-profile,.sk-mobile-profile-pill,.sk-header-profile,
 .language-switcher,.sk-language-switcher,.sk-locale-button,
 .language-selector,.sk-header-language,.ls-header-language,
 .ls-header-lang,.ls-lang-select,.sk-header-account,
 a[href*="sk_lang"],a[href*="sk_edit=1"],a[href*="sk_view=profile"],
 a[href*="/profile"],select[name="sk_lang"],
 a:has(.avatar),button:has(.avatar)
){
  background:#213c5b!important;background-image:none!important;
  color:#f3f8ff!important;border:1px solid #57789b!important;
  opacity:1!important;text-shadow:none!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) :is(
 .ls-site-header,.ls-global-header,.ls-app-header,.site-header,#masthead,
 .sk-mobile-topbar,header:has(nav)
) :is(
 .sk-account-identity,.ls-header-account,.ls-header-profile,.ls-profile-pill,
 .ls-profile-trigger,.sk-top-profile,.sk-mobile-profile-pill,.sk-header-profile,
 .language-switcher,.sk-language-switcher,.sk-locale-button,
 .language-selector,.sk-header-language,.ls-header-language,
 .ls-header-lang,.ls-lang-select,.sk-header-account,
 a[href*="sk_lang"],a[href*="sk_edit=1"],a[href*="sk_view=profile"],
 a[href*="/profile"],select[name="sk_lang"],a:has(.avatar),button:has(.avatar)
) :is(span,strong,b,small,svg,option){
  color:#f4f9ff!important;opacity:1!important;
}
:is(html.lessonsky-dark body,body.lessonsky-dark) :is(.site-header,#masthead,.ls-site-header,.ls-global-header,.ls-app-header,header:has(nav)) :is(
 .ls-header-account,.ls-header-profile,.ls-profile-pill,.ls-profile-trigger,
 .sk-account-identity,.sk-top-profile,.sk-header-profile,
 .language-switcher,.sk-language-switcher,.sk-locale-button,.sk-header-language,
 a[href*="sk_lang"],a[href*="/profile"],a[href*="sk_edit=1"]
):focus-visible{outline:3px solid #a9d7ff!important;outline-offset:3px!important}

/* Soft Dim stays light, legible and intentional; it must not inherit Night tokens. */
:is(html.lessonsky-dim body,body.lessonsky-dim) .sk-auth-shell .sk-auth-card{
 background:#edf3fa!important;color:#1b304b!important;border:1px solid #bacce0!important;
}
:is(html.lessonsky-dim body,body.lessonsky-dim) .sk-auth-shell :is(.sk-auth-brand strong,.sk-auth-copy h1,.sk-auth-form label,.sk-auth-login-form label){color:#203955!important}
:is(html.lessonsky-dim body,body.lessonsky-dim) .sk-auth-shell :is(.sk-auth-brand small,.sk-auth-copy p,.sk-auth-foot){color:#4b607a!important}
@media (prefers-reduced-motion:reduce){
 .sk-auth-card,.sk80-hub-card,.sk80-panel{transition:none!important}
}
/* WP login renders an input submit; override older generic .sk-shell input paint. */
html.lessonsky-dark body .sk-shell.sk-auth-shell .sk-auth-login-form input.button-primary[type="submit"],
body.lessonsky-dark .sk-shell.sk-auth-shell .sk-auth-login-form input.button-primary[type="submit"],
html.lessonsky-dark body .sk-shell.sk-auth-shell .sk-auth-form button.sk-btn-primary[type="submit"],
body.lessonsky-dark .sk-shell.sk-auth-shell .sk-auth-form button.sk-btn-primary[type="submit"]{
  appearance:none!important;-webkit-appearance:none!important;
  background-color:#3978d9!important;
  background-image:linear-gradient(115deg,#3978d9,#5a5bd8)!important;
  border:1px solid #88a9fa!important;color:#fff!important;
  box-shadow:0 8px 20px rgba(5,15,40,.28)!important;
}
