#program-panel.course-open > :not(#course-workbench){display:none!important}
#course-workbench{min-width:0} .cw-line{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.cw-kicker{font-size:12px;letter-spacing:1.2px;font-weight:700;color:#61718d}.cw-hero{display:flex;justify-content:space-between;gap:28px;align-items:center;margin:20px 0;padding:28px;background:#10214e;border-radius:18px;color:white}.cw-hero h2{font-size:28px;margin:8px 0}.cw-hero p{margin:8px 0;color:#d7e0f0}.cw-hero .cw-kicker{color:#e4c433}.cw-actions{display:flex;gap:12px;flex-wrap:wrap}.cw-hero .secondary{background:white}.cw-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.cw-main,.cw-outline{background:white;border:1px solid #dce3ee;border-radius:16px;padding:24px;min-width:0}.cw-main h3{font-size:22px;line-height:1.4}.cw-status{font-size:12px;font-weight:700;background:#f8efbd;padding:7px 11px;border-radius:7px}.cw-video{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#10214e}.cw-section{padding-top:20px;margin-top:20px;border-top:1px solid #e1e6ef}.cw-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.cw-resource-link{display:block;padding:15px;border:1px solid #dce3ee;border-radius:9px;margin:10px 0;overflow-wrap:anywhere}.cw-outline h3{margin-top:0}.cw-outline h4{font-size:13px;letter-spacing:.3px;margin:24px 0 12px;color:#64748b}.cw-lesson{display:block;background:transparent;text-align:left;border:0;border-left:3px solid transparent;border-radius:7px;padding:14px 10px;width:100%;color:#10214e;margin:4px 0}.cw-lesson span{display:block;font-size:15px;line-height:1.5;font-weight:600}.cw-lesson small{display:block;margin:7px 0 0;color:#64748b}.cw-lesson.selected{background:#fff7d1;border-left-color:#d3ad10}.cw-lesson:hover{background:#f1f4fa}.cw-outline>.secondary{margin-top:20px;width:100%}.cw-publish{border-top:1px solid #dce3ee;padding-top:20px;margin-top:24px}.cw-publish p,.cw-notice{font-size:14px;color:#64748b}.cw-no-video{width:100%;aspect-ratio:16/9;border:1px dashed #a8b6cd;background:#f3f6fb;border-radius:12px;color:#10214e;font-size:18px}.cw-empty-icon{font-size:48px;color:#c4a422}.ce-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ce-resource{display:grid;grid-template-columns:1fr 1.4fr auto;gap:10px;margin-bottom:12px}#class-manager{width:min(850px,94vw);max-height:90dvh;overflow:auto}#class-manager form>label{display:block;margin:20px 0}#class-manager input,#class-manager textarea,#class-manager select{width:100%;min-width:0}#class-manager .dialog-head{position:sticky;top:0;background:white;z-index:1;padding:12px 0}#classes-message{color:#a32424}.cw-main button,.cw-outline button{min-height:44px}
@media(max-width:1100px){.cw-layout{grid-template-columns:minmax(0,1fr)}.cw-hero{align-items:flex-start;flex-direction:column}.cw-outline{order:2}}
@media(max-width:600px){.cw-main,.cw-outline,.cw-hero{padding:18px}.cw-hero h2{font-size:24px}.ce-fields,.ce-resource{grid-template-columns:1fr}.cw-actions{width:100%}.cw-actions button{flex:1}.cw-line{gap:10px}.cw-kicker{font-size:11px}.cw-main h3{font-size:20px}}

/* Course catalog with covers and one clear entry action. */
.admin-page #program-list .program-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.program-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#e8edf5}.program-card-body{padding:24px;display:flex;flex-direction:column;align-items:flex-start;flex:1;gap:14px}.program-card-body h2,.program-card-body p{margin:0}.program-card-body p{color:#62718a;font-size:16px;line-height:1.65}.program-card-body>.primary{width:100%;margin-top:auto;min-height:48px}.program-card-body>.number{margin:0}.program-card-body h2{overflow-wrap:anywhere}@media(max-width:650px){.program-card-body{padding:20px}.admin-page #program-list{grid-template-columns:minmax(0,1fr)}}
.admin-page #program-list .program-card>.program-cover{width:100%;height:auto;aspect-ratio:16/9;margin:0;object-fit:cover;flex-shrink:0}

.admin-page .program-status{width:auto;max-width:100%;min-height:44px;border:0;border-radius:8px;padding:10px 32px 10px 14px;font-size:14px;font-weight:700;color:white;cursor:pointer}.program-status[data-state=active]{background-color:#167344}.program-status[data-state=inactive]{background-color:#b42332}.program-status[data-state=draft]{background-color:#b54c00}.program-status option{color:#10214e;background:white}.program-status:disabled{opacity:.65;cursor:wait}.program-status:focus-visible{outline:3px solid #10214e;outline-offset:3px}

.program-cover-editor{margin:20px 0}.program-cover-editor img{display:block;width:min(100%,420px);aspect-ratio:16/9;object-fit:contain;background:#10214e;border-radius:12px;margin-bottom:12px}.program-cover-editor input{display:block;margin-top:10px;max-width:100%}

/* Compact course status anchored to the top-right of the cover. */
.program-card-media{position:relative;flex-shrink:0}
.admin-page #program-list .program-cover-button>.program-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;margin:0}
.admin-page #program-list .program-card-media>.program-status{position:absolute;top:10px;right:10px;width:auto;max-width:145px;min-height:32px;height:32px;padding:5px 24px 5px 10px;font-size:12px;line-height:1.2;border-radius:7px;box-shadow:0 2px 8px #0003;margin:0}
@media(pointer:coarse){.admin-page #program-list .program-card-media>.program-status{min-height:44px;height:44px}}

.cw-sort-row{position:relative;display:flex;align-items:center;gap:4px;border-radius:8px}.cw-sort-row>.cw-lesson{flex:1;min-width:0}.cw-drag-handle{flex-shrink:0;width:30px;min-height:44px;padding:0;border:0;background:transparent;color:#64718b;font-size:24px;cursor:grab;touch-action:none;user-select:none}.cw-drag-handle:hover,.cw-drag-handle:focus-visible{color:#10214e;background:#edf1f7;border-radius:6px}.cw-dragging{opacity:.5}.cw-dragging .cw-drag-handle{cursor:grabbing}.cw-drop-before:before,.cw-drop-after:after{content:'';position:absolute;left:0;right:0;height:3px;background:#bf9c0b;z-index:2}.cw-drop-before:before{top:0}.cw-drop-after:after{bottom:0}.cw-order-hint,.cw-order-message{font-size:13px;color:#62718a;line-height:1.5}.cw-order-message:empty{display:none}.cw-saving-order .cw-drag-handle{pointer-events:none;opacity:.45}#module-picker{margin-bottom:8px}

.cw-delete{color:#b42332;border-color:#efb4bb;margin-left:12px}.cw-delete:hover{background:#fff0f1}

.admin-page #program-list .program-cover-button{display:block;width:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;cursor:pointer;overflow:hidden}.program-cover-button:focus-visible{outline:3px solid #e5c52c;outline-offset:-4px}.program-cover-button:hover .program-cover{filter:brightness(1.06)}
