
/* V3.7.1: dedicated editor contrast fix; scoped to editor, not printouts */
body[data-ui-style] .content .builder-shell{
 --builder-bg:#182232;--builder-bg2:#222e40;--builder-border:#46566c;
 --builder-ink:#f2f6fc;--builder-muted:#bac7d9;--builder-red:#76172d;
 color:var(--builder-ink)!important;
}
body[data-ui-style] .content .builder-shell :is(.main-settings,.quick-settings,.builder-day-panel,.day-panel-head,.builder-bottom,.builder-settings,.builder-day,.builder-save,.builder-control,.builder-workspace,.smart-slot,.builder-slot,.exercise-preview,.exercise-choice,.dose,.slot-actions,.exercise-thumb,.exercise-preview .thumb,.day-tabs button,.clear-day,.day-tab,.builder-summary){
 background-color:var(--builder-bg)!important;color:var(--builder-ink)!important;border-color:var(--builder-border)!important;
}
body[data-ui-style] .content .builder-shell :is(.day-panel-head,.builder-bottom,.builder-summary,.main-settings,.quick-settings,.builder-day-panel){background-image:linear-gradient(145deg,#202c3c,#161f2c)!important}
body[data-ui-style] .content .builder-shell :is(.smart-slot:hover,.builder-slot:hover){background-color:#28374b!important}
body[data-ui-style] .content .builder-shell :is(h1,h2,h3,h4,p,label,legend,b,strong,span,small,.selection-meta,.exercise-choice>span,.drag,.day-status){color:var(--builder-ink)!important}
body[data-ui-style] .content .builder-shell :is(.builder-top p,.day-panel-head p,.builder-bottom small,.exercise-choice>span,.selection-meta,.day-status){color:var(--builder-muted)!important}
body[data-ui-style] .content .builder-shell :is(input:not([type=checkbox]),select,textarea,.exercise-search,.exercise-search-v16,.exercise-select){
 background:#0e1724!important;background-image:none!important;color:#f7f9fe!important;border:1px solid #66768d!important;border-radius:9px!important;box-shadow:none!important;
}
body[data-ui-style] .content .builder-shell :is(input,select,textarea)::placeholder{color:#acb9ca!important;opacity:1}
body[data-ui-style] .content .builder-shell :is(select option){background:#152133!important;color:#fff!important}
body[data-ui-style] .content .builder-shell :is(button,.button,.btn,input[type=submit]){
 background:linear-gradient(135deg,#8a2038,#551121)!important;color:#fff!important;border:1px solid #bc5268!important;box-shadow:0 5px 13px #0005!important;text-shadow:none!important;
}
body[data-ui-style] .content .builder-shell :is(button,.button,.btn):hover{background:#a62845!important;color:#fff!important}
body[data-ui-style] .content .builder-shell .day-tabs button.active{background:#9a2540!important;border-color:#d95a75!important}
body[data-ui-style] .content .builder-shell .day-tabs button.active :is(span,small){color:#fff!important}
body[data-ui-style] .content .builder-shell :is(button,.button,.btn):focus-visible{outline:3px solid #ff9cb1!important;outline-offset:2px}
body[data-ui-style] .content .builder-shell :is(.exercise-thumb,.exercise-preview .thumb){background:#28354a!important;color:#d5dfef!important}
body[data-ui-style] .content .builder-shell :is(input[type=checkbox],input[type=radio]){accent-color:#a72945}
@media print{body[data-ui-style] .content .builder-shell *{box-shadow:none!important}}
