/* Omni - Friends / Social contextual navigation and scrollbar controls.
   Intentionally matches the neutral, matte liquid-glass channel controls. */
#appShell .global-navigation{border-right:0!important;}
/* Always retain the panoramic top image/neutral background behind Friends.
   Requests, Notifications, Invites and Search already use this same strip. */
#appShell .chat-column:has(> #friendsPanel:not([hidden]))::after{
 content:"";position:absolute;top:0;left:0;right:0;height:68px;
 z-index:9;pointer-events:none;background:rgba(17,17,19,.30);
}
#appShell.nexo-custom-banner .chat-column:has(> #friendsPanel:not([hidden]))::after{
 background-color:var(--nexo-banner-color,rgba(17,17,19,.30));
 background-image:linear-gradient(100deg,rgba(11,15,21,.37),rgba(11,15,21,.42)),var(--nexo-banner-image,none);
 background-repeat:no-repeat;
 background-size:100% 100%,var(--nexo-banner-span) auto;
 background-position:0 0,calc(-1 * var(--nexo-banner-nav-width)) center;
}
#appShell .chat-column:has(> #friendsPanel:not([hidden])) > .chat-topbar .topbar-actions
  > :is(#inviteCurrentChatButton,#searchHistoryButton){display:none!important;}
#appShell .chat-column:has(> #friendsPanel:not([hidden])) > .chat-topbar {
 top:15px!important;right:19px!important;
}
/* Keep one flat integrated icon, not an elevated 3D floating block. */
#appShell:not(.nexo-video-fullscreen) .chat-column > .chat-topbar .topbar-actions #membersButton:not([hidden]){
 display:inline-flex!important;align-items:center;justify-content:center;
 min-width:37px;height:37px;padding:0 9px!important;
 color:#dfe5e7!important;
 background:rgba(255,255,255,.055)!important;
 background-image:none!important;
 box-shadow:none!important;
 border:1px solid rgba(255,255,255,.14)!important;
 border-radius:10px;
 text-shadow:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 transition:background .15s,border-color .15s;
}
#appShell:not(.nexo-video-fullscreen) .chat-column > .chat-topbar .topbar-actions #membersButton:hover,
#appShell:not(.nexo-video-fullscreen) .chat-column > .chat-topbar .topbar-actions #membersButton:focus-visible{
 border-color:color-mix(in srgb,var(--nexo-custom-accent,#e0e0e7) 40%,rgba(255,255,255,.17))!important;
 background:rgba(255,255,255,.12)!important;
 box-shadow:none!important;
}
#appShell .friends-panel{
 padding-top:calc(68px + 22px);
}
#appShell .friends-panel-header{
 border-bottom-color:rgba(255,255,255,.11);
}
#appShell .friends-panel-header h2{
 font-size:26px;font-weight:660;
}
#appShell .friends-tabs{
 align-items:center;
 padding:14px 0;
}
#appShell .friends-tabs .nexo-friends-inline-search-toggle{
 margin-left:auto;
 width:34px;height:34px;min-width:34px;
 padding:6px;
 display:grid;place-items:center;
 background:rgba(255,255,255,.06);
 border:1px solid rgba(255,255,255,.12);
 border-radius:10px;
 color:#d4d8dc;
 cursor:pointer;
}
#appShell .friends-tabs .nexo-friends-inline-search-toggle:hover,
#appShell .friends-tabs .nexo-friends-inline-search-toggle[aria-expanded="true"]{
 background:color-mix(in srgb,var(--nexo-custom-accent,#c2c4d1) 11%,rgba(255,255,255,.09));
 border-color:color-mix(in srgb,var(--nexo-custom-accent,#d3d5de) 46%,rgba(255,255,255,.14));
 color:#f7f8fa;
}
#appShell .nexo-friends-inline-search-toggle svg{width:18px;height:18px;}
#appShell .nexo-friends-inline-search-box[hidden]{display:none!important;}
#appShell .nexo-friends-inline-search-box{
 display:flex;align-items:center;gap:8px;
 margin:9px 0 12px auto;
 width:min(360px,100%);
 min-height:40px;
 padding:4px 8px;
 border:1px solid rgba(255,255,255,.19);
 background:rgba(255,255,255,.07);
 border-radius:11px;
}
#appShell .nexo-friends-inline-search-box label{
 position:absolute;width:1px;height:1px;overflow:hidden;
 clip:rect(0 0 0 0);white-space:nowrap;
}
#appShell .nexo-friends-inline-search-box input{
 background:transparent;border:0;outline:none;min-width:0;flex:1;
 color:#f3f5f8;font:500 12px/1.5 'Segoe UI',sans-serif;
}
#appShell .nexo-friends-inline-search-box input::placeholder{color:#92999f;}
#appShell .nexo-friends-inline-search-box button{
 background:transparent;border:0;color:#aeb5b9;
 min-width:24px;min-height:28px;cursor:pointer;
 border-radius:7px;font-size:19px;line-height:1;
}
#appShell .nexo-friends-inline-search-box button:hover{background:rgba(255,255,255,.13);}
#appShell .nexo-social-members-toggle{
 min-width:38px;max-width:42px;height:38px;padding:8px;
 display:grid;place-items:center;
 border:1px solid rgba(236,249,242,.18);
 background:rgba(235,241,239,.065);
 box-shadow:none;
 border-radius:10px;
}
#appShell .nexo-social-members-toggle svg{width:18px;height:18px;}
#appShell .nexo-social-members-toggle:hover{
 background:rgba(250,252,250,.12);
 border-color:color-mix(in srgb,var(--nexo-custom-accent,#e5e6ec) 36%,rgba(255,255,255,.13));
}
/* Search scroll controls are anchored to the bottom of the CENTER column.
   The arrows disappear separately at the scroll limits. */
#appShell .chat-column > .nexo-social-scroll-controls{
 position:absolute;z-index:30;
 display:flex;flex-direction:column;align-items:center;gap:6px;
 right:14px;bottom:16px;
 pointer-events:none;
}
#appShell .chat-column > .nexo-social-scroll-controls[hidden],
#appShell .chat-column > .nexo-social-scroll-controls > button[hidden]{
 display:none!important;
}
#appShell .chat-column > .nexo-social-scroll-controls > .nexo-social-scroll-arrow {
 position:relative!important;top:auto!important;right:auto!important;
 display:grid;place-items:center;pointer-events:auto;
 width:29px;height:30px;padding:5px;
 color:#d9dce2;
 border:1px solid rgba(255,255,255,.13);
 border-radius:9px;
 background:rgba(21,24,29,.35);
 box-shadow:none;
 backdrop-filter:blur(18px);
 -webkit-backdrop-filter:blur(18px);
 cursor:pointer;
}
#appShell .chat-column > .nexo-social-scroll-controls .nexo-social-scroll-arrow svg{width:15px;height:15px;}
#appShell .chat-column > .nexo-social-scroll-controls > .nexo-social-scroll-arrow:hover{
 color:var(--nexo-custom-accent,#ffffff);
 border-color:color-mix(in srgb,var(--nexo-custom-accent,#f4f4f7) 43%,rgba(255,255,255,.16));
 background:rgba(255,255,255,.105);
}
/* Scroll track stays completely invisible, scrolling remains normal. */
#appShell .nexo-social-page{scrollbar-width:none!important;}
#appShell .nexo-social-page::-webkit-scrollbar{display:none!important;width:0!important;}
html[data-nexo-theme="light"] #appShell .nexo-friends-inline-search-box input {color:#253143;}
html[data-nexo-theme="light"] #appShell .nexo-social-scroll-arrow {color:#344052;}
@media(max-width:760px){
 #appShell .chat-column:has(> #friendsPanel:not([hidden]))::after{height:60px;}
 #appShell .friends-panel{padding-top:calc(60px + 18px);}
 #appShell .nexo-social-page .nexo-social-head .nexo-social-members-toggle{
   margin-left:auto;
 }
 #appShell .chat-column > .nexo-social-scroll-controls{right:8px;bottom:9px;}
}

/* Override the more-specific legacy floating-button rules. */
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))):not(:has(> #nexoSocialCenter:not([hidden]))):has(> #friendsPanel:not([hidden]))
 > .chat-topbar .topbar-actions > :is(#inviteCurrentChatButton,#searchHistoryButton):not([hidden]){
 display:none!important;
}
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))):not(:has(> #nexoSocialCenter:not([hidden])))
 > .chat-topbar .topbar-actions > #membersButton:not([hidden]){
 background:rgba(255,255,255,.055)!important;
 background-image:none!important;
 box-shadow:none!important;
 border-color:rgba(255,255,255,.14)!important;
 text-shadow:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))):not(:has(> #nexoSocialCenter:not([hidden])))
 > .chat-topbar .topbar-actions > #membersButton:not([hidden]):hover{
 background:rgba(255,255,255,.12)!important;
 box-shadow:none!important;
}
