/* Scoped account controls: keep the fixed quick-exit above account navigation. */
.profil-page .profile-account-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;align-items:stretch}
.profil-page .profile-account-toolbar .btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.profil-page .profile-logout{background:#fff;color:#721b3b;border:2px solid #721b3b;font-weight:800}
.profil-page .profile-logout:hover{background:#fbe8ef}
.profil-page .profil-menu-link{display:flex!important;align-items:center;justify-content:center;min-height:48px;margin:5px 0;text-decoration:none;text-align:center;white-space:normal}
body:has(.profil-page) .message-action-icon{width:56px;height:56px;flex-basis:56px}
body:has(.profil-page) .message-actions>summary{min-height:72px;gap:12px}
.account-settings form{padding:20px 0;border-top:1px solid #ead2dc;max-width:640px}
.account-settings label{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-weight:650}
.account-settings input{width:100%;min-height:48px;box-sizing:border-box;font:inherit;border:1px solid #a8788b;border-radius:9px;padding:10px 12px;background:white;color:#291b23}
.account-settings .btn{min-height:48px;white-space:normal;margin:4px 6px 4px 0;text-align:center}
.account-settings .account-status:empty{display:none}
.account-settings .account-status[data-status=error]{border-left:4px solid #a3273a;background:#fff2f3}
.account-settings .account-status[data-status=success]{border-left:4px solid #297149;background:#eef9f2}
@media(max-width:600px){.profil-page .profile-account-toolbar{position:sticky;top:0;z-index:30;padding:10px;background:#fff9fc;border-bottom:1px solid #ead2dc}.profile-account-toolbar .btn{flex:1 1 140px;padding:10px;font-size:.95rem}.account-settings form{padding:14px 0}.account-settings .btn{display:block;width:100%;margin:10px 0}}
.defense-page .selected-guide .defense-doc-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.defense-page .selected-guide .btn,.defense-page #panel-dossier .btn{display:flex;align-items:center;justify-content:center;min-height:48px;white-space:normal;text-align:center;overflow-wrap:anywhere}
.defense-page .defense-step-card li{margin:8px 0;line-height:1.5}
.defense-page .defense-step-card ol,.defense-page .defense-step-card ul{padding-left:22px}
@media(max-width:600px){.defense-page .selected-guide .defense-doc-actions{grid-template-columns:1fr}.defense-page .defense-steps-grid{grid-template-columns:1fr}}
.profil-page .profile-logout{background:#fff!important;border:2px solid #721b3b!important;box-shadow:none;color:#721b3b!important}

.profil-defense-direct { display: block; text-decoration: none; }

body:has(.profil-page) .message-actions>summary{display:flex;align-items:center}
