/* Finestra di scelta dell'immagine del profilo (AvatarPickerModal). */
.avp-bg { position: fixed; inset: 0; z-index: 1040; background: rgba(10, 37, 77, .45); display: flex; align-items: flex-end; justify-content: center; overflow: auto; animation: avp-fade 200ms ease-out; }
.avp { width: 100%; box-sizing: border-box; background: #fff; border-radius: 2.4rem 2.4rem 0 0; padding: 2.4rem 2rem calc(2.4rem + env(safe-area-inset-bottom, 0px));
    font-family: 'Nunito', sans-serif; color: #26283c; animation: avp-in 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (min-width: 1024px) {
    .avp-bg { align-items: center; padding: 2rem 0; }
    .avp { max-width: 48rem; border-radius: 2.4rem; margin: auto; padding-bottom: 2.4rem; }
}
@keyframes avp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes avp-in { from { opacity: 0; transform: scale(.85) translateY(1rem); } to { opacity: 1; transform: scale(1) translateY(0); } }
.avp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.avp-head h3 { margin: 0; font-size: 2rem; font-weight: 900; color: #0a254d; }
.avp-x { border: 0; background: #eef1f6; color: #5b6274; width: 3.4rem; height: 3.4rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.avp-sub { margin: .6rem 0 0; font-size: 1.4rem; color: #6b7280; line-height: 1.4; }
.avp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; margin: 1.6rem 0 0; }
.avp-grid button { aspect-ratio: 1 / 1; border-radius: 1.2rem; overflow: hidden; border: 3px solid transparent; padding: 0; background: #eaf1fd; color: #2462e7; font: inherit; font-weight: 900; font-size: 1.3rem; cursor: pointer; }
.avp-grid button img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.avp-grid button.on { border-color: #2462e7; box-shadow: 0 0 0 3px #cfdcfb; }
.avp-upload { grid-column: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border-radius: 1.2rem; border: 2px dashed #cfdcf7; color: #2462e7; font-weight: 900; font-size: 1.2rem; line-height: 1.15; text-align: center; padding: .4rem; cursor: pointer; }
.avp-upload i { font-size: 1.8rem; }
.avp-upload input { display: none; }
.avp-upload.busy { opacity: .6; pointer-events: none; }
.avp-msg { margin: .8rem 0 0; font-size: 1.3rem; color: #2462e7; text-align: center; }
.avp-msg.err { color: #e63946; }
.avp-ok { width: 100%; margin-top: 1.4rem; border: 0; border-radius: 1.2rem; padding: 1.3rem; font: inherit; font-weight: 900; font-size: 1.6rem; color: #fff; background: linear-gradient(180deg, #4a8beb 0%, #2f6fd8 100%); cursor: pointer; }
.avp-ok:disabled { opacity: .45; cursor: default; }
.avp-grid button:disabled { cursor: default; opacity: .55; }
