.profile-editor {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 251, 254, 0.8);
}
.profile-editor > .section-heading h2 {
  color: #80647a;
  font-size: 21px;
  letter-spacing: 0.5px;
}
.profile-editor > .section-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1.7px;
}
.profile-editor-tabs {
  display: flex;
  gap: 24px;
  margin: 22px 0 28px;
  border-bottom: 1px solid var(--line);
}
.profile-editor-tabs > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 2px;
  background: transparent;
  color: #ad95a6;
  font-size: 12px;
}
.profile-editor-tabs > button .icon {
  width: 15px;
  height: 15px;
}
.profile-editor-tabs > button[aria-selected='true'] {
  color: var(--rose-deep);
}
.profile-editor-tabs > button[aria-selected='true']::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #ca8fa9;
}
.profile-editor-tabs > button:disabled {
  cursor: default;
}
.profile-editor-panel {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.profile-editor-aside {
  min-width: 0;
  padding: 24px 16px;
  border: 1px solid rgba(224, 195, 215, 0.25);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(245, 230, 240, 0.5), rgba(244, 235, 249, 0.4));
}
.profile-editor .avatar-edit-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  text-align: center;
}
.profile-editor .avatar-edit-row > .avatar {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 18px rgba(132, 88, 117, 0.08);
}
.profile-editor .avatar-edit-row .field-hint {
  margin-top: -5px;
  font-size: 8px;
}
.profile-editor .upload-label {
  background: rgba(255, 252, 255, 0.72);
  padding: 8px 14px;
}
.profile-editor .profile-readonly {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  text-align: center;
}
.profile-editor .profile-readonly strong {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.profile-editor .profile-readonly small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.profile-readonly small .icon {
  width: 10px;
  height: 10px;
}
.profile-editor .form-field label {
  margin-bottom: 9px;
}
.profile-editor .form-field input,
.profile-editor .form-field textarea {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}
.profile-editor .field-hint {
  text-align: right;
  font-size: 9px;
}
.profile-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.profile-save-row .button {
  min-height: 39px;
  padding: 9px 17px;
  font-size: 11px;
  flex-shrink: 0;
}
.profile-save-row .button .icon {
  width: 14px;
  height: 14px;
}
.profile-cancel {
  background: transparent;
  padding: 8px 3px;
  color: #a38b9b;
  font-size: 11px;
}
.profile-cancel:hover {
  color: var(--rose-deep);
}
.profile-security-aside {
  padding: 25px 20px;
}
.profile-security-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  background: rgba(244, 222, 235, 0.55);
  color: #b786a4;
}
.profile-security-symbol .icon {
  width: 20px;
  height: 20px;
}
.profile-security-aside .eyebrow {
  font-size: 6px;
  letter-spacing: 1.1px;
}
.profile-security-aside h3 {
  margin-top: 11px;
  color: #a08499;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
}
.password-new-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-save-note {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b39cab;
  font-size: 9px;
}
.profile-save-note .icon {
  width: 12px;
  height: 12px;
}
.profile-editor .password-required-notice {
  margin: 22px 0 0;
}
.password-required-notice h3 {
  font-size: 13px;
  font-weight: 500;
  color: #a16386;
}
@media (max-width: 700px) {
  .profile-details {
    flex: 1 1 130px;
  }
  .profile-editor {
    padding: 22px 18px;
    border-radius: 19px;
  }
  .profile-editor > .section-heading h2 {
    font-size: 18px;
  }
  .profile-editor-tabs {
    gap: 22px;
    margin: 16px 0 22px;
  }
  .profile-editor-tabs > button {
    font-size: 11px;
    gap: 6px;
  }
  .profile-editor-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }
  .profile-editor-aside {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .profile-editor .avatar-edit-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px 15px;
    justify-items: start;
    text-align: left;
  }
  .profile-editor .avatar-edit-row > .avatar {
    grid-row: span 2;
    width: 62px;
    height: 62px;
    border-width: 3px;
  }
  .profile-editor .avatar-edit-row .field-hint {
    text-align: left;
    align-self: start;
    line-height: 1.8;
  }
  .profile-editor .profile-readonly {
    margin-top: 17px;
    padding-top: 14px;
    text-align: left;
  }
  .profile-editor .profile-readonly small {
    justify-content: start;
  }
  .profile-editor .form-field input,
  .profile-editor .form-field textarea {
    font-size: 14px;
  }
  .profile-save-row {
    margin-top: 14px;
    gap: 10px;
  }
  .profile-security-aside {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 4px 13px;
    align-items: center;
  }
  .profile-security-symbol {
    grid-row: span 2;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    margin: 0;
  }
  .profile-security-aside h3 {
    font-size: 14px;
    margin: 0;
    line-height: 1.8;
  }
  .password-new-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
