.portal-member-slot {
  flex: 0 0 auto;
  width: 123px;
  height: 44px;
}
.portal-member-slot [hidden] { display: none !important; }
.portal-member-slot:has(> .portal-account:not([hidden])) { width: max-content; }
.portal-account { position: relative; height: 100%; }
.portal-account-trigger {
  display: grid;
  grid-template-columns: 28px max-content 10px;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 3px 5px;
  border: 1px solid #d9e6fa;
  border-radius: 24px;
  background: #f5f8fe;
  color: #23406f;
  cursor: pointer;
}
.portal-account-trigger:hover { background: #eef5ff; }
.portal-account-trigger img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.portal-account-trigger strong { font-size: 14px; white-space: nowrap; }
.portal-account-trigger i { font-size: 12px; }
.portal-account-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.portal-account-menu {
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  z-index: 10;
  display: grid;
  min-width: 136px;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d9e6fa;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(12, 38, 91, .08);
}
.portal-account-menu :is(a, button) {
  display: block;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #23406f;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.portal-account-menu :is(a, button):is(:hover, :focus-visible) { background: #eef5ff; color: #1769ff; }

@media (max-width: 900px) {
  .portal-member-slot { width: 102px; height: 38px; margin-inline-start: auto; }
  .portal-account-trigger { grid-template-columns: 22px max-content 8px; gap: 2px; padding-inline: 3px; }
  .portal-account-trigger img { width: 22px; height: 22px; }
}
