/* Nexo shared UI foundation. Game canvases and cosmetic artwork keep their own design. */
html.nexo-ux{--ux-ink:#0a1725;--ux-panel:#11263a;--ux-raised:#1b354e;--ux-line:#355169;--ux-text:#edf3fc;--ux-muted:#afc1d3;--ux-yellow:#f2ca76;--ux-danger:#ff9ba8}
.nexo-ux :is(button,a,input,select,textarea):focus-visible{outline:3px solid #96cfff!important;outline-offset:3px!important}
.nexo-ux :is(button,a){-webkit-tap-highlight-color:transparent}
.nexo-ux :is(.server-rail,.sidebar,.chat,.members-panel,dialog.extras-dialog,#account-dialog) button{cursor:pointer;touch-action:manipulation;transition:background-color .13s ease,border-color .13s ease,box-shadow .13s ease}
.nexo-ux :is(.server-rail,.sidebar,.chat,.members-panel,#account-dialog) button:disabled{opacity:.5;cursor:not-allowed;filter:none}
.nexo-ux :is(.server-rail,.sidebar,.chat,.members-panel,#account-dialog) button:not(:disabled):active{filter:brightness(.9)}
.nexo-ux :is(.server-rail,.sidebar,.chat,.members-panel,#account-dialog) button:hover:not(:disabled){border-color:#7d9db8}
.nexo-ux button[aria-busy=true]{cursor:progress;opacity:.72}
.nexo-ux button[aria-busy=true]:after{content:'';display:inline-block;flex:none;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-left:8px;animation:ux-spin .8s linear infinite}
@keyframes ux-spin{to{transform:rotate(360deg)}}
.nexo-ux :is(.server-rail,.chat-header,.sidebar-header){box-shadow:none!important}
.nexo-ux #workspace :is(.channel-button,.dm-channel,.staff-system-nav){border-radius:10px!important;line-height:1.4!important}
.nexo-ux #workspace :is(.channel-button.active,.staff-system-nav.active){background:#223e58!important;color:#ffda8b!important;box-shadow:inset 3px 0 #f2ca76!important}
.nexo-ux #workspace .member-row{border-radius:12px!important;min-width:0;gap:10px!important}
.nexo-ux #workspace .member-name{overflow-wrap:anywhere;line-height:1.4}
.nexo-ux #workspace .chat-header{gap:10px!important}
.nexo-ux #workspace .chat-header :is(button,svg){flex-shrink:0}
.nexo-ux #workspace .chat-header #channel-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nexo-ux #workspace .composer-area{padding:10px 14px!important;background:#0c1e2e;border-top:1px solid #294257}
.nexo-ux #workspace #message-form{border:1px solid #486178!important;border-radius:15px!important;background:#11283d!important;gap:8px!important}
.nexo-ux #workspace #message-form:focus-within{border-color:#f2ca76!important;box-shadow:0 0 0 2px #f2ca7620}
.nexo-ux #workspace #message-input{line-height:1.5;font-size:15px!important}
.nexo-ux #workspace .home-news-shelf{gap:14px!important}
.nexo-ux #workspace .home-news-shelf article{border:1px solid #36516a!important;border-radius:18px!important;background:linear-gradient(145deg,#1a334c,#11263a)!important;box-shadow:none!important;padding:22px!important}
.nexo-ux #workspace .home-news-shelf p{color:#b5c7da!important;line-height:1.6!important}
.nexo-ux #workspace .home-news-shelf button{border-radius:10px!important;min-height:44px!important;font-size:14px!important}
.nexo-ux #workspace .home-news-shelf h3{font-size:21px!important;letter-spacing:-.3px}
.nexo-ux :is(.modal-close,.dialog-back){z-index:15!important;min-width:44px!important;min-height:44px!important;display:inline-flex;align-items:center;justify-content:center}
.nexo-ux dialog{scrollbar-width:thin;scrollbar-color:#52708c transparent;scroll-padding:60px 16px 20px;overscroll-behavior:contain}
.nexo-ux dialog::backdrop{backdrop-filter:blur(4px);background:#030b17b8}
.nexo-ux #account-dialog.organized-settings{background:#0e2133!important;border:1px solid #36516a!important;border-radius:22px!important;color:#edf3fc}
.nexo-ux #account-dialog .settings-nav-item{min-height:44px!important;font-size:14px!important;gap:10px!important;border-radius:10px!important}
.nexo-ux #account-dialog .settings-nav-item.selected{background:#29435c!important;color:#ffda8b!important}
.nexo-ux #account-dialog :is(.settings-note,.settings-page-subtitle,.settings-card p,.settings-card label){font-size:14px!important;color:#b5c7da!important}
.nexo-ux #account-dialog .settings-page-title{font-size:26px!important}
.nexo-ux #account-dialog :is(.settings-card,.appearance-settings,.sound-settings,.account-connections-settings,.account-facts){background:#142c42!important;border:1px solid #334d65!important;border-radius:14px!important}
.nexo-ux #account-dialog :is(button,input,select){min-height:44px!important}
.nexo-ux #account-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#0c1c2c;color:#edf3fc;border:1px solid #4a657e;border-radius:10px;padding:11px 12px;font-size:15px;max-width:100%;box-sizing:border-box}
.settings-search{display:block;position:sticky;top:0;z-index:2;margin:0 0 12px;background:#0e2133}
.settings-search input{width:100%}.settings-search-status{font-size:13px;color:#b5c7da;line-height:1.5;padding:8px}
.nexo-ux #account-dialog .account-sidebar{scrollbar-width:thin}
.nexo-ux #account-dialog .settings-nav-item[hidden],.nexo-ux .ux-phone-navigation[hidden],.nexo-ux .ux-discover-links[hidden],.nexo-ux .ux-sidebar-toggle[hidden]{display:none!important}
.nexo-ux #profile-dialog .profile-section-tabs{gap:8px!important;overflow-x:auto;flex-shrink:0}
.nexo-ux #profile-dialog .profile-section-tabs button{min-height:44px!important;padding:10px 16px!important;font-size:14px!important;white-space:nowrap}
.nexo-ux #profile-dialog .phone-profile-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
.nexo-ux #profile-dialog .phone-profile-actions button{min-height:44px!important;font-size:13px!important;line-height:1.4!important;padding:10px!important;white-space:normal}
.nexo-ux #profile-dialog .profile-card-details{max-height:none!important}
.nexo-ux #profile-dialog .profile-card-details :is(p,li){font-size:14px!important;line-height:1.6!important}
.nexo-ux #profile-dialog :is(.profile-effect-layer,.profile-frame-overlay,.avatar-decoration-overlay){pointer-events:none!important}
.nexo-ux #profile-dialog #card-name{position:relative;z-index:2;line-height:1.3!important;overflow-wrap:anywhere}
.ux-phone-navigation{display:none}.ux-discover-links{padding:16px;gap:8px;flex-direction:column}.ux-discover-links>small{color:#afc1d3;font-size:11px;letter-spacing:.12em}.ux-discover-links>button{text-align:left;min-height:44px}
.nexo-ux .ux-sidebar-toggle{flex:none;display:grid;place-items:center;width:40px;height:40px}.ux-sidebar-toggle svg{width:21px;height:21px;stroke:currentColor;fill:none}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 html.nexo-ux.nexo-identity.nexo-orbit #workspace{grid-template-columns:244px minmax(0,1fr) 244px!important;gap:12px!important;grid-template-rows:64px minmax(0,1fr)!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace:is(.members-list-closed,.discovering,.staff-tools-active,.nexo-inbox){grid-template-columns:244px minmax(0,1fr)!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace.ux-sidebar-collapsed{grid-template-columns:0 minmax(0,1fr) 244px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace.ux-sidebar-collapsed:is(.members-list-closed,.discovering,.staff-tools-active,.nexo-inbox){grid-template-columns:0 minmax(0,1fr)!important}
 .nexo-ux #workspace.ux-sidebar-collapsed>.sidebar{visibility:hidden;pointer-events:none;min-width:0!important;overflow:hidden!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace>.server-rail{min-height:64px!important;max-height:64px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .server-rail .nexo-nav-button{font-size:13px!important;min-height:40px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace #channel-list :is(.channel-button,.dm-channel,.staff-system-nav){font-size:13px!important;min-height:38px!important;padding:8px 10px!important}
 .nexo-ux #workspace .members-panel{font-size:13px}
}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 .nexo-ux #workspace .orbit-mobile-dock .ux-original-phone-nav{display:none!important}
 .nexo-ux .ux-phone-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:4px}
 .nexo-ux .ux-phone-navigation .ux-nav-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;width:100%;padding:5px 1px;border:0;border-radius:12px;background:transparent;color:#b5c7da;font-size:10px;font-weight:650;box-shadow:none}
 .nexo-ux .ux-nav-button svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.8;fill:none;flex:none}
 .nexo-ux .ux-nav-button[aria-current=page]{background:#223e58!important;color:#ffda8b!important}
 .nexo-ux .ux-count{position:absolute;top:2px;right:8px;padding:2px 5px;border-radius:10px;background:#cf304d;color:white;font-size:10px}
 .nexo-ux .ux-discover-links{display:flex}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .orbit-mobile-dock{height:calc(64px + env(safe-area-inset-bottom))!important;z-index:85!important}
 .nexo-ux #workspace :is(.sidebar button,.chat-header button,.composer-area button,.member-heading button,.phone-account-controls button){min-height:44px!important;min-width:44px!important}
 .nexo-ux #workspace .sidebar{padding-bottom:8px!important}
 .nexo-ux #workspace #channel-list{scrollbar-width:thin}
 .nexo-ux #workspace #channel-description{display:none!important}
 .nexo-ux #workspace #message-input{font-size:16px!important}
 .nexo-ux #workspace .home-news-shelf article{padding:18px!important}
 .nexo-ux #account-dialog.organized-settings{width:calc(100vw - 16px)!important;height:calc(var(--nexo-visual-height,100dvh) - 16px)!important;max-height:calc(var(--nexo-visual-height,100dvh) - 16px)!important;padding:20px 14px 0!important}
 .nexo-ux #account-dialog .account-layout{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important;gap:12px!important}
 .nexo-ux #account-dialog .account-sidebar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));max-height:174px;gap:6px;border:0!important;padding:0 0 10px!important;overflow:auto!important}
 .nexo-ux #account-dialog .settings-search{grid-column:1/-1;margin:0}.nexo-ux #account-dialog .settings-search-status{grid-column:1/-1;margin:0}
 .nexo-ux #account-dialog .settings-category{display:none!important}
 .nexo-ux #account-dialog .settings-nav-item{width:100%!important;white-space:normal;min-width:0!important;font-size:13px!important;padding:10px!important}
 .nexo-ux #account-dialog .account-pages{padding-bottom:24px!important}
 .nexo-ux #account-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 .nexo-ux #profile-dialog.profile-organized{width:calc(100vw - 20px)!important;max-height:calc(var(--nexo-visual-height,100dvh) - 20px)!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .nexo-ux #profile-dialog.profile-organized :is(.full-profile-layout,.full-profile-identity,.full-profile-details,.profile-card-content){max-height:none!important;overflow:visible!important;height:auto!important}
 .nexo-ux #profile-dialog.profile-organized .full-profile-layout{display:flex!important;flex-direction:column}
 .nexo-ux #profile-dialog.profile-organized .profile-card-content{padding:12px 16px 20px!important}
 .nexo-ux #profile-dialog.profile-organized .card-banner{height:120px!important;flex:none}
 .nexo-ux #profile-dialog.profile-organized .profile-section-tabs{position:relative!important;width:100%!important;box-sizing:border-box;padding:8px!important}
 .nexo-ux #profile-dialog.profile-organized .full-profile-details{padding:14px!important}
 .nexo-ux dialog:not(.pool-dialog):not(.prism-rally-dialog){max-width:calc(100vw - 16px);scroll-padding-top:58px}
}
@media(prefers-reduced-motion:reduce){.nexo-ux :is(.server-rail,.sidebar,.chat,.members-panel,#account-dialog,#profile-dialog) *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}
.nexo-ux #account-dialog .account-facts span{font-size:12px!important;color:#afc1d3!important}
.nexo-ux #account-dialog .account-facts b{font-size:14px!important}
.nexo-ux #account-dialog .settings-search-status{display:block;min-height:20px}
.nexo-ux #account-dialog .settings-search-status[hidden]{display:none!important}
@media(min-width:761px) and (max-width:1100px) and (hover:hover) and (pointer:fine){
 html.nexo-ux.nexo-identity.nexo-orbit #workspace{grid-template-columns:218px minmax(0,1fr)!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace>.server-rail{gap:5px!important;padding-inline:8px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .server-rail .nexo-nav-button{font-size:12px!important;padding-inline:7px!important}
 .nexo-ux .server-rail .orbit-brand-caption{display:none!important}
}
/* Override inherited compact-profile limits without changing cosmetic dimensions. */
html.nexo-ux.nexo-identity #profile-dialog.profile-organized :is(button,a[role=button]){min-height:44px!important;min-width:44px!important}
html.nexo-ux.nexo-identity #profile-dialog.profile-organized :is(.phone-profile-actions,.profile-card-content) button{font-size:13px!important;line-height:1.4!important}
html.nexo-ux.nexo-identity #profile-dialog.profile-organized .profile-card-details{max-height:none!important}
html.nexo-ux.nexo-identity #profile-dialog.profile-organized .phone-profile-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-ux.nexo-identity #profile-dialog.profile-organized{max-height:calc(var(--nexo-visual-height,100dvh) - 20px)!important;overflow-y:auto!important}
 html.nexo-ux.nexo-identity #profile-dialog.profile-organized :is(.full-profile-layout,.full-profile-identity,.full-profile-details,.profile-card-content){max-height:none!important;height:auto!important;overflow:visible!important}
 html.nexo-ux.nexo-identity :is(#notifications-dialog,#server-control-dialog,#account-dialog,dialog.extras-dialog) :is(button,a.secondary){min-height:44px!important;min-width:44px!important}
 html.nexo-ux.nexo-identity #profile-dialog.profile-organized .profile-section-tabs :is(button,[role=tab]){min-height:44px!important;font-size:14px!important}
}
.nexo-ux #workspace .social-community-shelf:empty{display:none!important}
.nexo-ux #workspace .home-news-shelf svg{fill:none!important;stroke:currentColor!important;stroke-width:1.7;color:#f2ca76}
.nexo-ux #workspace .social-community-shelf{min-height:124px!important;min-block-size:max-content!important;align-self:start;flex-shrink:0;overflow-x:auto;overflow-y:hidden;padding-top:8px!important}
html.nexo-ux[data-theme=light] #workspace .home-news-shelf article{background:#f1f6fb!important;border-color:#bccddd!important;color:#18334b}
html.nexo-ux[data-theme=light] #workspace .home-news-shelf p{color:#465e72!important}
html.nexo-ux[data-theme=light] #workspace :is(.composer-area,#message-form){background:#f1f6fb!important;color:#18334b}
html.nexo-ux.nexo-identity #profile-dialog.profile-organized #expand-profile{min-height:44px!important;font-size:13px!important}
.nexo-ux #workspace .staff-system-page .staff-link-copy b{font-size:14px!important}
.nexo-ux #workspace .staff-system-page .staff-link-copy small{font-size:13px!important;line-height:1.5!important}
.nexo-ux #workspace .staff-system-page .staff-workspace-group h3{font-size:12px!important;letter-spacing:.08em}
.nexo-ux #workspace .staff-system-page .staff-metric>span:not(.staff-cube){font-size:13px!important;color:#b7c9da}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-ux.nexo-identity #edit-dialog :is(button,input:not([type=checkbox]),select){min-height:44px!important}
 html.nexo-ux.nexo-identity #edit-dialog :is(input,textarea,select){font-size:16px!important}
}
/* Size every feed track to its content; overflowing community icons must not share space with news cards. */
html.nexo-ux.nexo-identity.nexo-orbit #workspace .nexo-news-feed{grid-template-rows:none!important;grid-auto-rows:max-content!important}
html.nexo-ux.nexo-identity.nexo-orbit #workspace .social-community-shelf:not(:empty){min-height:124px!important;height:auto!important;max-height:none!important;align-self:start;box-sizing:border-box}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .sidebar>.nexo-spaces-strip{height:auto!important;min-height:88px!important;max-height:100px!important;padding:8px 10px!important}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .sidebar #server-list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;height:56px!important;min-height:56px!important;max-height:56px!important;padding:8px 2px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;box-sizing:border-box}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .sidebar #server-list .rail-button{flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:4px!important;box-sizing:border-box}
 html.nexo-ux.nexo-identity.nexo-orbit #workspace .sidebar #server-list .nexo-space-name{display:none!important}
}
