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

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

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

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

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

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

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

.pet-edit__photo-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 24px;
}

.pet-edit__photo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(216, 180, 255, 0.3);
}

.pet-edit__photo-img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
}

.pet-edit__photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: $muted;
}

.pet-edit__photo-hint {
  font: 500 12px / 1 $font-body;
}

.pet-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);
}

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

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

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

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

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

.pet-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;
}

.pet-edit__placeholder {
  color: $muted;
}

.pet-edit__input--mt {
  margin-top: 10px;
}

.pet-edit__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pet-edit__tag {
  padding: 8px 12px;
  border-radius: $radius-pill;
  background: rgba(45, 34, 85, 0.4);
  border: 1px solid rgba(216, 180, 255, 0.1);
  color: $fg-2;
  font: 500 12px / 1 $font-body;
}

.pet-edit__tag--active {
  background: linear-gradient(90deg, rgba(216, 180, 255, 0.22), rgba(255, 179, 200, 0.22));
  border-color: rgba(216, 180, 255, 0.4);
  color: $fg;
}

.pet-edit__tag--add {
  color: $accent;
  border-style: dashed;
  border-color: rgba(216, 180, 255, 0.4);
}

.pet-edit__delete {
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 138, 155, 0.1);
  border: 1px solid rgba(255, 138, 155, 0.2);
  color: $danger;
  font: 600 14px / 1 $font-body;
}

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

.pet-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;
}

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