.profile-heading { margin-bottom: 18px; }
.profile-overview, .profile-edit-card { padding: clamp(17px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.profile-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); gap: 24px; align-items: center; }
.profile-photo-block { display: flex; align-items: center; gap: 19px; min-width: 0; }
.profile-photo { display: grid; place-items: center; flex: 0 0 112px; width: 112px; height: 112px; overflow: hidden; border: 4px solid #e5f4f5; border-radius: 50%; background: linear-gradient(140deg, #e8f9f8, #f5f9e6); color: var(--accent); font-size: 43px; font-weight: 850; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-copy { flex: 1; min-width: 0; }
.profile-photo-copy h2 { margin: 4px 0; font-size: 20px; letter-spacing: -.04em; }
.profile-photo-copy p, .profile-edit-heading p { max-width: 490px; margin: 5px 0 12px; color: var(--muted); font-size: 12px; }
.photo-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; max-width: 540px; }
.photo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.photo-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f7fafb; color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.photo-picker:hover { border-color: #9acdd0; background: #f0f8f8; }
.photo-picker:focus-within { outline: 3px solid rgba(8, 127, 140, .16); border-color: var(--accent); }
.photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-save { min-height: 44px; padding: 9px 15px; border-radius: 11px; font-size: 12px; white-space: nowrap; }
.photo-save span { font-size: 14px; }
.photo-delete-form { grid-column: 2; grid-row: 1; margin: 0; }
.photo-delete { min-height: 44px; padding: 9px 12px; border: 1px solid #f0d9d6; border-radius: 11px; background: #fff8f6; color: #a4514a; font-size: 11px; white-space: nowrap; }
.photo-delete:hover { border-color: #e7bcb5; background: #fff0ed; }
.photo-delete span { font-size: 16px; line-height: 1; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-stats article { min-width: 0; min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 12px; border: 1px solid #e8eff0; border-radius: 12px; background: #f8fbfb; }
.profile-stats small { color: #87939b; font-size: 8px; letter-spacing: .1em; font-weight: 850; }
.profile-stats b { margin-top: 5px; font-size: clamp(11px, 1.5vw, 15px); line-height: 1.25; }
.profile-edit-card { margin-top: 15px; }
.profile-edit-heading h2 { margin: 4px 0; font-size: 23px; letter-spacing: -.045em; }
.current-goal { display: grid; gap: 2px; margin: 16px 0; padding: 13px 15px; border: 1px solid #d8eded; border-radius: 12px; background: linear-gradient(100deg, #eef9f8, #f7faed); }
.current-goal span { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.current-goal b { font-size: 16px; }
.current-goal small { color: var(--muted); font-size: 11px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-form-grid > label { display: grid; gap: 5px; color: #4d6064; font-size: 11px; font-weight: 800; }
.profile-form-grid input, .profile-form-grid select { min-width: 0; width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #dce6e8; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.profile-form-grid input:focus, .profile-form-grid select:focus { outline: 0; border-color: #79c4cb; box-shadow: 0 0 0 3px rgba(8,127,140,.12); }
.profile-submit { margin-top: 16px; }
.profile-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; padding: 11px 12px; border-radius: 10px; background: #f5f8f2; color: #718077; font-size: 10px; line-height: 1.55; }
.profile-shortcut { display: grid; gap: 3px; color: inherit; text-decoration: none; }
.profile-shortcut b { font-size: 17px; }
.profile-shortcut > span:last-child { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .profile-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .profile-photo { flex-basis: 84px; width: 84px; height: 84px; font-size: 34px; }
  .profile-photo-block { align-items: flex-start; gap: 13px; }
  .profile-photo-copy h2 { font-size: 17px; }
  .profile-photo-copy p { font-size: 11px; }
  .photo-actions { grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: none; }
  .photo-form { display: grid; grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .photo-picker, .photo-save { width: 100%; min-width: 0; }
  .photo-delete-form { grid-column: 1; grid-row: auto; }
  .profile-stats { gap: 6px; }
  .profile-stats article { min-height: 75px; padding: 9px 8px; }
  .profile-stats small { font-size: 7px; }
  .profile-stats b { font-size: 11px; }
  .profile-form-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .profile-form-grid input, .profile-form-grid select { min-height: 48px; font-size: 16px; }
  .profile-submit { width: 100%; min-height: 48px; }
}
@media (max-width: 480px) {
  .photo-picker, .photo-save { width: 100%; min-width: 0; min-height: 42px; padding: 8px 6px; border-radius: 10px; font-size: 11px; }
  .photo-save { gap: 5px; }
  .photo-delete { min-height: 39px; padding: 7px 10px; font-size: 11px; }
}
@media (max-width: 380px) {
  .photo-save span { display: none; }
}
