#profileForm { display:flex; flex-direction:column; gap:18px; margin:0 0 18px; min-width:0; }
.profile-field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.profile-field label { font-size:14px; color:#e9d19a; }
.profile-field textarea { min-height:90px; }
.profile-field input { min-height:48px; }
.profile-field input[type=file] { max-width:100%; font:inherit; }
.profile-field .muted { margin:0; line-height:1.5; }
.profile-preview { min-width:0; overflow-wrap:anywhere; padding:26px; background:linear-gradient(145deg,#30291d,#1c1e22 48%); }
.profile-photo { width:112px; height:112px; border-radius:50%; object-fit:cover; border:2px solid #aa854e; background:#30291d; display:block; margin-bottom:18px; }
.profile-initials { display:grid; place-items:center; font-size:30px; color:#e9d19a; }
.profile-preview h3 { font-size:28px; margin:6px 0; }
.profile-preview h4 { color:#e9d19a; margin-bottom:6px; border-top:1px solid #514a3d; padding-top:18px; }
.profile-preview p { white-space:pre-wrap; line-height:1.7; }
.profile-preview a { display:block; color:#e9d19a; padding:12px 0; min-height:44px; }
#profileStatus,#profileDisplayStatus { line-height:1.6; margin-bottom:0; }
.profile-actions { display:flex; flex-wrap:wrap; gap:12px; }
#perfil button { min-height:44px; }
#perfil :focus-visible { outline:3px solid #e9d19a; outline-offset:3px; }
@media(min-width:760px) { .profile-preview { padding:34px; } }

/* Gestión local solo en Configuración, sin formulario permanente en Mi perfil. */
.legacy-settings{min-width:0;overflow-wrap:anywhere}
.legacy-settings details{margin-top:16px;min-width:0}
.legacy-settings summary{cursor:pointer;min-height:44px;line-height:1.5;padding:10px 0}
.legacy-settings button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:8px 0}
.legacy-settings #migration-panel{margin-top:20px;border-top:1px solid #514a3d;padding-top:16px}
.migration-consent{display:flex;align-items:flex-start;gap:10px;margin:16px 0;line-height:1.6;min-width:0}
.migration-consent input{flex:0 0 22px;width:22px;min-width:22px;margin-top:3px}
@media(max-width:420px){.legacy-settings{padding:18px}.legacy-settings button{width:100%}}
