.account-menu { position: relative; }
.account-menu > summary {
    display: flex; align-items: center; gap: .5rem; min-height: 44px;
    padding: .5rem .65rem; border-radius: .55rem; color: #adc0d0;
    font-size: .82rem; font-weight: 650; cursor: pointer; list-style: none;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: rgba(43, 169, 235, .12); color: #71cff8; }
.account-menu > summary:focus-visible { outline: 2px solid #71cff8; outline-offset: 2px; }
.account-menu-icon { width: 20px; height: 20px; flex: none; }
.account-menu > summary > .icon { width: 12px; height: 12px; }
.account-menu-panel {
    position: absolute; z-index: 30; right: 0; top: calc(100% + .5rem);
    width: min(15rem, calc(100vw - 3rem)); padding: .45rem;
    border: 1px solid #31516d; border-radius: .75rem; background: #0d1b2e;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .4);
}
.portal-authenticated .account-menu-panel a,
.portal-authenticated .account-menu-panel .logout-form button {
    display: flex; align-items: center; width: 100%; min-height: 44px;
    padding: .65rem .75rem; border-radius: .5rem; color: #d6e3ec;
    font-size: .85rem; text-align: left; text-decoration: none;
}
.portal-authenticated .account-menu-panel a:hover,
.portal-authenticated .account-menu-panel a:focus-visible,
.portal-authenticated .account-menu-panel button:hover,
.portal-authenticated .account-menu-panel button:focus-visible { background: rgba(43, 169, 235, .12); color: #71cff8; }
.portal-authenticated .account-menu-panel .logout-form {
    margin: .35rem 0 0; border: 0; border-top: 1px solid #20384f; padding: .35rem 0 0;
}
@media (max-width: 650px) {
    .portal-authenticated .portal-header {
        grid-template-columns: minmax(0, 1fr) auto; gap: .4rem;
        margin-right: .25rem; margin-left: .25rem; padding: .65rem;
    }
    .portal-authenticated .portal-brand { width: auto; min-width: 0; }
    .portal-authenticated .portal-brand-logo { width: min(100%, 180px); height: auto; }
    .portal-authenticated .portal-brand-copy, .account-menu-label { display: none; }
    .portal-authenticated .portal-actions { grid-column: 2; display: flex; gap: .15rem; }
    .account-menu > summary { padding: .5rem; }
    .account-menu > summary > .icon { display: none; }
}

.portal-authenticated .account-menu-panel a,
.portal-authenticated .account-menu-panel .logout-form button { gap: .6rem; }
.account-menu-panel .icon { width: 1rem; height: 1rem; flex-shrink: 0; color: #67c9f3; }
