/* Dense navigation creates room for channels without shrinking phone touch targets. */
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 html.nexo-identity.nexo-orbit #workspace{margin:8px!important;padding:8px!important;width:calc(100vw - 16px)!important;max-width:none!important;height:calc(100dvh - 16px)!important;gap:10px!important;grid-template-rows:58px minmax(0,1fr)!important;grid-template-columns:220px minmax(0,1fr) 210px!important}
 html.nexo-identity.nexo-orbit #workspace:is(.members-list-closed,.discovering,.staff-tools-active,.nexo-inbox){grid-template-columns:220px minmax(0,1fr)!important}
 html.nexo-identity.nexo-orbit #workspace>.server-rail{min-height:58px!important;max-height:58px;padding:8px 14px!important;gap:10px!important}
 html.nexo-identity.nexo-orbit .server-rail .nexo-nav-button{height:34px;min-height:34px;padding:7px 9px!important;font-size:11px}
 html.nexo-identity.nexo-orbit #workspace .sidebar-header,html.nexo-identity.nexo-orbit #workspace .server-heading{min-height:46px!important;padding:8px 12px!important}
 html.nexo-identity.nexo-orbit #workspace .sidebar>.nexo-spaces-strip{padding:6px 10px!important;gap:3px;min-height:70px!important;max-height:70px}
 html.nexo-identity.nexo-orbit #workspace .orbit-space-caption{display:none!important}
 html.nexo-identity.nexo-orbit #workspace .sidebar .channel-heading{padding:4px 12px!important;min-height:36px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-list{min-height:0!important;flex:1 1 0!important;overflow-y:auto!important;padding:0 8px 8px!important;scrollbar-width:thin}
 html.nexo-identity.nexo-orbit #workspace #channel-list :is(.channel-button,.dm-channel,.staff-system-nav){min-height:30px!important;padding:5px 9px!important;margin:1px 0!important;font-size:11px;gap:8px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-list .channel-category{margin-top:10px!important;padding-bottom:6px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-list :is(.channel-category-title,.list-heading){padding-block:6px!important;margin-block:2px!important;font-size:9px!important}
 html.nexo-identity.nexo-orbit #workspace .chat-header,html.nexo-identity.nexo-orbit #workspace .member-heading{min-height:54px!important;height:54px!important;padding:0 16px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-title{font-size:16px!important}
 html.nexo-identity.nexo-orbit #workspace .sidebar>.profile{margin:6px 8px!important;padding:8px!important;min-height:48px!important}
 html.nexo-identity.nexo-orbit #workspace .nexo-news-feed{padding:20px!important;gap:16px!important}
 html.nexo-identity.nexo-orbit #workspace :is(.staff-system-body,.staff-workspace-main){padding:18px!important}
 html.nexo-identity.nexo-orbit #workspace :is(.staff-overview-hero,.staff-workspace-group){padding:18px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-navigator{padding:6px 10px!important;gap:4px!important}
 html.nexo-identity.nexo-orbit #workspace .studio-channel-caption{display:none!important}
 html.nexo-identity.nexo-orbit #workspace #channel-navigator input{height:30px!important;min-height:30px!important;padding:5px 8px!important}
 html.nexo-identity.nexo-orbit #workspace #voice-dock{margin:0 8px 6px!important;padding:8px!important;gap:6px!important}

 html.nexo-identity.nexo-orbit #workspace .sidebar #server-list{min-height:38px!important;height:38px!important;padding-block:2px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-list .channel-entry{min-height:32px!important;height:32px!important;margin:0!important;padding:0!important}

}
/* Only the game/call surface is promoted; chat and voice sidebars stay underneath. */
html.nexo-identity .nexo-fullscreen-host{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:var(--nav,#081524)!important;zoom:1!important}
html.nexo-identity :is(#pool-game-app,.camera-call-panel).nexo-viewport-target,
html.nexo-identity .chat .camera-call-panel.nexo-viewport-target,
html.nexo-identity :is(#pool-game-app,.camera-call-panel):fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:12px!important;border:0!important;border-radius:0!important;transform:none!important;zoom:1!important;z-index:2147483000!important;background:var(--paper,#0d1f32)!important;box-sizing:border-box!important;overflow:hidden!important}
html.nexo-identity #pool-game-app.nexo-viewport-target{padding:0!important}
html.nexo-identity .camera-call-panel.nexo-viewport-target{display:flex!important;flex-direction:column!important}
html.nexo-identity .camera-call-panel.nexo-viewport-target>.camera-call-grid{flex:1 1 0!important;min-height:0!important}

html.nexo-identity #pool-game-app.nexo-viewport-target.pg-rotated{inset:auto!important;left:50%!important;top:50%!important;width:100dvh!important;height:100dvw!important;transform:translate(-50%,-50%) rotate(90deg)!important;transform-origin:center!important}
/* Phone density and controls stay inside their own safe, scrollable surfaces. */
#mobile-sidebar-back{display:none}
@media(max-width:760px){
 html.nexo-identity.nexo-orbit #workspace{--phone-rail-height:50px;grid-template-rows:50px minmax(0,1fr)!important;padding-bottom:calc(56px + env(safe-area-inset-bottom))!important}
 html.nexo-identity.nexo-orbit #workspace.channel-navigation-active{--phone-rail-height:82px;grid-template-rows:82px minmax(0,1fr)!important}
 html.nexo-identity.nexo-orbit #workspace>.server-rail{height:50px!important;padding:3px 10px!important}
 html.nexo-identity.nexo-orbit #workspace.channel-navigation-active>.server-rail{height:82px!important;grid-template-rows:44px 32px!important}
 html.nexo-identity.nexo-orbit #workspace .chat-header{height:46px!important;min-height:46px!important;max-height:46px!important;flex-basis:46px!important;padding:1px 8px!important}
 html.nexo-identity.nexo-orbit #workspace .orbit-mobile-dock{height:calc(56px + env(safe-area-inset-bottom))!important;padding:2px 4px env(safe-area-inset-bottom)!important}
 html.nexo-identity.nexo-orbit #workspace .orbit-mobile-dock .nexo-nav-button{height:50px!important;min-height:50px!important;padding:4px!important;font-size:10px!important}
 html.nexo-identity.nexo-orbit #workspace.mobile-sidebar .sidebar{top:var(--phone-rail-height)!important;bottom:calc(56px + env(safe-area-inset-bottom))!important;max-height:none!important;width:min(300px,calc(100vw - 24px))!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
 html.nexo-identity.nexo-orbit #workspace #mobile-sidebar-back{display:inline-flex!important;align-items:center;justify-content:center;min-width:54px;min-height:40px;padding:4px 7px;flex:none;font-size:12px}
 html.nexo-identity.nexo-orbit #workspace .sidebar-header{min-height:56px!important;padding:6px!important;gap:4px!important;flex:none}
 html.nexo-identity.nexo-orbit #workspace .sidebar-header h2{font-size:14px!important;min-width:0}
 html.nexo-identity.nexo-orbit #workspace .sidebar .channel-heading{min-height:36px!important;padding:4px 12px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-navigator{padding:6px 10px!important}
 html.nexo-identity.nexo-orbit #workspace .studio-channel-caption{display:none!important}
 html.nexo-identity.nexo-orbit #workspace #channel-list{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;padding:4px 10px!important}
 html.nexo-identity.nexo-orbit #workspace #channel-list .channel-button{min-height:38px!important;padding:7px 9px!important;font-size:12px!important}
 html.nexo-identity.nexo-orbit #workspace #voice-dock{padding:8px!important;margin:4px 8px!important;flex:none}
 html.nexo-identity.nexo-orbit #workspace .sidebar>.profile{margin:4px 8px!important;padding:8px!important;min-height:56px!important;flex:none;overflow:visible!important}
 html.nexo-identity.nexo-orbit #workspace .phone-account-controls{padding:6px 10px!important;flex:none}
 html.nexo-identity.nexo-orbit #workspace .phone-account-controls>small{display:none}
 html.nexo-identity.nexo-orbit #workspace .phone-account-controls .nexo-utility-navigation{margin:0!important;gap:8px!important;justify-content:center!important;align-items:center!important}
 html.nexo-identity.nexo-orbit #workspace .phone-account-controls button{width:40px!important;height:40px!important;min-height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px!important}
 html.nexo-identity.nexo-orbit #workspace .nexo-news-feed{padding:12px!important;gap:12px!important}
 html.nexo-identity.nexo-orbit #workspace .social-home-heading{min-height:100px!important;padding-bottom:12px!important}
 html.nexo-identity.nexo-orbit #workspace .social-home-heading h1{font-size:28px!important}
 html.nexo-identity #profile-dialog #card-badges{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:8px!important;overflow:visible!important}
 html.nexo-identity #profile-dialog #card-avatar{margin-top:14px!important;margin-bottom:14px!important}
}
/* Level follows the portrait in normal flow, beyond the decorative frame. */
.pg-player-portrait{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:18px!important;padding:12px 14px 0!important;margin:4px 0 8px!important}
.pg-player-portrait .pg-player-level{position:relative!important;inset:auto!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:22px!important;min-width:52px!important;padding:3px 8px!important;margin:0!important;font:800 10px/1 system-ui!important;flex:none}
#pool-player-peek.pg-lounge-peek>.modal-close,#pool-game-app .pg-match-tools>button{display:grid!important;place-items:center!important;align-self:center!important;line-height:1!important;padding:0!important;box-sizing:border-box!important;text-indent:0!important}
#pool-game-app .pg-match-tools>button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:50%!important;flex:none!important}
#pool-game-app .pg-match-tools>button::after{display:grid!important;place-items:center!important;position:absolute!important;inset:0!important;line-height:1!important;margin:0!important;padding:0!important}
#pool-game-app.pg-phone:not(.pg-in-match){grid-template-rows:52px minmax(0,1fr) 44px!important}
#pool-game-app.pg-phone .pg-header{padding:4px 10px!important;gap:7px!important}
#pool-game-app.pg-phone .pg-header-profile{min-width:110px!important;gap:8px!important}
#pool-game-app.pg-phone .pg-header-actions{gap:4px!important;min-width:0!important;overflow-x:auto;scrollbar-width:none;align-items:center}
#pool-game-app.pg-phone .pg-header-profile .avatar{width:28px!important;height:28px!important}
#pool-game-app.pg-phone .pg-body:not(.pg-playing){padding:10px 14px!important}
#pool-game-app.pg-phone .pg-club-heading{min-height:118px!important;padding:12px 16px!important;gap:5px 12px!important}
#pool-game-app.pg-phone .pg-club-heading h1{font-size:30px!important}
#pool-game-app.pg-phone .pg-city.pg-city-art{min-height:168px!important;padding:12px!important}
#pool-game-app.pg-phone .pg-city-art h2{font-size:24px!important;margin-top:18px!important}
#pool-game-app.pg-phone .pg-section-title{margin:12px 0 8px!important}
#pool-game-app.pg-phone .pg-icon-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:6px!important;line-height:1!important;flex:none!important}
/* Pool geometry responds to the viewport, not to score/status content. */
html.nexo-identity #pool-game-app.pg-shell{zoom:1!important;--pool-hud-height:70px;--pool-status-height:26px}
html.nexo-identity #pool-game-app.pg-shell .pg-body.pg-playing{padding:6px 10px!important;gap:0!important;position:relative!important}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-area{grid-template-rows:var(--pool-hud-height) var(--pool-status-height) minmax(0,1fr)!important;gap:5px!important}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-hud{height:var(--pool-hud-height)!important;min-height:0!important;padding-right:46px!important;overflow:hidden;align-items:stretch}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-player,html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-pot{height:100%;min-height:0;overflow:hidden}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-player-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-turn{height:var(--pool-status-height)!important;min-height:0!important;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap!important;gap:10px;margin:0!important;overflow:hidden}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-turn>h3{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-turn>small{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-turn>p{display:none!important}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pool-arena{min-height:0!important;min-width:0;align-self:stretch;margin:0!important}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pg-match-tools{position:absolute!important;top:8px!important;right:10px!important;left:auto!important;width:36px!important;height:36px!important;margin:0!important;transform:none!important;z-index:10}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pg-match-tools>button{display:grid!important;place-items:center!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;line-height:1!important;transform:none!important;animation:none!important}
html.nexo-identity #pool-game-app.pg-shell .pg-playing .pg-match-tools>button:after{display:block;font:24px/1 system-ui!important;margin:0!important}
/* Pin the two exit/display controls; the remaining toolbar can scroll within its slot. */
html.nexo-identity #pool-game-app.pg-shell>.pg-header{position:relative!important;display:grid!important;grid-template-columns:clamp(115px,18vw,200px) minmax(0,1fr) 90px;gap:10px!important;overflow:visible}
html.nexo-identity #pool-game-app.pg-shell .pg-header-profile{width:100%;min-width:0!important;max-width:100%;overflow:hidden}
html.nexo-identity #pool-game-app.pg-shell .pg-header-actions{position:static!important;min-width:0;max-width:100%;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;align-items:center;scroll-behavior:auto;scrollbar-gutter:stable}
html.nexo-identity #pool-game-app.pg-shell .pg-header-actions>.pg-wallet-chip{flex:0 0 92px;min-width:92px;max-width:92px;font-variant-numeric:tabular-nums;overflow:hidden}
html.nexo-identity #pool-game-app.pg-shell .pg-header-actions>.pg-wallet-chip>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nexo-identity #pool-game-app.pg-shell .pg-header-actions>[aria-label='Return to Nexo'],html.nexo-identity #pool-game-app.pg-shell .pg-header-actions>[aria-label='Fullscreen']{position:absolute!important;top:50%!important;margin:0!important;transform:translateY(-50%)!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;z-index:5}
html.nexo-identity #pool-game-app.pg-shell .pg-header-actions>[aria-label='Return to Nexo']{right:10px!important}
html.nexo-identity #pool-game-app.pg-shell .pg-header-actions>[aria-label='Fullscreen']{right:54px!important}
html.nexo-identity #pool-game-app.pg-shell .pg-nav{flex-wrap:nowrap!important;height:100%;align-items:center}
html.nexo-identity #pool-game-app.pg-shell :is(.pg-header,.pg-nav,.pg-match-tools) button{transition:color .15s,background-color .15s,border-color .15s!important;animation:none!important}
@media(max-height:500px){html.nexo-identity #pool-game-app.pg-shell{--pool-hud-height:44px;--pool-status-height:22px}}
html.nexo-identity #pool-game-app.pg-rotated{--pool-hud-height:44px;--pool-status-height:22px}
/* Match mode has one full-screen content row; lobby chrome stays hidden. */
html.nexo-identity #pool-game-app.pg-shell:has(.pg-playing){grid-template-rows:minmax(0,1fr)!important}
html.nexo-identity #pool-game-app.pg-shell:has(.pg-playing)>.pg-header,html.nexo-identity #pool-game-app.pg-shell:has(.pg-playing)>.pg-nav{display:none!important}
/* Compact, scrollable pool cosmetics settings. */
#pool-profile-editor[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr);width:min(960px,94vw)!important;height:min(680px,92dvh)!important;max-height:none!important;overflow:hidden!important;padding:18px!important;box-sizing:border-box}
#pool-profile-editor>.modal-close{position:absolute!important;top:10px!important;right:10px!important;float:none!important;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;display:grid!important;place-items:center!important;z-index:3}
#pool-profile-editor>h2{font-size:21px!important;margin:0 42px 14px 0!important}
#pool-profile-editor>.s1-profile-settings{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;margin:0;padding:0;border:0;background:none;overflow:hidden}
#pool-profile-editor .s1-settings-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:10px}
#pool-profile-editor .s1-settings-tab{min-width:0;min-height:40px;padding:8px 5px;font-size:12px;text-align:center;border-radius:9px}
#pool-profile-editor .s1-settings-tab[aria-selected=true]{background:#d8b45f;color:#101b2a;border-color:#f3d68e}
#pool-profile-editor .s1-settings-panel{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 5px 8px 0;margin:0;border:0;background:none}
#pool-profile-editor .pg-note{font-size:12px;line-height:1.5;margin:0 0 12px}
#pool-profile-editor .s1-settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
#pool-profile-editor .s1-cosmetic-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;height:156px;min-height:0;padding:10px!important;border:1px solid #344758;border-radius:12px;background:#0d1b2d;color:#eedcae;text-align:center;box-sizing:border-box;overflow:hidden}
#pool-profile-editor .s1-cosmetic-card[aria-pressed=true]{border-color:#e8c478;background:#223344;box-shadow:inset 0 0 0 1px #e8c478;opacity:1}
#pool-profile-editor .s1-cosmetic-card:disabled:not([aria-pressed=true]){opacity:.48}
#pool-profile-editor .s1-cosmetic-card strong{font-size:12px;line-height:1.25;min-height:15px;max-width:100%;overflow-wrap:anywhere}
#pool-profile-editor .s1-cosmetic-card small{font-size:10px;line-height:1.3;color:#a8bacc}
#pool-profile-editor .s1-frame-stage{display:grid;place-items:center;width:100px;height:94px;flex-shrink:0}
#pool-profile-editor .s1-frame-sample{width:44px;height:44px;min-width:44px;margin:0!important;font-size:14px;position:relative}
#pool-profile-editor .s1-frame-sample .s1-frame-overlay{width:94px!important;height:94px!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);overflow:hidden!important}
#pool-profile-editor .s1-title-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}
#pool-profile-editor .s1-title-choice{height:106px}
#pool-profile-editor .s1-title-stage{display:grid;place-items:center;width:100%;height:40px;flex-shrink:0}
#pool-profile-editor .s1-title-stage .s1-title{display:grid;place-items:center;margin:0!important;width:100%!important;max-width:180px!important;height:40px!important;min-height:0!important;font-size:12px!important;line-height:1.2;box-sizing:border-box}
#pool-profile-editor .s1-title-stage img{width:100%!important;height:40px!important;max-height:40px!important;object-fit:contain}
#pool-profile-editor .s1-no-title{font-size:24px;color:#9cafc4}
#pool-profile-editor .s1-cue-preview{margin:0!important;width:100%;height:110px;min-height:0;padding:0;overflow:hidden}
#pool-profile-editor .s1-cue-preview>img{max-width:100%;object-fit:contain}
#pool-profile-editor .s1-cue-preview figcaption{font-size:12px}
#pool-profile-editor .s1-clear-choice{font-size:12px;min-height:36px;margin:10px 0;padding:8px 12px}
#pool-profile-editor .s1-owner-collection{font-size:11px;min-height:34px;margin-top:12px}
#pool-profile-editor .s1-table-preview{display:block;position:relative;width:min(180px,95%);aspect-ratio:2/1;border:9px solid #654730;border-radius:12px;background:radial-gradient(ellipse at 35% 25%,var(--felt-light),var(--felt-dark));box-shadow:inset 0 0 0 4px #274e46,0 2px 4px #0008;box-sizing:border-box;margin:8px 0 12px}
#pool-profile-editor .s1-table-preview.celestial{border-color:#a98748;background:radial-gradient(ellipse at 30% 40%,#156777,#063340);box-shadow:inset 0 0 0 3px #3ea4ad,0 2px 4px #0008}
#pool-profile-editor .s1-table-preview i{position:absolute;width:9px;height:9px;background:#050a10;border-radius:40%;top:-4px;left:-4px}
#pool-profile-editor .s1-table-preview i:nth-child(2){left:calc(50% - 4px)}
#pool-profile-editor .s1-table-preview i:nth-child(3){left:auto;right:-4px}
#pool-profile-editor .s1-table-preview i:nth-child(n+4){top:auto;bottom:-4px}
#pool-profile-editor .s1-table-preview i:nth-child(5){left:calc(50% - 4px)}
#pool-profile-editor .s1-table-preview i:nth-child(6){left:auto;right:-4px}
html.pool-landscape-fallback #pool-profile-editor[open]{width:min(960px,94dvh)!important;height:min(680px,92dvw)!important}
@media(max-height:500px){#pool-profile-editor[open]{padding:12px!important}#pool-profile-editor>h2{font-size:18px!important;margin-bottom:8px!important}#pool-profile-editor .s1-settings-tabs{padding-bottom:8px}#pool-profile-editor .s1-cosmetic-card{height:140px}#pool-profile-editor .s1-title-choice{height:100px}#pool-profile-editor .s1-frame-stage{height:78px}}
#pool-profile-editor>.s1-profile-settings{gap:0!important}
#pool-profile-editor .s1-settings-panel{padding:0 5px 8px 0!important}
#pool-profile-editor .s1-settings-tab[aria-selected=true]{background:#d8b45f!important;color:#101b2a!important;border-color:#f3d68e!important;box-shadow:none!important}
#pool-profile-editor .s1-cue-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:14px 65px 24px;gap:3px;align-items:center}
#pool-profile-editor .s1-cue-preview .s1-season-cue{min-width:0;width:100%;height:auto;margin:0}
#pool-profile-editor .s1-cue-preview figcaption{max-width:100%;white-space:normal;line-height:1.15;overflow-wrap:anywhere}
/* Keep one real scroll viewport; collection controls remain reachable on short phones. */
html.nexo-identity #pool-profile-editor[open]{overflow:hidden!important}
#pool-profile-editor>.s1-profile-settings{grid-template-rows:auto minmax(0,1fr) auto!important;min-height:0!important;overflow:hidden!important}
html.nexo-identity #pool-profile-editor .s1-settings-panel{overflow-x:hidden!important;overflow-y:auto!important;min-height:0!important;max-height:100%!important;touch-action:auto!important;scrollbar-width:thin;scrollbar-color:#d8b45f #101b2a;-webkit-overflow-scrolling:touch}
html.pool-landscape-fallback #pool-profile-editor .s1-settings-panel{touch-action:none!important}
#pool-profile-editor .s1-browse-controls{display:flex;align-items:center;justify-content:center;gap:14px;padding-top:6px;border-top:1px solid #d8b45f33}
#pool-profile-editor .s1-browse-controls button{width:40px;min-height:32px;padding:3px;font-size:18px}
#pool-profile-editor .s1-browse-controls small{font-size:11px;color:#a8bacc}
.versus-tetris .versus-player.is-you>canvas,.arcade-tetris .tetris-board-stage>canvas{touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* Portrait Tetris overrides the old classic two-column command layout. */
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:none!important;height:100%!important;gap:8px!important;grid-template-columns:none!important;grid-template-rows:none!important}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player>canvas{width:min(100%,calc((100cqh - 185px)/2))!important;height:auto!important;max-height:none!important;aspect-ratio:1/2!important;flex:0 0 auto!important;align-self:center!important;object-fit:contain!important}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player>strong{order:0}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player>.versus-previews{order:1;flex-direction:row!important}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player>canvas{order:2}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player>.versus-stats{order:3;text-align:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-notice{display:none!important}
html.nexo-identity .game-stage .versus-previews>.tetris-hold-slot{display:grid;place-items:center;min-height:0!important;min-width:0!important;margin:0!important;padding:3px 8px!important;background:#12283f!important;color:#b6cede!important;border:1px solid #42627b!important;border-radius:8px!important;font-size:9px!important;line-height:1!important;touch-action:manipulation}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .chess-board .chess-square{font-size:clamp(24px,8cqw,44px)!important;line-height:1!important}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait .game-stage .versus-tetris .versus-player>strong{align-self:center!important;text-align:center!important;width:100%!important}

/* One layout owner for the people panel: dock wide, drawer narrow. */
html.nexo-identity.nexo-orbit #workspace{box-sizing:border-box;min-width:0}
html.nexo-identity.nexo-orbit #workspace>.members-panel{min-width:0!important;min-height:0!important;padding:0!important;box-sizing:border-box;overflow:hidden!important;flex-direction:column!important}
html.nexo-identity.nexo-orbit #workspace>.members-panel .member-heading{display:flex!important;align-items:center!important;flex:none!important;margin:0!important;gap:8px!important}
html.nexo-identity.nexo-orbit #workspace>.members-panel #member-list{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin}
html.nexo-identity.nexo-orbit #workspace>.members-panel .member-row{width:100%!important;min-width:0!important;box-sizing:border-box;gap:10px!important;align-items:center!important}
html.nexo-identity.nexo-orbit #workspace>.members-panel .member-row>div:not(.avatar){min-width:0!important}
html.nexo-identity.nexo-orbit #workspace>.members-panel .member-name{min-width:0!important;flex-wrap:wrap!important;gap:4px!important}
html.nexo-identity.nexo-orbit #workspace>.members-panel .member-name>b{overflow-wrap:anywhere;white-space:normal!important;line-height:1.3}
html.nexo-identity.nexo-orbit #workspace>.members-panel .member-heading button{display:grid!important;place-items:center!important;flex:none!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important}
@media(min-width:1201px){
 html.nexo-identity.nexo-orbit #workspace{grid-template-areas:'navigation navigation navigation' 'sidebar canvas people'!important}
 html.nexo-identity.nexo-orbit #workspace:is(.members-list-closed,.discovering,.staff-tools-active,.nexo-inbox){grid-template-areas:'navigation navigation' 'sidebar canvas'!important}
 html.nexo-identity.nexo-orbit #workspace:not(.members-list-closed):not(.discovering):not(.staff-tools-active):not(.nexo-inbox)>.members-panel{display:flex!important;position:static!important;grid-area:people!important;width:auto!important;height:100%!important;max-height:none!important;inset:auto!important;transform:none!important;box-shadow:none!important;align-self:stretch!important}
}
@media(min-width:761px) and (max-width:1200px){
 html.nexo-identity.nexo-orbit #workspace{grid-template-columns:220px minmax(0,1fr)!important;grid-template-areas:'navigation navigation' 'sidebar canvas'!important}
 html.nexo-identity.nexo-orbit #workspace>.members-panel{display:none!important;grid-area:auto!important}
 html.nexo-identity.nexo-orbit #workspace.show-members:not(.members-list-closed):not(.discovering):not(.staff-tools-active):not(.nexo-inbox)>.members-panel{display:flex!important;position:fixed!important;inset:82px 18px 18px auto!important;width:min(280px,calc(100vw - 36px))!important;height:auto!important;max-height:calc(100dvh - 100px)!important;z-index:90!important;box-shadow:0 12px 40px #0007!important}
}
@media(max-width:760px){
 html.nexo-identity.nexo-orbit #workspace>.members-panel{display:none!important}
 html.nexo-identity.nexo-orbit #workspace.show-members:not(.members-list-closed):not(.discovering):not(.staff-tools-active):not(.nexo-inbox)>.members-panel{display:flex!important;position:fixed!important;inset:calc(var(--phone-rail-height,50px) + env(safe-area-inset-top) + 50px) 8px calc(64px + env(safe-area-inset-bottom)) auto!important;width:min(300px,calc(100vw - 16px))!important;height:auto!important;max-height:none!important;z-index:90!important;box-shadow:0 12px 40px #0007!important}
}

html.nexo-identity.nexo-orbit #workspace:is(.members-list-closed,.discovering,.staff-tools-active,.nexo-inbox)>.members-panel{display:none!important}

/* Phone navigation owns its whole surface; only the channel list scrolls. */
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-ux.nexo-identity.nexo-orbit #workspace.mobile-sidebar #sidebar{left:0!important;right:0!important;width:100%!important;max-width:none!important;border-radius:0!important;box-sizing:border-box!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar>.sidebar-header{gap:8px!important;padding:8px 12px!important;min-height:60px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar .sidebar-header h2{font-size:17px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar .sidebar-header>div{flex:1;min-width:0}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar .channel-heading{flex:none!important;min-height:40px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar [hidden]{display:none!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar #channel-list{flex:1 1 0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;padding:8px 12px!important;scroll-padding:8px}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar #channel-list .channel-button{font-size:15px!important;min-height:44px!important;padding:10px 12px!important;gap:10px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar .staff-channels-switch{position:static!important;inset:auto!important;min-height:44px!important;margin:6px 0!important;flex:none!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar>.ux-discover-links{display:block!important;flex:none!important;padding:0 12px!important;border-top:1px solid #355169}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar>.ux-discover-links[hidden]{display:none!important}
 #sidebar>.ux-discover-links>summary{padding:12px 4px;min-height:44px;box-sizing:border-box;font-size:13px;color:#c5d8e9;cursor:pointer}
 #sidebar>.ux-discover-links>button{width:100%;margin:0 0 6px;min-height:40px!important;font-size:14px!important;padding:8px 12px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar>.profile{margin:4px 12px!important;min-height:56px!important;padding:6px 10px!important;gap:10px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar .self-avatar-wrap{position:relative!important;width:44px!important;height:44px!important;min-width:44px!important;overflow:visible!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar #status-button{position:absolute!important;inset:auto -3px -3px auto!important;display:grid!important;place-items:center!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:4px!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;z-index:3!important;font-size:12px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar #status-button .presence-dot{position:static!important;width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;border:2px solid #12283c!important;border-radius:50%!important;box-sizing:content-box!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #sidebar>.phone-account-controls{padding:4px 12px!important;min-height:48px!important;box-sizing:border-box!important}
}
