/* LessonSky RC131 - the user-approved premium midnight palette. No external assets. */
/* No floating theme switch over the footer's account/download dock. */
body .sk117-quick-theme,
html body .sk117-quick-theme.sk131-theme-fallback{
  position:fixed!important;inset:auto max(14px,env(safe-area-inset-right,0px)) auto auto!important;
  top:calc(86px + env(safe-area-inset-top,0px))!important;
  bottom:auto!important;left:auto!important;
  z-index:2000!important;display:inline-flex!important;pointer-events:none;
  transform:none!important;width:auto!important;height:auto!important;
}
html body .sk117-quick-theme.sk131-theme-docked{
  position:static!important;inset:auto!important;top:auto!important;left:auto!important;
  bottom:auto!important;right:auto!important;z-index:auto!important;transform:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;width:38px!important;height:38px!important;margin:0 8px!important;
  pointer-events:auto!important;
}
html body .sk117-quick-theme button,
html body .sk117-quick-theme.sk131-theme-docked button{
  box-sizing:border-box!important;width:38px!important;height:38px!important;min-height:38px!important;
  min-width:38px!important;max-width:38px!important;padding:0!important;margin:0!important;
  gap:0!important;display:inline-grid!important;place-items:center!important;border-radius:12px!important;
  border:1px solid #c8d5e8!important;background:#f8fbff!important;color:#143764!important;
  box-shadow:0 3px 12px rgba(23,50,93,.1)!important;line-height:1!important;
  font-size:0!important;white-space:nowrap!important;cursor:pointer!important;pointer-events:auto!important;
}
html body .sk117-quick-theme [data-sk117-theme-label]{display:none!important}
html body .sk117-quick-theme [data-sk117-theme-icon]{font-size:21px!important;font-weight:750!important;line-height:1!important;color:inherit!important}
html.lessonsky-dark body .sk117-quick-theme button{
  background:#142944!important;color:#d3e6ff!important;border-color:#47658c!important;
  box-shadow:0 2px 15px rgba(0,3,15,.18)!important;
}
html body .sk117-quick-theme button:focus-visible{outline:3px solid #60a5fa!important;outline-offset:3px!important}
html body .sk117-quick-theme button:disabled{opacity:.62!important}
/* The mobile shell owns its topbar. Place the button immediately before the avatar. */
html body .sk-mobile-topbar .sk117-quick-theme.sk131-theme-mobile{margin:0 5px 0 0!important;width:36px!important;height:36px!important}
html body .sk-mobile-topbar .sk117-quick-theme.sk131-theme-mobile button{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;border-radius:999px!important}
body:is(.lessonsky-android-app,.lessonsky-huawei-app,.lessonsky-ios-app) .sk117-quick-theme:not(.sk131-theme-docked){display:none!important}
body.lessonsky-assessment-focus .sk117-quick-theme{display:none!important}
@media(max-width:640px){
  html body .sk117-quick-theme:not(.sk131-theme-docked){top:calc(72px + env(safe-area-inset-top,0px))!important;right:12px!important}
  html body .sk117-quick-theme.sk131-theme-docked{margin-inline:4px!important}
}
@media(max-width:360px){html body .sk-mobile-topbar .sk117-quick-theme.sk131-theme-mobile{margin-right:3px!important;width:32px!important;height:32px!important}html body .sk-mobile-topbar .sk117-quick-theme.sk131-theme-mobile button{min-width:32px!important;max-width:32px!important;width:32px!important;min-height:32px!important;height:32px!important}}

/* Dark growth screens: one consistent navy/indigo token set and readable surfaces. */
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"]{
  --ls-surface:#112139;--ls-surface-2:#172b46;--ls-surface-3:#213755;
  --ls-text:#e5efff;--ls-text-strong:#f5f8ff;--ls-muted:#bfcee5;--ls-muted-2:#a9bfdc;
  --ls-line:#334c70;--ls-primary:#9bbdff;--ls-primary-soft:#223d67;
  --ls-shadow-sm:0 8px 25px rgba(0,5,17,.15);
  color:#e5efff!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-growth-subnav,.sk-dashboard-primary-nav){
  color:#eaf2ff!important;background:#152944!important;border:1px solid #354e74!important;
  border-radius:18px!important;box-shadow:0 8px 22px rgba(0,7,23,.14)!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-growth-subnav,.sk-dashboard-primary-nav) a{
  background:transparent!important;color:#c5d6f1!important;border-radius:12px!important;
  box-shadow:none!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-growth-subnav,.sk-dashboard-primary-nav) a:is(.is-active,[aria-current="page"]){
  color:#fff!important;background:linear-gradient(115deg,#325b9f,#476ebc)!important;
  box-shadow:inset 0 0 0 1px rgba(177,209,255,.30)!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-growth-subnav,.sk-dashboard-primary-nav) a:hover{color:#fff!important;background:#28456d!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-card,.sk-motivation-goals,.sk-personal-records,.sk-experience-subject-section,.sk-learning-league,.sk-community-circle,.sk-growth-continuity){
  color:#edf5ff!important;background:linear-gradient(153deg,#102139,#152a45)!important;
  border:1px solid #30496c!important;box-shadow:0 10px 28px rgba(0,7,19,.17)!important;
}
/* Keep the hero gradient vivid, rather than flattening to a plain panel. */
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] .sk-experience-hero{
  background:radial-gradient(ellipse at 86% 10%,rgba(90,76,190,.26),transparent 44%),
   radial-gradient(circle at 48% -30%,rgba(41,137,199,.22),transparent 60%),
   linear-gradient(110deg,#153e6a,#173b64 55%,#414478)!important;
  border-color:#5779ac!important;color:#fff!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] .sk-experience-hero :is(h1,p,small,span,.sk-kicker){color:#f2f7ff!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] .sk-experience-hero .sk-global-badges span{
  color:#dcecff!important;background:rgba(129,177,255,.20)!important;border-color:rgba(186,210,255,.27)!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-journey,.sk-motivation-goals){background:linear-gradient(145deg,#10233d,#1c3251)!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-journey-meta span,.sk-motivation-goal-bar,.sk-experience-subject-bar,.sk-motivation-progress,.sk-motivation-pulse-grid article,.sk-personal-record-grid article,.sk-experience-subject,.sk-experience-kpis article,.sk-community-circle,.sk-circle-board span,.sk-growth-continuity-grid>a,.sk-rc68-goal-metric){
  background:#172c49!important;border-color:#3a5375!important;color:#ebf3ff!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-goal-bar,.sk-experience-subject-bar,.sk-motivation-progress){background:#2a4364!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-journey-meta b,.sk-personal-records h2,.sk-experience-subject strong,.sk-motivation-grid strong,.sk-motivation-grid h2,.sk-learning-league h2,.sk-motivation-pulse-grid strong,.sk-growth-continuity strong,.sk-circle-board b){color:#f5f8ff!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-goal-row span,.sk-motivation-grid p,.sk-motivation-grid small,.sk-personal-record-grid small,.sk-personal-records p,.sk-experience-subject-copy span,.sk-experience-subject-score small,.sk-motivation-pulse-grid span,.sk-learning-league p,.sk-community-circle p,.sk-growth-continuity p){color:#c4d5eb!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-today-chips span,.sk-level-badge,.sk-growth-continuity .sk-badge){background:#244365!important;border-color:#4779a2!important;color:#cfe9ff!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] .sk-level-form select,
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-circle-actions input,.sk-quick-form input,.sk-quick-form select,.sk-community-circle input){
  background:#132741!important;border:1px solid #496487!important;color:#f0f6ff!important;
}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] input::placeholder{color:#b4c7df!important;opacity:1!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-motivation-today-chips span,.sk-level-badge){color:#e7f4ff!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-btn,.sk-small-btn,.sk-circle-actions button,.sk-league-prefs button){border-color:#4b6790!important;color:#f2f7ff!important;background:#264568!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(.sk-btn-primary,button[type="submit"]){background:#2f66b5!important;color:#fff!important;border-color:#6b94d2!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] :is(a,button,input,select):focus-visible{outline:3px solid #9bd5ff!important;outline-offset:3px!important}
/* Do not overwrite semantic subject identity or the genuine progress indicator. */
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] .sk-experience-subject-score b{color:#f2f7ff!important}
html.lessonsky-dark body .sk-shell[data-sk-l10n-surface="dashboard"] .sk-experience-subject-bar i{filter:saturate(1.12)}

/* Programme explorer: more genuine programme descriptions, no invented institutional placements. */
.sk131-programme-explorer .sk131-programme-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.sk131-programme-explorer .sk131-programme-head h2{margin:4px 0 7px}
.sk131-programme-explorer .sk131-programme-head p{max-width:720px;margin:0;line-height:1.6;font-size:13px}
.sk131-programme-count{display:inline-flex;padding:10px 14px;border-radius:999px;border:1px solid #cbdaf5;background:#edf4ff;color:#214a89;font-size:12px;white-space:nowrap}
.sk131-programme-explorer .sk80-school summary small{display:inline-flex;margin-left:6px;font-size:10px;padding:2px 7px;border:1px solid #d4e3f6;border-radius:7px;background:#eaf3ff;color:#224d89}
html.lessonsky-dark body .sk131-programme-count{background:#1d3b60;color:#dbedff;border-color:#456e9b}
html.lessonsky-dark body .sk131-programme-explorer .sk80-school summary small{background:#1c3c5c;color:#d9f0ff;border-color:#4b6e93}
@media(max-width:640px){.sk131-programme-explorer .sk131-programme-head{align-items:flex-start}.sk131-programme-explorer .sk131-programme-count{font-size:11px}}
@media(forced-colors:active){html body .sk117-quick-theme button{background:ButtonFace!important;color:ButtonText!important;border:2px solid ButtonText!important}}
@media(prefers-reduced-motion:reduce){html body .sk117-quick-theme button{transition:none!important;animation:none!important}}


/* RC135: safer tri-mode theme toggle */
.sk117-quick-theme{z-index:45}
.sk117-quick-theme[hidden]{display:none!important}
.sk117-quick-theme button[data-sk117-theme-toggle]{width:46px;height:46px;border-radius:15px;border:1px solid rgba(120,144,190,.42);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(241,246,255,.95));box-shadow:0 12px 28px rgba(18,35,79,.16);color:#22426d;font-size:21px;line-height:1}
html.lessonsky-dark .sk117-quick-theme button[data-sk117-theme-toggle],body.lessonsky-dark .sk117-quick-theme button[data-sk117-theme-toggle]{background:linear-gradient(180deg,rgba(25,45,82,.98),rgba(17,31,59,.98));border-color:rgba(120,152,214,.36);color:#e7f0ff;box-shadow:0 16px 34px rgba(0,0,0,.30)}
html.lessonsky-dim .sk117-quick-theme button[data-sk117-theme-toggle],body.lessonsky-dim .sk117-quick-theme button[data-sk117-theme-toggle]{background:linear-gradient(180deg,rgba(36,54,84,.98),rgba(29,44,72,.98));border-color:rgba(129,157,214,.32);color:#edf3ff;box-shadow:0 16px 34px rgba(10,18,36,.24)}
.sk131-theme-inline,.sk131-theme-docked{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;margin-inline-end:10px}
.sk131-theme-mobile{margin-inline-end:10px;align-self:center}
.sk131-theme-mobile + .sk-mobile-profile-pill{margin-inline-start:0}
.sk131-theme-fallback{position:fixed;top:max(82px,env(safe-area-inset-top,0px) + 70px);right:14px;left:auto;bottom:auto}
body.lessonsky-assessment-focus .sk117-quick-theme,
body.sk-focus-mode-active .sk117-quick-theme,
.sk-assessment-focus-shell ~ .sk117-quick-theme,
body:has(.sk-assessment-focus-shell) .sk117-quick-theme,
body:has(.sk-practice-session) .sk117-quick-theme,
body:has([data-sk-practice-shell]) .sk117-quick-theme{display:none!important}
@media (max-width: 767px){
  .sk117-quick-theme button[data-sk117-theme-toggle]{width:42px;height:42px;border-radius:14px;font-size:19px}
  .sk131-theme-fallback{top:max(72px,env(safe-area-inset-top,0px) + 58px);right:10px}
}

/* RC137: [hidden] must override the old docked display!important rule. */
html body .sk117-quick-theme[hidden],
html body .sk117-quick-theme.sk131-theme-docked[hidden]{
  display:none!important;
  pointer-events:none!important;
}
