/* Lock only the page while native dialog content remains scrollable. */
html.site-scroll-locked,
html.site-scroll-locked body {
    overflow: hidden;
}

/* Page to page: the old page sinks back while the new one rises in. Each page opts in
   with an inline @view-transition rule in its <head>; Chrome ignores the opt-in when it
   arrives in an external stylesheet like this one. */
/* A scrollbar that appears while a page loads resizes the viewport, which cancels the
   transition; reserving its gutter keeps the viewport steady. */
html { scrollbar-gutter: stable; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
::view-transition-old(root) { animation: page-out 180ms ease-in both; }
::view-transition-new(root) { animation: page-in 340ms cubic-bezier(.2, .7, .2, 1) 80ms both; }
