.profile-edit-page {
  min-height: 100svh;
  padding: 64px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-edit-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 25;
  padding: 8px 16px;
  transition: opacity 180ms ease;
  height: 48px;
  box-sizing: border-box;
}

.profile-edit-header--hidden {
  opacity: 0;
  pointer-events: none;
}

.profile-edit-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.profile-edit-cancel {
  background: none;
  border: none;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  position: absolute;
  right: 16px;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.profile-edit-card {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 16px calc(32px + 64px + env(safe-area-inset-bottom));
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  width: 100%;
  flex: 1;
  transition: opacity 160ms ease;
}

.profile-edit-card--loading {
  pointer-events: none;
}

.profile-edit-card--loading .profile-edit-avatar,
.profile-edit-card--loading .profile-edit-name,
.profile-edit-card--loading .profile-edit-label,
.profile-edit-card--loading .profile-edit-field,
.profile-edit-card--loading .profile-edit-mid,
.profile-edit-card--loading .profile-edit-btn {
  background: linear-gradient(90deg, #e5eaf1 25%, #f3f6fb 50%, #e5eaf1 75%);
  background-size: 200% 100%;
  animation: profile-edit-skeleton 1.2s ease-in-out infinite;
}

.profile-edit-card--loading .profile-edit-avatar {
  border-radius: 50%;
}

.profile-edit-card--loading .profile-edit-avatar img,
.profile-edit-card--loading .profile-edit-avatar-letter,
.profile-edit-card--loading .profile-edit-icon {
  visibility: hidden;
}

.profile-edit-card--loading .profile-edit-name {
  color: transparent;
  height: 20px;
  width: 160px;
  border-radius: 8px;
  margin: 0 auto;
}

.profile-edit-card--loading .profile-edit-label {
  color: transparent;
  height: 12px;
  width: 100px;
  border-radius: 6px;
  display: inline-block;
}

.profile-edit-card--loading .profile-edit-field {
  border-color: transparent;
}

.profile-edit-card--loading .profile-edit-field::after {
  opacity: 0;
}

.profile-edit-card--loading .profile-edit-input {
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
}

.profile-edit-card--loading .profile-edit-input::placeholder {
  color: transparent;
}

.profile-edit-card--loading .profile-edit-mid {
  color: transparent;
  height: 12px;
  width: 24px;
  border-radius: 6px;
}

.profile-edit-card--loading .profile-edit-btn {
  color: transparent;
  border: none;
}

.profile-edit-card--loading .profile-edit-btn img {
  visibility: hidden;
}

@keyframes profile-edit-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.profile-edit-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d1d5db;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
}

.profile-edit-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-edit-avatar-letter {
  font-weight: 800;
  font-size: 24px;
  color: #111827;
}

.profile-edit-name {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.profile-edit-label {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #1b1b1b;
}

.profile-edit-field {
  display: flex;
  align-items: center;
  border-radius: 20px;
  min-height: 40px;
  font-size: 16px;
  transition: border 0.2s;
  gap: 10px;
  position: relative;
  background: #fff;
  border: 1px solid #d1d5db;
}

.profile-edit-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  border-radius: 50%;
  box-sizing: content-box;
  pointer-events: none;
}

.profile-edit-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  height: 46px;
  padding-left: 40px;
}

.profile-edit-input::placeholder {
  color: #8b95a5;
}

.profile-edit-field--select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-edit-field--select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 32px;
}

.profile-edit-field--time .profile-edit-input {
  /* padding-right: 32px; */
}

.profile-edit-field--time::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-edit-field--time .profile-edit-input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

.profile-edit-field--time .profile-edit-input[type="time"]::-webkit-inner-spin-button,
.profile-edit-field--time .profile-edit-input[type="time"]::-webkit-clear-button {
  display: none;
}

.profile-edit-field--action {
  cursor: pointer;
}

.profile-edit-photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-edit-time {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.profile-edit-mid {
  font-size: 14px;
  font-weight: 700;
  color: #1b1b1b;
  text-align: center;
}

.profile-edit-btn {
  width: auto;
  background: #181818;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: background 0.2s;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
}

.profile-edit-btn:active {
  background: #222;
}

.profile-edit-btn img {
  width: 18px;
  height: 18px;
}
