.home-program-module{background:linear-gradient(145deg,#f8fbff,#fff)}.home-program-list{display:grid;gap:12px}.home-program-card{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,.8fr);gap:12px 24px;padding:18px;border:1px solid #cad8ee;border-radius:16px;background:#fff}.home-program-card>div:first-child{display:grid;gap:4px}.home-program-card>div:first-child strong{font-size:17px}.home-program-card>div:first-child small{color:var(--muted)}.home-program-card>p{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;color:#44536a}.home-program-card>p span{width:1px;height:16px;background:#ccd5e3}.home-program-card-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.home-program-card-actions button{margin:0}.home-program-group{margin:18px 0;padding:16px;border:1px solid #b9cbed;border-radius:18px;background:#f7f9fe}.home-program-group>header{display:grid;height:auto;grid-template-columns:46px minmax(240px,1fr) auto;gap:12px;align-items:end;padding:0;background:transparent;color:inherit}.home-program-group>header label{margin:0}.home-program-group-index{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;background:#0a328d;color:#fff;font-size:20px;font-weight:900}.home-program-group>[data-group-entries]{display:grid;gap:12px;margin:14px 0}.home-program-entry{padding:15px;border:1px solid #d7e0ec;border-radius:14px;background:#fff}.home-program-entry>header{display:flex;height:auto;justify-content:space-between;align-items:center;margin-bottom:11px;padding:0;background:transparent;color:inherit}.home-program-entry>header button{padding:7px 9px}.rest-entry{border-style:dashed;background:#fffaf0}.rest-entry>header strong{color:#815d07}.home-program-group-actions{display:flex;gap:8px}.exercise-library-context{display:grid;gap:6px;margin-top:12px;padding:11px 13px;border:1px solid #d8e2f2;border-radius:12px;background:#f8faff}.exercise-library-context>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px}.exercise-library-context>div strong{color:#173f9d;font-size:12px}.exercise-library-context [data-exercise-library-status]{padding:4px 8px;border-radius:999px;background:#eaf1ff;color:#1747a8;font-size:11px;font-weight:800}.exercise-library-hint{display:block;color:#65738a;font-size:11px;line-height:1.45}.home-program-patient-instructions{display:grid!important;gap:8px;margin-top:12px}.home-program-patient-instructions>span{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:800}.home-program-patient-instructions [data-instruction-origin]{padding:4px 8px;border-radius:999px;background:#e8f6ee;color:#18754c;font-size:10px;font-weight:800}.home-program-patient-instructions textarea{min-height:112px;resize:vertical;line-height:1.55}.home-program-instruction-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px 14px;margin-top:7px}.home-program-instruction-actions small{color:#65738a}.home-program-instruction-actions button{margin:0;padding:7px 10px}.home-program-instruction-actions [data-reload-library-instruction][hidden]{display:none!important}.exercise-library-candidates{display:grid;gap:10px;margin-top:12px;padding:13px;border:1px solid #b9cbed;border-radius:13px;background:#f4f8ff}.exercise-library-candidates[hidden]{display:none}.exercise-library-candidates-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px}.exercise-library-candidates-heading strong{color:#123f9d}.exercise-library-candidates-heading small{color:#5f6e84}.exercise-library-candidate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.exercise-library-candidate{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:0!important;padding:11px 13px!important;border:1px solid #cad8ee!important;border-radius:11px!important;background:#fff!important;color:#14213a!important;text-align:left!important}.exercise-library-candidate:hover{border-color:#1458d5!important;background:#f8fbff!important}.exercise-library-candidate>span{display:grid;gap:3px;min-width:0}.exercise-library-candidate>span:last-child{text-align:right}.exercise-library-candidate strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exercise-library-candidate b{color:#1458d5;font-size:11px}.exercise-library-candidate small{color:#6b7384;font-size:10px}.home-program-video-picker{margin-top:12px;padding:12px;border-radius:12px;background:#eef4ff}.home-program-video-picker summary{cursor:pointer;color:#1747b5;font-weight:800}.home-program-video-picker>[data-video-options]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:7px;margin:10px 0}.home-program-video-choice{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border-radius:10px;background:#fff}.home-program-video-choice input{width:auto}.home-program-video-choice b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.home-program-video-choice small{color:var(--muted);font-size:9px}.home-program-video-upload{display:inline-flex!important;align-items:center;width:auto!important;padding:9px 11px;border-radius:10px;background:#fff;color:#1747b5;font-weight:800;cursor:pointer}.home-program-video-upload input{display:none}.home-program-video-empty{margin:10px 0;color:var(--muted)}.cue-candidate-choice{display:grid!important;grid-template-columns:20px minmax(0,1fr);gap:10px;margin-top:10px;padding:11px 13px;border-radius:12px;background:#f5f8ff;color:#163c9f;cursor:pointer}.cue-candidate-choice input{width:18px!important;height:18px!important;margin:2px 0 0}.cue-candidate-choice>span{display:grid;gap:2px}.cue-candidate-choice strong{font-size:12px}.cue-candidate-choice small{color:#6b7384;font-size:11px;font-weight:500}.home-program-share-dialog{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:rgba(4,13,32,.72);backdrop-filter:blur(8px)}.home-program-share-dialog>section{display:grid;gap:15px;width:min(620px,100%);padding:28px;border-radius:24px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28)}.home-program-share-dialog h2,.home-program-share-dialog p{margin:0}.home-program-share-dialog input{font-family:monospace}.home-program-share-dialog small{color:var(--muted)}.home-program-share-dialog>section>div{display:flex;flex-wrap:wrap;gap:9px}.home-program-share-dialog a{display:inline-flex;align-items:center;padding:10px 14px;border-radius:11px;background:#eef3ff;color:#0a3fae;font-weight:800;text-decoration:none}@media(max-width:760px){.home-program-card{grid-template-columns:1fr}.home-program-group>header{grid-template-columns:46px 1fr}.home-program-group>header>button{grid-column:1/-1}.exercise-library-context>div{align-items:flex-start;flex-direction:column}.home-program-instruction-actions{align-items:stretch;flex-direction:column}.home-program-instruction-actions button{width:100%}.exercise-library-candidate-list{grid-template-columns:1fr}.home-program-video-picker>[data-video-options]{grid-template-columns:1fr}}

.home-program-ai-authoring{display:grid;gap:14px;margin:18px 0 22px;padding:20px;border:1px solid #9dbaf0;border-left:5px solid #1155ce;border-radius:18px;background:linear-gradient(145deg,#f2f7ff,#fff)}
.home-program-ai-heading,.home-program-ai-preview-heading,.home-program-ai-confirm{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.home-program-ai-heading h4,.home-program-ai-preview-heading h4{margin:4px 0 5px;font-size:20px}.home-program-ai-heading p,.home-program-ai-confirm p{margin:0;color:#5d6c82;line-height:1.55}.home-program-ai-authoring textarea{min-height:128px;line-height:1.6}.home-program-ai-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-program-ai-actions small{color:#65738a}.home-program-ai-actions button{margin:0;white-space:nowrap}.home-program-ai-preview-card{display:grid;gap:15px;margin-top:4px;padding:18px;border:1px solid #b8c9e8;border-radius:16px;background:#fff}.home-program-ai-group{overflow:hidden;border:1px solid #d3deef;border-radius:14px;background:#f8faff}.home-program-ai-group>header{display:flex;height:auto;align-items:center;gap:10px;padding:11px 14px;background:#071126;color:#fff}.home-program-ai-group>header b{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#155bd7}.home-program-ai-group>div{display:grid;gap:8px;padding:10px}.home-program-ai-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:11px;border:1px solid #e0e6ef;border-radius:11px;background:#fff}.home-program-ai-item.needs-review{border-left:4px solid #dda526}.home-program-ai-index{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#eaf1ff;color:#174bad;font-weight:900}.home-program-ai-item strong{font-size:14px}.home-program-ai-item p{margin:4px 0;color:#4e5f78}.home-program-ai-item small{display:block;margin-top:6px;color:#748198}.home-program-ai-item ul,.home-program-ai-issues ul{margin:7px 0 0;padding-left:18px;color:#8a5c09}.home-program-ai-match-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.home-program-ai-match-row span{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.home-program-ai-match-row .matched{background:#e5f6ed;color:#17724c}.home-program-ai-match-row .pending{background:#fff1c9;color:#865b00}.home-program-ai-match-row .neutral{background:#eef1f6;color:#647086}.home-program-ai-issues{padding:11px 13px;border-radius:12px;background:#fff9e9}.home-program-ai-issues summary{cursor:pointer;color:#785100;font-weight:800}.home-program-ai-confirm{align-items:center;padding-top:4px}.home-program-ai-confirm button{margin:0;white-space:nowrap}
@media(max-width:760px){.home-program-ai-authoring{padding:15px}.home-program-ai-heading,.home-program-ai-preview-heading,.home-program-ai-confirm,.home-program-ai-actions{align-items:stretch;flex-direction:column}.home-program-ai-actions button,.home-program-ai-confirm button{width:100%}.home-program-ai-item{grid-template-columns:32px minmax(0,1fr)}.home-program-ai-index{width:30px;height:30px}}
