::view-transition-old(root) { animation-duration: 90ms; }
::view-transition-new(root) { animation-duration: 120ms; }

#termino-nav-progress {
    display:none;
    position:fixed;
    inset:0 auto auto 0;
    width:100%;
    height:2px;
    z-index:30050;
    background:linear-gradient(90deg,#0ebce0,#0782cb);
    transform:scaleX(.12);
    transform-origin:left;
    pointer-events:none;
}
#termino-nav-progress.is-running {
    display:block;
    animation:termino-nav-progress 750ms cubic-bezier(.08,.63,.37,1) forwards;
}
@keyframes termino-nav-progress { to { transform:scaleX(.83); } }

@media (max-width:900px), (pointer:coarse) {
    .termino-app-bottom { view-transition-name:termino-bottom-bar; }
    ::view-transition-group(termino-bottom-bar) { animation-duration:100ms; }
    .termino-app-bottom :is(a,button),#terminoMenuButton,.termino-category-sheet a,.termino-mobile-drawer a {
        touch-action:manipulation;
    }
    .termino-app-bottom :is(a,button):active,.termino-app-bottom [data-nav-pending],
    .termino-category-sheet [data-nav-pending],.termino-mobile-drawer [data-nav-pending] {
        opacity:.72;
    }
    #terminoCategoryBackdrop { transition-duration:140ms; }
    #terminoCategorySheet { transition-duration:170ms; }
    #terminoMobileDrawer.is-open { animation:termino-drawer-in 150ms ease-out both; }
    @keyframes termino-drawer-in { from { opacity:.5; translate:16px 0; } to { opacity:1; translate:0 0; } }
}

@media (prefers-reduced-motion:reduce) {
    #terminoCategorySheet,#terminoCategoryBackdrop { transition:none; }
    #terminoMobileDrawer.is-open,#termino-nav-progress.is-running { animation:none; }
}

/* Keep the open drawer above the sticky header and mobile bar. */
#terminoMobileBackdrop { z-index:2147483100!important; }
#terminoMobileDrawer { z-index:2147483101!important; }
#termino-nav-progress { z-index:2147483200; }
