/* Nexo operations: consistent navy surfaces, gold accents, and clear hierarchy. */
#workspace.staff-tools-active .staff-system-page{background:#0b1e30!important;color:#edf3fc!important;min-width:0}
.staff-system-page .staff-system-body{padding:24px!important;display:grid;gap:20px;max-width:1440px;margin:auto;width:100%;box-sizing:border-box}
.staff-system-page .staff-system-header{padding:14px 24px!important;background:#112a40!important;border-bottom:1px solid #304b62;gap:10px;flex-wrap:wrap}
.staff-system-page .staff-system-header>div{letter-spacing:.14em;font-size:10px;color:#d9bc79}
.staff-system-page .staff-system-card,.staff-system-page .workforce-card,.staff-system-page .staff-workspace-group{margin:0!important;border:1px solid #304b62!important;border-radius:16px!important;background:#122b42!important;box-shadow:none!important;padding:22px!important;min-width:0}
.staff-system-page .staff-overview-hero{background:linear-gradient(115deg,#1c3b58,#11293f)!important;border-top:2px solid #d7b665!important;padding:26px!important}
.staff-system-page .staff-overview-hero h2{font-size:28px!important;letter-spacing:-.7px;margin:8px 0 12px!important}
.staff-system-page .staff-overview-hero p{max-width:720px;margin-bottom:0!important;color:#b9c9d9!important}
.staff-system-page .staff-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;margin:0!important}
.staff-system-page .staff-metric{min-height:124px!important;border:1px solid #304b62!important;border-radius:14px!important;background:#122b42!important;padding:18px!important;text-align:left}
.staff-system-page .staff-metric strong{font-size:25px!important;color:#f2d28a!important}
.staff-system-page .staff-metric>span:not(.staff-cube){font-size:11px;color:#a7bdcf}
.staff-system-page .staff-workspace-groups{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important}
.staff-system-page .staff-workspace-group h3{font-size:11px!important;letter-spacing:.1em;text-transform:uppercase;color:#dfc17f!important;margin:0 0 14px!important}
.staff-system-page .staff-workspace-link{display:flex!important;align-items:center;gap:12px;width:100%;padding:12px 0!important;border-radius:0!important;border-bottom:1px solid #29435a!important;background:transparent!important;min-height:70px!important;color:#edf3fc!important;text-align:left}
.staff-system-page .staff-workspace-link:last-child{border-bottom:0!important}.staff-system-page .staff-link-copy{min-width:0;flex:1}.staff-system-page .staff-link-copy b{font-size:13px}.staff-system-page .staff-link-copy small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#a3b9cc}.staff-system-page .staff-cube{width:36px!important;height:36px!important;flex:0 0 36px!important;display:inline-grid;place-items:center;border:1px solid #365570!important;border-radius:10px!important;background:#1b3852!important;color:#e7c578!important}.staff-cube svg{width:18px;height:18px}
.staff-system-page .staff-approval-summary{border-left:3px solid #e5c475!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;align-items:center}.staff-approval-summary h2,.staff-approval-summary p,.staff-approval-summary small{grid-column:1}.staff-approval-summary button{grid-column:2;grid-row:1/4;min-height:44px}.staff-approval-summary small{color:#a7bdcf;line-height:1.5}.staff-approval-section{min-width:0;display:grid;gap:16px}
.staff-system-page .staff-search{display:flex;align-items:end;gap:12px;margin:0!important}.staff-search>label{flex:1;margin:0!important}.staff-search button{min-height:44px}.staff-search-results{display:grid;gap:8px}.staff-person-result{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:16px!important;min-height:54px;border:1px solid #365570!important;border-radius:12px!important}.staff-person-result small{font-size:11px;color:#b9cbd8}.staff-empty{padding:22px;border:1px dashed #3a5870;border-radius:12px;color:#afc2d2;line-height:1.6;margin:0}
.staff-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.staff-system-page label.staff-permission-toggle{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:14px;padding:14px;margin:0!important;border:1px solid #365570;border-radius:10px;min-height:48px}.staff-permission-toggle input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;width:38px!important;min-width:38px!important;height:22px!important;min-height:22px!important;border:1px solid #60788d!important;border-radius:20px!important;padding:2px!important;margin:0!important;background:#0a1c2d!important;cursor:pointer;box-shadow:none!important}.staff-permission-toggle input::before{content:'';display:block;width:16px;height:16px;border-radius:50%;background:#a8b8c6;transition:transform .15s}.staff-permission-toggle input:checked{background:#e0be70!important}.staff-permission-toggle input:checked::before{transform:translateX(15px);background:#102a40}.staff-permission-toggle input:focus-visible{outline:2px solid #f3dc9b!important;outline-offset:3px}
#workspace.staff-tools-active .staff-nav-heading{font:700 9px/1.5 system-ui;letter-spacing:.13em;color:#a9bacb;margin:18px 10px 7px}#workspace.staff-tools-active .staff-system-nav{display:flex!important;align-items:center;gap:10px;min-height:44px!important;padding:7px 10px!important;margin:2px 0!important;border-radius:10px!important;font-size:12px!important}#workspace.staff-tools-active .staff-system-nav .staff-cube{width:28px!important;height:28px!important;flex-basis:28px!important;background:transparent!important;border:0!important}
#workspace.staff-channel-view .sidebar-header{background:#142e46!important;border-bottom:1px solid #3c5870!important}#workspace.staff-channel-view .channel-category{margin-top:18px!important;color:#e4c47f!important}#workspace.staff-channel-view .channel-button{min-height:42px;border-radius:10px!important;margin:3px 0!important}#workspace.staff-channel-view .channel-button.selected{background:#21435f!important;box-shadow:inset 3px 0 #e7c578!important;color:#f4d58c!important}
@media(max-width:1100px){.staff-system-page .staff-workspace-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-system-page .staff-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.staff-system-page .staff-system-body{padding:14px!important;gap:14px}.staff-system-page .staff-system-header{padding:10px 14px!important}.staff-system-page .staff-system-header>div{width:100%;order:-1}.staff-system-page .staff-system-card,.staff-system-page .workforce-card,.staff-system-page .staff-workspace-group{padding:16px!important}.staff-system-page .staff-workspace-groups,.staff-permission-grid{grid-template-columns:minmax(0,1fr)}.staff-system-page .staff-overview-hero h2{font-size:24px!important}.staff-system-page .staff-metric{min-height:112px!important;padding:14px!important}.staff-system-page .staff-approval-summary{display:flex;flex-direction:column;align-items:stretch}.staff-person-result{flex-direction:column;align-items:start}.staff-system-page .staff-search{flex-wrap:wrap}.staff-search>label{flex-basis:100%}.staff-search button{width:100%}}
/* Keep ordinary phone dialogs inside the visible viewport, including an open keyboard. */
@media(max-width:760px),(pointer:coarse) and (max-height:600px){
 html.nexo-identity:not(.pool-landscape-fallback) body dialog:not(#pool-game-app){position:fixed!important;top:calc(var(--nexo-visual-top,0px) + env(safe-area-inset-top,0px) + 12px)!important;bottom:auto!important;left:0!important;right:0!important;margin:0 auto!important;max-height:calc(var(--nexo-visual-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)!important;max-width:calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px)!important;box-sizing:border-box!important;overflow-y:auto!important;overscroll-behavior:contain;transform:none!important;animation:none!important;scroll-padding-top:48px}
 html.nexo-identity:not(.pool-landscape-fallback) body dialog:not(#pool-game-app)>.modal-close{position:sticky!important;float:right;top:0!important;right:0!important;z-index:25;min-width:36px;min-height:36px}
 html.nexo-identity #incoming-popup.incoming-popup{top:calc(var(--nexo-visual-top,0px) + env(safe-area-inset-top,0px) + 12px)!important;max-height:calc(var(--nexo-visual-height,100dvh) - 24px);overflow-y:auto}
}

#workspace.staff-channel-view .channel-category:empty{display:none}#workspace.staff-channel-view .channel-category{padding-bottom:12px;border-bottom:1px solid #2f4b613d}#workspace.staff-channel-view .channel-category:last-child{border-bottom:0}

/* The owner dashboard hosts the original controls and their existing permission checks. */
.staff-owner-centre>.management-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;margin-top:18px}.staff-owner-centre .owner-control-group{padding:16px!important;margin:0!important;min-width:0;border:1px solid #365570!important;border-radius:12px!important;background:#0c2135!important}.staff-owner-centre .management-category-heading{display:flex;align-items:center;gap:9px;font-size:12px!important;color:#e4c47f!important;margin:0 0 12px!important}.staff-owner-centre .management-category-heading svg{width:18px;height:18px;flex-shrink:0}.staff-owner-centre .management-tool-button{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;text-align:left;padding:12px!important;margin:7px 0!important;border:1px solid #365570!important;border-radius:9px!important;background:#19354e!important;color:#edf3fc!important;font-size:12px!important;white-space:normal}.staff-owner-centre .management-tool-icon{width:18px;height:18px;flex:0 0 18px}.staff-owner-centre .staff-tool-filtered,.staff-owner-centre .staff-dashboard-duplicate,.staff-owner-centre button[hidden]{display:none!important}
@media(max-width:700px){.staff-owner-centre>.management-tools{grid-template-columns:minmax(0,1fr)}}

#workspace .staff-owner-centre .staff-tool-filtered,#workspace .staff-owner-centre .staff-dashboard-duplicate,#workspace .staff-owner-centre button[hidden]{display:none!important}

/* Phone controls share a centred icon box instead of inheriting text baselines. */
@media(max-width:760px),(pointer:coarse) and (max-height:600px){
 .nexo-identity :is(.icon-button,.meeting-icon-button,.notice-header-bell,.modal-close){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;padding:0!important;line-height:1!important;box-sizing:border-box;flex-shrink:0}
 .nexo-identity :is(.icon-button,.meeting-icon-button,.notice-header-bell){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 .nexo-identity :is(.icon-button,.meeting-icon-button,.notice-header-bell,.channel-button,.management-tool-button,.staff-workspace-link,.secondary,.primary)>svg{display:block!important;width:20px!important;height:20px!important;min-width:20px;flex:0 0 20px;align-self:center;vertical-align:middle;margin:0!important}
 #workspace :is(.staff-cube,.management-category-heading){display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
 #workspace .staff-cube>svg{display:block!important;position:static!important;width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important;transform:none!important}
 #workspace .staff-workspace-link,#workspace .management-tool-button,#workspace .staff-system-nav{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;line-height:1.4!important}
 #workspace .staff-workspace-link>.staff-cube,#workspace .staff-system-nav>.staff-cube{position:static!important;align-self:center!important;margin:0!important;transform:none!important}
 #workspace .staff-link-arrow{margin-left:auto;line-height:1;align-self:center}.staff-owner-centre .management-category-heading{justify-content:flex-start!important}
 .nexo-identity .orbit-mobile-dock button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;line-height:1.1!important}
 .nexo-identity .orbit-mobile-dock button svg{display:block!important;margin:0!important;width:22px!important;height:22px!important;flex:0 0 22px}
 .nexo-identity .modal-close{font-size:22px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
}
