/* V84 small-screen improvements for iOS Safari + Android WebView (desktop unaffected). */
@media (max-width:760px){
html{overscroll-behavior-x:none;-webkit-text-size-adjust:100%}body{max-width:100vw;overflow-x:hidden}
#room-view{min-width:0;max-width:100vw;overflow:hidden}#lobby{max-width:100vw;overflow-x:hidden}
#room-view textarea,#room-view input,#room-view select,#lobby input,#lobby select,.dialog input,.dialog textarea,.dialog select{font-size:max(16px,1rem)!important}
#room-view button,#lobby button,.dialog button,.member-card{touch-action:manipulation}
#room-view button,#lobby button,.dialog button{min-height:34px}
.member-card,.room-card,[data-join]{-webkit-tap-highlight-color:rgba(119,84,184,.18)}
#room-view .member-card{border-radius:13px!important;min-height:45px;max-width:100%;overflow:hidden}
#member-list{min-width:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#chat-messages,#chat-log,#chat-text,#message-list,#room-event-list{overflow-wrap:anywhere;word-break:break-word;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
#composer,#private-composer{min-height:43px!important;line-height:1.4;max-height:25dvh}
#send-message{min-width:42px;min-height:42px}.aura-modal,.dialog,#modal-root .dialog{max-width:min(100vw - 14px,580px)!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:auto}
#private-window{max-width:calc(100vw - 14px);max-height:calc(100dvh - 64px);overflow:auto}
#room-view .stage-row,#room-view .stage-mics{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#room-view .v5-image-thumb{max-width:min(180px,56vw);max-height:155px;object-fit:contain}
#room-view .v5-image-preview-shell{max-width:96vw;max-height:85dvh}
#room-view .classic-menu,#room-view .member-menu,.classic-menu{max-width:min(calc(100vw - 18px),330px);max-height:70dvh;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
#lobby .topnav,.nav68{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
}
@media(max-width:390px){#room-view .member-name{max-width:calc(100vw - 95px)}#room-view .classic-menu button{padding:11px 9px}}
@supports(padding:max(0px)){@media(max-width:760px){#room-view{padding-bottom:env(safe-area-inset-bottom)}.dialog{padding-bottom:max(12px,env(safe-area-inset-bottom))}}}
