.profile-editor { max-width:620px; }
.profile-photo-row { display:flex; align-items:center; gap:18px; margin:0 0 27px; }
.profile-photo-row .avatar { width:64px; height:64px; font-size:1.125rem; }
.profile-photo-actions { display:flex; align-items:center; gap:18px; }
.profile-photo-actions .text-button { font-size:.875rem; color:var(--sp-green); text-decoration:none; }
.profile-photo-actions .text-button:hover { text-decoration:underline; }
.profile-fields { display:flex; flex-direction:column; gap:22px; }
.profile-fields label { gap:8px; font-size:.875rem; font-weight:550; }
.profile-fields input,.profile-fields select,.profile-fields textarea { width:100%; font-weight:400; font-size:1rem; }
.profile-fields textarea { min-height:104px; line-height:1.6; }
.profile-field-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.profile-field-pair > label { min-width:0; }
.profile-role-field { min-width:0; border:0; padding:0; margin:0; }
.profile-role-field legend { font-size:.875rem; font-weight:550; margin:0 0 8px; padding:0; }
.profile-role-picker { border:1px solid var(--sp-border); border-radius:5px; }
.profile-role-picker > summary { position:relative; min-height:44px; display:flex; align-items:center; padding:10px 34px 10px 12px; list-style:none; cursor:pointer; color:var(--sp-muted); }
.profile-role-picker > summary::-webkit-details-marker { display:none; }
.profile-role-picker > summary:after { content:''; position:absolute; right:14px; width:6px; height:6px; border-right:1.5px solid var(--sp-muted); border-bottom:1.5px solid var(--sp-muted); transform:rotate(45deg); }
.profile-role-picker[open] > summary:after { transform:rotate(225deg); }
.profile-role-picker.has-roles > summary { color:var(--sp-text); }
.profile-role-picker > summary span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.profile-role-picker > summary:focus-visible { outline:2px solid var(--sp-green); outline-offset:3px; }
.profile-role-options { max-height:260px; overflow-y:auto; overscroll-behavior:contain; border-top:1px solid var(--sp-border-soft); padding:7px 12px; }
.profile-role-options .check-label { flex-direction:row; gap:10px; min-height:40px; cursor:pointer; }
.profile-role-done { display:flex; justify-content:flex-end; padding:0 14px 3px; border-top:1px solid var(--sp-border-soft); }
.profile-role-done .text-button { min-height:40px; color:var(--sp-green); text-decoration:none; }
.profile-clubs-content { padding:0 0 18px; }
.profile-club-row { padding:3px 0 22px; margin-bottom:17px; border-bottom:1px solid var(--sp-border-soft); }
.profile-club-row label { display:flex; flex-direction:column; gap:8px; }
.profile-club-row input { width:100%; font-size:1rem; font-weight:400; }
.profile-club-heading { display:flex; align-items:flex-end; gap:10px; margin-bottom:16px; }
.profile-club-heading > label { flex:1; min-width:0; }
.profile-club-remove { width:40px; min-height:44px; border:0; background:transparent; color:var(--sp-muted); font-size:1.4rem; }
.profile-club-remove:hover { color:var(--sp-red); }
.profile-club-count { color:var(--sp-muted); font-size:.8125rem; font-weight:400; margin-left:5px; }
.club-history { list-style:none; padding:0; margin:0; }
.club-history li { padding:11px 0; border-bottom:1px solid var(--sp-border-soft); }
.club-history li:last-child { border:0; }
.club-history strong { display:block; font-size:.9375rem; font-weight:550; }
.club-history span { display:block; margin-top:3px; color:var(--sp-muted); font-size:.8125rem; }
.profile-more { margin-top:30px; border-top:1px solid var(--sp-border); }
.profile-section { border-bottom:1px solid var(--sp-border); }
.profile-section > summary { position:relative; display:flex; align-items:center; min-height:60px; padding:17px 28px 17px 0; list-style:none; font-size:.9375rem; font-weight:550; cursor:pointer; }
.profile-section > summary::-webkit-details-marker { display:none; }
.profile-section > summary:after { content:''; position:absolute; right:4px; width:7px; height:7px; border-right:1.5px solid var(--sp-muted); border-bottom:1.5px solid var(--sp-muted); transform:rotate(45deg); }
.profile-section[open] > summary:after { transform:rotate(225deg); }
.profile-section > summary:focus-visible { outline:2px solid var(--sp-green); outline-offset:3px; }
.profile-section > .profile-fields { padding:5px 0 25px; }
.profile-form .check-label { font-size:.875rem; font-weight:400; align-items:center; min-height:32px; }
.profile-form .check-label input { width:17px; margin:0; }
.profile-publishing { margin-top:27px; }
.profile-switch { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:20px; min-height:38px; font-size:.9375rem; font-weight:550; cursor:pointer; }
.profile-switch input { appearance:none; position:relative; flex:0 0 38px; width:38px; height:24px; margin:0; border:1px solid #cbd5ce; border-radius:14px; background:#e5ebe7; cursor:pointer; }
.profile-switch input:before { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform 150ms ease; }
.profile-switch input:checked { background:var(--sp-green); border-color:var(--sp-green); }
.profile-switch input:checked:before { transform:translateX(14px); }
.profile-publishing > .field-note { margin-top:5px; }
.profile-public-options { margin-top:18px; }
.profile-public-options .field-note { margin-top:6px; }
.profile-save { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:25px 0 8px; }
.profile-save .button { min-width:132px; }
.profile-delete { margin-left:auto; font-size:.8125rem; }
.profile-form .field-note { font-size:.8125rem; }
.profile-dialog .profile-form { padding:25px 28px; }
dialog.profile-preview-dialog { width:min(720px,calc(100% - 32px)); max-width:none; max-height:90dvh; margin:auto; }
.profile-preview-dialog .profile-preview-note { margin:0 0 24px; color:var(--sp-muted); font-size:.8125rem; line-height:1.6; }
@media (max-width:680px) {
  .profile-photo-row { margin-bottom:20px; gap:16px; }
  .profile-photo-row .avatar { width:56px; height:56px; }
  .profile-fields { gap:18px; }
  .profile-field-pair { gap:12px; }
  .profile-section > summary { min-height:57px; font-size:.875rem; }
  .profile-switch { font-size:.875rem; }
  .profile-save { padding-bottom:12px; gap:10px; }
  .profile-save .button { flex:1 1 120px; min-width:0; }
  .profile-delete { flex-basis:100%; margin-left:0; text-align:left; font-size:.75rem; }
  .profile-dialog .profile-form { padding:22px 20px; }
  dialog.profile-preview-dialog { width:100%; height:100dvh; max-height:100dvh; border:0; border-radius:0; margin:0; }
}
