.nord-apps-wrap[hidden]{display:none!important}
/* Nord Apps launcher. Isolated from existing profile/notification styles. */
#workspaceRail #railAdminPortal.nord-admin-launch-action{display:none!important}
#workspaceRail #railQuickApp{display:grid;place-items:center}
#workspaceRail #railQuickApp.nord-quick-empty{opacity:.8}
#appShell .nord-apps-tile-wrap{position:relative;min-width:0}
#appShell .nord-apps-quick-select{position:absolute;right:5px;top:5px;z-index:2;display:grid;place-items:center;width:26px;height:26px;background:var(--surface-2,#303747);color:var(--accent,#8995ff);border:1px solid var(--border,#404656);border-radius:50%;cursor:pointer}
#appShell .nord-apps-quick-select:hover{background:var(--accent-soft,#414770)}

.nord-apps-wrap{position:relative;display:flex;align-items:center;flex-shrink:0;z-index:70}
.nord-apps-trigger{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--border,#293241);border-radius:15px;background:var(--surface,#151b27);color:var(--text,#ecf1ff);font-size:19px;cursor:pointer;transition:background .16s,border-color .16s}
.nord-apps-trigger:hover,.nord-apps-trigger[aria-expanded="true"]{background:rgba(112,126,255,.15);border-color:#7685f3}
.nord-apps-trigger:focus-visible,.nord-apps-dropdown button:focus-visible{outline:2px solid #8995ff;outline-offset:2px}
.nord-apps-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(355px,calc(100vw - 24px));max-height:min(530px,70vh);overflow:hidden;display:flex;flex-direction:column;padding:13px;background:var(--surface,#161c27);border:1px solid var(--border,#303948);border-radius:17px;box-shadow:0 22px 70px rgba(0,0,0,.4);color:var(--text,#eaf0fc);z-index:900}
.nord-apps-dropdown[hidden]{display:none!important}
.nord-apps-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 5px 12px}.nord-apps-top strong{font-size:15px}.nord-apps-count{color:var(--muted,#aab3c7);font-size:12px}
.nord-apps-search{width:100%;height:38px;border:1px solid var(--border,#343c4c);border-radius:10px;background:rgba(120,135,165,.08);color:inherit;padding:0 12px;outline:none}.nord-apps-search:focus{border-color:#7685f3}
.nord-apps-list{overflow:auto;padding:10px 2px;display:grid;gap:5px;scrollbar-width:thin}
.nord-apps-item{display:flex;width:100%;gap:11px;align-items:center;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent;color:inherit;padding:10px;cursor:pointer}
.nord-apps-item:hover{background:rgba(115,128,255,.13);border-color:rgba(115,128,255,.19)}
.nord-apps-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:rgba(113,126,255,.17);color:#a1a9ff;font-size:17px}
.nord-apps-item-copy{flex:1;min-width:0}.nord-apps-item-copy strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nord-apps-item-copy small{display:block;color:var(--muted,#aab3c7);font-size:11px;margin-top:3px}
.nord-apps-empty{padding:25px 10px;text-align:center;color:var(--muted,#aab3c7);font-size:13px}
.nord-apps-overlay{position:fixed;inset:0;z-index:15000;background:var(--bg,#0e121b);display:flex;flex-direction:column}
.nord-apps-overlay[hidden]{display:none!important}
.nord-apps-overlay-bar{height:59px;flex-shrink:0;background:var(--surface,#171c29);border-bottom:1px solid var(--border,#303948);display:flex;align-items:center;gap:12px;padding:0 17px}
.nord-apps-overlay-title{font-size:14px;font-weight:750;flex:1}.nord-apps-close{border:1px solid var(--border,#303948);border-radius:10px;background:transparent;color:inherit;padding:8px 12px;cursor:pointer}
.nord-apps-frame{flex:1;width:100%;border:0;background:#111419}
@media(max-width:600px){.nord-apps-trigger{width:40px;height:40px;border-radius:12px}.nord-apps-dropdown{right:-55px}}

/* Topbar slot is conditional: never override the hidden attribute. */
#appShell .nord-topbar > #nordAppsWrap:not([hidden]){display:flex;align-items:center;justify-self:end;flex:0 0 auto;min-width:40px;position:relative;z-index:101}
#appShell .nord-topbar #nordAppsTrigger{display:grid;opacity:1;pointer-events:auto}
@media(max-width:1024px){
  #appShell .nord-main > .nord-topbar{grid-template-columns:44px minmax(0,1fr) 44px 44px!important}
  body.nord-nexus-active #appShell .nord-main > .nord-topbar{grid-template-columns:44px minmax(0,1fr) 44px 44px 44px!important}
  #appShell .nord-topbar > #nordAppsWrap:not([hidden]){grid-column:3!important;grid-row:1!important;width:44px;min-width:44px;max-width:44px;justify-self:end}
  #appShell .nord-topbar > #nordAppsWrap #nordAppsTrigger{width:44px;height:44px;min-width:44px}
  #appShell .nord-topbar #nordAccountMenuWrap{grid-column:4!important}
  body.nord-nexus-active #appShell .nord-topbar #nxTopbarNotifications{grid-column:4!important}
  body.nord-nexus-active #appShell .nord-topbar #nordAccountMenuWrap{grid-column:5!important}
}
@media(max-width:450px){
  #appShell .nord-main > .nord-topbar{gap:5px!important;padding-left:8px!important;padding-right:8px!important}
  #appShell .nord-apps-dropdown{right:-48px}
}

/* Nexus desktop topbar: Nexus uses fixed-position notifications and account.
   Keep all three actions in dedicated non-overlapping slots. */
@media (min-width:1025px){
  body.nord-nexus-active #appShell .nord-topbar > #nordAppsWrap:not([hidden]){
    position:fixed!important;
    top:17px!important;
    right:82px!important;
    left:auto!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    visibility:visible!important;
    pointer-events:auto!important;
    z-index:170!important;
  }
  body.nord-nexus-active #appShell .nord-topbar > #nordAppsWrap .nord-apps-dropdown[hidden]{
    display:none!important;
  }
  body.nord-nexus-active #appShell .nord-topbar #nordAccountMenuWrap{
    right:148px!important;
  }
  body.nord-nexus-active #appShell .nord-topbar:has(#nordAppsWrap[hidden]) #nordAccountMenuWrap{
    right:82px!important;
  }
  body.nord-nexus-active #appShell .nord-topbar #nxTopbarNotifications{
    right:20px!important;
  }
}
/* On mobile, never inherit any fixed-position desktop Nexus action slots. */
@media (max-width:1024px){
  body.nord-nexus-active #appShell .nord-topbar > #nordAppsWrap:not([hidden]){
    position:relative!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    height:44px!important;
    z-index:101!important;
  }
}

/* Nord App Launcher — square grid, consistent icon sizes, favorites. */
#appShell #nordAppsDropdown.nord-apps-dropdown{
 width:min(368px,calc(100vw - 24px));
 max-height:min(590px,calc(100dvh - 92px));
 padding:15px 13px 12px;
 border-radius:21px;
 box-shadow:0 24px 65px rgba(0,0,0,.38);
}
#appShell .nord-apps-top{padding:3px 5px 10px;gap:8px;flex-wrap:wrap}
#appShell .nord-apps-top strong{font-size:16px;font-weight:800;flex:1;white-space:nowrap}
#appShell .nord-apps-count{display:none}
#appShell .nord-apps-edit{
 border:0;border-radius:50px;padding:8px 13px;min-width:68px;
 background:var(--surface-2,rgba(130,141,163,.2));
 color:var(--text,#f2f5ff);font-size:12px;font-weight:700;cursor:pointer
}
#appShell .nord-apps-edit:hover{background:var(--accent-soft,rgba(114,131,255,.25))}
#appShell .nord-apps-search{height:40px;font-size:12px;border-radius:12px;margin:3px 0 8px;flex:0 0 40px}
#appShell .nord-apps-list{display:block;padding:0 1px 8px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
#appShell .nord-apps-section{padding:3px 0 13px}
#appShell .nord-apps-section+.nord-apps-section{border-top:1px solid var(--border,rgba(255,255,255,.08));padding-top:12px}
#appShell .nord-apps-section h3{
 color:var(--muted,#b5bdcb);font-size:11px;font-weight:800;text-transform:none;
 letter-spacing:.02em;margin:4px 7px 9px
}
#appShell .nord-apps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 4px}
#appShell .nord-apps-grid .nord-apps-item{
 position:relative;min-width:0;width:100%;height:110px;min-height:110px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:10px;padding:11px 5px;border:1px solid transparent;border-radius:15px;
 text-align:center;background:transparent;box-shadow:none;
}
#appShell .nord-apps-grid .nord-apps-item:hover,#appShell .nord-apps-grid .nord-apps-item:focus-visible{
 background:var(--surface-2,rgba(110,125,157,.15));border-color:var(--border,rgba(255,255,255,.09))
}
#appShell .nord-apps-grid .nord-apps-icon{
 display:grid;place-items:center;
 flex:0 0 52px;width:52px;height:52px;min-width:52px;min-height:52px;
 border-radius:16px;background:var(--accent-soft,rgba(111,127,255,.14));
 color:var(--accent,#8799ff);font-size:25px;line-height:1
}
#appShell .nord-apps-grid .nord-apps-icon i{display:block;font-size:25px;line-height:1}
#appShell .nord-apps-grid .nord-apps-item-copy{width:100%;min-width:0;flex:0 0 auto;display:block}
#appShell .nord-apps-grid .nord-apps-item-copy strong{
 display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font-size:11.5px;line-height:1.4;font-weight:650
}
#appShell .nord-apps-fav-mark{
 position:absolute;right:8px;top:7px;display:grid;place-items:center;
 width:24px;height:24px;border-radius:50%;background:var(--surface-3,var(--surface-2,#303542));
 color:var(--accent,#8799ff);font-size:11px;box-shadow:0 1px 4px rgba(0,0,0,.2)
}
#appShell .nord-apps-empty{padding:22px 12px;font-size:12px;line-height:1.6}
@media(max-width:420px){
 #appShell #nordAppsDropdown.nord-apps-dropdown{width:min(342px,calc(100vw - 16px));padding:11px}
 #appShell .nord-apps-grid .nord-apps-item{height:100px;min-height:100px}
 #appShell .nord-apps-grid .nord-apps-icon{width:48px;height:48px;min-width:48px;min-height:48px;flex-basis:48px}
}

/* Final fail-closed visibility gate, including mobile and Nexus !important layout overrides. */
#appShell .nord-topbar > #nordAppsWrap[hidden],
body.nord-nexus-active #appShell .nord-topbar > #nordAppsWrap[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important;width:0!important;min-width:0!important;height:0!important;margin:0!important;padding:0!important}
@media(max-width:1024px){
 #appShell .nord-main > .nord-topbar:has(> #nordAppsWrap[hidden]){grid-template-columns:44px minmax(0,1fr) 44px!important}
 body.nord-nexus-active #appShell .nord-main > .nord-topbar:has(> #nordAppsWrap[hidden]){grid-template-columns:44px minmax(0,1fr) 44px 44px!important}
 #appShell .nord-topbar:has(> #nordAppsWrap[hidden]) #nordAccountMenuWrap{grid-column:3!important}
 body.nord-nexus-active #appShell .nord-topbar:has(> #nordAppsWrap[hidden]) #nxTopbarNotifications{grid-column:3!important}
 body.nord-nexus-active #appShell .nord-topbar:has(> #nordAppsWrap[hidden]) #nordAccountMenuWrap{grid-column:4!important}
}

/* Entitled app whose web frontend is not installed: visible, never clickable. */
#appShell .nord-apps-grid .nord-apps-item--disabled,
#appShell .nord-apps-grid .nord-apps-item--disabled:hover{opacity:.55;cursor:not-allowed;background:transparent;border-color:transparent}
