/* v79: permanently hide the legacy admin "view-as" bar and its leftover chrome.
   The bar is injected by 17-inline-17.js (inserted right after .topbar) and
   styled via .twog-viewas-bar; downstream scripts (v23, v24, v31, v32, v33,
   v34, v40) toggle it back on under various conditions. We win with !important
   so impersonation chrome can never appear, regardless of role. */
#twogViewAsBar,
.twog-viewas-bar,
.twog-viewas-actions,
#twogProfileViewStandardBtn,
#twogProfileAdminAnyUserWrap,
#twogAdminPickerReturn,
#twogResetViewBtn,
#rbacResetViewBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Restore the topbar's previous offset that the sticky view-as bar reserved. */
.twog-v40-viewas-topnav .topbar { z-index: auto !important; }
body { --twog-v79-viewas-bar-h: 0px !important; }
