/* Classroom recovery: desktop/laptop only. Original application logic unchanged. */
@media screen and (min-width:851px){
 body.eld-student-home:not(.eld-library-view):not(.worksheet-open) #eld-student-home .eld-home-grid{
 display:grid!important;grid-template-columns:205px minmax(0,1fr) minmax(185px,23%)!important;
 grid-template-rows:minmax(0,1fr)!important;gap:10px!important;
 height:calc(100dvh - var(--eld-nav-height,85px) - 45px)!important;min-height:0!important;
 overflow:hidden!important;align-items:stretch!important}
 body.eld-student-home #eld-student-home .eld-home-grid > .eld-student-menu{grid-column:1!important;grid-row:1!important}
 body.eld-student-home #eld-student-home .eld-home-grid > section.eld-panel{grid-column:2!important;grid-row:1!important}
 body.eld-student-home #eld-student-home .eld-home-grid > .eld-right-panel{grid-column:3!important;grid-row:1!important}
 body.eld-student-home:not(.eld-library-view) #eld-student-home .eld-home-grid > *{min-height:0!important;max-height:100%!important;overflow-y:auto!important;align-self:stretch!important}
 body.eld-student-home #eld-student-home .eld-panel,body.eld-student-home #eld-student-home .eld-feature-card{padding:9px!important}
 body.eld-student-home #eld-student-home .eld-feature-card{margin-bottom:7px!important}
 body.eld-student-home #eld-student-home .eld-feature-card h2{font-size:15px!important;margin:0 0 5px!important}
 body.eld-student-home #eld-student-home .eld-feature-card li{margin:3px 0!important;line-height:1.2!important}
 body.eld-student-home #eld-student-home .eld-home-note{margin:7px 0!important}
 body.eld-student-home .eld-student-menu .eld-side-link{padding:7px 9px!important;margin:2px 0!important;font-size:13px!important}
 body.eld-student-home #eld-student-home .eld-banner,body.eld-student-home #eld-module-banner{display:none!important}
 body.eld-student-home.eld-library-view #eld-module-shell{display:grid!important;grid-template-columns:205px minmax(0,1fr)!important;gap:12px!important;height:calc(100dvh - var(--eld-nav-height,85px) - 36px)!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important}
 body.eld-student-home.eld-library-view #eld-library-side-navigation{float:none!important;position:relative!important;top:auto!important;grid-column:1!important;width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;margin:0!important}
 body.eld-student-home.eld-library-view #eld-module-main{grid-column:2!important;min-height:0!important;max-height:100%!important;height:100%!important;overflow-y:auto!important;display:block!important}
 body.eld-student-home.eld-library-view #eld-module-main #library{width:100%!important;float:none!important;max-width:none!important;overflow:visible!important}
 body.eld-student-home.eld-library-view #eld-student-home{display:none!important}
 body.eld-student-home:not(.eld-library-view):not(.worksheet-open) #eld-module-shell{display:none!important}
 body.eld-recovery-student-page{padding-left:220px!important}
 body.eld-recovery-student-page > main{max-width:none!important;width:auto!important;margin:0 16px!important;min-width:0!important}
 .eld-recovery-student-menu,.eld-recovery-teacher-menu{position:fixed;top:var(--eld-nav-height,80px);left:10px;width:198px;height:calc(100dvh - var(--eld-nav-height,80px) - 12px);overflow-y:auto;z-index:30;background:#0b2c48;color:white;border-radius:10px;padding:9px;box-sizing:border-box;box-shadow:0 2px 12px #0002}
 .eld-recovery-student-menu a,.eld-recovery-teacher-menu a{display:block;color:white;text-decoration:none;font:500 13px/1.2 Arial,sans-serif;padding:8px 9px;margin:1px 0;border-radius:6px}
 .eld-recovery-student-menu a:hover,.eld-recovery-teacher-menu a:hover{background:#21516b}
 .eld-recovery-menu-title{font:bold 13px Arial,sans-serif;padding:8px 9px;border-bottom:1px solid #ffffff55;margin-bottom:5px}
 .eld-recovery-menu-heading{font:bold 10px Arial,sans-serif;color:#a9c6d4;letter-spacing:.07em;margin:9px 8px 2px}
 body.eld-recovery-teacher-page{padding-left:220px!important}
 body.eld-recovery-teacher-page > main{width:auto!important;max-width:none!important;margin:12px 18px!important}
}
@media screen and (max-width:850px){.eld-recovery-student-menu,.eld-recovery-teacher-menu{display:none!important}}
@media print{.eld-recovery-student-menu,.eld-recovery-teacher-menu{display:none!important}body.eld-recovery-teacher-page,body.eld-recovery-student-page{padding-left:0!important}}

/* Desktop student: viewport-fit without F11 and fixed, uniform navigation */
@media screen and (min-width:851px){
 body.eld-student-home #eld-top-navigation{margin:4px 10px 0!important;padding:5px 14px!important}
 body.eld-student-home .wrap{padding:0 10px 0!important}
 body.eld-student-home #eld-student-home{margin:0!important}
 body.eld-student-home:not(.eld-library-view):not(.worksheet-open) #eld-student-home .eld-home-grid{
   height:calc(100dvh - 115px)!important;margin-top:4px!important;gap:8px!important;
   grid-template-columns:205px minmax(0,1fr) minmax(180px,23%)!important;
 }
 body.eld-student-home #eld-student-home .eld-home-grid>.eld-student-menu{
   position:sticky!important;top:0!important;height:100%!important;
   overflow:hidden!important;padding:8px!important}
 body.eld-student-home #eld-student-home .eld-course-tile{padding:7px 9px!important;margin-bottom:4px!important}
 body.eld-student-home #eld-student-home .eld-side-link{padding:6px 8px!important;margin:2px 0!important;font-size:13px!important}
 body.eld-student-home #eld-student-home .eld-section-heading{padding:7px 9px!important;margin-bottom:6px!important}
 body.eld-student-home #eld-student-home .eld-right-panel .eld-feature-card{padding:8px!important;margin-bottom:6px!important}
 body.eld-student-home #eld-student-home .eld-to-do li{padding:4px 0!important}
 body.eld-student-home #eld-student-home .eld-help-links li{margin:3px 0!important}
 body.eld-student-home #eld-student-home .eld-help-links button{padding:5px!important}
 body.eld-student-home.eld-library-view #eld-module-shell{
   height:calc(100dvh - 115px)!important;margin-top:4px!important;
 }
 body.eld-student-home.eld-library-view #eld-library-side-navigation{
   overflow:hidden!important;padding:8px!important;
 }
 body.eld-student-home.eld-library-view #eld-library-side-navigation .eld-side-link{padding:6px 8px!important;margin:2px 0!important;font-size:13px!important}
 body.eld-graded-work-page{overflow:hidden!important}
 body.eld-graded-work-page .eld-graded-layout{display:grid!important;grid-template-columns:205px minmax(0,1fr)!important;gap:10px!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow:hidden!important;margin:10px!important;align-items:stretch!important}
 body.eld-graded-work-page .eld-graded-sidebar{
   position:relative!important;top:auto!important;left:auto!important;
   width:100%!important;min-width:0!important;height:100%!important;max-height:100%!important;
   overflow:hidden!important;box-sizing:border-box!important;
   padding:8px!important;margin:0!important;background:#fff!important;color:#143c53!important;
   border:1px solid #dce7ee!important;border-radius:10px!important;box-shadow:0 2px 10px #173e4b12!important;
 }
 body.eld-graded-work-page .eld-graded-sidebar .eld-sidebar-course{
   background:linear-gradient(120deg,#086775,#0b4c58)!important;color:#fff!important;
   border-radius:7px!important;padding:9px!important;margin-bottom:6px!important;font-size:17px!important;
 }
 body.eld-graded-work-page .eld-graded-sidebar a{
   display:flex!important;align-items:center!important;min-height:0!important;
   background:#edf4f7!important;color:#143c53!important;border:1px solid #dce7ee!important;
   border-radius:6px!important;padding:8px 9px!important;margin:3px 0!important;
   font:700 13px/1.25 Arial,sans-serif!important;text-decoration:none!important;
 }
 body.eld-graded-work-page .eld-graded-sidebar a[aria-current]{background:#dbeef0!important}
 body.eld-graded-work-page .eld-graded-main{
   min-width:0!important;min-height:0!important;height:100%!important;max-height:100%!important;
   overflow-y:auto!important;overflow-x:hidden!important;margin:0!important;padding:0!important;
 }
 body.eld-graded-work-page .eld-graded-main>.eld-banner{display:none!important}
 body.eld-graded-work-page .eld-graded-page{width:100%!important;max-width:none!important;margin:0!important}
 body.eld-graded-work-page>footer{display:none!important}
}
@media print{body.eld-graded-work-page{overflow:visible!important}body.eld-graded-work-page .eld-graded-layout{height:auto!important;max-height:none!important;display:block!important}body.eld-graded-work-page .eld-graded-main{height:auto!important;max-height:none!important;overflow:visible!important}}

/* Teacher sidebar consistency: same green palette, dimensions and rhythm as Teacher Dashboard. */
@media screen and (min-width:851px){
 body.eld-recovery-teacher-page{padding-left:214px!important}
 body.eld-recovery-teacher-page>.eld-recovery-teacher-menu{position:fixed!important;top:var(--eld-nav-height,80px)!important;left:0!important;width:198px!important;max-width:198px!important;height:calc(100dvh - var(--eld-nav-height,80px))!important;overflow-y:auto!important;background:#153e45!important;border-radius:0!important;box-shadow:none!important;padding:10px 8px!important;color:#fff!important;box-sizing:border-box!important}
 body.eld-recovery-teacher-page>.eld-recovery-teacher-menu a{display:block!important;width:100%!important;box-sizing:border-box!important;color:#fff!important;background:transparent!important;text-decoration:none!important;font:500 13px/1.12 Arial,sans-serif!important;padding:6px 7px!important;margin:1px 0!important;border-radius:5px!important;white-space:normal!important;overflow-wrap:normal!important}
 body.eld-recovery-teacher-page>.eld-recovery-teacher-menu a:hover,body.eld-recovery-teacher-page>.eld-recovery-teacher-menu a[aria-current="page"]{background:#30646c!important}
 body.eld-recovery-teacher-page>.eld-recovery-teacher-menu .eld-recovery-menu-title{font:800 14px Arial,sans-serif!important;letter-spacing:.04em!important;padding:8px 6px 12px!important;margin:0 0 8px!important;border-bottom:1px solid #ffffff55!important}
 body.eld-recovery-teacher-page>.eld-recovery-teacher-menu .eld-recovery-menu-heading{font:700 10px Arial,sans-serif!important;color:#a6c8c9!important;letter-spacing:.09em!important;margin:10px 7px 4px!important}
}
