/* Account disclosure only. Existing header grid and mobile layout remain in their own files. */
.pz-account-trigger {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  appearance: none;
  border: 1px solid rgba(179, 104, 244, .22);
  border-radius: 12px;
  background: #07060b;
  color: #eeeaf5;
  font-family: "Segoe UI", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 240ms ease;
}

.pz-account-trigger__name,
.pz-account-trigger__role {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pz-account-trigger__name {
  color: #eeeaf5;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .1px;
}

.pz-account-trigger__role {
  color: #c383f2;
  font-size: 9px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: .25px;
}

.pz-account-trigger:hover,
.pz-account-trigger[aria-expanded="true"] {
  border-color: rgba(186, 104, 255, .58);
  background: #0b0811;
  box-shadow: 0 0 12px rgba(149, 57, 240, .12);
}

.pz-account-trigger:focus-visible,
.pz-account-mobile-trigger:focus-visible {
  outline: 2px solid #c985ff;
  outline-offset: 3px;
}

/* Reset native button decoration, not the existing mobile item's size or typography. */
.pz-account-mobile-trigger {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.pz-account-mobile-trigger[aria-expanded="true"] {
  color: #c383f2;
}

/* One shared overlay; it does not take space from the header, banner or footer. */
.pz-account-panel {
  --pz-account-enter-offset: -6px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: min(244px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(177, 93, 250, .52);
  border-radius: 12px;
  background: #0b0811;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .5),
    0 0 14px rgba(153, 58, 240, .12);
  color: #eeeaf5;
  font-family: "Segoe UI", Arial, sans-serif;
  opacity: 0;
  transform: translateY(var(--pz-account-enter-offset));
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.pz-account-panel[hidden] {
  display: none;
}

.pz-account-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pz-account-panel__link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #eeeaf5;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.pz-account-panel__link:hover {
  background: rgba(160, 73, 240, .10);
  color: #e0b6ff;
}

.pz-account-panel__link:focus-visible {
  outline: 2px solid #c985ff;
  outline-offset: -2px;
  background: rgba(160, 73, 240, .10);
  color: #f2e5ff;
}

@media (prefers-reduced-motion: reduce) {
  .pz-account-trigger,
  .pz-account-panel,
  .pz-account-panel__link {
    transition: none;
  }

  .pz-account-panel {
    transform: none;
  }
}
