/* Identité lisible sur toute la largeur du bandeau, sans masquer les actions. */
body>header.ui-app-header,body:has(#coach:not(.hidden))>header.ui-app-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions" "identity identity";width:100%;box-sizing:border-box;height:auto!important;min-height:70px;row-gap:8px;align-items:center}
body>header.ui-app-header>.ui-brand{grid-area:brand;min-width:0;width:100%;max-width:248px}
body>header.ui-app-header>#identity{grid-area:identity!important;grid-column:1/-1;display:grid!important;gap:3px;width:100%;max-width:none!important;min-width:0;text-align:left!important;white-space:normal!important;overflow:visible!important;text-overflow:clip;font-size:11px;line-height:1.45;color:#d5d9dc}
body>header.ui-app-header #identity[hidden]{display:none!important}
#identity .ba805-account{font-size:10px;color:#bcf046;font-weight:650}
#identity .ba805-session{font-size:11px;color:#e2e5e8;overflow-wrap:anywhere}
.ba805-switcher{display:grid;gap:10px;padding-top:14px;margin-top:5px;border-top:1px solid #34383d}
.ba805-switcher>span{font-size:11px;color:#b7bdc3}
.ba805-switcher button{min-height:44px}
.ba805-switcher button:disabled{opacity:1;color:#c5ed75;background:#20261b;border-color:#6e8d39;cursor:default}
@media(max-width:600px){body>header.ui-app-header{column-gap:8px;padding-block:10px!important}body>header.ui-app-header .ui-brand-logo{max-height:48px}body>header.ui-app-header #identity{font-size:10px;padding-top:2px}#identity .ba805-session{font-size:10px}}

/* Même structure dans les deux espaces ; les outils conservent leur rangée. */
body>header.ui-app-header>.ui-account-tools{grid-area:actions;min-width:0;justify-self:end}

/* V854 : formule serveur, lisible dans les deux espaces. */
#identity .ba854-plan{font-size:11px;line-height:1.5;color:#d5d9dc;overflow-wrap:anywhere}
#identity .ba854-plan[data-paid="true"]{color:#b5ed23;font-weight:650}
@media(max-width:600px){#identity .ba854-plan{font-size:10px}}

/* V941 : compte à gauche, formule à droite, session sur toute la ligne suivante. */
body>header.ui-app-header>#identity{grid-template-columns:minmax(0,1fr) minmax(0,auto);column-gap:12px;align-items:start}
#identity .ba805-account{grid-column:1;grid-row:1;min-width:0}
#identity .ba854-plan{grid-column:2;grid-row:1;justify-self:end;text-align:right;max-width:100%;min-width:0;font-size:10px;line-height:1.45}
#identity .ba805-session{grid-column:1/-1;grid-row:2;min-width:0}
@media(max-width:600px){body>header.ui-app-header>#identity{grid-template-columns:minmax(0,1fr) minmax(0,40%);column-gap:8px}}
