:is(.headerActions, :global([data-fa-header-actions])),
.menu {
  --ink: #171c25;
  --muted: #677184;
  --line: #d9dde4;
  --accent: #3458f5;
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--fa-font-sans);
  font-size: 16px;
  line-height: normal;
  font-synthesis: none;
}

:is(.headerActions, :global([data-fa-header-actions])),
:is(.headerActions, :global([data-fa-header-actions])) * {
  box-sizing: border-box;
}

:is(.headerActions, :global([data-fa-header-actions])) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0;
  min-width: 0;
}

:is(.headerActions, :global([data-fa-header-actions])) > [data-fa-notification-toggle] {
  margin-inline-end: 12px;
}

:is(.headerActions, :global([data-fa-header-actions])) [hidden] {
  display: none;
}

:is(.headerActions, :global([data-fa-header-actions])) :where(button, a) {
  box-sizing: border-box;
  font: inherit;
}

:is(.headerActions, :global([data-fa-header-actions])) :where(button, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:is(.cluster, :global([data-fa-account-cluster])) {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 13px;
  min-width: max-content;
  color: #556071;
  font-size: 13px;
  white-space: nowrap;
}

:is(.connection, :global([data-fa-account-connection-status])) {
  display: inline-flex;
  align-items: center;
  color: #747e8d;
}

:is(.connectionDot, :global([data-fa-account-connection-dot])),
.statusDot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: #8d96a4;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #eef0f3;
}

:is(.divider, :global([data-fa-account-divider])) {
  width: 1px;
  height: 22px;
  background: var(--line);
}

:is(.dropdown, :global([data-fa-account-dropdown])) {
  position: relative;
}

:is(.trigger, :global([data-fa-account-toggle])) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

:is(.trigger, :global([data-fa-account-toggle])) > strong {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

:is(.trigger, :global([data-fa-account-toggle])) > :global(.fotogenic-ai-icon):first-child {
  color: #586375;
}

:is(.caret, :global([data-fa-account-caret])) {
  margin-left: 4px;
  transition: transform .16s ease;
}

:is(.trigger, :global([data-fa-account-toggle]))[aria-expanded="true"] :is(.caret, :global([data-fa-account-caret])) {
  transform: rotate(180deg);
}

:is(.trigger, :global([data-fa-account-toggle])):hover,
:is(.trigger, :global([data-fa-account-toggle]))[aria-expanded="true"] {
  color: #353d49;
  background: #f6f7f9;
}

.menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  width: 344px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  white-space: normal;
  background: #fff;
  border: 1px solid #c7cdd6;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(20, 28, 40, .19);
  transform-origin: top right;
}

.menuOpen {
  animation: account-menu-enter 160ms cubic-bezier(.22, 1, .36, 1) both;
}

.menuClosing {
  pointer-events: none;
  animation: account-menu-exit 140ms cubic-bezier(.4, 0, 1, 1) both;
}

@keyframes account-menu-enter {
  from { opacity: 0; transform: translate3d(0, -5px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes account-menu-exit {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(0, -4px, 0) scale(.99); }
}

.summary {
  display: grid;
  gap: 3px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--line);
}

.email {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  color: #536071;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.statusDot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
}

.statusDotConnected {
  background: #20a45b;
  box-shadow: 0 0 0 3px #e3f5e9;
}

.summary > strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -.025em;
}

.help {
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
}

.menu .primary {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  width: calc(100% - 20px);
  min-height: 52px;
  margin: 10px;
  padding: 7px 10px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background: #171c25;
  border: 1px solid #171c25;
  border-radius: 7px;
  box-shadow: none;
  cursor: pointer;
}

.menu .primary:hover {
  color: #fff;
  background: #303642;
  border-color: #303642;
  box-shadow: none;
}

.menu .primary:focus,
.menu .primary:focus-visible {
  color: #fff;
  background: #171c25;
  border-color: #171c25;
  box-shadow: none;
}

.primary > span:nth-child(2) {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.primary strong {
  color: inherit;
  font-size: 12px;
  line-height: 17px;
}

.primary small {
  overflow: hidden;
  color: #cdd2da;
  font-size: 9px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary > :global(.fotogenic-ai-icon):last-child {
  justify-self: end;
}

.list {
  padding: 0 8px 6px;
}

.menu .list :where(a, button) {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 4px 8px;
  color: #3e4858;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.menu .list :where(a, button):hover {
  color: var(--ink);
  background: #f5f6f8;
}

.menu .list :where(a, button) > :global(.fotogenic-ai-icon):last-child {
  justify-self: end;
  color: #8b94a3;
}

.logout {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 7px 16px;
  color: #8c3030;
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}

.logout:hover {
  color: #8c3030;
  background: #fff7f7;
}

.logout > span:last-child {
  display: grid;
  gap: 1px;
}

.logout strong {
  font-size: 11px;
  line-height: 16px;
}

.logout small {
  color: #8a6262;
  font-size: 9px;
  line-height: 14px;
}

.menu[aria-busy="true"] :where(a, button),
.menu :disabled {
  cursor: wait;
  opacity: .62;
}

@media (max-width: 820px) {
  :is(.cluster, :global([data-fa-account-cluster])) {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 540px) {
  :is(.cluster, :global([data-fa-account-cluster])) {
    gap: 5px;
    font-size: 12px;
  }

  :is(.connection, :global([data-fa-account-connection-status])) {
    font-size: 0;
  }

  :is(.connectionDot, :global([data-fa-account-connection-dot])) {
    width: 7px;
    height: 7px;
    margin-right: 0;
  }

  :is(.divider, :global([data-fa-account-divider])) {
    display: none;
  }

  :is(.trigger, :global([data-fa-account-toggle])) {
    min-height: 40px;
    gap: 6px;
    padding-inline: 6px;
  }

  :is(.trigger, :global([data-fa-account-toggle])) > strong {
    font-size: 11px;
  }

  .menu {
    width: min(344px, calc(100vw - 28px));
  }
}

@media (max-width: 360px) {
  :is(.headerActions, :global([data-fa-header-actions])) > [data-fa-notification-toggle] {
    margin-inline-end: 8px;
  }

  :is(.cluster, :global([data-fa-account-cluster])) {
    gap: 4px;
    line-height: normal;
  }

  :is(.trigger, :global([data-fa-account-toggle])) {
    gap: 3px;
    padding-inline: 3px;
  }

  :is(.trigger, :global([data-fa-account-toggle])) > strong {
    font-size: 10.5px;
  }

  :is(.trigger, :global([data-fa-account-toggle])) > :global(.fotogenic-ai-icon):first-child {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
  }

  :is(.caret, :global([data-fa-account-caret])) {
    width: 14px;
    height: 14px;
    margin-left: 1px;
    font-size: 14px;
    line-height: 14px;
  }

  .menu {
    width: min(344px, calc(100vw - 44px));
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.caret, :global([data-fa-account-caret])) {
    transition: none;
  }

  .menuOpen,
  .menuClosing {
    animation: none;
  }
}

@media (forced-colors: active) {
  .menu {
    border: 2px solid ButtonText;
  }

  :is(.connectionDot, :global([data-fa-account-connection-dot])),
  .statusDot {
    border: 1px solid ButtonText;
  }
}
