.profile-dialog [data-profile-user],
.profile-summary { width: 100%; }
.profile-summary { display: grid; justify-items: center; gap: 9px; }
.profile-summary[hidden], .profile-edit-form[hidden] { display: none !important; }
.profile-edit-button {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; margin-top: 16px; padding: 15px 19px;
  border: 1px solid #24211e; border-radius: 30px;
  color: #fffaf2; background: #24211e; font: inherit; font-size: 13px; cursor: pointer;
}
.profile-edit-form { width: 100%; text-align: left; }
.profile-edit-form .profile-edit-intro { margin: -5px 0 23px; text-align: center; font-size: 13px; }
.profile-edit-form label { display: block; margin: 17px 0 8px; font-size: 12px; color: #6d665e; }
.profile-edit-form input {
  box-sizing: border-box; width: 100%; min-height: 49px; padding: 13px 15px;
  border: 1px solid #ded8ce; border-radius: 15px; background: #fffdf9;
  font: inherit; font-size: 16px; color: #24211e;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.profile-edit-form input:focus-visible { outline: none; border-color: #8d8070; box-shadow: 0 0 0 3px #c2b5a22b; }
.profile-edit-form input[aria-invalid="true"], .registration-form input[aria-invalid="true"] { border-color: #a94d3b; }
.profile-edit-form .profile-edit-message { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #785040; }
.profile-edit-message:empty { display: none; }
.profile-edit-actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 25px; }
.profile-edit-actions button { min-height: 46px; padding: 12px 15px; border: 1px solid #ded8ce; border-radius: 28px; background: transparent; color: #6d665e; font: inherit; font-size: 12px; cursor: pointer; }
.profile-edit-actions button[type="submit"] { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fffaf2; border-color: #24211e; background: #24211e; }
.profile-edit-form button:disabled, .profile-edit-form input:disabled { opacity: .6; cursor: wait; }
@media (max-width: 359px) {
  .profile-edit-actions { gap: 8px; }
  .profile-edit-actions button { padding: 12px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .profile-edit-form input { transition: none; } }
