.account-menu { position: relative; flex: none; color: #111111; }
.account-menu-trigger { display: flex; align-items: center; gap: 6px; min-height: 40px; max-width: 164px; padding: 4px 8px 4px 4px; border: 1px solid #d9e3d4; border-radius: 24px; background: #fcfdf9; color: #111111; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.account-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #dce9d4; color: #111111; font-size: 16px; font-weight: 800; }
.account-username { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-trigger:focus-visible,.account-menu-panel button:focus-visible { outline: 3px solid #3f6b35; outline-offset: 2px; }
.account-menu-panel { position: absolute; z-index: 12; right: 0; top: calc(100% + 8px); width: min(260px,calc(100vw - 24px)); padding: 8px; border: 1px solid #d6e1d0; border-radius: 14px; background: #fffefa; box-shadow: 0 12px 36px #15271525; }
.account-menu-heading { padding: 10px 10px 14px; border-bottom: 1px solid #e1e8dd; margin-bottom: 5px; }
.account-menu-heading strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.account-menu-heading span { display: block; margin-top: 4px; font-size: 14px; }
.account-menu-panel button { display: block; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 8px; background: none; color: #111111; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.account-menu-panel button:hover { background: #edf3e8; }
.account-menu-panel .invite-btn { max-width: none; font-size: 16px; white-space: normal; }
.account-menu-panel .invite-btn::after { content: none; }
@media(max-width:700px){
  .account-menu-trigger { max-width: 117px; padding-right: 7px; gap: 4px; }
  .account-username { max-width: 7ch; }
  .header-progress .top-actions { gap: 4px; }
}
