.mwCustomReview,.mwCustomSession { min-width:0; padding:18px; margin:16px 0; border:1px solid #2d394c; border-radius:16px; background:#101827; color:#f7f3e8; }
.mwCustomSession h3 { margin:0 0 12px; color:#f4d47e; font-size:16px; }
.mwCustomSession p { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.mwCustomReview label { display:block; margin:10px 0; font-size:13px; color:#aab6c9; }
.mwCustomFields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.mwCustomFields label { min-width:0; }
.mwCustomReview input:not([type=checkbox]),.mwCustomReview select,.mwCustomReview textarea { width:100%; box-sizing:border-box; padding:12px; color:#f7f3e8; background:#080d16; border:1px solid #2d394c; border-radius:10px; font:inherit; }
.mwCustomApproval { display:flex!important; align-items:flex-start; gap:10px; padding:12px; }
.mwCustomApproval input,.mwCustomAthletes input { width:20px!important; height:20px; flex-shrink:0; }
.mwCustomAthletes { display:grid; gap:8px; }
.mwCustomAthletes label { display:flex; gap:10px; align-items:center; }
.mwCustomReview button { min-height:44px; margin:6px 0; }
.mwCustomReview [data-review-state] { color:#f4d47e; line-height:1.5; }
@media(max-width:440px){.mwCustomSession,.mwCustomReview { padding:12px; }.mwCustomFields { gap:8px; }}

/* Keep program actions and long uploaded filenames within the card on phones. */
#programLive { min-width:0; max-width:100%; }
#programLive .mwProgramCard { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:16px; padding:16px; box-sizing:border-box; min-width:0; max-width:100%; border:1px solid #675025; border-radius:16px; background:#07121a; }
#programLive .mwProgramDetails { min-width:0; overflow-wrap:anywhere; }
#programLive .mwProgramDetails h3 { margin:0 0 8px; color:#fff; font-size:18px; line-height:1.4; }
#programLive .mwProgramDetails p { margin:6px 0; font-size:14px; line-height:1.5; color:#adbdc8; }
#programLive .mwProgramDetails .mwProgramAssignmentStatus { color:#f4d47e; font-weight:700; }
#programLive .mwProgramTargets { padding-left:18px; margin:8px 0 0; font-size:14px; line-height:1.6; color:#adbdc8; }
#programLive .mwProgramActions { display:flex; flex-wrap:wrap; gap:8px; align-items:start; min-width:0; }
#programLive .mwProgramActions button { min-width:0; max-width:100%; min-height:44px; box-sizing:border-box; white-space:normal; }
@media(max-width:640px){
 #programLive .mwProgramCard { grid-template-columns:minmax(0,1fr); gap:12px; }
 #programLive .mwProgramActions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 #programLive .mwProgramActions button { width:100%; }
}
@media(max-width:380px){#programLive .mwProgramActions { grid-template-columns:minmax(0,1fr); }}

.program-delete {color:#ffb5ae!important;border-color:#a45c54!important;background:#241419!important;}
.mwProgramDeleteActions {display:flex;flex-wrap:wrap;gap:12px;}
.mwProgramDeleteActions button {min-height:44px;}
@media(max-width:640px){#programLive .mwProgramActions .program-delete {grid-column:auto;}}

/* Weekly upload preview: compact day cards with details only when needed. */
.mwProgramSource {padding:12px;border:1px solid #675025;border-radius:12px;}
.mwProgramSource summary,.mwPreviewDay summary {cursor:pointer;color:#f4d47e;min-height:44px;display:flex;align-items:center;font-weight:700;}
.mwPreviewWeeks {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
.mwPreviewWeeks button {white-space:normal;max-width:100%;}
.mwPreviewWeeks [aria-pressed=true] {background:#f4d47e!important;color:#080d16!important;}
.mwPreviewDays {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;}
.mwPreviewDays [hidden] {display:none!important;}
.mwPreviewDay {margin:0;padding:14px;overflow-wrap:anywhere;}
.mwPreviewDay h4 {margin:0;color:#f4d47e;font-size:16px;}
.mwPreviewDay .mwPreviewPrescription {color:#fff;font-weight:700;}
.mwPreviewQuestions {font-size:13px;line-height:1.6;color:#aab6c9;padding:10px 0;}
.mwPreviewQuestions.mwNeedsAnswers {color:#f4d47e;border-top:1px solid #675025;}
.mwPreviewQuestions ul {padding-left:18px;margin:6px 0;}
.mwPreviewDay fieldset {border:1px solid #2d394c;border-radius:12px;padding:10px;margin:12px 0;min-width:0;}
.mwPreviewDay legend {font-size:13px;color:#f4d47e;}
.mwPreviewDay button {max-width:100%;white-space:normal;}
@media(max-width:700px){.mwPreviewDays {grid-template-columns:minmax(0,1fr);}}

.mwPreviewWeeks {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:180px;overflow-y:auto;}
.mwPreviewWeeks button {display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 5px!important;font-size:13px!important;letter-spacing:0!important;line-height:1.4;min-width:0;margin:0;}
.mwPreviewWeeks small {font-size:10px;font-weight:400;}
.mwProgramEntryActions{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.mwProgramEntryActions button{min-width:0;white-space:normal}.mwProgramEntryActions button[aria-pressed=true]{border-color:#ffd56b;color:#ffd56b}.mwProgramEntry [hidden],#cpUploadPanel[hidden],.mwProgramSource[hidden]{display:none!important}

.mwWorkoutCopy{margin:14px 0;padding:16px;border:1px solid #675025;border-radius:12px;background:#080f19}.mwWorkoutCopy[hidden]{display:none!important}.mwWorkoutCopy h4{margin:0;color:#f4d47e}.mwWorkoutCopy button{white-space:normal;max-width:100%}.mwWorkoutCopy [data-copy-error]{color:#ffd56b}.mwPreviewDay [data-duplicate-workout]{margin:8px 0}

#cpPhotoPanel[hidden],#cpPhotoPreview[hidden],#cpPhotoPanel input[hidden]{display:none!important}#cpPhotoPreview{display:block;max-width:100%;max-height:360px;object-fit:contain;margin:14px auto;border-radius:10px}#cpPhotoPanel button{white-space:normal;max-width:100%}
