/* Mobile interaction refinements: bounded menus, readable fields and reachable composers. */
@media(max-width:760px){
 #communityPage .account-dropdown,#communityPage .room-social-links{box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;max-height:calc(var(--cgp-visual-height,100dvh) - 24px);max-width:calc(100vw - 16px)}
 #communityPage .account-menu[open]{z-index:10010}
 #communityPage .room-social-menu[open]{z-index:10010}
 #communityPage .account-dropdown .menu-item,#communityPage .room-social-links>a{min-height:44px;display:flex;align-items:center}
 #communityPage :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){font-size:16px;max-width:100%;box-sizing:border-box}
 #communityPage :is(#chat-form,#modelsChatForm,#dmForm){min-width:0;gap:6px;box-sizing:border-box}
 #communityPage :is(#body,#modelsChatBody,#dmBody){min-width:0;width:0;flex:1 1 0}
 #communityPage :is(#chat-form,#modelsChatForm,#dmForm)>button{min-width:44px;min-height:44px;flex-shrink:0;padding:8px;box-sizing:border-box}
 #communityPage #privatePanel.dm-floating{bottom:calc(8px + env(safe-area-inset-bottom,0px) + var(--cgp-keyboard-inset,0px))!important;max-height:calc(var(--cgp-visual-height,100dvh) - 16px)!important;min-height:0}
 #communityPage #privatePanel.dm-floating #dmWindowContent{overflow-y:auto;overscroll-behavior:contain}
 #communityPage .emote-picker{max-height:calc(var(--cgp-visual-height,100dvh) * .55);overflow-y:auto;overscroll-behavior:contain}
 #communityPage .chat>:is(#adminTools,#profileEditor,#signInPanel,#communitySettingsPanel,#communityHelpPanel){overflow-wrap:anywhere}
 #communityPage :is(#adminTools,#profileEditor,#signInPanel) form{max-width:100%;min-width:0;flex-wrap:wrap}
 #communityPage :is(#adminTools,#profileEditor,#signInPanel) label{max-width:100%;min-width:0}
 #communityPage :is(#adminTools,#profileEditor,#signInPanel) input{max-width:100%}
 #communityPage :is(#dmClose,#dmMinimize,#dmTitleToggle,#closeProfile,#closeEmotes,#modelsCloseEmotes,#dmEmoteClose){min-width:44px;min-height:44px;box-sizing:border-box}
 #communityPage .chat-tabs>button{min-height:44px}
 #memberDialog{box-sizing:border-box;width:min(440px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(var(--cgp-visual-height,100dvh) - 16px);overflow-y:auto;overscroll-behavior:contain}
 #memberDialog #closeProfile{width:44px;height:44px}
 .user-action-menu,.chat-tools-menu{max-width:calc(100vw - 16px);max-height:calc(var(--cgp-visual-height,100dvh) - 16px);overflow-y:auto;overscroll-behavior:contain}
 .user-action-menu button,.chat-tools-menu button{min-height:44px;box-sizing:border-box}
}
