
.topbar-actions { position: relative; }
.account-btn[aria-expanded="true"] { background: #fff6f7; border-color: #ffd9dc; }
.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 244px;
  padding: 8px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
  transform-origin: top right;
  animation: accountMenuIn .18s ease-out;
}
.account-menu::before {
  content: "";
  position: absolute;
  right: 34px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #ececec;
  border-top: 1px solid #ececec;
  transform: rotate(45deg);
}
.account-menu-head { padding: 11px 12px 9px; border-bottom: 1px solid #f1f1f1; margin-bottom: 5px; }
.account-menu-head small { display: block; color: #888; font-size: 11px; margin-bottom: 3px; }
.account-menu-head strong { display: block; overflow: hidden; color: #28282e; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-item {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  color: #444;
  background: transparent;
  font-weight: 750;
}
.account-menu-item:hover { background: #fafafa; color: #ea1d2c; }
.account-menu-item svg { width: 21px; height: 21px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; }
.account-menu-item.is-danger { color: #767676; border-top: 1px solid #f1f1f1; margin-top: 5px; border-radius: 0 0 8px 8px; }
.account-menu-item.is-danger:hover { color: #ea1d2c; background: #fff6f7; }
.account-user-actions { display: grid; gap: 9px; margin-top: 18px; }
.account-user-action {
  min-height: 48px;
  border: 1px solid #e7e7e7;
  border-radius: 7px;
  background: #fff;
  color: #37373d;
  font-weight: 900;
}
.account-user-action:hover { border-color: #ffc9ce; background: #fff7f8; color: #ea1d2c; }
.account-user-action.primary { border-color: #ea1d2c; background: #ea1d2c; color: #fff; }
.account-user-action.primary:hover { background: #c91522; color: #fff; }
@keyframes accountMenuIn { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 620px) {
  .account-menu { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; }
  .account-menu::before { display: none; }
}
.account-user-link{display:grid;place-items:center;text-decoration:none}
.account-menu{max-height:min(520px,calc(100vh - 100px));overflow:auto}
