.profile-menu {
    position: relative;
}

.profile-menu summary {
    cursor: pointer;
    list-style: none;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu__panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--border-strong, rgba(255, 255, 255, .12));
    border-radius: 14px;
    background: var(--surface-2, #111);
    box-shadow: var(--shadow, 0 12px 32px rgba(0, 0, 0, .4));
}

.profile-menu__panel a,
.profile-menu__panel button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--text, #dedede);
    background: transparent;
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profile-menu__panel a:hover,
.profile-menu__panel button:hover {
    color: var(--text, #fff);
    background: rgba(255, 255, 255, .08);
}

.profile-menu__panel form {
    margin: 0;
}

[data-auth-menu] {
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-auth-menu]:not(.is-ready) {
    visibility: hidden;
}

[data-auth-menu] [hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    [data-auth-menu] {
        flex-direction: column;
        align-items: stretch;
    }
}
