/* Keep native wheel/trackpad scrolling. Never capture wheel events globally. */
@media screen {
  /* Theme/layout overrides must not cancel an intentional modal/drawer lock.
     The controller releases this flag when the rendered overlay is closed. */
  html:has(> body[data-blocking-dialog-open="1"]),
  body[data-blocking-dialog-open="1"] {
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body[data-blocking-dialog-open="1"] .riGlobalRivaLauncher {
    display:none!important;
  }
  @media(max-width:1100px) {
    /* This multi-row header can exceed half the viewport. Keeping the whole
       header sticky hides the scrolled content and intercepts pointer targets. */
    body .shell > .topbar {
      position:relative!important;
      top:auto!important;
    }
    html:has(> body[data-sidebar-mobile-open="1"]),
    body[data-sidebar-mobile-open="1"] {
      overflow:hidden!important;
      overscroll-behavior:none!important;
    }
  }
}
