/* Fix83 — global student/trainer inner navigation: only one back button. */
body.sa83Inner #app>header.top,body.sa83Inner #safeR10Bottom{display:none!important}
#sa83InnerHeader{display:none!important}
body.sa83Inner #sa83InnerHeader{display:flex!important;position:fixed!important;inset:0 0 auto!important;z-index:3900!important;height:58px;min-height:58px;max-height:58px;box-sizing:border-box;align-items:center;justify-content:space-between;gap:12px;direction:rtl;background:#fffcf5;border-bottom:1px solid #d9e5da;padding:5px 14px;color:#125341;box-shadow:0 2px 8px #0001}
#sa83InnerHeader .sa83Title{font-size:clamp(17px,4.8vw,23px);font-weight:900;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sa83InnerHeader .sa83Back{flex:0 0 auto;border:1px solid #d9cbb1;border-radius:12px;background:#fff8eb;color:#17533f;padding:9px 14px;min-height:42px;font:inherit;font-size:16px;font-weight:900}
body.sa83Inner #app>.sa83Content{box-sizing:border-box!important;max-width:100%!important;margin:0 auto!important;padding-top:65px!important;padding-bottom:16px!important;background:#fcfbf7!important;min-height:100dvh!important}
body.sa83Inner #app>.sa83Content>.head,body.sa83Inner #app>.sa83Content>.r55PageHead,body.sa83Inner #app>.sa83Content>.r56Head,body.sa83Inner #app>.sa83Content>.soroFourPageHead{display:none!important}
body.sa83Inner #performance .performanceLayout{margin-top:0!important;gap:9px!important}
body.sa83Inner #performance .performanceTitleCard{padding:10px!important;border-radius:14px!important;margin:0 0 8px!important;min-height:0!important;height:auto!important}
body.sa83Inner #performance .performanceTitleCard h2{font-size:clamp(19px,5vw,25px)!important;margin:4px 0!important}
body.sa83Inner #performance .performanceTitleCard p{font-size:12px!important;line-height:1.4!important;margin:3px 0!important}
body.sa83Inner #performance .assessmentPanel{padding:10px!important}
body.sa83Inner #myReports{padding-left:11px!important;padding-right:11px!important}
body.sa83Inner #r37CompetitionResults .r37ResultsHero{padding:9px 12px!important;min-height:0!important;margin:0 0 9px!important}
body.sa83Inner #r37CompetitionResults .r37ResultsHero button{display:none!important}
body.sa83Inner #r37CompetitionResults .r37ResultsHero h2{display:none!important}
body.sa83Inner #r37CompetitionResults .r37ResultsHero p{margin:0!important;font-size:13px!important}
body.sa83Inner #r37CompetitionResults .r37ResultsHero small{display:none!important}
/* Dedicated full-screen engines own their header; never overlay a second one. */
body.sa83Game #sa83InnerHeader{display:none!important}
body.sa83Game #app>header.top,body.sa83Game #safeR10Bottom{display:none!important}
/* Dino: remove competing 3rd-party fixed sizing that made the welcome card almost empty. */
#r46DinoPage.r46GamePage{inset:0!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;box-sizing:border-box!important;padding:6px 8px max(8px,env(safe-area-inset-bottom))!important}
#r46DinoPage .r46GameHead{min-height:43px!important;flex:0 0 43px!important;padding:3px 7px!important}
#r46DinoPage .r46GameBody,#r46DinoPage .r46DinoShell{min-height:0!important;overflow:hidden!important;flex:1 1 0!important}
#r46DinoPage .r46DinoShell{gap:6px!important;padding:7px!important;height:auto!important;max-height:100%!important}
#r46DinoPage .r46DinoCanvasWrap{position:relative!important;min-height:165px!important;max-height:none!important;height:auto!important;flex:1 1 0!important;border-radius:18px!important;overflow:hidden!important;background:linear-gradient(#beece4,#e2f9dc)!important}
#r46DinoPage .r46DinoOverlay{position:absolute!important;inset:0!important;height:100%!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:10px!important;box-sizing:border-box!important;pointer-events:none!important;z-index:3!important}
#r46DinoPage #r46DinoOverlay[style*="display: none"]{display:none!important}
#r46DinoPage .r48GameWelcome{position:relative!important;flex:0 0 auto!important;align-self:center!important;display:flex!important;align-items:flex-end!important;width:min(82%,300px)!important;height:clamp(130px,27dvh,220px)!important;min-height:0!important;max-height:75%!important;box-sizing:border-box!important;overflow:hidden!important;background-color:#d7f2cd!important;background-image:linear-gradient(180deg,#0d402800,#0d402888),url('./ui194/sa_chick_mascot.svg')!important;background-position:center!important;background-size:cover,auto 88%!important;background-repeat:no-repeat!important}
#r46DinoPage .r48WelcomeShade{display:block!important;flex:0 0 auto!important;padding:10px 12px!important;min-height:0!important;color:white!important;box-sizing:border-box!important}
#r46DinoPage .r48WelcomeShade h3{font-size:clamp(17px,4.5vw,23px)!important;line-height:1.2!important;color:white!important;margin:4px 0 0!important}
#r46DinoPage .r46DinoControls{flex:0 0 auto!important;min-height:48px!important;max-height:100px!important;overflow:visible!important}
#r46DinoPage .r58DinoDifficulty{flex:0 0 auto!important;min-height:37px!important}
/* Duel: keep setup controls reachable within one screen, rather than hard-clipping them. */
#r46DuelPage.r46GamePage{inset:0!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;padding:6px 8px!important;overflow:hidden!important}
#r46DuelPage .r46GameHead{min-height:43px!important;flex:0 0 43px!important}
#r46DuelPage .r46GameBody,#r46DuelPage .r46DuelBody{min-height:0!important;flex:1 1 0!important;overflow:hidden!important}
#r46DuelPage .r46DuelBody{display:flex!important;flex-direction:column!important}
#r46DuelPage #r46DuelSetup{min-height:0!important;max-height:100%!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;padding:10px!important}
#r46DuelPage .r46SetupGrid,#r46DuelPage .r48SettingsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
#r46DuelPage .r48ModeButtons{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
#r46DuelPage #r46DuelStart{display:block!important;position:sticky!important;bottom:0!important;z-index:2!important;min-height:46px!important;margin-top:8px!important}
#r46DuelPage .r46Arena.on{min-height:0!important;flex:1 1 0!important;overflow:hidden!important}
/* Original image shown at natural ratio inside completed puzzle dialog. */
#r55PuzzlePage .r55PuzzlePiece{overflow:hidden!important;border-radius:0!important;padding:0!important;display:block!important;box-sizing:border-box!important;isolation:isolate!important}
#r55PuzzlePage .r55PuzzlePiece .sa83PuzzleCrop{position:absolute!important;display:block!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;object-fit:fill!important;pointer-events:none!important;user-select:none!important;-webkit-user-drag:none!important}
#r55PuzzlePage #r55PuzzleBoard{gap:0!important;padding:0!important;grid-auto-flow:row!important}
#r55PuzzlePage .sa83PuzzlePreview{max-height:35dvh;overflow:hidden;border-radius:14px;background:#fff;border:1px solid #c2d9cb;display:flex;align-items:center;justify-content:center;margin-top:9px}
#r55PuzzlePage .sa83PuzzlePreview img{display:block;width:auto;height:auto;max-width:100%;max-height:34dvh;object-fit:contain}
@media(max-width:420px){body.sa83Inner #app>.sa83Content{padding-left:8px!important;padding-right:8px!important}#sa83InnerHeader{height:54px;min-height:54px;max-height:54px}}

#r46DinoPage .r48GameWelcome::before{content:"🐥";position:absolute;top:10%;left:50%;transform:translateX(-50%);font-size:clamp(48px,14vw,75px);line-height:1;filter:drop-shadow(0 5px 10px #0003);pointer-events:none}

/* Keep document stationary: only oversized data lists can scroll inside their page. */
body.sa83Inner{overflow:hidden!important;overscroll-behavior:none!important}
body.sa83Inner #app>.sa83Content{height:100dvh!important;max-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
body.sa83Inner #app>.sa83Content>.sa83Tools{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:center!important;margin:4px 0 9px!important;padding:5px!important;border-radius:12px;background:#f4f8f2!important}
body.sa83Inner #app>.sa83Content>.sa83Tools>button{flex:1 1 auto!important;min-height:40px!important;padding:6px!important;font-size:clamp(12px,3.5vw,15px)!important}
