/* Native desktop only: respect actual work area and keep one viewport layout. */
html[data-desktop-wallpaper="portrait"]{
 width:100%;height:100%;overflow:hidden;
}
html[data-desktop-wallpaper="portrait"] body{
 width:100%;height:100dvh;min-height:0;overflow:hidden;
}
html[data-desktop-wallpaper="portrait"] body :is(#appShell,#chatScreen,#directChatScreen,#systemChatScreen,#authScreen,#lockScreen){
 width:100%;max-width:100%;min-width:0;height:100dvh;min-height:0;overflow-x:hidden;
}
html[data-desktop-wallpaper="portrait"] #appShell.shell{
 display:flex;flex-direction:column;min-height:0;max-height:100dvh;overflow:hidden;
 padding-bottom:calc(72px + var(--safe-b,0px))!important;
}
html[data-desktop-wallpaper="portrait"] #appShell>.content{
 box-sizing:border-box;flex:1 1 auto;min-height:0;max-width:min(1500px,100%);width:100%;overflow-y:auto;overflow-x:hidden;
 scrollbar-width:none;
}
html[data-desktop-wallpaper="portrait"] #appShell>.content::-webkit-scrollbar{display:none}
html[data-desktop-wallpaper="portrait"] #appShell .topbar{flex:0 0 auto}
html[data-desktop-wallpaper="portrait"] body :is(#chatScreen,#directChatScreen,#systemChatScreen){
 max-height:100dvh;overflow-y:hidden;display:flex;flex-direction:column;
}
html[data-desktop-wallpaper="portrait"] body :is(#chatScreen,#directChatScreen,#systemChatScreen) :is(.messages,.chatMessages){
 min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;
}
html[data-desktop-wallpaper="portrait"] body :is(#chatScreen,#directChatScreen,#systemChatScreen) :is(.messages,.chatMessages)::-webkit-scrollbar{display:none}
html[data-desktop-wallpaper="portrait"] .authSurface{max-height:100dvh;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
html[data-desktop-wallpaper="portrait"] .authSurface::-webkit-scrollbar{display:none}
html[data-desktop-wallpaper="portrait"] :is(img,video,canvas){max-width:100%}
html[data-desktop-wallpaper="portrait"] #rootUpdateVisual{max-height:100dvh;overflow-x:hidden;scrollbar-width:none}
html[data-desktop-wallpaper="portrait"] #rootUpdateVisual::-webkit-scrollbar{display:none}
@media(max-height:650px){
 html[data-desktop-wallpaper="portrait"] #rootUpdateVisual .ru-panel{padding-block:10px}
 html[data-desktop-wallpaper="portrait"] #rootUpdateVisual .ru-warning{width:28px;height:28px;margin:2px auto}
 html[data-desktop-wallpaper="portrait"] #rootUpdateVisual h1{font-size:21px;margin:4px auto}
 html[data-desktop-wallpaper="portrait"] #rootUpdateVisual .ru-lead{margin-bottom:7px}
 html[data-desktop-wallpaper="portrait"] #rootUpdateVisual .ru-steps{padding-top:6px}
}
