/* V316: unified cards + coach/personal session distinction, presentation only */
:root{--ba316-surface:#14191b;--ba316-border:#303b40;--ba316-green:#a3f20b;--ba316-orange:#ff9c38;--ba316-text:#f0f4f1}
/* All ordinary independent cards share one neutral surface. Preserve nested structural wrappers. */
#client :is(.card,.dashboard-panel,.dashboard-pr-panel,.dashboard-recent-panel,.dashboard-weight-card,.dashboard-calendar,.premium-avatar-panel,.premium-measure-form,.profile-side-card,.profile-tip,.profile-history,.v131-consent,.ba-free-panel,.ba-free-exercise,.ba-free-tools,.ba-free-set,.ba-history-detail,.ba-session-detail),
#coach :is(.card,.dashboard-panel,.profile-side-card){background-color:var(--ba316-surface)!important;background-image:none!important;border-color:var(--ba316-border)!important;color:var(--ba316-text)!important;box-shadow:none!important}
/* Wrappers must remain black instead of becoming giant cards. */
#client :is(.card:has(>.card),.card:has(>section.card),.card:has(>.dashboard-panel)),#coach :is(.card:has(>.card),.card:has(>section.card)){background:#080a0b!important;border-color:transparent!important;box-shadow:none!important}
/* Personal training: orange identity without orange filled cards. */
#client .ba-free-panel,#client .ba-free-exercise,#baFreeOverlay .ba-free-exercise{border-left:3px solid var(--ba316-orange)!important}
#client .ba-free-panel .ba-free-head strong,#baFreeOverlay .ba-free-top strong{color:var(--ba316-orange)!important}
#baFreeOverlay{background:#080a0b!important;color:var(--ba316-text)!important}
#baFreeOverlay :is(.ba-free-dialog,.ba-free-tools,.ba-free-set,.ba-free-exercise){background:var(--ba316-surface)!important;background-image:none!important;border-color:var(--ba316-border)!important}
#baFreeOverlay :is(input:not([type=checkbox]),select,textarea){background:#101517!important;border-color:#3a4546!important;color:var(--ba316-text)!important}
#baFreeOverlay #baFreeSave{background:var(--ba316-orange)!important;color:#14100a!important}
#baFreeOverlay .ba-free-top{border-bottom:2px solid var(--ba316-orange)!important;padding-bottom:12px!important}
/* Coach-programmed sessions retain green as their distinguishing accent. */
#client :is(.v135-entry,.v135-exercise-card,.workout-exercise,.journal-exercise,.session-exercise):not(.ba-free-exercise){border-left-color:var(--ba316-green)!important}
/* Accessible secondary copy */
#client :is(.ba-free-panel,.ba-free-exercise,.dashboard-panel,.profile-side-card) :is(.muted,small){color:#b8c5c4!important}
@media(max-width:760px){#client :is(.card,.dashboard-panel,.dashboard-pr-panel,.dashboard-recent-panel,.dashboard-weight-card,.dashboard-calendar,.premium-avatar-panel,.premium-measure-form,.profile-side-card,.profile-tip,.profile-history,.v131-consent,.ba-free-panel){max-width:100%!important;min-width:0!important;box-sizing:border-box!important}}
