.account-menu {
  position: relative;
}

.account-chevron {
  margin-left: 1px;
  color: #64748b;
  font-size: 15px;
  transition: transform 160ms ease;
}

.account-button[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}

.account-button:not(.is-authenticated) .account-chevron {
  display: none;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 250px;
  padding: 8px;
  color: #344054;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 16px;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.account-popover-head {
  display: grid;
  gap: 3px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.09);
}

.account-popover-head strong,
.account-popover-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover-head strong {
  color: #172033;
  font-size: 13px;
}

.account-popover-head small {
  color: #98a2b3;
  font-size: 11px;
}

.account-popover > button,
.account-popover > a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  color: #475467;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-size: 12px;
}

.account-popover > button:hover,
.account-popover > a:hover {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.07);
}

.account-popover > .account-menu-logout {
  color: #b42318;
}

.account-center-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: #172033;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 22px;
  box-shadow: 0 32px 110px rgba(15, 23, 42, 0.24);
}

.account-center-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(7px);
}

.account-center-shell {
  position: relative;
  padding: 30px;
}

.account-center-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #667085;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 23px;
}

.account-center-close:hover {
  color: #172033;
  background: #f2f4f7;
}

.account-center-header {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-right: 46px;
}

.account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #0f766e;
  background: linear-gradient(135deg, #dff8f4, #e8f6ff);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  font-size: 21px;
  font-weight: 750;
}

.account-center-header p,
.account-history-title p {
  margin: 0 0 3px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.account-center-header h2,
.account-history-title h3 {
  margin: 0;
  color: #172033;
}

.account-center-header h2 {
  font-size: 22px;
}

.account-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: #047857;
  font-size: 11px;
}

.account-status i {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.09);
}

.account-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.account-profile-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 15px;
  background: #f8fbfb;
  border: 1px solid rgba(15, 118, 110, 0.09);
  border-radius: 13px;
}

.account-profile-grid span {
  color: #98a2b3;
  font-size: 10px;
}

.account-profile-grid strong {
  overflow: hidden;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.account-history {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 118, 110, 0.1);
}

.account-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-history-title h3 {
  font-size: 15px;
}

.account-history-title > span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: #0f766e;
  background: #ecfdf9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.account-history-status {
  margin: 18px 0 4px;
  color: #98a2b3;
  text-align: center;
  font-size: 12px;
}

.account-history ul {
  display: grid;
  gap: 8px;
  max-height: 230px;
  margin: 14px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.account-history li {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  background: #fbfdfd;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 12px;
}

.account-download-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0f766e;
  background: #eafaf7;
  border-radius: 10px;
}

.account-history li div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-history li strong {
  color: #344054;
  font-size: 12px;
}

.account-history li small {
  overflow: hidden;
  color: #98a2b3;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.account-center-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.account-center-actions a,
.account-center-actions button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
}

.account-center-actions a {
  color: #0f766e;
  background: #edfafa;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.account-center-actions button {
  color: #b42318;
  background: #fff;
  border: 1px solid #fecdca;
}

.account-center-actions button:disabled,
.account-popover button:disabled {
  cursor: wait;
  opacity: 0.55;
}

@media (max-width: 620px) {
  .account-popover {
    position: fixed;
    top: 78px;
    right: 14px;
    width: min(290px, calc(100% - 28px));
  }

  .account-center-shell {
    padding: 24px 18px;
  }

  .account-profile-grid {
    grid-template-columns: 1fr;
  }

  .account-center-actions {
    flex-direction: column;
  }

  .account-center-actions a,
  .account-center-actions button {
    justify-content: center;
  }
}
