/* Shared student input/viewport behavior. Preserve user pinch zoom and the approved visual shell. */
@media(max-width:780px),(max-width:1024px) and (pointer:coarse){
 :is(.sdh-body,.student-portal-body,.auth-student) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]):not([type=file]):not([type=color]),textarea,select){font-size:16px!important;max-width:100%;min-width:0}
 html.student-viewport-mobile{height:100%;overflow:hidden;scroll-behavior:auto}
 .student-viewport-mobile :is(.sdh-body,.student-portal-body){position:fixed;top:var(--student-viewport-top,0);left:0;right:0;bottom:auto;height:var(--student-app-height,100dvh);min-height:0;overflow:hidden}
 .student-viewport-mobile :is(.sdh-shell,.student-shell){height:100%;min-height:0;overflow:hidden}
 .student-viewport-mobile .student-shell{display:block}
 .student-viewport-mobile .student-offline-app{display:flex;flex-direction:column;height:100%;min-height:0}
 .student-viewport-mobile .sof-header{flex:none}
 .student-viewport-mobile .sof-content{height:auto}
 .student-viewport-mobile :is(.sdh-main,.student-main){display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
 .student-viewport-mobile :is(.sdh-topbar,.student-topbar,.student-mobile-context){flex:none}
 .student-viewport-mobile .student-content{flex:1;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto;scroll-padding-block:16px 120px;-webkit-overflow-scrolling:touch}
 .student-viewport-mobile .sdh-sidebar,.student-viewport-mobile .student-sidebar{display:none}
 .student-viewport-mobile .sdh-mobile-brand{display:flex}
 .student-viewport-mobile .sdh-period-trigger{display:none}
 .student-viewport-mobile .student-mobile-nav.sdh-dock{display:grid!important}
 .student-viewport-mobile.student-keyboard-open :is(.student-mobile-nav,.community-bottom-nav,.mm-ai-launch,.sic-create-fab){display:none!important}
 .student-viewport-mobile.student-keyboard-open .student-content{padding-bottom:calc(24px + var(--student-composer-space,0px))!important;scroll-padding-bottom:calc(24px + var(--student-composer-space,0px));overflow:auto!important}
 /* Keep the approved header dimensions unchanged when typing. */
 .student-viewport-mobile.student-keyboard-open :is(.sic-composer,.community-comment-composer).student-composer-floating{position:fixed!important;z-index:80;top:var(--student-composer-top)!important;bottom:auto!important;left:20px!important;right:20px!important;width:auto!important;max-width:680px!important;margin:0 auto!important;transform:none!important}
 .student-viewport-mobile.student-keyboard-open .sic-expression-panel{max-height:var(--sic-panel-height,150px);overflow:auto}
 .student-viewport-mobile .sdh-more{max-height:88%;position:absolute}
 .student-viewport-mobile .sdh-backdrop{position:absolute}
 .student-viewport-mobile.student-keyboard-open .mm-ai-panel{top:calc(var(--student-viewport-top,0px) + 8px);bottom:auto;height:calc(var(--student-visual-height,100dvh) - 16px);max-height:calc(var(--student-visual-height,100dvh) - 16px)}
 .student-viewport-mobile.student-keyboard-open .mm-ai-messages{min-height:0}
 .student-viewport-mobile.student-keyboard-open.student-viewport-compact :is(.mm-ai-controls,.mm-ai-summary){display:none}
 .student-viewport-mobile.student-keyboard-open.student-viewport-compact .mm-ai-panel header{padding:8px 12px}
 .student-viewport-mobile.student-keyboard-open.student-viewport-compact .mm-ai-disclosure{max-height:36px;overflow:auto;padding-bottom:4px}
 .student-viewport-mobile.student-keyboard-open .sof-dialog{position:fixed;top:calc(var(--student-viewport-top,0px) + 8px);bottom:auto;margin:0 auto;max-height:calc(var(--student-visual-height,100dvh) - 16px);overflow:auto}
}
@media(min-width:781px) and (max-width:1024px) and (pointer:coarse){
 .student-viewport-mobile .sdh-shell{display:block}
 .student-viewport-mobile .sdh-topbar{padding:calc(14px + env(safe-area-inset-top)) 20px 10px}
 .student-viewport-mobile .sdh-content{padding:12px 20px calc(114px + env(safe-area-inset-bottom))}
 .student-viewport-mobile .student-mobile-nav.sdh-dock{position:absolute;z-index:60;left:14px;right:14px;bottom:calc(4px + env(safe-area-inset-bottom));height:88px;grid-template-columns:repeat(4,minmax(0,1fr));background:none;padding:0;border:0;overflow:visible}
 .student-viewport-mobile .sdh-dock-surface{position:absolute;inset:0;width:100%;height:88px;pointer-events:none}
 .student-viewport-mobile .sdh-dock-surface path{fill:#fffdf8;stroke:#e9e5dd}
 .student-viewport-mobile .sdh-dock>[data-dock-item]{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:4px;min-height:80px;height:88px;min-width:0;padding:0 2px 10px;border:0;background:transparent;color:#586477;font:500 12px/1.2 Inter,"Segoe UI",Arial,sans-serif}
 .student-viewport-mobile .sdh-dock [data-dock-item]>i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-style:normal}
 .student-viewport-mobile .sdh-dock [data-dock-item] svg{width:23px;height:23px}
 .student-viewport-mobile .sdh-dock [data-dock-item].is-active>i{transform:translateY(-18px);background:linear-gradient(#15384b,#071523);color:#fff}
 .student-viewport-mobile .sic-composer{position:fixed;left:20px;right:20px;bottom:calc(88px + env(safe-area-inset-bottom))}
}
