.btn_menu [data-mcp-auth][hidden] { display: none !important; }

.btn_menu .header__account { position: relative; z-index: 20; }

.btn_menu .header__account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: #0b3948;
    font: inherit;
    line-height: 1.5;
    cursor: pointer;
    transition: 0.2s ease background-color, 0.2s ease border-color;
}
.btn_menu .header__account-trigger:hover,
.btn_menu .header__account-trigger:focus-visible,
.btn_menu .header__account[data-open] .header__account-trigger {
    background-color: #fff6e2;
    border-color: #f2e3c2;
}

.btn_menu .header__account-avatar img {
    display: block;
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}

.btn_menu .header__account-name {
    font-size: 15px;
    font-weight: 600;
    max-width: 12ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn_menu .header__account-chevron {
    width: 12px;
    height: 8px;
    flex-shrink: 0;
    transition: 0.2s ease transform;
}
.btn_menu .header__account[data-open] .header__account-chevron { transform: rotate(180deg); }

.btn_menu .profile-dropdown__wrapper {
    position: absolute;
    top: calc(100% - 10px);
    right: 0;
    z-index: 999;
    width: 320px;
    padding-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.btn_menu .header__account:hover .profile-dropdown__wrapper,
.btn_menu .header__account[data-open] .profile-dropdown__wrapper {
    opacity: 1;
    visibility: visible;
}
body.mcp-logout-open .btn_menu .header__account:hover .profile-dropdown__wrapper {
    opacity: 0;
    visibility: hidden;
}

.btn_menu .profile-dropdown {
    position: relative;
    padding: 22px;
    background-color: #fff;
    border-radius: 4.5px;
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.08);
}
.btn_menu .profile-dropdown:before {
    content: "";
    position: absolute;
    width: 28px;
    height: 23px;
    right: 28px;
    top: -9px;
    z-index: 9;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='18' viewBox='0 0 24 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.962 0L23.924 17.8088H0L11.962 0Z' fill='white'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
}

.btn_menu .profile-dropdown__top { display: flex; align-items: center; gap: 10px; }
.btn_menu .profile-dropdown__avatar img {
    display: block;
    width: 64px;
    height: 64px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}
.btn_menu .profile-dropdown__name { font-family: "Averia Serif Libre", serif; }
.btn_menu .profile-dropdown__name .h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.btn_menu .profile-dropdown__nav { margin-top: 15px; }
.btn_menu .profile-dropdown__list { display: grid; list-style: none; margin: 0; padding: 0; }
.btn_menu .profile-dropdown__item { transition: .15s ease-in background-color; }
.btn_menu .profile-dropdown__item:hover { background-color: #fff6e2; }
.btn_menu .profile-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 20px;
    font: inherit;
    font-size: 16px;
    color: #0b3948;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.btn_menu .profile-dropdown__link svg { flex-shrink: 0; }
