body:has(.dropdown-container.bottom-sheet) {
    overflow: hidden;
}

.dropdown-container {

    &:not(:has(.dropdown.followed-threads))&:not(:has(.dropdown.notifications)) {
        @media (max-width: 900px) {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            z-index: 96;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(2px);

            .dropdown {
                border-radius: 24px 24px 0 0;
                padding-top: 8px;
            }
        }
    }
}

.dropdown {
    z-index: 91;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    margin: 4px 0;
    border-radius: 3px;
    border: 1px solid;
    border-color: var(--dropdown-border-color);
    max-width: 100%;
    padding: 0;
    background:
        linear-gradient(var(--dropdown-bg-color) 33%, var(--dropdown-scroll-shadow-color)),
        linear-gradient(var(--dropdown-scroll-shadow-color), var(--dropdown-bg-color) 66%) 0 100%,
        radial-gradient(farthest-side at 50% 0, rgba(34,34,34, 0.5), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 50% 100%, rgba(34,34,34, 0.5), rgba(0,0,0,0)) 0 100%;
    background-color: var(--dropdown-bg-color);
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
    background-size: 100% 45px, 100% 45px, 100% 15px, 100% 15px;
    overscroll-behavior-y: contain;

    @media (max-width: 900px) {
        left: 0;
        right: 0;
        width: 100%;
        bottom: 0;
        margin-bottom: 0;
        max-height: 60%;
        position: absolute;
        border: none;
    }

    @media (min-width: 901px) {
        position: fixed;
        margin-bottom: calc(var(--navbar-height) + 2px);
        max-height: 100%;
    }

    nav {
        > h4 {
            font-weight: 600;
            margin: 16px 16px 4px 16px;
            padding: initial;
            font-size: initial;
        }

        > *:not(h4) {
            width: 100%;
            display: flex;
            gap: 8px;
            align-items: center;
            padding: 16px;
        }

        > div > .grow {
            flex-grow: 1;
        }

        > .cur {
            background-color: var(--c-pri);
        }

        .separator {
            height: 8px;

            + button,
            + a {
                border-top: 0;
            }
        }

        [class^="icon-"] {
            font-size: 20px;
        }
    }
}