.account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--store-surface);
    color: var(--store-text);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.user-dropdown {
    position: fixed;
    width: 280px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    backdrop-filter: saturate(180%) blur(30px);
    border: 1px solid var(--store-hairline-soft);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.account-menu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 14px;
}

.account-menu__who { min-width: 0; }

.account-menu__name {
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu__email {
    margin-top: 1px;
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu__group {
    padding: 4px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.account-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #1d1d1f;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: -0.01em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.account-menu__item:hover,
.account-menu__item:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.account-menu__item--muted { color: #6e6e73; }

.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

@media (max-width: 480px) {
    .user-dropdown { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
    .user-dropdown { transition: none; }
}
