/* Scoped profile styles; native dialog supplies modal focus containment/inert background. */
.profile-avatar-heading{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-bottom:24px}.profile-avatar-heading .profile-avatar{margin:0}.profile-avatar-heading button{margin:0}
.avatar-dialog{width:min(680px,calc(100% - 28px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid var(--gold,#dfb766);border-radius:18px;background:#102f35;color:var(--cream,#f7efd8);box-shadow:0 24px 80px #0009}
.avatar-dialog::backdrop{background:#020d13d9}.avatar-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.avatar-dialog-heading h2{margin:0}.avatar-dialog-heading button{flex-shrink:0;min-width:48px;min-height:48px}.avatar-dialog .avatar-fieldset{margin-top:20px}.avatar-dialog .avatar-option{min-width:0}.avatar-dialog form>button{position:sticky;bottom:0;box-shadow:0 0 0 6px #102f35}.avatar-dialog .avatar-option:focus-within{outline:3px solid #fff4a9;outline-offset:2px}
.avatar-dialog-heading{position:sticky;top:-24px;background:#102f35;z-index:2;padding:12px 0}
@media(max-width:680px){.profile-avatar-heading{gap:16px}.profile-avatar-heading .profile-avatar{width:96px;height:96px}.avatar-dialog{padding:18px}.avatar-dialog-heading h2{font-size:25px}.avatar-dialog .avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.avatar-dialog-heading{top:-18px}}
/* Keep profile and selector aligned with the shared responsive avatar tokens. */
.profile-avatar-heading .profile-avatar{width:var(--avatar-profile,144px);height:var(--avatar-profile,144px)}
@media(max-width:380px){.avatar-dialog .avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
