/* Profile-only presentation; existing controls, draft and cloud save remain authoritative. */
#userProfileDialog .user-profile-form{display:grid;align-content:start;max-width:620px;gap:12px}
#userProfileDialog .user-profile-form>h2,#userProfileDialog .user-profile-form>.profiles-help{margin:0}
#userProfileDialog{overflow:hidden;overscroll-behavior:contain}
#userProfileDialog .user-profile-form{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#userProfileDialog .profile-field{display:grid;grid-template-columns:160px minmax(0,1fr);gap:0;margin:0;min-width:0;min-height:54px;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--card);color:var(--text)}
#userProfileDialog .profile-field-title{display:flex;align-items:center;gap:8px;width:auto;padding:13px 16px;background:var(--appearance-soft,#e8eef9);color:var(--text);font-size:14px;font-weight:800;border-right:1px solid var(--line)}
#userProfileDialog .profile-field-value{min-width:0;background:var(--card)}
#userProfileDialog .profile-field-value>input:not([type=checkbox]),#userProfileDialog .profile-field-value>select{width:100%;min-width:0;min-height:52px;border:0;border-radius:0;margin:0;padding:13px 16px;font-size:16px;font-weight:600;background:var(--card);color:var(--text)}
#userProfileDialog .profile-field-value>input:read-only{color:var(--appearance-muted,#7a8498)}
#userProfileDialog .user-profile-role-help{padding:0 16px 10px;margin:0}
#userProfileDialog .profile-preferences-rows{display:grid;gap:12px;margin:0;min-width:0}
#userProfileDialog .profile-field-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:52px;margin:0;padding:13px 16px;border:0;border-radius:0;box-shadow:none;background:var(--card);color:var(--text);font-size:15px;font-weight:600;text-align:left}
#userProfileDialog #userProfilePaletteButton{color:#23334e}
#userProfileDialog #userProfilePaletteButton[data-palette=blue]{background:#dce6fa}
#userProfileDialog #userProfilePaletteButton[data-palette=sage]{background:#dceade}
#userProfileDialog #userProfilePaletteButton[data-palette=lavender]{background:#e9e0f5}
#userProfileDialog #userProfilePaletteButton[data-palette=lagoon]{background:#d9edf0}
#userProfileDialog #userProfilePaletteButton[data-palette=sand]{background:#efe3d4}
#userProfileDialog #userProfilePaletteButton[data-palette=rose]{background:#fbe0dc}
#userProfileDialog #userProfilePaletteButton[data-palette=yellow]{background:#fff0b9}
#userProfileDialog #userProfilePaletteButton[data-palette=orange]{background:#ffe2bf}
#userProfileDialog .user-preference-row{padding:12px 16px;font-size:13px;font-weight:600}
#userProfileDialog .user-preference-row>span{display:block}
#userProfileDialog #userProfilePaletteOptions{margin-left:18px;padding:2px 0}
#userProfileDialog .profile-preferences-rows>.profiles-help{margin:0;font-size:11px;font-weight:500}
#userProfileDialog .profile-signature-value{display:flex;align-items:center;gap:8px;padding:10px 12px;flex-wrap:wrap}
#userProfileDialog .profile-signature-value .signature-preview{flex:1;min-width:110px;margin:0;padding:0;border:0;background:transparent}
#userProfileDialog .signature-toggle{width:30px;height:30px;min-width:30px;flex-shrink:0}
#userProfileDialog #clearUserProfileSignature{padding:6px 8px;font-size:11px}
#userProfileDialog .signature-editor-panel{grid-column:1/-1;min-width:0;margin:0;padding:12px;border-top:1px solid var(--line)}
#userProfileDialog .signature-editor-panel canvas{max-width:100%;box-sizing:border-box}
#userProfileDialog .profile-field:focus-within{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:480px){
 #userProfileDialog .user-profile-form{padding:18px 14px}
 #userProfileDialog .profile-field{grid-template-columns:112px minmax(0,1fr)}
 #userProfileDialog .profile-field-title{padding:12px 10px;font-size:12px}
 #userProfileDialog .profile-field-choice,#userProfileDialog .profile-field-value>input:not([type=checkbox]),#userProfileDialog .profile-field-value>select{padding:12px 10px}
 #userProfileDialog .user-preference-row{padding:10px;gap:8px;font-size:12px}
 #userProfileDialog .user-profile-role-help{padding:0 10px 10px}
 #userProfileDialog .signature-actions button{font-size:12px}
}
