/* Shared by public headers and the member workspace. */
[data-account-menu] {
  position: relative;
  flex-shrink: 0;
}
[data-account-menu][hidden],
[data-account-menu] [data-account-company][hidden],
[data-account-menu] .account-identity[hidden] {
  display: none !important;
}
[data-account-menu] summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 24px;
  list-style: none;
  cursor: pointer;
  color: var(--brand-navy);
  min-height: 42px;
  box-sizing: border-box;
}
[data-account-menu] summary::-webkit-details-marker {
  display: none;
}
[data-account-menu] summary:hover,
[data-account-menu][open] summary {
  background: #edf5f8;
  border-color: var(--border);
}
[data-account-menu] .account-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6f2f5;
  color: var(--brand-navy);
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
[data-account-menu] .account-avatar:empty {
  background: #e6f2f5
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082c45' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}
[data-account-menu] .account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-account-menu] .account-chevron {
  font-size: 16px;
  padding-right: 5px;
}
[data-account-menu] .account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  box-sizing: border-box;
  width: var(--workspace-menu-width, 280px);
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 35px #17284b20;
  text-align: left;
}
[data-account-menu] .account-identity {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
[data-account-menu] .account-identity strong {
  font-size: 14px;
  color: var(--brand-navy);
}
[data-account-menu] .account-identity span {
  font-size: 12px;
  color: var(--text-muted);
}
[data-account-menu] .account-dropdown a,
[data-account-menu] .account-dropdown button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-decoration: none;
  text-align: left;
  color: var(--brand-navy);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
[data-account-menu] .account-dropdown :is(a, button):hover {
  background: #edf5f8;
}
[data-account-menu] :is(summary, a, button):focus-visible {
  outline: 3px solid #84baca;
  outline-offset: 2px;
}
[data-account-menu] .account-dropdown hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 4px;
}
