.loginAvatar.profilePreviewTrigger{
  cursor:zoom-in;
  -webkit-tap-highlight-color:transparent;
}
.loginAvatar.profilePreviewTrigger:focus-visible{
  outline:3px solid #f8b84e;
  outline-offset:4px;
}
html.profilePhotoPreviewOpen,
html.profilePhotoPreviewOpen body{
  overflow:hidden!important;
  overscroll-behavior:none;
}
.profilePhotoPreviewOverlay{
  position:fixed;
  inset:0;
  z-index:12000;
  display:grid;
  place-items:center;
  padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  background:rgba(15,31,46,.78);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
  animation:profilePreviewFadeIn .16s ease-out;
}
.profilePhotoPreviewDialog{
  position:relative;
  display:grid;
  place-items:center;
  width:min(88vw,560px);
  max-height:calc(100dvh - 40px);
  padding:18px;
  border:1px solid rgba(255,255,255,.76);
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}
.profilePhotoPreviewDialog img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:calc(100dvh - 76px);
  margin:auto;
  border-radius:16px;
  object-fit:contain;
}
.profilePhotoPreviewClose{
  position:absolute;
  top:10px;
  right:10px;
  z-index:1;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(255,255,255,.74);
  border-radius:50%;
  background:rgba(28,48,66,.88);
  color:#fff;
  font:700 30px/38px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:center;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(0,0,0,.22);
}
.profilePhotoPreviewClose:focus-visible{
  outline:3px solid #f8b84e;
  outline-offset:2px;
}
@supports not (height:100dvh){
  .profilePhotoPreviewDialog{max-height:calc(100vh - 40px)}
  .profilePhotoPreviewDialog img{max-height:calc(100vh - 76px)}
}
@media(max-width:768px){
  .profilePhotoPreviewOverlay{
    padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  }
  .profilePhotoPreviewDialog{
    width:min(92vw,520px);
    max-height:calc(100dvh - 28px);
    padding:12px;
    border-radius:18px;
  }
  .profilePhotoPreviewDialog img{
    max-height:calc(100dvh - 52px);
    border-radius:13px;
  }
  .profilePhotoPreviewClose{
    top:8px;
    right:8px;
    width:40px;
    height:40px;
    font-size:28px;
    line-height:36px;
  }
}
@media(prefers-reduced-motion:reduce){
  .profilePhotoPreviewOverlay{animation:none}
}
@keyframes profilePreviewFadeIn{
  from{opacity:0}
  to{opacity:1}
}
