/* Native disclosure keeps account tools reachable without crowding the header. */
#account { position: relative; min-width: 0; max-width: 100%; font: inherit; }
#account-menu { min-width: 0; max-width: 100%; }
#account-menu summary { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid #cfdbc3; border-radius: 12px; background: #fff; font-weight: 650; list-style: none; }
#account-menu summary::-webkit-details-marker { display: none; }
#account-menu summary svg { flex-shrink: 0; }
#account-menu[open] summary svg { transform: rotate(180deg); }
.account-short-name { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125em; font-weight: 400; }
.account-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: 340px; max-width: calc(100vw - 40px); max-height: min(70dvh, 560px); overflow: auto; padding: 18px; border: 1px solid #cfdbc3; border-radius: 16px; background: #fff; box-shadow: 0 14px 35px rgb(22 63 53 / .16); }
.account-panel p { margin: 0 0 14px; color: #526555; font-size: .875em; }
.account-owner { display: block; color: var(--ink); overflow-wrap: anywhere; }
.account-actions { display: grid; gap: 8px; }
#account .account-actions button { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: .875em; text-align: left; overflow-wrap: anywhere; }
#account .account-actions [data-action=logout] { margin-top: 6px; border-color: #bacbb1; }
@media (max-width: 800px) {
  .account-short-name { display: none; }
}
