/* E-019 Profile Polish & Avatar Crop */
.profile-avatar-modal.e019-profile-modal{
  position:relative;
  padding:34px 28px max(34px, calc(env(safe-area-inset-bottom) + 26px))!important;
  max-height:min(86vh, 820px)!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
.e019-profile-modal .modal-head{display:none!important;}
.e019-profile-modal .profile-close{
  position:absolute!important;
  top:24px!important;
  right:24px!important;
  z-index:5!important;
}
.e019-profile-modal .profile-card-upgraded{
  margin-top:6px!important;
  padding-right:74px!important;
}
.e019-profile-modal .profile-avatar-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  width:100%!important;
  margin:22px 0 18px!important;
}
.e019-profile-modal .profile-avatar-actions .action-btn{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding-left:18px!important;
  padding-right:18px!important;
}
.e019-crop-modal{
  position:relative;
  padding:34px 28px max(32px, calc(env(safe-area-inset-bottom) + 24px))!important;
  max-height:min(86vh, 820px)!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
.e019-crop-modal .profile-close{
  position:absolute!important;
  top:24px!important;
  right:24px!important;
  z-index:5!important;
}
.e019-crop-title{
  font-size:44px;
  line-height:.95;
  letter-spacing:-.045em;
  margin:6px 74px 18px 0;
  color:#071a33;
}
.e019-crop-stage{
  width:min(270px,72vw);
  height:min(270px,72vw);
  margin:16px auto 22px;
  border-radius:32px;
  overflow:hidden;
  position:relative;
  background:#eef2f7;
  box-shadow:0 18px 44px rgba(15,23,42,.14), inset 0 0 0 1px rgba(15,23,42,.08);
  touch-action:none;
}
.e019-crop-stage::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:32px;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.82), inset 0 0 0 4px rgba(20,184,166,.20);
  pointer-events:none;
}
.e019-crop-img{
  position:absolute;
  left:50%;
  top:50%;
  max-width:none!important;
  user-select:none;
  -webkit-user-drag:none;
  transform-origin:center center;
}
.e019-crop-controls{
  display:grid;
  gap:12px;
  margin:0 0 20px;
}
.e019-crop-controls label{
  font-weight:900;
  color:#64748b;
}
.e019-crop-controls input[type=range]{
  width:100%;
  accent-color:#14b8a6;
}
.e019-crop-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.e019-crop-actions .action-btn{width:100%!important;margin:0!important;}
@media(max-width:390px){
  .e019-profile-modal .profile-avatar-actions,
  .e019-crop-actions{grid-template-columns:1fr!important;}
  .e019-profile-modal{padding-left:22px!important;padding-right:22px!important;}
}
