/* V389: surfaces structurelles noires, sans modifier les interactions */
body:has(#mobileWorkoutStage) #mobileWorkoutStage,
body:has(#mobileWorkoutStage) #mobileWorkoutStage .ba-v268-history,
body:has(#mobileWorkoutStage) #mobileWorkoutStage .mw-welcome,
body:has(#mobileWorkoutStage) #mobileWorkoutStage .entry-card:not(.history-exercise-card),
body:has(#mobileWorkoutStage) #mobileWorkoutStage .ba-v268-history > div,
body:has(#mobileWorkoutStage) #mobileWorkoutStage .history-editor {background:#080a0b!important;box-shadow:none!important}
#mobileWorkoutStage .mw-welcome button{display:block!important;width:100%!important;max-width:100%!important;margin:14px 0 0!important;min-height:48px!important}
#mobileWorkoutStage .mw-welcome #mwResumeToday{margin-top:18px!important}
.ba389-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;background:rgba(0,0,0,.86)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:calc(12px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
.ba389-dialog{position:relative!important;width:min(680px,100%)!important;max-width:100%!important;max-height:100%!important;overflow-y:auto!important;overscroll-behavior:contain!important;background:#080a0b!important;border:1px solid #34474c!important;border-radius:18px!important;padding:52px 14px 20px!important;box-sizing:border-box!important;color:#edf3ef!important}
.ba389-close{position:sticky!important;top:0!important;float:right!important;z-index:5!important;margin:-43px 0 0!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;background:#182226!important;color:#fff!important;border:1px solid #60777b!important;border-radius:12px!important;font-size:30px!important;line-height:1!important;cursor:pointer!important}
.ba389-editor-content,.ba389-editor-content *{box-sizing:border-box!important;max-width:100%}
.ba389-editor-content .history-editor{background:#080a0b!important;padding:0!important}
.ba389-editor-content .history-exercise-card{background:#111516!important}
.ba389-editor-content .history-series{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}
.ba389-editor-content .history-series-fields{min-width:0!important}
@media(max-width:430px){.ba389-dialog{padding-left:10px!important;padding-right:10px!important}.ba389-editor-content .history-series-done{max-width:80px!important}}
