.profile-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  z-index: 100;
}
.profile-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border: 1px solid #E1E3E3;
  border-radius: 50%;
  background: #F1F2F3;
  color: #272929;
  cursor: pointer;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  touch-action: manipulation;
}
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary .navigation-menu-icon { display: block; width: 24px; height: 24px; }
.profile-menu > summary:hover,
.profile-menu[open] > summary { background: #E5E7E8; box-shadow: 0 0 0 5px #F4F5F6; }
.profile-menu > summary:focus-visible { outline: 2px solid #17321F; outline-offset: 5px; }
.profile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 12px;
  border-radius: 28px;
  background: #FFF;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .13);
}
.profile-menu-panel a,
.profile-menu-panel button {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  background: #FFF;
  color: #666866;
  font: 400 18px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.profile-menu-panel a:hover,
.profile-menu-panel button:hover { background: #F3F5F3; color: #17321F; }
.profile-menu-panel a:focus-visible,
.profile-menu-panel button:focus-visible { outline: 2px solid #17321F; outline-offset: -2px; background: #F3F5F3; color: #17321F; }
.profile-menu-panel a[aria-current="page"] { background:#F3F5F3; color:#17321F; }
.login-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #FFF;
  overflow: hidden;
  animation: login-popup-enter 180ms ease-out;
}
.login-popup::backdrop { background: #FFF; }
.login-popup iframe { display: block; width: 100%; height: 100%; border: 0; background: #FFF; opacity:0; pointer-events:none; transition:opacity 200ms ease; }
.login-popup.is-ready iframe { opacity:1; pointer-events:auto; }
.login-popup-loading { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; padding:32px; background:#FFF; color:#6B6F6C; font:400 14px/1.6 "Helvetica Neue",Helvetica,Arial,sans-serif; text-align:center; transition:opacity 200ms ease, visibility 200ms; }
.login-popup-loading img { width:48px; height:48px; }
.login-popup-loading p { margin:0; }
.login-popup-loading a { color:#17321F; text-underline-offset:3px; }
.login-popup.is-ready .login-popup-loading { opacity:0; visibility:hidden; pointer-events:none; }
.login-popup-spinner { width:24px; height:24px; border:2px solid #E6EBE7; border-top-color:#17321F; border-radius:50%; animation:login-popup-spin 800ms linear infinite; }
@keyframes login-popup-spin { to { transform:rotate(360deg); } }
@keyframes login-popup-enter { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
  .login-popup, .login-popup-spinner { animation:none; }
  .login-popup iframe, .login-popup-loading { transition:none; }
}
.login-popup-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFF;
  color: #666866;
  font: 300 36px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}
.login-popup-close:hover { background: #F3F5F3; color: #17321F; }
.login-popup-close:focus-visible { outline: 2px solid #17321F; outline-offset: 2px; }
html.login-popup-open, html.login-popup-open body { overflow: hidden; overscroll-behavior: none; }
