.account-avatar-drop{display:grid;gap:16px;justify-items:center}.account-avatar-drop img{width:180px;height:180px;object-fit:cover;border-radius:18px}.account-avatar-empty{display:grid;place-items:center;width:180px;height:180px;border:1px solid var(--st-edge, #70503a);border-radius:18px;font-size:50px}.account-photo>[type=file]{max-width:100%}.account-photo [data-avatar-status]{display:block;margin:12px 0;color:var(--st-muted, #c5aa98);font:12px/1.6 system-ui}.account-text-link{padding:0;margin:10px 0 0;border:0;background:transparent;color:var(--st-accent, #ffb580);text-decoration:underline;cursor:pointer;font:12px/1.5 system-ui}.account-connections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 6px}.account-connections .oauth-button{margin:0;box-sizing:border-box;min-width:0}.account-provider{display:grid;gap:8px;border:1px solid var(--st-edge, #70503a);border-radius:12px;padding:16px;min-width:0}.account-provider>span{display:flex;align-items:center;gap:10px;font:600 14px system-ui}.account-provider form{margin:0}.account-provider .account-text-link{margin:0}.account-security-button{display:flex;gap:10px;align-items:center;justify-content:center;padding:14px;border:1px solid var(--st-edge, #795033);border-radius:10px;background:var(--st-panel, #211913);color:var(--st-ink, #fff0e2);font:600 13px system-ui;cursor:pointer}.account-security-button:hover{background:var(--st-hover, #3e2719)}.account-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:28px;border:1px solid var(--st-edge, #795033);border-radius:18px;background:var(--st-panel, #21150d);color:var(--st-ink, #fff0e2);font:14px/1.6 system-ui}.account-dialog::backdrop{background:var(--st-bg-abb, #080503bb);backdrop-filter:blur(4px)}.account-dialog h2{margin:0 0 14px}.account-dialog p{margin:0 0 16px}.account-dialog input{box-sizing:border-box;max-width:100%}.account-dialog label{display:block;margin-bottom:6px}.account-dialog .pro18-form{display:grid;gap:14px}.account-dialog input:not([type=hidden]){width:100%;padding:12px;border:1px solid var(--st-edge, #70503a);border-radius:9px;background:var(--st-bg, #120e0b);color:var(--st-ink, #fff0e2);font:15px system-ui}.account-dialog .errorlist{color:var(--st-accent, #ffc4a6);padding-left:18px}.account-modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px}.account-modal-actions button{margin:0;padding:11px 15px;border:1px solid var(--st-edge, #795033);border-radius:9px;background:transparent;color:var(--st-accent, #ffbd8c);font:600 12px system-ui;cursor:pointer}.account-modal-actions .pro18-btn{background:var(--st-accent, #ff8b40)!important;color:var(--st-button-ink, #211209)!important}.verification-cancel{margin-top:20px}.auth-cancel-button{display:block;box-sizing:border-box;width:100%;margin:0;padding:12px 14px;border:1px solid var(--st-edge, #795033);border-radius:10px;background:transparent;color:var(--st-accent, #ffbd8c);font:600 12px system-ui;cursor:pointer}.password-strength{color:var(--st-muted, #d8bda6);font:12px/1.6 system-ui;margin:0!important}.password-strength::before{content:'';display:block;height:4px;width:var(--strength,0%);background:var(--strength-color,var(--st-panel, #795033));border-radius:8px;margin-bottom:7px;transition:width .2s}.account-dialog .password-entry{position:relative}.account-dialog .password-entry input{padding-right:48px}.account-dialog .password-visibility{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;margin:0;padding:0;border:0;background:none;color:var(--st-accent, #ffb580);cursor:pointer}@media(max-width:600px){.account-connections{grid-template-columns:minmax(0,1fr)}.account-dialog{padding:22px}.account-modal-actions{justify-content:stretch}.account-modal-actions button{flex:1 1 120px}}@media(prefers-reduced-motion:reduce){.password-strength::before{transition:none}}
.auth-layout.auth-layout-single{grid-template-columns:minmax(0,1fr);max-width:520px}.auth-layout-single .auth-card-alone{box-sizing:border-box;width:100%;min-width:0}.auth-card .auth-form>p{min-width:0}.auth-card .auth-form input{box-sizing:border-box}
.account-modal-actions{align-items:stretch}.account-modal-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:42px}

.account-connections .account-provider{display:flex;align-items:center;gap:10px;border:0;padding:0}.account-connections .account-provider>.oauth-button{flex:1;min-width:0;margin:0;padding:13px 16px;justify-content:center;box-sizing:border-box}.account-connections .oauth-button .ui-icon{width:20px;height:20px;flex:0 0 20px}.account-provider .account-unlink{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;box-sizing:border-box;padding:8px;margin:0;border:1px solid var(--st-edge, #995b4e);border-radius:9px;background:transparent;color:var(--st-accent, #ffb4a0);cursor:pointer}.account-unlink .ui-icon{width:20px;height:20px}.account-unlink:focus-visible{outline:2px solid var(--st-highlight, #ff9a4d);outline-offset:3px}

.account-editor{grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}
.account-editor>.errorlist{grid-column:1/-1}
.account-editor .account-fields{display:grid;gap:16px;min-width:0;max-width:28rem}
.account-editor .account-fields>.pro18-btn{justify-self:start}
.account-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.account-security-grid>.pro18-panel{min-width:0;margin-bottom:20px}
.account-security-grid .account-connections,.account-security-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0}
.account-avatar-menu{position:relative;justify-self:center;max-width:100%}
.account-avatar-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;padding:9px 14px;border:1px solid var(--st-edge,#795033);border-radius:10px;background:var(--st-panel,#211913);color:var(--st-ink,#fff0e2);font:600 13px system-ui;cursor:pointer}
.account-avatar-menu>summary::-webkit-details-marker{display:none}
.account-avatar-menu-options{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);z-index:10;display:grid;min-width:180px;padding:6px;border:1px solid var(--st-edge,#795033);border-radius:12px;background:var(--st-panel,#211913);box-shadow:0 8px 24px #0004}
.account-avatar-menu-options>:is(label,button){display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;margin:0;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--st-ink,#fff0e2);font:500 14px system-ui;text-align:left;cursor:pointer}
.account-avatar-menu-options>:is(label,button):hover{background:var(--st-hover,#3e2719)}
.account-avatar-menu-options>:is(label,button):focus-visible,.account-avatar-menu>summary:focus-visible{outline:2px solid var(--st-accent,#ffb580);outline-offset:2px}
.account-avatar-menu .ui-icon{width:18px;height:18px;flex:0 0 18px}
@media(max-width:767.98px){.account-editor,.account-security-grid{grid-template-columns:minmax(0,1fr)}.account-editor .account-fields{max-width:none}.account-security-grid{gap:0}}
/* Profile AJAX controls and dismissible status. */
.account-fields .account-username-row{display:flex;gap:0;align-items:stretch;min-width:0}.account-username-row input{flex:1;min-width:0;width:0;border-top-right-radius:0!important;border-bottom-right-radius:0!important;margin:0!important}.account-username-row .pro18-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;margin:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.account-username-row button:disabled{cursor:wait;opacity:.75}.account-photo [hidden],.account-avatar-drop [hidden],.account-username-row [hidden],.profile-toast[hidden],.profile-spinner[hidden],.account-fields [hidden]{display:none!important}.profile-ajax-ready .account-photo>input[type=file]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.account-photo [data-avatar-status],.account-fields [data-username-errors]{color:var(--st-accent);font:13px/1.5 system-ui}.account-photo [data-avatar-loading]{display:flex;align-items:center;gap:8px;font:13px/1.5 system-ui;margin-top:10px}.account-avatar-drop[aria-busy=true] .account-avatar-menu,.account-avatar-drop[aria-busy=true] [data-avatar-empty-choose]{pointer-events:none;opacity:.6}.profile-spinner{display:inline-block;width:15px;height:15px;flex:0 0 15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:profile-spin .8s linear infinite}.profile-toast{position:fixed;z-index:11000;right:18px;bottom:calc(90px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:16px;width:max-content;max-width:calc(100vw - 36px);box-sizing:border-box;padding:14px 16px;border:1px solid var(--st-accent);border-radius:12px;background:var(--st-panel,#211913);color:var(--st-ink,#fff0e2);box-shadow:0 8px 28px #0005;font:14px/1.5 system-ui}.profile-toast span{overflow-wrap:anywhere;min-width:0}.profile-toast button{border:0;background:transparent;color:inherit;font:24px/1 system-ui;cursor:pointer;padding:4px}.profile-toast.is-error{border-width:2px}.profile-toast button:focus-visible{outline:2px solid var(--st-accent);outline-offset:2px}@keyframes profile-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.profile-spinner{animation:none}}
@media(max-width:991.98px),(pointer:coarse){.profile-toast{top:calc(var(--profile-toast-offset,0px) + env(safe-area-inset-top) + 12px);bottom:auto;max-height:calc(var(--profile-toast-height,100dvh) - env(safe-area-inset-top) - 24px);overflow:auto;align-items:start}.profile-toast button{min-width:36px;min-height:36px;margin:-4px -6px -4px 0;flex:0 0 auto}}

/* Compte : identité et sécurité à gauche, connexions à droite. */
.account-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.account-overview-grid>.pro18-panel{min-width:0;margin-bottom:20px}
.account-profile-card .account-editor{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.account-profile-card .account-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:none}
.account-profile-card .account-fields>label{margin:0;justify-self:start}
.account-profile-card .account-photo{justify-self:start;min-width:0}
.account-profile-card .account-avatar-drop{position:relative;display:block;width:180px;height:180px}
.account-profile-card .account-avatar-menu{position:absolute;right:6px;bottom:6px;max-width:none}
.account-profile-card .account-avatar-menu>summary,.account-profile-card [data-avatar-empty-choose]{display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;margin:0;padding:0;border:1px solid var(--st-edge);border-radius:10px;background:var(--st-panel);color:var(--st-ink);cursor:pointer}
.account-profile-card [data-avatar-empty-choose]{position:absolute;right:6px;bottom:6px}
.account-profile-card .account-avatar-drop>.account-avatar-empty{box-sizing:border-box}
.account-profile-card .account-avatar-menu-options{left:auto;right:0;transform:none;max-width:calc(100vw - 64px)}
.account-profile-card .account-avatar-menu-options label{margin:0}
.account-profile-card .account-avatar-drop>.pro18-btn>.ui-icon{width:18px;height:18px}
.account-profile-card .account-security-actions{margin-top:20px}
.account-overview-grid .account-connections{grid-template-columns:minmax(0,1fr);margin:0}
@media(max-width:767.98px){.account-overview-grid{grid-template-columns:minmax(0,1fr);gap:0}}

@media(max-width:767.98px){.account-profile-card .account-photo{justify-self:center;text-align:center;width:100%}.account-profile-card .account-avatar-drop{margin-inline:auto}}
