#accountDialog [hidden],#profileDrawer [hidden],.profile-filtered{display:none!important}
#accountDialog{width:min(100% - 2rem,34rem);max-height:calc(100dvh - 2rem);overflow:auto;padding:clamp(1.25rem,4vw,2rem);border-radius:1rem}
#accountDialog h2{margin:.35rem 0 1.25rem}
#accountDialog form{display:grid;gap:.9rem}
#accountDialog label{display:grid;gap:.35rem}
#accountDialog input:not([type=checkbox]){width:100%;box-sizing:border-box}
#accountDialog .account-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
#accountDialog .account-tabs [aria-pressed=true]{border-color:currentColor}
#accountDialog fieldset{border:1px solid #ffffff29;border-radius:.75rem;display:grid;gap:.55rem}
#accountDialog .account-check{display:flex;align-items:center;gap:.55rem}
#accountDialog [role=status]{min-height:1.25em}
#profileList .profile-option{width:100%}
#profileToggle .profile-name{display:inline;white-space:nowrap}
@media(max-width:520px){#profileToggle .profile-name{font-size:.75rem}#profileToggle .profile-avatar{display:none}}
body[data-child-profile] #hero,body[data-child-profile] #recently-viewed,body[data-child-profile] #recently-viewed-row{display:none!important}
body[data-child-profile] .content-shell{padding-top:clamp(6rem,12vw,9rem)}
#profileToggle .account-avatar{display:block;width:2rem;height:2rem;flex:none;color:#fff}

/* Le défi reCAPTCHA doit être cliquable hors de la fenêtre d’inscription. */
body.signup-dialog-open::before{content:'';position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:9998}
#accountDialog[data-captcha-nonmodal='true']{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:9999;width:min(calc(100% - 2rem),34rem);max-height:calc(100dvh - 2rem)}

/* Profil membre : taille d'avatar fixe pour éviter l'affichage géant au chargement. */
#profileToggle .account-avatar-image{width:32px;height:32px;max-width:32px;max-height:32px;flex:0 0 32px;object-fit:cover;border-radius:50%;display:block}
#profileToggle [hidden]{display:none!important}
.member-avatar-editor{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.member-avatar-preview{width:104px;height:104px;max-width:104px;max-height:104px;border-radius:50%;object-fit:cover;flex:0 0 104px;background:#241c1d;border:1px solid rgba(255,255,255,.22)}
.member-confirmation{margin:12px 0;padding:14px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.06)}
.member-confirmation-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.member-account-danger{margin-top:20px;padding-top:15px;border-top:1px solid rgba(229,52,63,.45)}
.member-account-danger h3{font-size:16px;margin:0 0 7px}
.member-account-danger p{color:#dfc4c8;font-size:13px}
.member-danger-button{border-color:var(--red,#e5343f)!important;color:#ff979f!important}
.member-danger-button:hover{background:rgba(229,52,63,.15)!important}
.member-profile-close{margin-top:14px}
