  /* ---------- Profile ---------- */
  .profile-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 14px; padding: 16px; margin-bottom: 18px; cursor: pointer;
    box-shadow: 6px 6px 16px rgba(var(--shadow-d-rgb),0.22), -6px -6px 16px rgba(var(--shadow-l-rgb),0.65); }
  .profile-card-avatar { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent-text); font-weight: 700; font-size: 20px; overflow: hidden; }
  .profile-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-card-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; color: var(--ink); }
  .profile-card-bio { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .profile-edit-avatar-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
  .profile-edit-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent-text); font-weight: 700; font-size: 28px; overflow: hidden; cursor: pointer; position: relative; }
  .profile-edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-edit-avatar-hint { position: absolute; inset: 0; background: rgba(0,0,0,0.4); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; opacity: 0; transition: opacity 0.15s; }
  .profile-edit-avatar:active .profile-edit-avatar-hint { opacity: 1; }

  .avatar-crop-viewport { width: 280px; height: 280px; max-width: 100%; border-radius: 50%; overflow: hidden; position: relative; margin: 4px auto 18px; background: #111; cursor: grab; touch-action: none; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--line); }
  .avatar-crop-viewport.dragging { cursor: grabbing; }
  .avatar-crop-viewport img { position: absolute; top: 0; left: 0; transform-origin: 0 0; -webkit-user-drag: none; user-select: none; pointer-events: none; }
  .avatar-crop-zoom-row { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: var(--muted); }
  .avatar-crop-zoom-row input[type="range"] { flex: 1; accent-color: var(--accent); }
  .avatar-crop-hint-text { text-align: center; font-size: 12px; color: var(--muted); margin: -10px 0 16px; }
  .profile-field { margin-bottom: 14px; }
  .profile-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
  .profile-field input, .profile-field textarea { width: 100%; border: none; border-radius: 10px; padding: 11px 13px; font-family: 'Inter', sans-serif; font-size: 14.5px; background: var(--paper); color: var(--ink); outline: none; box-sizing: border-box;
    box-shadow: inset 2px 2px 5px rgba(var(--shadow-d-rgb),0.18), inset -2px -2px 4px rgba(var(--shadow-l-rgb),0.6); }
  .profile-field textarea { resize: vertical; min-height: 70px; font-family: 'Inter', sans-serif; }

