/* LessonSky RC30.55.51 — Responsive Contract 2.0
 * Geometry only. Palette changes never alter layout.
 */
@media(max-width:1280px){
  body .sk-shell{width:min(calc(100% - 22px),1480px)}
  body .sk-assessment-start-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.lessonsky-assessment-focus .sk-assessment-premium-layout{grid-template-columns:184px minmax(0,1fr) 230px!important}
  body.lessonsky-assessment-focus .sk-assessment-number-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.lessonsky-assessment-focus .sk-assessment-panel-head small{display:none!important}
  body.lessonsky-assessment-focus .sk-content-stem{font-size:clamp(18px,1.7vw,24px)!important}
}

@media(max-width:1040px){
  body .sk-profile-layout{grid-template-columns:1fr!important}
  body .sk-profile-tabs{position:static!important;display:flex!important;overflow:auto!important;gap:6px!important;scrollbar-width:thin!important}
  body .sk-profile-tabs a{flex:0 0 auto!important;grid-template-columns:auto!important;white-space:nowrap!important}
  body .sk-profile-tabs a>span{display:none!important}
  body .sk-profile-tabs a.sk-profile-back{width:auto!important;white-space:nowrap!important}

  body.lessonsky-assessment-focus{overflow:auto!important}
  body.lessonsky-assessment-focus .sk-assessment-focus-shell{height:auto!important;min-height:100dvh!important;grid-template-rows:auto auto auto!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-assessment-live-card{height:auto!important;min-height:92px!important;grid-template-columns:1fr 250px!important}
  body.lessonsky-assessment-focus .sk-assessment-premium-layout{height:auto!important;grid-template-columns:minmax(0,1fr) 226px!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-assessment-question-map-panel{display:none!important}
  body.lessonsky-assessment-focus .sk-assessment-core-stage{height:auto!important;min-height:560px!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-assessment-tools-rail{height:auto!important;grid-template-rows:auto auto auto!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-content-question-card{min-height:560px!important;height:auto!important;overflow:visible!important}
  body .sk-learn-subject-grid,
  body .sk-learning-subject-grid,
  body .sk-growth-hub-grid,
  body .sk-growth-continuity-grid,
  body .sk-skill-route-grid,
  body .sk-skill-module-grid,
  body .sk-career-grid,
  body .sk-university-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:760px){
  body{font-size:15px}
  body .sk-shell{width:100%!important;padding:10px 8px 104px!important}
  body .sk-dashboard-primary-nav{
    position:fixed!important;left:8px!important;right:8px!important;bottom:8px!important;z-index:9990!important;
    width:auto!important;grid-template-columns:repeat(5,minmax(54px,1fr))!important;gap:4px!important;
    margin:0!important;padding:6px!important;overflow-x:auto!important;
    border-radius:20px!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px)!important;
    box-shadow:0 16px 40px rgba(20,52,100,.18)!important;
  }
  body .sk-dashboard-primary-nav a{font-size:10px!important;min-height:48px!important;padding:5px!important}
  body .sk-assessment-start-grid{grid-template-columns:1fr!important}
  body .sk-profile-hero{padding:18px!important}
  body .sk-profile-panel{padding:15px!important}
  body .sk-theme-grid{grid-template-columns:1fr!important}
  body .sk-learn-subject-grid,
  body .sk-learning-subject-grid,
  body .sk-growth-hub-grid,
  body .sk-growth-continuity-grid,
  body .sk-skill-route-grid,
  body .sk-skill-module-grid,
  body .sk-career-grid,
  body .sk-university-grid{grid-template-columns:1fr!important}

  body.lessonsky-assessment-focus .sk-assessment-focus-shell{padding:7px!important;gap:7px!important}
  body.lessonsky-assessment-focus .sk-assessment-focus-nav{grid-template-columns:auto minmax(0,1fr)!important}
  body.lessonsky-assessment-focus .sk-assessment-focus-nav::after{display:none!important}
  body.lessonsky-assessment-focus .sk-assessment-focus-nav strong{font-size:12px!important}
  body.lessonsky-assessment-focus .sk-assessment-live-card{grid-template-columns:1fr!important;grid-template-rows:auto auto!important;padding:10px!important}
  body.lessonsky-assessment-focus .sk-assessment-live-head{grid-column:1!important;grid-row:1!important}
  body.lessonsky-assessment-focus .sk-assessment-live-head h2{font-size:18px!important;white-space:normal!important}
  body.lessonsky-assessment-focus .sk-assessment-progress{grid-column:1!important;grid-row:2!important}
  body.lessonsky-assessment-focus .sk-assessment-premium-layout{grid-template-columns:1fr!important}
  body.lessonsky-assessment-focus .sk-assessment-core-stage{order:0!important}
  body.lessonsky-assessment-focus .sk-assessment-tools-rail{order:1!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto auto!important;gap:7px!important}
  body.lessonsky-assessment-focus .sk-assessment-time-card{min-height:0!important}
  body.lessonsky-assessment-focus .sk-assessment-tool-card{display:grid!important;grid-column:1 / -1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  body.lessonsky-assessment-focus .sk-assessment-tool-card>.sk-assessment-panel-head{grid-column:1 / -1!important}
  body.lessonsky-assessment-focus .sk-assessment-progress-card{grid-column:1 / -1!important}
  body.lessonsky-assessment-focus .sk-assessment-progress-card ul{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.lessonsky-assessment-focus .sk-assessment-core-stage{min-height:0!important}
  body.lessonsky-assessment-focus .sk-content-question-card{min-height:0!important;height:auto!important;overflow:visible!important;padding:12px!important}
  body.lessonsky-assessment-focus .sk-content-stem{font-size:18px!important;line-height:1.32!important;max-height:none!important;overflow:visible!important;white-space:normal!important}
  body.lessonsky-assessment-focus .sk-content-answer-form{overflow:visible!important}
  body.lessonsky-assessment-focus .sk-content-options{overflow:visible!important;max-height:none!important}
  body.lessonsky-assessment-focus .sk-content-options>label{grid-template-columns:22px 36px minmax(0,1fr)!important;min-height:54px!important;font-size:14px!important;padding:8px 9px!important}
  body.lessonsky-assessment-focus .sk-content-option-key{width:36px!important;height:36px!important;font-size:16px!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock{position:static!important;grid-template-columns:1fr 1fr!important;background:var(--ls-surface)!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock>span{grid-column:1 / -1!important;white-space:normal!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock .sk-btn{width:100%!important}
  body.lessonsky-assessment-focus .sk-assessment-solution-panel{max-height:none!important;grid-template-columns:1fr 1fr!important}
  body.lessonsky-assessment-focus .sk-assessment-solution-copy,
  body.lessonsky-assessment-focus .sk-assessment-solution-panel>details{grid-column:1 / -1!important}
}

/* Short landscape smartboards: keep the document fixed, allow the central
 * question card to scroll internally when a genuinely long stem needs space. */
@media(min-width:900px) and (max-height:820px){
  body.lessonsky-assessment-focus .sk-assessment-focus-shell{grid-template-rows:44px 82px minmax(0,1fr)!important;padding:7px!important;gap:6px!important}
  body.lessonsky-assessment-focus .sk-assessment-focus-nav{border-radius:13px!important}
  body.lessonsky-assessment-focus .sk-assessment-live-card{height:82px!important;padding:8px 11px!important;border-radius:16px!important}
  body.lessonsky-assessment-focus .sk-assessment-live-head h2{font-size:19px!important}
  body.lessonsky-assessment-focus .sk-assessment-live-head .sk-kicker{font-size:8px!important}
  body.lessonsky-assessment-focus .sk-assessment-live-head .sk-btn{min-height:32px!important}
  body.lessonsky-assessment-focus .sk-assessment-question-map-panel,
  body.lessonsky-assessment-focus .sk-assessment-tools-rail>section{padding:9px!important;border-radius:14px!important}
  body.lessonsky-assessment-focus .sk-assessment-panel-icon{width:28px!important;height:28px!important;flex-basis:28px!important}
  body.lessonsky-assessment-focus .sk-assessment-number-grid{grid-auto-rows:29px!important;gap:4px!important}
  body.lessonsky-assessment-focus .sk-assessment-number-grid>span{height:29px!important;font-size:9px!important}
  body.lessonsky-assessment-focus .sk-content-question-card{padding:10px!important;border-radius:16px!important;overflow:auto!important}
  body.lessonsky-assessment-focus .sk-content-route{margin-bottom:3px!important}
  body.lessonsky-assessment-focus .sk-content-stem{font-size:17px!important;line-height:1.24!important;max-height:none!important;overflow:visible!important;margin-bottom:6px!important}
  body.lessonsky-assessment-focus .sk-content-options{gap:5px!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-content-options>label{min-height:44px!important;padding:5px 8px!important;font-size:13px!important;border-radius:11px!important}
  body.lessonsky-assessment-focus .sk-content-option-key{width:32px!important;height:32px!important;font-size:15px!important;border-radius:9px!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock{padding-top:6px!important;gap:6px!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock .sk-btn{min-height:34px!important;padding:5px 9px!important;font-size:10px!important}
  body.lessonsky-assessment-focus .sk-assessment-tool-row{min-height:33px!important;padding:4px 6px!important}
  body.lessonsky-assessment-focus .sk-assessment-rail-timer{margin-top:6px!important}
  body.lessonsky-assessment-focus .sk-assessment-rail-timer b{font-size:22px!important}
  body.lessonsky-assessment-focus .sk-assessment-solution-panel{max-height:88px!important;padding:7px 9px!important}
}

/* Cascade firewall: historical focus rules cannot stretch options or clip stems. */
body.lessonsky-assessment-focus .sk-assessment-focus-shell .sk-content-question-card .sk-content-route{flex:0 0 auto!important;height:auto!important}
body.lessonsky-assessment-focus .sk-assessment-focus-shell .sk-content-question-card .sk-content-stem{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body.lessonsky-assessment-focus .sk-assessment-focus-shell .sk-content-question-card .sk-content-answer-form{flex:0 0 auto!important;height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}
body.lessonsky-assessment-focus .sk-assessment-focus-shell .sk-content-question-card .sk-content-answer-form .sk-content-options{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;height:auto!important;min-height:0!important;width:100%!important;max-height:none!important;align-content:start!important;align-items:stretch!important;gap:8px!important;padding:0 2px 2px!important;overflow:visible!important}
body.lessonsky-assessment-focus .sk-assessment-focus-shell .sk-content-question-card .sk-content-answer-form .sk-content-options>label{display:grid!important;grid-template-columns:24px 40px minmax(0,1fr)!important;min-height:58px!important;height:auto!important;width:100%!important;max-width:none!important;padding:9px 12px!important;overflow:visible!important;white-space:normal!important}
body .sk-profile-tabs a.sk-profile-back{white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important}


/* RC30.55.51 — Stable Premium Layout Firewall
 * Loaded last. It fixes geometry/contrast only and is independent of the body marker.
 */
body{--ls-readable:var(--ls-text);--ls-readable-strong:var(--ls-text-strong);--ls-readable-muted:var(--ls-muted)}
.sk-shell,.sk-profile-center,.sk-content-practice-shell{color:var(--ls-readable)!important;background:radial-gradient(circle at 85% 0,color-mix(in srgb,var(--ls-primary) 7%,transparent),transparent 24%),linear-gradient(180deg,var(--ls-bg),var(--ls-bg-2))!important}
.sk-shell :where(h1,h2,h3,h4,h5,h6,strong,b,legend,summary,label){color:var(--ls-readable-strong)!important;opacity:1!important}
.sk-shell :where(p,small,.sk-hint,.sk-muted){color:var(--ls-readable-muted)!important;opacity:1!important}
.sk-kicker{color:var(--ls-link)!important;font-weight:900!important;letter-spacing:.055em!important}
.sk-card,.sk-profile-panel,.sk-growth-section,.sk-learn-library-shell,.sk-learning-studio-v2,.sk-teacher-action-center{background:linear-gradient(180deg,#fff,rgba(248,251,255,.98))!important;border:1px solid var(--ls-line)!important;box-shadow:var(--ls-shadow-md)!important}
.sk-btn-primary{background:linear-gradient(135deg,var(--ls-primary),var(--ls-primary-2))!important;color:#fff!important;border-color:transparent!important;box-shadow:var(--ls-shadow-button)!important}
.sk-btn-primary :where(span,strong,b){color:#fff!important}
.sk-theme-panel .sk-theme-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.sk-theme-option{display:grid!important;grid-template-columns:64px minmax(0,1fr) 28px!important;align-items:center!important;gap:12px!important;padding:14px!important;min-height:98px!important;background:#fff!important;border:1px solid var(--ls-line)!important;border-radius:18px!important;box-shadow:var(--ls-shadow-sm)!important}
.sk-theme-option input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.sk-theme-copy{display:grid!important;gap:4px!important;min-width:0!important}.sk-theme-copy strong{font-size:15px!important}.sk-theme-copy small{font-size:12px!important;line-height:1.45!important}.sk-theme-preview{display:grid!important;width:58px!important;height:70px!important;padding:6px!important;border-radius:13px!important;border:1px solid var(--ls-line)!important;overflow:hidden!important}
.sk-theme-check{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:999px!important;border:1px solid var(--ls-line-strong)!important;color:transparent!important}.sk-theme-option:has(input:checked){border-color:var(--ls-primary)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--ls-primary) 16%,transparent),var(--ls-shadow-md)!important}.sk-theme-option:has(input:checked) .sk-theme-check{background:var(--ls-primary)!important;border-color:var(--ls-primary)!important;color:#fff!important}

/* Assessment selection: compact, non-masonry, no stretched empty columns. */
.sk-assessment-start-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start!important;grid-auto-rows:auto!important;gap:14px!important}
.sk-assessment-start-card{align-self:start!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;background:#fff!important;border:1px solid var(--ls-line)!important;border-radius:20px!important;box-shadow:var(--ls-shadow-sm)!important}
.sk-assessment-blueprint,.sk-subject-test-list{height:auto!important;min-height:0!important}

/* Focus workspace: full question stem + complete tools + contained scrolling. */
body.lessonsky-assessment-focus{overflow:hidden!important}
body.lessonsky-assessment-focus .sk-assessment-focus-shell{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;display:grid!important;grid-template-rows:46px 96px minmax(0,1fr)!important;gap:8px!important;padding:8px!important}
body.lessonsky-assessment-focus .sk-content-practice-hero,body.lessonsky-assessment-focus .sk-content-practice-stats,body.lessonsky-assessment-focus .sk-assessment-latest{display:none!important}
body.lessonsky-assessment-focus .sk-assessment-live-card{height:96px!important;min-height:96px!important;overflow:hidden!important;margin:0!important}
body.lessonsky-assessment-focus .sk-assessment-premium-layout{height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:220px minmax(0,1fr) 280px!important;gap:10px!important;overflow:hidden!important}
body.lessonsky-assessment-focus .sk-assessment-question-map-panel,body.lessonsky-assessment-focus .sk-assessment-tools-rail>section{background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px solid var(--ls-line)!important;border-radius:18px!important;box-shadow:var(--ls-shadow-sm)!important;color:var(--ls-readable)!important}
body.lessonsky-assessment-focus .sk-assessment-question-map-panel{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:12px!important}
body.lessonsky-assessment-focus .sk-assessment-number-grid{overflow:auto!important;min-height:0!important;align-content:start!important;scrollbar-width:thin!important}
body.lessonsky-assessment-focus .sk-assessment-core-stage{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:hidden!important;gap:8px!important}
body.lessonsky-assessment-focus .sk-content-question-card{height:100%!important;min-height:0!important;overflow:auto!important;padding:14px!important;display:flex!important;flex-direction:column!important;background:#fff!important;border:1px solid var(--ls-line)!important;border-radius:18px!important;box-shadow:var(--ls-shadow-sm)!important}
body.lessonsky-assessment-focus .sk-content-route{flex:0 0 auto!important;margin-bottom:4px!important}.sk-content-concept{flex:0 0 auto!important}.sk-content-stem{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-wrap:pretty!important;font-size:clamp(19px,1.65vw,27px)!important;line-height:1.28!important;margin:6px 0 10px!important;color:var(--ls-readable-strong)!important}
body.lessonsky-assessment-focus .sk-content-answer-form{flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important;display:block!important}
body.lessonsky-assessment-focus .sk-content-options{display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:auto!important;gap:8px!important;height:auto!important;max-height:none!important;overflow:visible!important;align-content:start!important}
body.lessonsky-assessment-focus .sk-content-options>label{display:grid!important;grid-template-columns:24px 42px minmax(0,1fr)!important;align-items:center!important;min-height:58px!important;height:auto!important;padding:9px 12px!important;border:1px solid var(--ls-line)!important;border-radius:14px!important;background:#fff!important;color:var(--ls-readable)!important;white-space:normal!important;overflow:visible!important}
body.lessonsky-assessment-focus .sk-content-option-key{width:42px!important;height:42px!important;border-radius:12px!important;color:#fff!important}
body.lessonsky-assessment-focus .sk-assessment-action-dock{position:sticky!important;bottom:-14px!important;z-index:3!important;margin-top:auto!important;padding:10px 0 0!important;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 28%)!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:end!important;gap:8px!important}
body.lessonsky-assessment-focus .sk-assessment-tools-rail{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;gap:10px!important;overflow:hidden!important}
body.lessonsky-assessment-focus .sk-assessment-tool-card{display:grid!important;gap:6px!important;padding:10px!important}.sk-assessment-tool-row{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:40px!important;padding:6px 8px!important;border:1px solid var(--ls-line)!important;border-radius:11px!important;background:#fff!important;color:var(--ls-readable)!important}.sk-assessment-tool-row b{font-size:12px!important}.sk-assessment-tool-row em{font-size:10px!important;color:var(--ls-readable-muted)!important;font-style:normal!important}.sk-assessment-font-tools>div{display:flex!important;gap:4px!important}.sk-assessment-font-tools button{min-width:30px!important;height:30px!important;border:1px solid var(--ls-line)!important;border-radius:8px!important;background:#fff!important;color:var(--ls-readable)!important}
body.lessonsky-assessment-focus .sk-assessment-progress-card{min-height:0!important;overflow:auto!important;padding:12px!important}
body.lessonsky-assessment-focus .sk-assessment-solution-panel{position:static!important;max-height:132px!important;overflow:auto!important;grid-template-columns:140px 150px minmax(0,1fr) auto!important;background:#fff!important}
body.lessonsky-assessment-focus .sk-assessment-solution-panel>details[open],body.lessonsky-assessment-focus .sk-content-solution[open],body.lessonsky-assessment-focus .sk-assessment-feedback .sk-content-solution[open]{position:static!important;inset:auto!important;z-index:auto!important;max-height:none!important;width:auto!important;padding:8px!important;margin:0!important;border:1px solid var(--ls-line)!important;border-radius:12px!important;background:#f8fbff!important;box-shadow:none!important;overflow:visible!important}
body.lessonsky-assessment-focus .sk-assessment-solution-panel>details[open]>p,body.lessonsky-assessment-focus .sk-content-solution[open]>p{display:block!important;font-size:13px!important;line-height:1.5!important;max-height:150px!important;overflow:auto!important}

/* Dashboard/teacher 3D depth without sacrificing readability. */
.sk-experience-hero{background:linear-gradient(135deg,#fff 0%,#f2f7ff 52%,color-mix(in srgb,var(--ls-primary) 8%,#fff) 100%)!important;border:1px solid var(--ls-line)!important;box-shadow:0 22px 55px rgba(44,82,136,.13)!important}
.sk-experience-kpis article,.sk-teacher-loop-metrics>div,.sk-teacher-action-list>article{box-shadow:0 10px 24px rgba(38,74,126,.08)!important;border:1px solid var(--ls-line)!important;background:#fff!important}
.sk-teacher-card-stats{display:flex!important;gap:6px!important;flex-wrap:wrap!important}.sk-teacher-card-stats span{padding:5px 8px!important;border-radius:999px!important;background:var(--ls-primary-soft)!important;color:var(--ls-readable)!important}

@media(max-width:1180px){.sk-assessment-start-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.lessonsky-assessment-focus .sk-assessment-premium-layout{grid-template-columns:190px minmax(0,1fr) 240px!important}}
@media(max-width:920px){
 body.lessonsky-assessment-focus{overflow:auto!important}
 body.lessonsky-assessment-focus .sk-assessment-focus-shell{height:auto!important;max-height:none!important;min-height:100dvh!important;grid-template-rows:auto auto auto!important;overflow:visible!important}
 body.lessonsky-assessment-focus .sk-assessment-live-card{height:auto!important;min-height:88px!important}
 body.lessonsky-assessment-focus .sk-assessment-premium-layout{height:auto!important;grid-template-columns:1fr!important;overflow:visible!important}
 body.lessonsky-assessment-focus .sk-assessment-question-map-panel{display:none!important}
 body.lessonsky-assessment-focus .sk-assessment-core-stage{order:1!important;height:auto!important;overflow:visible!important}
 body.lessonsky-assessment-focus .sk-assessment-tools-rail{order:2!important;height:auto!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;overflow:visible!important}
 body.lessonsky-assessment-focus .sk-content-question-card{height:auto!important;overflow:visible!important}
 body.lessonsky-assessment-focus .sk-assessment-action-dock{position:static!important;grid-template-columns:1fr 1fr!important}.sk-assessment-action-dock>span{grid-column:1/-1!important}
 body.lessonsky-assessment-focus .sk-assessment-solution-panel{max-height:none!important;grid-template-columns:1fr!important}
 .sk-theme-panel .sk-theme-grid{grid-template-columns:1fr!important}
}
@media(max-width:760px){
 .sk-shell{padding-left:8px!important;padding-right:8px!important}
 .sk-dashboard-head{padding:16px!important}.sk-dashboard-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important}.sk-dashboard-actions .sk-btn{min-width:0!important;padding:7px!important;font-size:11px!important}
 .sk-assessment-start-grid{grid-template-columns:1fr!important}
 body.lessonsky-assessment-focus .sk-content-stem{font-size:18px!important;line-height:1.34!important}
 body.lessonsky-assessment-focus .sk-content-options>label{grid-template-columns:22px 38px minmax(0,1fr)!important;min-height:56px!important;padding:8px!important;font-size:14px!important}
 body.lessonsky-assessment-focus .sk-assessment-tool-card{grid-template-columns:1fr 1fr!important}.sk-assessment-tool-card>.sk-assessment-panel-head{grid-column:1/-1!important}.sk-assessment-tool-row{grid-template-columns:24px minmax(0,1fr) auto!important}
}

/* RC30.55.52 — Device stability final layer */
@media(max-width:1180px){.sk-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sk-ai-focus-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sk-ai-focus-form .sk-btn{width:100%!important}}
@media(max-width:760px){.sk-theme-grid{grid-template-columns:1fr!important}.sk-career-professional-grid{grid-template-columns:1fr!important}.sk-career-video-panel{grid-template-columns:1fr!important}.sk-career-video-panel>div:last-child{justify-content:flex-start!important}.sk-skill-motion-strip{grid-template-columns:1fr!important}.sk-topic-question-map{grid-template-columns:1fr!important}.sk-ai-focus-form{grid-template-columns:1fr!important}.sk-subject-test-link{align-items:flex-start!important}.sk-subject-test-summary-action{white-space:normal!important;text-align:right!important}}

/* Huawei/Android/tablet landscape: answer/save controls remain reachable. */
@media (orientation:landscape) and (max-width:920px) and (max-height:720px){
  body.lessonsky-assessment-focus{overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  body.lessonsky-assessment-focus .sk-assessment-focus-shell{height:auto!important;max-height:none!important;min-height:100dvh!important;overflow:visible!important;grid-template-rows:auto auto auto!important;padding-bottom:calc(68px + env(safe-area-inset-bottom))!important}
  body.lessonsky-assessment-focus .sk-assessment-premium-layout{height:auto!important;min-height:calc(100dvh - 150px)!important;display:grid!important;grid-template-columns:minmax(0,1fr) 230px!important;gap:8px!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-assessment-question-map-panel{display:none!important}
  body.lessonsky-assessment-focus .sk-assessment-core-stage{grid-column:1!important;grid-row:1!important;height:auto!important;min-height:0!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-assessment-tools-rail{grid-column:2!important;grid-row:1!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;align-content:start!important;overflow:visible!important;position:sticky!important;top:6px!important}
  body.lessonsky-assessment-focus .sk-content-question-card{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:74px!important}
  body.lessonsky-assessment-focus .sk-content-stem{max-height:none!important;height:auto!important;overflow:visible!important;-webkit-line-clamp:unset!important;display:block!important}
  body.lessonsky-assessment-focus .sk-content-options{height:auto!important;max-height:none!important;overflow:visible!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock{position:sticky!important;bottom:calc(4px + env(safe-area-inset-bottom))!important;z-index:60!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;padding:9px!important;margin:0!important;border:1px solid var(--ls-line)!important;border-radius:14px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 -8px 22px rgba(37,62,91,.12)!important;backdrop-filter:none!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock .sk-btn{min-height:42px!important}
}
@media (orientation:landscape) and (max-width:760px) and (max-height:520px){
  body.lessonsky-assessment-focus .sk-assessment-premium-layout{grid-template-columns:1fr!important}
  body.lessonsky-assessment-focus .sk-assessment-core-stage{grid-column:1!important;grid-row:1!important}
  body.lessonsky-assessment-focus .sk-assessment-tools-rail{grid-column:1!important;grid-row:2!important;position:static!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock{grid-template-columns:1fr 1fr!important}
  body.lessonsky-assessment-focus .sk-assessment-action-dock>span{grid-column:1/-1!important}
}

/* RC30.55.54 FIX3: selected topic routes use one document scroll. */
body .sk-practice-subject-page{max-width:1100px;margin:0 auto;padding:20px 16px 88px;min-width:0}
body .sk-practice-breadcrumb a{display:inline-flex;align-items:center;min-height:48px;font-weight:700}
body .sk-practice-subject-head{margin-bottom:20px}
body .sk-practice-subject-head h1{font-size:clamp(24px,4vw,34px)!important;overflow-wrap:anywhere}
body .sk-practice-topic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body .sk-practice-topic-item{display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:20px;min-width:0;overflow:visible!important}
body .sk-practice-topic-item h3{font-size:18px!important;line-height:1.45!important;overflow-wrap:anywhere}
body .sk-practice-topic-item p{margin:8px 0}
body .sk-practice-topic-item form{margin:0;display:grid;gap:8px}
body .sk-practice-subject-page .sk-btn{min-height:48px!important;font-size:16px!important;white-space:normal!important;touch-action:manipulation}
body .sk-practice-topic-item .sk-btn{width:100%}
body .sk-practice-launch-status{min-height:1.4em}
body .sk-practice-unavailable,body .sk-language-quality-hold{background:#fff8e8!important;color:#563800!important;border:1px solid #dab978;border-radius:14px;padding:14px}
body .sk-language-quality-hold :where(strong,p,small){color:#563800!important;opacity:1!important}
body .sk-practice-subject-test{margin-top:24px;padding:20px}
body .sk-practice-subject-test form{display:flex;flex-wrap:wrap;align-items:end;gap:14px}
body .sk-practice-subject-test label{display:grid;gap:8px}
body .sk-practice-subject-test select{min-height:48px!important;font-size:16px!important;min-width:100px}
body .sk-family-shell .sk-family-hero :where(h1,.sk-kicker,p){color:#fff!important;opacity:1!important}
body .sk-family-shell .sk-family-hero{background:linear-gradient(120deg,#132e4b,#1b5266)!important}
body .sk-practice-subject-page :where(a,button,select):focus-visible{outline:3px solid #245ca8!important;outline-offset:3px!important}
@media(max-width:760px){
 body .sk-practice-topic-list{grid-template-columns:minmax(0,1fr)}
 body .sk-practice-subject-page{padding:14px 10px 96px}
 body .sk-practice-topic-item{padding:16px}
 body .sk-practice-subject-test form{display:grid;grid-template-columns:1fr}
}
@media(pointer:coarse),(max-width:1180px){
 body .sk-assessment-start-card .sk-subject-test-list,body .sk-assessment-start-card .sk-assessment-blueprint-list{max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}
 body .sk-subject-test-link{min-height:64px!important;touch-action:manipulation}
 body .sk-subject-test-link :where(b,small){overflow-wrap:anywhere}
}

@media (max-width:1040px), (pointer:coarse) {

/* FIX4: a single document scroll for touch assessment; release ancestor locks too. */
html:has(body.lessonsky-assessment-focus),html.lessonsky-assessment-document{
 height:auto!important;min-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html body.lessonsky-assessment-focus{
 height:auto!important;min-height:100vh!important;overflow:visible!important;padding:0!important;
}
html body.lessonsky-assessment-focus :is(.ls-content-main,main.site-main,#main-content,.ls-shell,.ls-entry-content,.ls-app-page-content){
 height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
}
html body.lessonsky-assessment-focus .sk-assessment-focus-shell{
 height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important;
 display:block!important;padding:8px 10px 24px!important;box-sizing:border-box!important;
}
html body.lessonsky-assessment-focus .sk-assessment-focus-nav{
 position:relative!important;height:auto!important;min-height:48px!important;overflow:visible!important;margin-bottom:8px!important;
}
html body.lessonsky-assessment-focus .sk-assessment-live-card,
html body.lessonsky-assessment-focus .sk-assessment-premium-layout,
html body.lessonsky-assessment-focus .sk-assessment-core-stage,
html body.lessonsky-assessment-focus .sk-content-question-card{
 height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
}
html body.lessonsky-assessment-focus .sk-assessment-live-card{display:block!important}
html body.lessonsky-assessment-focus .sk-assessment-live-head{
 height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:12px!important;
}
html body.lessonsky-assessment-focus .sk-assessment-progress{width:100%!important;min-width:0!important}
html body.lessonsky-assessment-focus .sk-assessment-premium-layout{display:flex!important;flex-direction:column!important;gap:12px!important}
html body.lessonsky-assessment-focus .sk-assessment-core-stage{order:0!important;width:100%!important;display:block!important}
html body.lessonsky-assessment-focus .sk-assessment-question-map-panel{order:1!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body.lessonsky-assessment-focus .sk-assessment-tools-rail{order:2!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body.lessonsky-assessment-focus .sk-content-answer-form,
html body.lessonsky-assessment-focus .sk-content-options{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
html body.lessonsky-assessment-focus .sk-content-stem{overflow:visible!important;max-height:none!important;white-space:normal!important;font-size:clamp(18px,2.8vw,24px)!important}
html body.lessonsky-assessment-focus .sk-content-options label{min-height:56px!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.lessonsky-assessment-focus .sk-assessment-action-dock{position:static!important;display:flex!important;flex-wrap:wrap!important;height:auto!important;gap:10px!important;margin-top:18px!important}
html body.lessonsky-assessment-focus .sk-assessment-action-dock .sk-btn{min-height:48px!important;white-space:normal!important}
html body.lessonsky-assessment-focus .sk-assessment-number-grid{max-height:none!important;overflow:visible!important}
html body.lessonsky-assessment-focus :is(.sk-mobile-topbar,.sk-mobile-nav,.sk-account-dock){display:none!important}

}
