.sidebar {
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav {
    flex: 0 0 auto;
}

.quick-links,
.sidebar-foot {
    flex: 0 0 auto;
}

.sidebar-user {
    margin: -28px 8px 28px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.sidebar-user > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sidebar-user small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user small {
    color: #9eb2aa;
    font-size: 11px;
}

.sidebar-user form {
    flex: 0 0 auto;
}

.sidebar-user button {
    border: 0;
    border-radius: 999px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, .09);
    color: #c9d8d2;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-user button:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

@media (max-width: 900px) {
    .sidebar {
        max-height: none;
        overflow-y: visible;
    }

    .sidebar-user {
        margin: 0 14px 0 0;
        min-width: 170px;
        padding: 9px 11px;
    }
}

@media (max-width: 620px) {
    .sidebar-user {
        display: none;
    }
}
