/* One viewport, native inner scrolling. No auth or business behavior. */
html:root[data-stable-viewport37],html:root[data-stable-viewport37] body{
 overflow:hidden!important;overscroll-behavior:none!important;min-height:0!important;max-height:100%!important;
}
html:root[data-stable-viewport37] body{
 position:fixed!important;top:var(--stable-top37,0px)!important;left:0!important;right:0!important;bottom:auto!important;
 width:100%!important;max-width:none!important;height:var(--stable-height37,100dvh)!important;margin:0!important;
}
html:root[data-stable-viewport37] body.hms-prism .app-shell{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:100%!important;
 min-height:0!important;overflow:clip!important;grid-template-rows:minmax(0,1fr)!important;transform:none!important;transition:none!important;animation:none!important;
}
html:root[data-stable-viewport37] body.hms-prism .workspace{
 display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;
 overflow:clip!important;transform:none!important;transition:none!important;
}
html:root[data-stable-viewport37] body.hms-prism .topbar.prism-header{top:0!important}
html:root[data-stable-viewport37] body.hms-prism .workspace>.content{
 flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior-y:contain;overflow-anchor:none;
}
html:root[data-stable-viewport37=assistant] body.hms-prism.assistant-open135 #assistantWorkspace135{
 position:relative!important;inset:auto!important;flex:1 1 0!important;min-height:0!important;height:auto!important;
 max-height:100%!important;width:100%!important;margin:0!important;overflow:clip!important;transform:none!important;transition:none!important;
}
html:root[data-stable-viewport37=assistant] #assistantWorkspace135 iframe{height:100%!important;min-height:0!important}
html:root[data-stable-viewport37=assistant] body.hms-prism .app-shell{padding-top:env(safe-area-inset-top,0px)!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
html:root[data-stable-viewport37=assistant][data-editing37=true] body.hms-prism .app-shell{padding-bottom:0!important}
html:root[data-stable-viewport37=assistant] body.hms-prism .topbar.prism-header{display:none!important}
html:root[data-stable-viewport37][data-editing37=true] #hms-powered-by210{display:none!important}
html:root[data-stable-viewport37=login] body.prism-login .login-layout{
 position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;max-height:100%!important;
}
html:root[data-stable-viewport37=login] .form-panel{min-height:0!important;overflow-y:auto!important;overscroll-behavior-y:contain}
@media(max-width:1100px){
 html:root[data-stable-viewport37=login][data-editing37=true] .form-panel>.form-wrap{margin-top:0!important;padding:16px 20px!important}
 html:root[data-stable-viewport37=login][data-editing37=true] .form-wrap>:is(.mobile-brand,.secure-badge,.intro,.access-note){display:none!important}
 html:root[data-stable-viewport37=login][data-editing37=true] .form-panel>footer{display:none!important}
}
html:root[data-stable-viewport37=notes] :is(.paper,.notes,.folders){overscroll-behavior-y:contain}

html:root[data-stable-viewport37=assistant] #hms-powered-by210{display:none!important}
/* Request 01258538: VIL assistant only; match the existing mobile viewport controller. */
html:root[data-stable-viewport37=assistant]:has(#propertySelect option[value=villaggio]:checked) body.hms-prism.assistant-open135 .app-shell{
 grid-template-columns:minmax(0,1fr)!important;column-gap:0!important;
 padding-inline:env(safe-area-inset-left,0px) env(safe-area-inset-right,0px)!important;
}
html:root[data-stable-viewport37=assistant]:has(#propertySelect option[value=villaggio]:checked) body.hms-prism.assistant-open135 .workspace{
 grid-column:1/-1!important;width:100%!important;min-width:0!important;margin-inline:0!important;
}
html:root[data-stable-viewport37=assistant]:has(#propertySelect option[value=villaggio]:checked) body.hms-prism.assistant-open135 #sidebar:not(.open){display:none!important}
html:root[data-stable-viewport37=assistant]:has(#propertySelect option[value=villaggio]:checked) body.hms-prism.assistant-open135 #sidebar.open{
 position:fixed!important;inset-block:0!important;inset-inline-start:0!important;inset-inline-end:auto!important;
 width:min(340px,calc(100vw - 32px))!important;min-width:0!important;z-index:70;
}
