/* Topbar IA: SuperViz selector+kebab only on /superviz; hide ETL/Brain/clock */
html body .topbar-right,
html body #etl-pill,
html body #brain-pill,
html body #sync-indicator {
  display: none !important;
}
html body #gl-floating-pill[hidden],
html body:not(.topbar-superviz-chrome):not(.route-superviz) #gl-floating-pill {
  display: none !important;
}
html body.topbar-superviz-chrome #gl-floating-pill,
html body.route-superviz #gl-floating-pill {
  display: inline-flex !important;
}
html body.topbar-superviz-chrome #gl-floating-pill .gfp-item--newchat,
html body.topbar-superviz-chrome #gl-floating-pill .gfp-sep,
html body.topbar-superviz-chrome #gl-floating-pill a.gfp-item[data-route="/dashboard"],
html body.route-superviz #gl-floating-pill .gfp-item--newchat,
html body.route-superviz #gl-floating-pill .gfp-sep,
html body.route-superviz #gl-floating-pill a.gfp-item[data-route="/dashboard"] {
  display: none !important;
}
html body:not(.topbar-superviz-chrome):not(.route-superviz) {
  --gl-floating-pill-h: 0px;
}
html body.topbar-superviz-chrome,
html body.route-superviz {
  --gl-floating-pill-h: 48px;
}

/* Collapse empty global #topbar on every route except SuperViz (and Ask
   when project agent tabs are mounted — body.ty-has-agent-tabs).
   SuperViz keeps the topbar for the division floating pill. Matches the
   Messages/Chats trim (#139/#141): hide chrome + reclaim dead ~44px. */
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar#topbar,
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar.topbar--no-header,
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar.topbar--with-pill.topbar--no-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar#topbar::before,
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar#topbar::after,
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar::before,
html body:not(.route-superviz):not(.topbar-superviz-chrome):not(.ty-has-agent-tabs) header.topbar::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
}
