.profile-edit {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.profile-edit__nav {
  flex-shrink: 0;
  background: $bg;
}

.profile-edit__nav-row {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 16px;
}

.profile-edit__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg;
}

.profile-edit__nav-title {
  flex: 1;
  text-align: center;
  color: $fg;
  font: 700 17px / 1 $font-display;
}

.profile-edit__nav-spacer {
  width: 36px;
}

.profile-edit__scroll {
  flex: 1;
  min-height: 0;
  padding: 8px 20px 40px;
  box-sizing: border-box;
}

.profile-edit__avatar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 24px;
}

.profile-edit__avatar-btn {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 50%;
  line-height: normal;
}

.profile-edit__avatar-btn::after {
  border: none;
}

.profile-edit__avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.profile-edit__avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: $accent;
  color: $primary-on;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid $bg;
}

.profile-edit__avatar-hint {
  margin-top: 10px;
  color: $muted;
  font: 400 12px / 1 $font-body;
}

.profile-edit__field {
  margin-bottom: 18px;
}

.profile-edit__label {
  display: block;
  margin-bottom: 8px;
  color: $fg-2;
  font: 600 13px / 1 $font-body;
}

.profile-edit__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(31, 23, 66, 0.68);
  border: 1px solid rgba(216, 180, 255, 0.1);
  color: $fg;
  font: 400 14px / 46px $font-body;
}

.profile-edit__textarea {
  width: 100%;
  height: 84px;
  padding: 12px 14px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(31, 23, 66, 0.68);
  border: 1px solid rgba(216, 180, 255, 0.1);
  color: $fg;
  font: 400 14px / 1.5 $font-body;
}

.profile-edit__placeholder {
  color: $muted;
}

.profile-edit__picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(31, 23, 66, 0.68);
  border: 1px solid rgba(216, 180, 255, 0.1);
}

.profile-edit__picker-value {
  color: $fg;
  font: 400 14px / 1 $font-body;
}

.profile-edit__picker-ph {
  color: $muted;
  font: 400 14px / 1 $font-body;
}

.profile-edit__picker-arrow {
  color: $muted;
  transform: rotate(90deg);
}

.profile-edit__footer {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  background: $bg;
  border-top: 1px solid rgba(216, 180, 255, 0.06);
}

.profile-edit__submit {
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  border-radius: $radius-pill;
  text-align: center;
  background: linear-gradient(90deg, $accent 0%, $accent-2 100%);
  color: $primary-on;
  font: 700 15px / 1 $font-body;
}

.profile-edit__submit:active {
  opacity: 0.9;
}
