/* A small personal menu that opens from the profile like a sheet of paper. */
.account-menu-root { position: relative; flex: 0 1 auto; min-width: 0; perspective: 900px; }
body .site-header .account-menu-root .account-button {
  min-height: 44px; max-width: 156px; gap: 8px; padding: 6px 11px 6px 7px;
  border-radius: 16px; background: #fff; color: #504862; border-color: #ded8e8;
  box-shadow: 0 1px 2px #47335508;
}
body .site-header .account-menu-root .account-button.signed-in { background: #fbf9ff; }
body .site-header .account-menu-root .account-button:hover,
body .site-header .account-menu-root .account-button[aria-expanded="true"] { background: #f4f0fc; border-color: #bcaad9; }
body .site-header .account-menu-root .account-avatar {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  max-width: none; overflow: hidden; border-radius: 50%; background: #eee8f7;
  color: #74628e; box-shadow: inset 0 0 0 1px #74628e14;
}
.account-avatar > svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.account-avatar > img { display: block; width: 100%; height: 100%; object-fit: cover; }
body .site-header .account-menu-root #account-label { max-width: 104px; font-size: 14px; }
.account-menu-chevron { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s; }
.account-button[aria-expanded="true"] .account-menu-chevron { transform: rotate(180deg); }
.account-button:not([aria-haspopup]) .account-menu-chevron { display: none; }
.account-menu-root::after { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: 14px; }
.account-paper-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 90;
  width: 220px; max-width: calc(100vw - 32px); padding: 6px 6px 13px;
  border: 1px solid #e3dceb; border-radius: 7px 7px 14px 14px;
  background: linear-gradient(155deg, #fff 65%, #f9f6ff);
  box-shadow: 0 16px 36px #3b2a571c, 0 3px 8px #3b2a5708;
  transform-origin: 50% 0; backface-visibility: hidden;
}
.account-paper-menu[hidden] { display: none; }
.account-paper-menu::after {
  content: ""; position: absolute; pointer-events: none; bottom: 0; left: 0; right: 0; height: 10px;
  border-radius: 0 0 13px 13px; background: linear-gradient(0deg, #e7def2 0, #f9f7fc 55%, #ffffff00);
  box-shadow: inset 0 -1px 0 #d7cbe7; opacity: .7;
}
.account-paper-menu.is-open { animation: account-paper-unfold .36s cubic-bezier(.18,.8,.25,1) both; }
.account-paper-menu.is-closing { animation: account-paper-refold .16s ease-in both; pointer-events: none; }
.account-paper-content { position: relative; z-index: 1; }
.account-menu-provider { margin: 9px 10px 7px; color: #716580; font-size: 11px; line-height: 1.5; }
.account-menu-provider:empty { display: none; }
.account-paper-menu [role="menuitem"] {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 47px;
  padding: 11px 10px; border: 0; border-radius: 8px; background: transparent;
  color: #3c3449; font: inherit; font-size: 14px; font-weight: 600; text-align: left;
}
.account-paper-menu [role="menuitem"]:hover,
.account-paper-menu [role="menuitem"]:focus-visible { background: #f1ecf9; color: #6041b6; }
.account-paper-menu [role="menuitem"]:focus-visible { outline: 2px solid #8064c1; outline-offset: -2px; }
.account-paper-menu [role="menuitem"] .icon { width: 19px; height: 19px; color: #82748f; }
.account-menu-action-arrow { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: #b4a8c1; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body .site-header:has(.account-paper-menu:not([hidden])) { position: relative; z-index: 85; }
@keyframes account-paper-unfold {
  0% { opacity: 0; transform: rotateX(-76deg) scaleY(.3) translateY(-4px); clip-path: inset(0 0 70% round 7px); }
  60% { opacity: 1; transform: rotateX(7deg) scaleY(1.015); clip-path: inset(0 0 0 round 7px); }
  100% { opacity: 1; transform: rotateX(0) scaleY(1); clip-path: inset(0 0 0 round 7px); }
}
@keyframes account-paper-refold { to { opacity: 0; transform: rotateX(-48deg) scaleY(.7); clip-path: inset(0 0 30% round 7px); } }
@media (min-width: 761px) { .site-header .header-actions .account-menu-root { grid-column: 2; grid-row: 1; justify-self: start; } }
@media (max-width: 430px) {
  body .site-header .account-menu-root .account-button { max-width: 156px; }
  body .site-header .account-menu-root #account-label { max-width: 92px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-paper-menu.is-open, .account-paper-menu.is-closing { animation: none; }
  .account-menu-chevron { transition: none; }
}
