:root { --profile-accent: #6366f1; }

body.profile-page { background: #f5f5f7; }
.profile-page .navbar {
  background: rgba(255,255,255,.94);
  border-bottom: .5px solid rgba(17,24,39,.06);
}
.profile-page .navbar h1 { font-size: 18px; }
.profile-save {
  border: 0;
  background: none;
  color: var(--profile-accent);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0 8px 8px;
  cursor: pointer;
}
.profile-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.profile-section {
  background: #fff;
  margin: 0 0 12px;
  overflow: hidden;
}
.profile-section-title {
  padding: 10px 20px 7px;
  color: #8a8f99;
  background: #f5f5f7;
  font-size: 12px;
  font-weight: 500;
}
.profile-row {
  min-height: 58px;
  margin-left: 20px;
  padding: 10px 18px 10px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: .5px solid #eceef2;
}
.profile-row:last-child { border-bottom: 0; }
.profile-row.avatar-row { min-height: 88px; }
.profile-label {
  width: 88px;
  flex: 0 0 88px;
  color: #24272d;
  font-size: 15px;
  font-weight: 500;
}
.profile-control {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.profile-input,
.profile-select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #343840;
  text-align: right;
  font: inherit;
  font-size: 15px;
}
.profile-input::placeholder { color: #b5b8bf; }
.profile-select {
  appearance: none;
  -webkit-appearance: none;
}
.profile-chevron {
  flex: 0 0 auto;
  color: #b2b5bb;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.avatar-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(99,102,241,.18);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-tip {
  padding: 4px 20px 18px;
  color: #999ea7;
  font-size: 12px;
  line-height: 1.6;
}
.profile-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  transform: translate(-50%, 18px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17,24,39,.92);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.profile-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  .profile-content { padding-top: 24px; }
  .profile-section { border-radius: 18px; box-shadow: var(--shadow); }
  .profile-section-title { margin-top: 4px; }
}
