.user-menu { position: relative; }
.user-menu__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px 0 4px;
    border-radius: var(--radius-pill);
    list-style: none;
    cursor: pointer;
}
.user-menu__summary::-webkit-details-marker { display: none; }
.user-menu__summary:hover { background: var(--surface-2); }
.user-menu__avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--strong);
    color: var(--on-strong);
    font: 600 13px var(--font);
}
.user-menu__name { max-width: 16ch; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 180px;
    display: grid;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-panel);
}
.user-menu__form { margin: 0; }
.user-menu__item {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-m);
    background: transparent;
    font: 500 14px var(--font);
    text-align: left;
    cursor: pointer;
}
.user-menu__item:hover { background: var(--surface-2); }

@media (max-width: 640px) {
    .user-menu__name { display: none; }
    .user-menu__summary { padding: 0 4px; }
}
