/* Avatares compartidos. Reutilizado en perfil, cuenta, publicaciones y comentarios. */
.ag-avatar-img{display:inline-block;object-fit:cover;object-position:center;border-radius:50%;vertical-align:middle;max-width:100%;aspect-ratio:1}.ag-avatar-initial{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;background:#d6e9e1;color:#235344;vertical-align:middle}.ag-nav-avatar{width:24px;height:24px;font-size:12px;margin-right:5px}.ag-account-avatar{width:84px;height:84px;max-width:84px;max-height:84px;border-radius:50%;margin:auto;object-fit:cover}.ag-profile-avatar{width:84px;height:84px;max-width:84px;max-height:84px;border-radius:50%;object-fit:cover}.ag-reading-avatar{width:72px;height:72px;max-width:72px;max-height:72px;object-fit:cover}.ag-comment-avatar{width:32px;height:32px;max-width:32px;max-height:32px;margin-right:7px;object-fit:cover}.ag-avatar-preview{display:flex;justify-content:center;margin:15px 0}.ag-avatar-preview-image{height:140px;width:140px;max-width:140px;border-radius:50%;object-fit:cover}.ag-account-identity img.ag-account-avatar{margin:0 auto 8px}@media(max-width:650px){.ag-profile-avatar{width:68px;height:68px}}

/* Editor de avatar en móvil y escritorio; encapsulado para no afectar el tema. */
.ag-crop-dialog[hidden],.ag-crop-error[hidden]{display:none!important}
.ag-crop-dialog{position:fixed;inset:0;z-index:10050;background:rgba(10,28,35,.78);display:flex;align-items:center;justify-content:center;padding:12px;overflow-y:auto}
.ag-crop-panel{background:#fff;color:#173a3c;border-radius:14px;padding:clamp(14px,3vw,24px);width:min(100%,520px);max-height:calc(100dvh - 24px);overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.ag-crop-panel h3{margin:0 0 8px}.ag-crop-panel p{margin:8px 0 16px}.ag-crop-preview{position:relative;width:min(100%,350px);aspect-ratio:1;margin:12px auto;background:#d9e8e3;overflow:hidden;border-radius:12px;touch-action:none;cursor:grab;user-select:none}
.ag-crop-preview:active{cursor:grabbing}.ag-crop-preview canvas{width:100%;height:100%;display:block}.ag-crop-circle{pointer-events:none;position:absolute;inset:2px;border-radius:50%;box-shadow:0 0 0 100px rgba(0,0,0,.27) inset;border:3px solid rgba(255,255,255,.96);box-sizing:border-box}
.ag-crop-panel input[type=range]{width:100%;max-width:100%;min-height:38px;accent-color:#176b75}.ag-crop-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.ag-crop-actions button{min-height:44px;flex:1 1 130px;white-space:normal}.ag-crop-error{color:#9c1828}.ag-account-content img{max-width:100%}
@media(max-width:650px){.ag-account-shell,.ag-account-aside,.ag-account-content{min-width:0;max-width:100%}.ag-account-menu{display:flex;flex-wrap:wrap;gap:6px}.ag-account-menu a{min-height:40px}.ag-account-content input,.ag-account-content select,.ag-account-content textarea{max-width:100%;box-sizing:border-box}.ag-crop-dialog{padding:6px}.ag-crop-panel{max-height:calc(100dvh - 12px);padding:12px}.ag-crop-preview{width:min(100%,280px)}}

/* Fase 3.0.36: editor de recorte utilizable también en teléfonos compactos y horizontal. */
.ag-crop-panel{max-width:100%;max-height:calc(100dvh - 18px)}
.ag-crop-preview{width:min(100%,350px,46dvh);max-width:100%;max-height:none}
@media(max-width:650px){.ag-crop-dialog{align-items:flex-start}.ag-crop-panel{max-height:calc(100dvh - 12px)}.ag-crop-preview{width:min(100%,280px,42dvh);max-height:none}.ag-crop-actions button{flex:1 1 100%}}
