/* Staging: two quiet top-right controls. Account is the only identity menu;
   Settings stays independent and icon-only. Applies to both navigation modes.
   This sheet is last in <head> so it wins older account/header overrides. */
#gtt-owner-access,#gtt-owner-login,.gtt-owner-access{display:none!important}
#mode-switch{display:none!important} /* password recovery remains at /admin/login */
#wb2-shell .wb2-actions,#gtt-shell-dock .gtt-shell-right{
 align-items:center!important;gap:7px!important
}
#wb2-shell #gtt-accounts.gtt-accounts-anchor,
#gtt-shell-dock #gtt-accounts.gtt-accounts-anchor{
 display:inline-flex!important;align-items:center!important;flex:0 1 auto!important;
 gap:0!important;max-width:min(206px,48vw)!important;margin:0!important
}
#wb2-shell #gtt-accounts > .gtt-accounts-menu-trigger,
#gtt-shell-dock #gtt-accounts > .gtt-accounts-menu-trigger{
 display:none!important
}
#wb2-shell #gtt-accounts > .gtt-accounts-button,
#gtt-shell-dock #gtt-accounts > .gtt-accounts-button{
 box-sizing:border-box!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 flex:0 1 auto!important;width:auto!important;min-width:40px!important;
 max-width:206px!important;height:40px!important;min-height:40px!important;
 gap:9px!important;margin:0!important;padding:4px 13px 4px 5px!important;
 border-radius:12px!important;border:1px solid rgba(163,203,237,.26)!important;
 color:#e4effc!important;background:linear-gradient(135deg,rgba(66,113,170,.16),rgba(21,47,82,.27))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.09)!important;
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
 transition:border-color .17s,background .17s,box-shadow .17s!important
}
#wb2-shell #gtt-accounts > .gtt-accounts-button:is(:hover,[aria-expanded="true"]),
#gtt-shell-dock #gtt-accounts > .gtt-accounts-button:is(:hover,[aria-expanded="true"]){
 border-color:rgba(164,218,253,.58)!important;
 background:linear-gradient(135deg,rgba(82,151,221,.29),rgba(36,81,134,.31))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.15),0 5px 17px rgba(21,74,133,.12)!important
}
#gtt-accounts > .gtt-accounts-button > :is(.gtt-account-avatar,.gtt-accounts-person){
 flex:0 0 28px!important;width:28px!important;min-width:28px!important;
 height:28px!important;min-height:28px!important;max-height:28px!important;
 border-radius:9px!important;background:rgba(112,174,224,.11)!important
}
#gtt-accounts > .gtt-accounts-button > .gtt-account-display-name{
 display:block!important;font-size:12px!important;font-weight:700!important;
 letter-spacing:0!important;min-width:0!important;max-width:155px!important;
 overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important
}
#wb2-shell .wb2-action-settings{
 order:9!important;box-sizing:border-box!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 width:40px!important;min-width:40px!important;max-width:40px!important;
 height:40px!important;min-height:40px!important;flex:0 0 40px!important;
 padding:0!important;gap:0!important;border-radius:12px!important;
 border:1px solid rgba(163,203,237,.26)!important;
 color:#e4effc!important;
 background:linear-gradient(135deg,rgba(66,113,170,.16),rgba(21,47,82,.27))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.09)!important
}
#wb2-shell .wb2-action-settings:hover,#wb2-shell .wb2-action-settings[aria-expanded="true"]{
 border-color:rgba(164,218,253,.58)!important;
 background:linear-gradient(135deg,rgba(82,151,221,.29),rgba(36,81,134,.31))!important
}
#wb2-shell .wb2-action-settings .wb2-settings-label{display:none!important}
#wb2-shell .wb2-action-settings .wb2-settings-icon{width:21px!important;height:21px!important;object-fit:contain!important}
body.gtt-shell-v1 #gtt-shell-dock #v178-settings-toggle{
 box-sizing:border-box!important;width:40px!important;min-width:40px!important;
 max-width:40px!important;height:40px!important;min-height:40px!important;
 padding:0!important;border-radius:12px!important;
 border-color:rgba(163,203,237,.26)!important;
 background:linear-gradient(135deg,rgba(66,113,170,.16),rgba(21,47,82,.27))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.09)!important
}
body.gtt-shell-v1 #gtt-shell-dock #v178-settings-toggle:hover{
 border-color:rgba(164,218,253,.58)!important;
 background:linear-gradient(135deg,rgba(82,151,221,.29),rgba(36,81,134,.31))!important
}
body.gtt-shell-v1 #gtt-shell-dock #v178-settings-toggle img{width:21px!important;height:21px!important}
#gtt-accounts > .gtt-accounts-panel{
 top:calc(100% + 10px)!important;right:0!important;
 max-width:calc(100vw - 16px)!important
}
#gtt-accounts .gtt-account-menu-links button[data-account-admin]{
 color:#d8f6ff!important;background:rgba(72,153,200,.12)!important;
 border-color:rgba(111,195,222,.22)!important
}
#gtt-accounts .gtt-account-menu-links button[data-account-admin]:hover{
 background:rgba(75,172,222,.23)!important
}
#wb2-shell .wb2-action-settings:focus-visible,
body.gtt-shell-v1 #gtt-shell-dock #v178-settings-toggle:focus-visible,
#gtt-accounts .gtt-accounts-button:focus-visible{
 outline:2px solid #93d8ff!important;outline-offset:2px!important
}
@media(max-width:1090px){
 #wb2-shell #gtt-accounts > .gtt-accounts-button,
 #gtt-shell-dock #gtt-accounts > .gtt-accounts-button{
  flex:0 1 auto!important;width:auto!important;min-width:40px!important;
  max-width:196px!important;padding:4px 11px 4px 5px!important;gap:8px!important
 }
 #wb2-shell #gtt-accounts > .gtt-accounts-button > .gtt-account-display-name{
  display:block!important
 }
}
@media(max-width:650px){
 #wb2-shell #gtt-accounts > .gtt-accounts-button,
 #gtt-shell-dock #gtt-accounts > .gtt-accounts-button{
  flex:0 0 40px!important;width:40px!important;min-width:40px!important;
  max-width:40px!important;padding:5px!important;gap:0!important
 }
 #wb2-shell #gtt-accounts > .gtt-accounts-button > .gtt-account-display-name,
 #gtt-shell-dock #gtt-accounts > .gtt-accounts-button > .gtt-account-display-name{
  display:none!important
 }
 #gtt-accounts > .gtt-accounts-panel{
  width:min(294px,calc(100vw - 16px))!important
 }
 html[data-gtt-design-mode="workbench"] #wb2-shell #gtt-accounts > .gtt-accounts-panel{
  right:-47px!important
 }
}
@media(prefers-reduced-motion:reduce){
 #gtt-accounts > .gtt-accounts-button,
 #wb2-shell .wb2-action-settings{transition:none!important}
}
