/* Account profile editor only. Deliberately isolated from Django custom.css and other Angular forms.
 * Materialize's floating labels and underline inputs conflict with ordinary form markup.
 * Do not change global input selectors or the onboarding/task creation forms.
 */
.profile-edit-v2 { --pe-border:#d9e5dd; --pe-text:#253c2f; --pe-green:#168248; }
.profile-edit-v2 .profile-edit-container { width:min(100% - 32px, 1060px); max-width:1060px; }
.profile-edit-v2 .profile-edit-header { align-items:center; margin-bottom:26px; }
.profile-edit-v2 .profile-edit-header h1 { margin:3px 0 7px; font-size:clamp(1.8rem, 2.8vw, 2.5rem); line-height:1.14; font-weight:760; color:#20392a; }
.profile-edit-v2 .profile-edit-header p { max-width:680px; font-size:.94rem; line-height:1.6; }
.profile-edit-v2 .profile-edit-back { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:42px; }
.profile-edit-v2 .profile-edit-back .material-icons { margin:0; font-size:19px; }
.profile-edit-v2 .profile-edit-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.12fr); gap:18px; align-items:start; }
.profile-edit-v2 .profile-edit-grid > * { min-width:0; }
.profile-edit-v2 .profile-edit-card { min-width:0; padding:clamp(18px, 2vw, 28px); border-radius:20px; box-shadow:0 10px 30px rgba(22,55,37,.05); }
.profile-edit-v2 .profile-edit-card__title { margin-bottom:22px; }
.profile-edit-v2 .profile-edit-card__title strong { font-size:1.05rem; }
.profile-edit-v2 .profile-edit-card__title small { font-size:.78rem; line-height:1.4; }
.profile-edit-v2 .profile-edit-avatar-row { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:0 0 24px; }
.profile-edit-v2 .profile-edit-avatar-preview { flex:none; --profile-avatar-size:84px; }
.profile-edit-v2 .profile-edit-avatar-controls { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:5px 12px; min-width:0; flex:1 1 13rem; max-width:100%; }
.profile-edit-v2 .profile-edit-avatar-controls small { display:block; flex-basis:100%; margin:2px 0 0; font-size:.78rem; color:#65766c; }
.profile-edit-v2 .profile-edit-remove-avatar { min-block-size:44px; }
.profile-edit-v2 .profile-edit-field { position:relative; display:flex !important; flex-direction:column !important; gap:7px; min-width:0; margin:0 0 17px !important; text-align:left; }
.profile-edit-v2 .profile-edit-field > label { position:static !important; transform:none !important; inset:auto !important; width:auto !important; height:auto !important; max-width:100%; margin:0 !important; padding:0 !important; line-height:1.45 !important; color:#344e3d !important; font-size:.82rem !important; font-weight:700 !important; pointer-events:auto !important; }
.profile-edit-v2 .profile-edit-field > :is(input:not([type='checkbox'],.p-inputtext), textarea:not(.p-textarea), select) {
  display:block !important; width:100% !important; max-width:100% !important; min-width:0 !important;
  height:46px !important; min-height:46px !important; margin:0 !important; padding:10px 13px !important;
  border:1px solid var(--pe-border) !important; border-radius:10px !important;
  outline:0 !important; box-shadow:none !important; box-sizing:border-box !important;
  background:#fff !important; color:var(--pe-text) !important; font:inherit !important;
  font-size:.94rem !important; line-height:1.5 !important; text-indent:0 !important;
  transition:border-color 120ms ease, box-shadow 120ms ease;
}
.profile-edit-v2 .profile-edit-field > :is(input:not(.p-inputtext), textarea:not(.p-textarea), select):focus { border-color:var(--pe-green) !important; box-shadow:0 0 0 3px rgba(22,130,72,.13) !important; }
.profile-edit-v2 .profile-edit-field > input[readonly] { background:#f2f6f3 !important; color:#566a5e !important; cursor:default; }
.profile-edit-v2 .profile-edit-field > small, .profile-edit-v2 .profile-edit-panel > small { font-size:.76rem; line-height:1.5; color:#687c70; }
.profile-edit-v2 .profile-edit-two-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.profile-edit-v2 .profile-edit-field--bio > textarea { height:240px !important; min-height:200px !important; padding:13px 15px !important; resize:vertical !important; overflow-y:auto !important; line-height:1.65 !important; white-space:pre-wrap; overflow-wrap:anywhere; }
.profile-edit-v2 .profile-edit-field-meta { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.profile-edit-v2 .profile-edit-field-meta small { font-size:.78rem; color:#6d7f73; }
.profile-edit-v2 .profile-edit-field-meta output { flex:none; color:#637d6a; font-size:.76rem; font-variant-numeric:tabular-nums; }
.profile-edit-v2 .profile-edit-panel { display:block; min-width:0; margin:8px 0 22px; padding:17px 16px 6px; border:1px solid #e1eae4; border-radius:14px; background:#f8fbf9; }
.profile-edit-v2 .profile-edit-panel > legend { padding:0 7px; color:#2c5a3d; font-size:.86rem; font-weight:740; }
.profile-edit-v2 .profile-edit-panel > .profile-edit-field:last-child { margin-bottom:13px !important; }
.profile-edit-v2 .profile-edit-company { margin-bottom:0; }
.profile-edit-v2 .profile-edit-specialties { min-width:0; border:0; margin:22px 0 0; padding:0; }
.profile-edit-v2 .profile-edit-specialties > legend { font-size:.94rem; font-weight:750; margin-bottom:3px; color:#344c3d; }
.profile-edit-v2 .profile-edit-specialties > p { font-size:.8rem; line-height:1.55; margin:4px 0 13px; color:#697c70; }
.profile-edit-v2 .profile-edit-category-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.profile-edit-v2 .profile-edit-category-option { display:flex; min-width:0; gap:10px; min-height:54px; padding:10px 12px; border-radius:12px; background:#fff; align-items:flex-start; cursor:pointer; }
.profile-edit-v2 .profile-edit-category-option:has(input:checked) { border-color:#9dcaae; background:#eff8f1; }
.profile-edit-v2 .profile-edit-category-option > input[type='checkbox'] { position:static !important; display:block !important; flex:none; width:17px !important; height:17px !important; margin:3px 0 0 !important; opacity:1 !important; appearance:auto !important; pointer-events:auto !important; cursor:pointer; accent-color:var(--pe-green); }
.profile-edit-v2 .profile-edit-category-option > span:last-child { display:block; min-width:0; color:#3b5242; font-size:.83rem; line-height:1.45; overflow-wrap:anywhere; }
.profile-edit-v2 .profile-edit-actions { grid-column:1 / -1; display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:3px; padding:10px 0 0; }
.profile-edit-v2 .profile-edit-actions .btn { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 20px; border-radius:10px; }
.profile-edit-v2 .profile-edit-actions .material-icons { margin:0; font-size:19px; }
.profile-edit-v2 .profile-edit-errors { grid-column:1 / -1; margin:0 0 20px; font-size:.9rem; line-height:1.5; }
.profile-edit-v2 :is(button, input, select, textarea, a):focus-visible { outline:3px solid #0a8c49; outline-offset:3px; }
@media (max-width:900px) { .profile-edit-v2 .profile-edit-grid { grid-template-columns:1fr; } }
@media (max-width:600px) {
  .profile-edit-v2 .profile-edit-container { width:min(100% - 22px, 1060px); }
  .profile-edit-v2 .profile-edit-header { gap:14px; flex-direction:column; align-items:flex-start; }
  .profile-edit-v2 .profile-edit-two-cols, .profile-edit-v2 .profile-edit-category-list { grid-template-columns:1fr; }
  .profile-edit-v2 .profile-edit-card { padding:18px 15px; }
  .profile-edit-v2 .profile-edit-avatar-controls { max-width:calc(100% - 100px); }
  .profile-edit-v2 .profile-edit-actions { flex-direction:column-reverse; align-items:stretch; }
  .profile-edit-v2 .profile-edit-actions .btn { width:100%; }
}
@media (prefers-reduced-motion:reduce) { .profile-edit-v2 .profile-edit-field > :is(input, textarea, select) { transition:none; } }
.profile-edit-v2 .profile-edit-field > :is(.p-inputtext, .p-textarea) { box-sizing: border-box; width: 100%; min-width: 0; }
