/* Student Experience Polish - selective section disclosure and better mobile ergonomics */
.saSettingsToggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #9dc9ba;background:#fff;color:#17644d;border-radius:14px;padding:11px 15px;font-weight:900;min-height:44px;cursor:pointer;margin:8px 0}
.saSettingsToggle[aria-expanded="true"]{background:#e4f4ed;color:#145541}
.saSettingsDrawer{border-radius:17px;padding:12px;background:#f5fbf7;border:1px solid #cce7d9;margin:8px 0}
#game.saCleanAdventure:not(.saShowOptions) .v17SourceTop,#game.saCleanAdventure:not(.saShowOptions) .v17SourceFoot,#game.saCleanAdventure:not(.saShowOptions) #v16Campaign,#game.saCleanAdventure:not(.saShowOptions) .gamebar,#game.saCleanAdventure:not(.saShowOptions) .gameLegend,#game.saCleanAdventure:not(.saShowOptions) .gamewrap>.note,#game.saCleanAdventure:not(.saShowOptions) .gamewrap>div.note,#game.saCleanAdventure:not(.saShowOptions) .saGameControlsToggle{display:none!important}
#game.saCleanAdventure .v18SourceBadge{display:none!important}
#game.saCleanAdventure .v17FrameWrap{margin-top:0!important}
#game.saCleanAdventure .card.gamewrap{padding:6px!important;margin-top:2px!important}
#game.saCleanAdventure .v17OriginalShell{margin-top:0!important}
#game.saCleanAdventure .head{margin-bottom:4px}
#game.saCleanAdventure #v17MarioFrame{display:block;max-width:100%;}
#abacus.saAbacusClean .head .toolbar,#abacus.saAbacusClean .soro-tools,#abacus.saAbacusClean>.note{display:none!important}
#abacus.saAbacusClean.saShowOptions .head .toolbar{display:flex!important;flex-wrap:wrap}
#abacus.saAbacusClean.saShowOptions .soro-tools{display:flex!important;flex-wrap:wrap}
#abacus.saAbacusClean.saShowOptions>.note{display:block!important}
#guidedLearning.saGuidedClean:not(.saShowOptions) .v17GuidedHero,#guidedLearning.saGuidedClean:not(.saShowOptions) #v17GuidedGrid{display:none!important}
#guidedLearning.saGuidedClean .v17GuidedRunner:not(:empty){margin-top:8px}
#r56MazePage .r56MazeControls{display:none!important}
#r56MazePage #r56MazeCanvas{touch-action:none;cursor:pointer}
.saPuzzleVictory{padding:13px;border:2px solid #2ab277;border-radius:17px;background:linear-gradient(145deg,#e9fff2,#fffdfa);color:#134d38;display:grid;justify-items:center;gap:9px;text-align:center;box-shadow:0 6px 21px #0c734827}
.saPuzzleVictory strong{font-size:clamp(18px,4vw,25px)}.saPuzzleVictory p{font-size:12px;margin:0}
.saStudentMetrics,.saReportSummary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.saMetric{border:1px solid #d4e7e0;padding:12px 7px;text-align:center;border-radius:16px;background:linear-gradient(145deg,#f8fffb,#eff8f2)}.saMetric small{display:block;color:#52736b;font-size:11px}.saMetric b{display:block;color:#135b44;font-size:clamp(16px,4vw,24px);margin-top:7px}.saReportEmpty{padding:14px;color:#456b5a;background:#f3f8f5;border-radius:14px}
#myReports .tablewrap,#trReports .tablewrap{overflow-x:auto;max-width:100%}
#myReports .table,#trReports .table{min-width:520px}
@media(max-width:600px){#game.saCleanAdventure{padding:6px!important}#game.saCleanAdventure .head h2{font-size:19px!important}#game.saCleanAdventure #v17FrameWrap{max-width:100%!important}#game.saCleanAdventure #v17MarioFrame{min-height:400px;max-width:100%}#abacus.saAbacusClean .abstage{margin-top:4px!important}.saStudentMetrics,.saReportSummary{grid-template-columns:repeat(2,minmax(0,1fr))}.saSettingsToggle{width:100%}}

/* fit the actual Flutter WebView viewport above academy's bottom navbar */
@media(max-width:720px){#game.v19Embedded #v19EmbeddedGameHost{height:clamp(360px,calc(100dvh - 245px),750px)!important;min-height:0!important}}

/* Retire legacy estimated speed/accuracy bars; show grounded result averages above instead. */
/* scoreLinesV8 unchanged: avoid concealing historical student information */

/* FIX20: interactive teacher uses visible lessons, not a settings disclosure. */
#guidedLearning.saGuidedAlwaysOpen>.saSettingsToggle{display:none!important}
#guidedLearning.saGuidedAlwaysOpen #v17GuidedGrid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;gap:8px!important}
#guidedLearning.saGuidedAlwaysOpen .v17GuidedHero{display:block!important}
#guidedLearning.saGuidedAlwaysOpen .v180GuideBanner{padding:8px 11px!important;margin:5px 0!important}
#guidedLearning.saGuidedAlwaysOpen .v180Workspace{margin-top:7px!important;gap:8px!important}
@media(max-width:660px){#guidedLearning.saGuidedAlwaysOpen .v180Control{position:relative!important;top:auto!important;padding:8px!important}#guidedLearning.saGuidedAlwaysOpen .v180Lessons{grid-template-columns:repeat(2,minmax(0,1fr))!important}#guidedLearning.saGuidedAlwaysOpen .v180LessonCard{min-height:0!important;padding:8px!important}#guidedLearning.saGuidedAlwaysOpen .v180LessonCard p{display:none!important}#guidedLearning.saGuidedAlwaysOpen .v180LessonCard button{min-height:42px!important}}
