/* «Tu foto o avatar» (avatar-choice.js): three ways as chips, the avatars in a grid of round 56 px buttons. */
.avatar-choice { margin-top:16px; padding-top:16px; border-top:1px solid var(--sep); }
.avatar-choice h3 { margin:0 0 8px; }
.avatar-choice-modes { margin-bottom:12px; }
.avatar-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:8px; margin:4px 0 8px; }
.avatar-option { all:unset; box-sizing:border-box; display:grid; place-items:center; min-width:44px; min-height:64px; border-radius:50%; cursor:pointer; }
.avatar-option img { width:56px; height:56px; border-radius:50%; display:block; }
.avatar-option[aria-pressed="true"] img { outline:3px solid var(--accent); outline-offset:2px; }
.avatar-option:focus-visible img { outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }
/* More than 100 avatars: search box, category chips and a grid that scrolls inside the card (buttons stay reachable by keyboard). */
.avatar-search { width:100%; max-width:360px; box-sizing:border-box; margin:0 0 4px; }
.avatar-categories { margin:8px 0 4px; }
.avatar-categories .chip { white-space:nowrap; }
.avatar-grid { max-height:min(52vh,420px); overflow-y:auto; overscroll-behavior:contain; padding:4px; }
.avatar-grid:focus-visible { outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }
@media (max-width:520px) { .avatar-grid { grid-template-columns:repeat(auto-fill,minmax(56px,1fr)); max-height:46vh; } .avatar-categories { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; } }
