/* 1.4.2: mobile dock geometry; preserve the desktop rail and section title. */
:root{--nx-viewport-height:100vh;--nx-viewport-top:0px;--nx-dock-offset:0px;--nx-safe-top:var(--nx-native-top,env(safe-area-inset-top,0px));--nx-safe-right:var(--nx-native-right,env(safe-area-inset-right,0px));--nx-safe-bottom:var(--nx-native-bottom,env(safe-area-inset-bottom,0px));--nx-safe-left:var(--nx-native-left,env(safe-area-inset-left,0px))}
@supports(height:100svh){:root{--nx-viewport-height:100svh}}
@supports(height:100dvh){:root{--nx-viewport-height:100dvh}}
/* Choose one owner. Native padding must not be added again inside the page. */
:root[data-nx-inset-owner=native]{--nx-safe-top:0px;--nx-safe-right:0px;--nx-safe-bottom:0px;--nx-safe-left:0px}
@media(max-width:1099px){
 body.nx-app,body.nx-login{min-height:var(--nx-viewport-height);margin:0!important}
 .nx-app .nx-top-context{display:none!important}
 .nx-app .nx-top-tools{flex:1 1 auto;width:100%;min-width:0}
 .nx-app .nx-student-picker{flex:1 1 auto;width:auto;min-width:0}
 .nx-app .nx-topbar{margin:0!important;top:0!important;padding:0!important}
 .nx-app .nx-brandline{padding-top:var(--nx-safe-top)!important;padding-left:max(12px,var(--nx-safe-left));padding-right:max(12px,var(--nx-safe-right))}
 .nx-app .nx-appbar{padding-left:max(10px,var(--nx-safe-left));padding-right:max(10px,var(--nx-safe-right));padding-top:0;padding-bottom:0;min-height:48px}
 .nx-app .main-content-app{min-height:calc(var(--nx-viewport-height) - var(--nx-header-inset));padding-bottom:calc(var(--nx-bottom-inset) + 14px)!important}
 .nx-app .nx-bottom-nav{position:fixed!important;inset:auto 0 var(--nx-dock-offset)!important;bottom:var(--nx-dock-offset)!important;inset-block-end:var(--nx-dock-offset)!important;width:100%;height:auto;margin:0!important;padding:0 0 var(--nx-safe-bottom)!important;border-radius:0!important;transform:none!important;box-shadow:none!important;background:var(--nx-surface)!important;z-index:1040}
 .nx-app .nx-bottom-nav .bottom-nav-inner{height:auto;min-height:64px;margin:0!important;padding-top:0!important;padding-bottom:0!important;padding-left:max(6px,var(--nx-safe-left))!important;padding-right:max(6px,var(--nx-safe-right))!important;border-radius:0!important}
 .nx-app .nx-bottom-nav .bottom-nav-link{min-height:64px}
 .nx-app .nx-offline{bottom:calc(var(--nx-dock-offset) + var(--nx-bottom-inset) + 8px)}
 .nx-app .nx-student-panel{max-height:calc(var(--nx-viewport-height) - var(--nx-header-inset) - var(--nx-bottom-inset) - 24px)}
 .nx-app #tab-chat{height:auto!important}
 .nx-app #chatCard{height:calc(var(--nx-viewport-height) - var(--nx-header-inset) - var(--nx-bottom-inset) - 24px)!important;min-height:0;overflow:auto}
 .nx-app .chat-screen{height:auto!important;min-height:0}
 .nx-app #chatMessages{max-height:none!important;min-height:0}
 .nx-login .nx-login-top{padding-top:var(--nx-safe-top)!important}
 .nx-login .nx-login-footer{padding-bottom:calc(15px + var(--nx-safe-bottom))}
 .nx-settings-dialog{max-height:calc(var(--nx-viewport-height) - var(--nx-safe-top) - var(--nx-safe-bottom) - 20px)}
}
