/* Mi identidad v13: audiencias explícitas, edición con vista previa local. */
.identity-overview{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}
.identity-overview-card{padding:26px;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:20px}
.identity-section-title{display:flex;align-items:flex-start;gap:13px}
.identity-section-title>.icon{width:25px;height:25px;color:var(--brand);flex-shrink:0}
.identity-section-title :is(h2,h3){margin:0 0 5px;font-size:20px}
.identity-section-title p{font-size:14px;color:var(--muted);margin:0}
.identity-saved-preview{text-align:center;flex:1;overflow-wrap:anywhere}
.identity-saved-preview .account-avatar{margin:4px auto 16px}
.identity-saved-preview h3{font-size:22px;margin:0 0 8px}
.identity-saved-preview p{margin:7px 0;white-space:pre-line;color:var(--muted);line-height:1.5}
.identity-private-list{margin:0;flex:1;display:grid;align-content:start;gap:0}
.identity-private-list>div{padding:17px 0;border-bottom:1px solid var(--line)}
.identity-private-list dt{color:var(--muted);font-size:13px;margin-bottom:6px}
.identity-private-list dd{margin:0;overflow-wrap:anywhere}
#perfil.identity-dialog{width:min(980px,calc(100vw - 32px));max-width:980px;max-height:calc(100dvh - 32px);overflow:hidden}
#perfil.identity-dialog[open]{display:flex;flex-direction:column}
#perfil.identity-dialog .dialog-head{position:static;flex-shrink:0}
#perfil.identity-dialog>.dialog-body{padding:0;display:flex;min-height:0;overflow:hidden}
#account-profile-form{display:flex;flex-direction:column;width:100%;min-height:0;gap:0}
.identity-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:24px;scroll-padding:20px}
.identity-scroll>.notice{margin:0 0 24px;font-size:13px;line-height:1.5}
.identity-editor-grid{min-width:0}
.identity-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}
.identity-fields>section{min-width:0}
.identity-fields .field{margin:16px 0 0}
.identity-fields .form-grid{gap:14px}
.identity-fields textarea{min-height:100px;resize:vertical}
.identity-photo-row{display:flex;align-items:center;gap:18px;margin:22px 0 8px}
.identity-photo-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.identity-photo-controls small{flex-basis:100%;color:var(--muted)}
.identity-photo-controls>button{font-size:13px}
.identity-file-choice{position:relative;display:inline-flex;gap:9px;align-items:center;min-height:44px;padding:10px 14px;border:1px solid var(--edge);border-radius:12px;background:var(--surface);font-weight:600;font-size:14px;cursor:pointer;overflow:hidden}
.identity-file-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.identity-file-choice:focus-within{outline:3px solid var(--brand);outline-offset:3px}
.identity-file-choice .icon{height:19px;width:19px}
.identity-counter{display:block;text-align:right;color:var(--muted);margin-top:7px}
.identity-live{grid-column:2;grid-row:1 / span 2;padding:22px;position:sticky;top:0;min-width:0}
.identity-live .eyebrow{font-size:11px;color:var(--brand);margin:0 0 9px}
.identity-live h3{font-size:17px;margin:0 0 18px;line-height:1.4}
.identity-preview-card{text-align:center;padding:20px 14px;border:1px solid var(--edge);border-radius:14px;background:var(--surface);overflow-wrap:anywhere}
.identity-preview-card .account-avatar{margin:0 auto 15px}
.identity-preview-card h4{font-size:20px;margin:0 0 8px}
.identity-preview-card p{font-size:14px;line-height:1.5;white-space:pre-line;margin:8px 0;color:var(--muted)}
.identity-live .mini-note{line-height:1.6}
.identity-private{grid-column:1;border:1px solid var(--edge);border-radius:14px;padding:0 18px;background:var(--surface);min-width:0}
.identity-private summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:17px 0!important}
.identity-private summary::-webkit-details-marker{display:none}
.identity-private summary::after{content:'+';margin-left:auto;font-size:22px}
.identity-private[open] summary::after{content:'−'}
.identity-private summary>.icon{flex-shrink:0;color:var(--brand)}
.identity-private summary small{display:block;color:var(--muted);font-weight:400;margin-top:4px}
.identity-private>.muted{font-size:13px;line-height:1.6}
.identity-private .form-grid{padding-bottom:20px;grid-template-columns:1fr}
#perfil.identity-dialog .dialog-footer{position:static;flex-shrink:0;padding:16px 24px;border-top:1px solid var(--line);background:var(--surface);margin:0}
#perfil .dialog-footer>button{min-height:44px;white-space:normal;overflow-wrap:normal}
#perfil .form-status{margin:18px 0 0;line-height:1.5}
#perfil [data-remove-account-photo]:disabled{opacity:.55;cursor:default}
.identity-dialog .identity-live:hover,.identity-overview-card:hover{transform:none}
@media(max-width:899px){
 .identity-overview{grid-template-columns:1fr;gap:16px}
 .identity-overview-card{padding:22px}
 .identity-fields{grid-template-columns:1fr}
 .identity-live{position:static;grid-column:1;grid-row:auto;padding:18px}
 .identity-private{grid-column:1}
 #perfil.identity-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}
 .identity-scroll{padding:20px}
 #perfil.identity-dialog .dialog-footer{padding:14px 20px}
 #perfil .dialog-footer>button{flex:1}
 .identity-photo-row{align-items:flex-start}
}
@media(max-width:380px){.identity-photo-row{gap:12px}.identity-photo-row .account-avatar{width:54px;height:54px}.identity-scroll{padding:16px}.identity-photo-controls{gap:8px}.identity-file-choice{padding:10px}}
@media(max-width:500px){html[data-text-size="largest"] #perfil .dialog-footer{flex-direction:column-reverse}html[data-text-size="largest"] #perfil .dialog-footer>button{width:100%}}
