/* Mgest Portal V21 — responsive hardening and media quality */
html{scroll-padding-top:116px}body.nav-lock{overflow:hidden}.public-header{isolation:isolate}.public-nav{position:relative}.public-actions{flex-shrink:0}.nav-toggle,.student-menu{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.nav-toggle{width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center;background:#f2f6fd!important;border:1px solid #dce6f5!important}.nav-toggle[aria-expanded="true"]{background:var(--navy)!important;color:#fff!important}.public-nav-overlay,.student-nav-overlay{position:fixed;inset:0;background:rgba(2,16,43,.52);backdrop-filter:blur(3px);z-index:48;opacity:0;pointer-events:none;transition:.22s}.public-nav-overlay.open,.student-nav-overlay.open{opacity:1;pointer-events:auto}.course-card20 figure,.course-hero-image{background:linear-gradient(135deg,#edf3ff,#e8eef8)}.course-card20 figure img,.course-hero-image img{image-rendering:auto;backface-visibility:hidden}.course-hero-image img{min-height:420px;object-fit:cover}.student-main{min-width:0}.student-content{width:100%;max-width:1500px;margin:0 auto}.student-shell table{width:100%;border-collapse:separate;border-spacing:0}.student-shell .table-responsive,.student-shell .portal-table-wrap,.student-shell .student-table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.student-shell input,.student-shell select,.student-shell textarea,.student-shell button{max-width:100%}.student-top{position:sticky;top:0;z-index:35}.student-menu{width:42px;height:42px;border:1px solid #dae4f3;border-radius:12px;background:#fff;color:var(--navy)}
@media(max-width:1100px){.public-brand{min-width:205px}.public-nav nav{gap:18px}.public-actions{margin-left:18px}.course-hero-grid{gap:32px}.course-hero-image img{min-height:380px}.student-content{padding:24px}.student-grid2,.student-grid3{gap:16px}}
@media(max-width:850px){
 .public-header{height:72px}.public-nav{height:72px}.public-nav nav{display:flex!important;position:fixed;top:0;right:-330px;left:auto;width:min(320px,88vw);height:100dvh;padding:98px 22px 26px;background:#fff;z-index:70;border:0;border-radius:0;box-shadow:-20px 0 60px rgba(6,31,82,.22);flex-direction:column;align-items:stretch;gap:5px;transition:right .28s cubic-bezier(.2,.8,.2,1);overflow-y:auto}.public-nav nav.open{right:0}.public-nav nav a{padding:14px 14px;border-radius:12px;font-size:14px;color:var(--navy)}.public-nav nav a:hover,.public-nav nav a.active{background:#f0f5ff}.public-nav nav a:after{display:none}.nav-toggle{display:inline-flex;position:relative;z-index:75}.public-actions{margin-left:auto;gap:8px}.public-actions .link-admin{display:none}.public-brand img{width:48px;height:48px}.hero20-grid{gap:26px}.hero20-copy h1{font-size:clamp(42px,10vw,64px)}.course-hero-image img{min-height:340px}.student-shell{display:block}.student-sidebar{top:0;bottom:0;height:100dvh;left:-285px;width:275px;z-index:80;box-shadow:18px 0 55px rgba(1,21,60,.25);overflow-y:auto}.student-sidebar.open{left:0}.student-main{width:100%;min-height:100vh}.student-top{min-height:68px}.student-menu{display:inline-grid;place-items:center;position:relative;z-index:84}.student-content{padding:18px}.student-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{gap:14px}.page-heading h1{font-size:clamp(25px,7vw,36px)}
}
@media(max-width:580px){
 .container{width:calc(100% - 24px)}.public-top{display:none}.public-header{top:0}.public-brand span{display:flex!important}.public-brand b{font-size:13px}.public-brand small{display:none}.public-brand img{width:43px;height:43px}.public-actions{gap:6px}.nav-toggle{width:42px;height:42px}.hero20-grid{padding:38px 0 52px}.hero20-copy h1{font-size:42px;letter-spacing:-1.7px}.hero20-copy>p{font-size:14px}.hero-photo{height:300px}.metric-band .container{grid-template-columns:1fr 1fr}.course-card20 figure{height:230px}.course-card20 h3{font-size:19px}.course-hero-grid{padding:38px 0}.course-hero-image img{min-height:260px;height:300px}.course-facts{grid-template-columns:1fr 1fr}.course-detail-grid{gap:22px}.section{padding:54px 0}.student-content{padding:14px 12px 28px}.student-top{padding:10px 12px}.student-top>div{min-width:0}.student-top>div small,.student-top>div b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:58vw}.student-kpis{grid-template-columns:1fr}.student-grid2,.student-grid3{grid-template-columns:1fr!important}.student-hero20{display:block}.student-hero20 .avatar-xl{margin-bottom:14px}.student-shell .v20-btn,.student-shell .btn{min-height:42px}.student-shell table{font-size:11px;min-width:680px}.photo-upload-card{padding:16px}.photo-preview{margin:auto}.detail-grid{grid-template-columns:1fr}.page-heading{margin-bottom:18px}.page-heading h1{font-size:27px}.login20-form{padding:22px 16px}.login20-card h1{font-size:34px}
}
@media(max-width:380px){.public-brand span{display:none!important}.metric-band .container{grid-template-columns:1fr}.hero20-copy h1{font-size:37px}.student-top>div b{font-size:11px}.student-top>div small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* V21.1 — Student drawer mobile/tablet hardening */
.student-sidebar-close{display:none;position:absolute;top:16px;right:14px;width:38px;height:38px;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(255,255,255,.10);color:#fff;place-items:center;cursor:pointer;z-index:3}
.student-nav-overlay{display:block;position:fixed;inset:0;background:rgba(2,16,43,.56);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:998;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s ease,visibility .24s ease}
.student-nav-overlay.open{opacity:1;visibility:visible;pointer-events:auto}
body.student-nav-lock{overflow:hidden;touch-action:none}
@media(max-width:1100px){
 .student-shell{display:block!important}
 .student-sidebar{position:fixed!important;top:0!important;bottom:0!important;left:0!important;width:min(286px,86vw)!important;height:100dvh!important;z-index:999!important;transform:translate3d(-104%,0,0)!important;transition:transform .28s cubic-bezier(.2,.8,.2,1)!important;overflow-y:auto!important;box-shadow:20px 0 60px rgba(1,21,60,.28)!important;padding-top:68px!important}
 .student-sidebar.open{transform:translate3d(0,0,0)!important;left:0!important}
 .student-sidebar-close{display:grid!important}
 .student-main{width:100%!important;min-width:0!important}
 .student-menu{display:grid!important;place-items:center!important;flex:0 0 42px!important;position:relative!important;z-index:1001!important}
 .student-top{padding-left:16px!important;padding-right:16px!important;gap:10px!important}
 .student-top>div{min-width:0;overflow:hidden}
 .student-top>div small,.student-top>div b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:65vw}
}
@media(max-width:600px){
 .student-sidebar{width:min(300px,90vw)!important}
 .student-content{padding:14px!important}
 .student-kpis{grid-template-columns:1fr!important}
 .student-grid.two,.msg-grid{grid-template-columns:1fr!important}
 .student-card{padding:15px!important;border-radius:16px!important}
 .student-top{min-height:62px!important;height:auto!important;padding-top:9px!important;padding-bottom:9px!important}
 .notify{flex:0 0 38px!important}
}
