/* ForFeed LTE: keep the controller action menu available while a phone page scrolls. */
@media (max-width: 767.98px) {
    .content-header .dfix.lte-mobile-actions--fixed {
        position: fixed !important;
        top: var(--lte-mobile-actions-top, calc(env(safe-area-inset-top, 0px) + .5rem));
        right: max(.65rem, env(safe-area-inset-right, 0px));
        z-index: 1044;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        animation: lte-mobile-actions-in .16s ease-out both;
    }

    .content-header .dfix.lte-mobile-actions--fixed > .dropdown {
        width: auto;
        margin: 0;
    }

    .content-header .dfix.lte-mobile-actions--fixed > .dropdown > .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        height: 42px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, .4);
        border-radius: .7rem;
        background-clip: padding-box;
        box-shadow: 0 7px 22px rgba(31, 45, 61, .22);
        backdrop-filter: blur(9px) saturate(125%);
        -webkit-backdrop-filter: blur(9px) saturate(125%);
    }

    .content-header .dfix.lte-mobile-actions--fixed .dropdown-menu {
        max-width: min(88vw, 21rem);
        max-height: calc(100vh - var(--lte-mobile-actions-top, 4rem) - 3.5rem);
        max-height: calc(100dvh - var(--lte-mobile-actions-top, 4rem) - 3.5rem);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 12px 32px rgba(31, 45, 61, .22);
    }

    .dark-mode .content-header .dfix.lte-mobile-actions--fixed > .dropdown > .btn {
        border-color: rgba(255, 255, 255, .16);
        box-shadow: 0 7px 22px rgba(0, 0, 0, .34);
    }
}

@keyframes lte-mobile-actions-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-header .dfix.lte-mobile-actions--fixed {
        animation: none;
    }
}
