.ic-prototype .ic-header-account {
  position: relative;
  display: grid;
  align-self: center;
  place-items: center;
}

.ic-prototype button.ic-account-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.ic-prototype .ic-header-account.is-open .ic-account-link {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ic-gold);
}

.ic-prototype .ic-header-account.is-open .ic-account-link__avatar {
  border-color: var(--ic-gold);
  background: rgba(235, 186, 134, 0.17);
  color: #fff;
}

.ic-prototype .ic-header-account__panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: -42px;
  width: min(280px, calc(100vw - 20px));
  padding: 8px;
  border: 1px solid rgba(235, 186, 134, 0.25);
  border-top-color: rgba(235, 186, 134, 0.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(235, 186, 134, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(10, 13, 10, 0.985), rgba(20, 23, 19, 0.985));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.42),
    inset 1px 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -7px, 0) scale(0.985);
  transform-origin: top right;
  transition:
    opacity 170ms ease,
    visibility 0s linear 220ms,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ic-prototype .ic-header-account.is-open .ic-header-account__panel {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
  pointer-events: auto;
}

.ic-prototype .ic-header-account__identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(235, 186, 134, 0.16);
}

.ic-prototype .ic-header-account__identity-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(235, 186, 134, 0.62);
  border-radius: 50%;
  background: rgba(252, 236, 206, 0.09);
  color: var(--ic-cream);
  font-size: 13px;
  font-weight: 800;
}

.ic-prototype .ic-header-account__identity > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ic-prototype .ic-header-account__identity small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ic-prototype .ic-header-account__identity strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-prototype .ic-header-account__links {
  display: grid;
  gap: 2px;
  padding-top: 6px;
}

.ic-prototype .ic-header-account__links a {
  display: grid;
  min-height: 44px;
  grid-template-columns: 20px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 170ms ease,
    color 170ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ic-prototype .ic-header-account__links a > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.ic-prototype .ic-header-account__links a > .ic-header-account__arrow {
  width: 13px;
  height: 13px;
  opacity: 0.4;
  transition:
    opacity 170ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ic-prototype .ic-header-account__links a:hover,
.ic-prototype .ic-header-account__links a:focus-visible,
.ic-prototype .ic-header-account__links a[aria-current="page"] {
  outline: 0;
  background: rgba(235, 186, 134, 0.09);
  color: #fff;
}

.ic-prototype .ic-header-account__links a:hover,
.ic-prototype .ic-header-account__links a:focus-visible {
  transform: translate3d(2px, 0, 0);
}

.ic-prototype .ic-header-account__links a[aria-current="page"] {
  color: var(--ic-cream);
}

.ic-prototype .ic-header-account__links a:hover .ic-header-account__arrow,
.ic-prototype .ic-header-account__links a:focus-visible .ic-header-account__arrow {
  opacity: 0.9;
  transform: translate3d(2px, 0, 0);
}

.ic-prototype .ic-header-account__links .ic-header-account__logout {
  grid-template-columns: 20px minmax(0, 1fr);
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
  color: rgba(255, 208, 202, 0.72);
}

.ic-prototype .ic-header-account__links .ic-header-account__logout:hover,
.ic-prototype .ic-header-account__links .ic-header-account__logout:focus-visible {
  background: rgba(162, 63, 53, 0.11);
  color: #ffd0ca;
}

@media (prefers-reduced-motion: reduce) {
  .ic-prototype .ic-header-account__panel,
  .ic-prototype .ic-header-account__links a,
  .ic-prototype .ic-header-account__links a > .ic-header-account__arrow {
    transition-duration: 0.01ms;
  }
}
