/* One edge-to-edge phone shell. System status/gesture bars remain OS-owned. */
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-identity.nexo-orbit body{margin:0!important;padding:0!important;background:#0d1f32}
 .nexo-identity.nexo-orbit #workspace{width:100%!important;max-width:none!important;margin:0!important;padding:0 0 calc(64px + env(safe-area-inset-bottom))!important;gap:0!important;border:0!important;border-radius:0!important;grid-template-rows:56px minmax(0,1fr)!important;box-sizing:border-box;height:var(--nexo-phone-height,100dvh)!important}
 .nexo-identity.nexo-orbit #workspace.channel-navigation-active{grid-template-rows:92px minmax(0,1fr)!important}
 .nexo-identity.nexo-orbit #workspace.mobile-keyboard-open{padding-bottom:0!important}
 .nexo-identity.nexo-orbit #workspace>.server-rail{height:56px!important;min-height:0!important;max-height:none!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:44px!important;padding:6px 12px!important;gap:0 8px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-sizing:border-box}
 .nexo-identity.nexo-orbit #workspace.channel-navigation-active>.server-rail{height:92px!important;grid-template-rows:44px 36px!important}
 .nexo-identity.nexo-orbit #workspace:not(.channel-navigation-active)>.server-rail>.nexo-spaces-strip{display:none!important}
 .nexo-identity.nexo-orbit #workspace #nexo-home{width:auto!important;height:40px!important;grid-column:1!important;grid-row:1!important;display:flex!important}
 .nexo-identity.nexo-orbit #workspace .chat{min-height:0!important;min-width:0!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
 .nexo-identity.nexo-orbit #workspace .chat-header{position:relative!important;top:auto!important;inset:auto!important;flex:0 0 52px!important;height:52px!important;min-height:52px!important;max-height:52px!important;padding:4px 10px!important;border-radius:0!important;box-sizing:border-box;z-index:2}
 .nexo-identity.nexo-orbit #workspace .chat-header #mobile-menu{width:44px!important;height:44px!important;margin:0!important}
 .nexo-identity.nexo-orbit #workspace .orbit-mobile-dock{left:0!important;right:0!important;bottom:0!important;height:calc(64px + env(safe-area-inset-bottom))!important;padding:4px 6px calc(4px + env(safe-area-inset-bottom))!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important}
 .nexo-identity.nexo-orbit #workspace .orbit-mobile-dock .nexo-nav-button{height:54px!important;min-height:54px!important}
 .nexo-identity.nexo-orbit #workspace .nexo-news-feed{grid-template-rows:none!important;grid-auto-rows:max-content!important;min-height:0;overflow-y:auto!important;overscroll-behavior-y:contain;scroll-padding-top:12px;padding:18px 14px!important}
 .nexo-identity.nexo-orbit #workspace .social-home-heading{min-height:124px!important;height:auto!important;flex-shrink:0;padding:6px 0 18px!important}
 .nexo-identity.nexo-orbit #workspace .social-home-heading h1{margin:10px 0!important;line-height:1.15!important}
 .nexo-identity.nexo-orbit #workspace .social-home-heading p{line-height:1.55!important}
 .nexo-identity.nexo-orbit .workspace.mobile-sidebar .sidebar{top:92px!important;bottom:64px!important;max-height:calc(100% - 156px)!important}
 .nexo-identity.nexo-orbit .workspace.show-members .members-panel{bottom:64px!important}
 /* Avoid painting distant feed cards and expensive layered effects on small GPUs. */
 .nexo-identity.nexo-orbit .news-feed-card{content-visibility:auto;contain-intrinsic-size:auto 320px}
 .nexo-identity.nexo-orbit #workspace :is(.server-rail,.chat-header,.orbit-mobile-dock,.social-home-emblem){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .nexo-identity.nexo-orbit .social-home-emblem span{box-shadow:none!important}
}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-identity.nexo-orbit #workspace{grid-template-columns:minmax(0,1fr)!important;zoom:1!important;transform:none!important}
 html.nexo-identity.nexo-orbit #workspace #mobile-menu{display:grid!important;place-items:center;flex:none}
 html.nexo-identity.nexo-orbit #workspace:not(.mobile-keyboard-open) .orbit-mobile-dock{display:flex!important;justify-content:space-around!important}
 html.nexo-identity.nexo-orbit #workspace .sidebar{position:fixed!important;left:0!important;width:min(88vw,360px)!important;display:none!important;z-index:90!important}
 html.nexo-identity.nexo-orbit #workspace.mobile-sidebar .sidebar{display:flex!important}
 html.nexo-identity.nexo-orbit #workspace .members-panel{display:none!important;position:fixed!important;right:8px!important;width:min(90vw,340px)!important;z-index:80!important;top:var(--nexo-phone-members-top,112px)!important}
 html.nexo-identity.nexo-orbit #workspace.show-members .members-panel{display:flex!important}
 html.nexo-identity.nexo-orbit #workspace :is(.staff-workspace-main,.staff-system-body){padding:14px!important;overflow-x:hidden!important}
 html.nexo-identity.nexo-orbit #workspace :is(.staff-overview-grid,.staff-workspace-groups,.staff-dashboard-grid){grid-template-columns:1fr!important}
 html.nexo-identity.nexo-orbit #workspace :is(.staff-system-nav,.staff-tool-button){min-height:44px!important;font-size:14px!important}
 html.nexo-identity.nexo-orbit #workspace .nexo-nav-button{min-width:44px!important}
}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-identity.nexo-orbit #workspace .social-community-shelf:empty{display:none!important}
 html.nexo-identity.nexo-orbit #workspace .nexo-news-feed p{font-size:15px!important;line-height:1.5!important}
 html.nexo-identity.nexo-orbit #workspace .home-news-shelf h3{font-size:19px!important}
 html.nexo-identity.nexo-orbit #workspace .home-news-shelf button{font-size:14px!important;min-height:44px!important;padding:10px 16px!important}
 html.nexo-identity.nexo-orbit #workspace .sidebar :is(.channel-button,.dm-channel,.staff-system-nav){font-size:15px!important;min-height:44px!important;padding:10px 12px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-title{font-size:18px!important}
 html.nexo-identity.nexo-orbit #workspace :is(.message-body,.message-text){font-size:16px!important;line-height:1.45!important}
 html.nexo-identity.nexo-orbit #workspace :is(.composer textarea,.composer input){font-size:16px!important}
 html.nexo-identity.nexo-orbit #workspace .nexo-news-feed .social-community-shelf{min-height:112px!important;min-block-size:max-content!important;flex-shrink:0}
}

@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-identity.nexo-orbit #workspace.mobile-keyboard-open>.orbit-mobile-dock{display:none!important}
 html.nexo-identity.nexo-orbit #workspace.mobile-keyboard-open .sidebar,
 html.nexo-identity.nexo-orbit #workspace.mobile-keyboard-open.show-members .members-panel{bottom:0!important;max-height:calc(100% - 112px)!important}
 html.nexo-identity.nexo-orbit #workspace #conversation{min-width:0!important;min-height:0!important;flex:1 1 0!important}
 html.nexo-identity.nexo-orbit #workspace #message-scroll{min-height:0!important;scroll-padding-bottom:12px}
 html.nexo-identity.nexo-orbit #workspace .composer{flex-shrink:0!important;min-width:0!important;box-sizing:border-box}
}
