/* Keep one stable viewport while a direct smart/flow URL replaces the
   server-rendered Apps grid. The legacy stylesheet scrolls BODY while the
   browser can still create a root scrollport; hiding both for this short boot
   phase prevents the duplicate scrollbar flash without touching the ready
   page or any sidebar's own scrolling. */
html {
    scrollbar-gutter: stable;
}

html.bench-main-booting,
html.bench-main-booting body {
    overflow-y: hidden !important;
    overscroll-behavior-y: none;
}

/* Hide the server-rendered Apps grid only on direct smart-mode URLs. */
html.bench-main-booting #content {
    min-height: min(62vh, 720px);
    visibility: hidden;
}

html.bench-main-booting.bench-main-loading #content,
html.bench-main-ready #content {
    visibility: visible;
}
