/* Phone layouts: content remains readable and controls stay inside their panels. */
@media(max-width:760px){
 html{scroll-padding-bottom:env(safe-area-inset-bottom)}
 .nexo-identity input:not([type=checkbox]):not([type=radio]),.nexo-identity textarea,.nexo-identity select{font-size:16px!important;min-width:0;max-width:100%}
 .nexo-identity .workspace,.nexo-identity .workspace.nexo-inbox,.nexo-identity .workspace.discovering,.nexo-identity .workspace.members-list-closed{height:var(--nexo-phone-height,100dvh);grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'navigation' 'canvas'!important;grid-template-rows:110px minmax(0,1fr);padding: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden}
 .nexo-identity .server-rail{grid-template-rows:44px 36px;padding:8px;gap:6px 4px;min-width:0}
 .nexo-identity #nexo-home,.nexo-identity .nexo-primary-navigation .nexo-nav-button,.nexo-identity .nexo-utility-navigation>button{width:40px!important;min-width:40px!important;height:44px!important;padding:8px!important}
 .nexo-identity .nexo-primary-navigation,.nexo-identity .nexo-utility-navigation{gap:0;min-width:0}
 .nexo-identity .nexo-spaces-strip{height:36px;min-width:0}.nexo-identity #server-list{overscroll-behavior-x:contain;scrollbar-width:thin}.nexo-identity #server-list>.rail-button{min-height:36px!important}
 .nexo-identity .chat-header{display:flex;flex-wrap:wrap;align-content:center;align-items:center;gap:4px;min-height:100px;height:auto;flex-shrink:0;padding:6px 8px}
 .nexo-identity .chat-header #mobile-menu{display:grid;width:40px;height:44px;flex:none}
 .nexo-identity #channel-title{flex:1 0 calc(100% - 48px);max-width:calc(100% - 48px);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
 .nexo-identity .chat-header>.icon-button{width:40px;height:44px;min-width:40px;min-height:44px;padding:8px;margin:0!important;flex:0 0 40px}
 .nexo-identity .chat-header>.hash,.nexo-identity .chat-header>.header-divider,.nexo-identity #channel-description{display:none!important}
 .nexo-identity .workspace.mobile-sidebar .sidebar{top:126px;bottom:max(8px,env(safe-area-inset-bottom));max-height:calc(100% - 134px)}
 .nexo-identity .workspace.show-members .members-panel{top:var(--nexo-phone-members-top,230px);bottom:max(8px,env(safe-area-inset-bottom));max-height:calc(100% - var(--nexo-phone-members-top,230px) - 8px);width:min(280px,calc(100vw - 32px))}
 .nexo-identity .nexo-members-close,.nexo-identity .modal-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 .nexo-identity .composer-area{padding:8px 8px 12px}.nexo-identity .composer{gap:5px;padding:6px;min-width:0}.nexo-identity .composer button{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px}.nexo-identity #message-input{flex:1;min-width:0;max-height:120px;font-size:16px;line-height:1.45}.nexo-identity .composer-hint{display:none}
 .nexo-identity .message-text,.nexo-identity .message-content p{overflow-wrap:anywhere}.nexo-identity .message-content img,.nexo-identity .message-content video{max-width:100%}
 .nexo-identity dialog{box-sizing:border-box;max-width:calc(100vw - 16px)!important;max-height:calc(var(--nexo-phone-height,100dvh) - 24px)!important;overflow:auto;overscroll-behavior:contain}
 .nexo-identity dialog:not(.mini-profile){padding:24px 16px}
 .nexo-identity .account-pages,.nexo-identity .settings-page,.nexo-identity .account-layout,.nexo-identity .settings-card{min-width:0}.nexo-identity .account-facts b{overflow-wrap:anywhere}
 .nexo-identity .profile-dialog.profile-wide:not(.mini-profile){height:calc(var(--nexo-phone-height,100dvh) - 24px)!important}.nexo-identity .full-profile-layout{display:flex;flex-direction:column;overflow:auto}.nexo-identity .full-profile-details{overflow:visible;padding:20px 12px}.nexo-identity .full-profile-identity{min-width:0}.nexo-identity .spotify-track-text{min-width:0}.nexo-identity .spotify-settings{padding:16px}
 .nexo-identity .auth-screen{height:auto;min-height:100dvh;padding:16px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-x:hidden}.nexo-identity .auth-panel{box-sizing:border-box;min-width:0;padding:22px 18px}.nexo-identity .auth-discovery-nav{flex-wrap:wrap}.nexo-identity .auth-discovery-nav button,.nexo-identity .application-links a{min-height:44px;align-items:center}
 .nexo-identity .query-actions button,.nexo-identity .query-actions a,.nexo-identity .shop-product button{min-height:44px}.nexo-identity .shop-line{flex-wrap:wrap}.nexo-identity .shop-line>*{min-width:0;max-width:100%}
}
@media(max-width:360px){.nexo-identity .server-rail{padding:6px}.nexo-identity #nexo-home,.nexo-identity .nexo-primary-navigation .nexo-nav-button,.nexo-identity .nexo-utility-navigation>button{width:38px!important;min-width:38px!important}.nexo-identity .story-content h1{font-size:38px}.nexo-identity .auth-screen{padding-left:12px;padding-right:12px}}
@media(max-width:760px){body:has(.application-layout) input,body:has(.application-layout) textarea{font-size:16px}.application-types a,.back-link{min-height:44px;display:inline-flex;align-items:center}.page-header{gap:14px;flex-wrap:wrap}.form-card,.guide-card{padding:18px}.page-intro,.form-card{overflow-wrap:anywhere}}
