[hidden]{display:none!important}.signed-out>aside,.signed-out>main{display:none}#auth-screen{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#f7f7f9;padding:64px;gap:60px;align-items:center}#auth-screen .auth-brand{align-self:start}.auth-brand img{width:230px;display:block}.auth-brand span{display:block;font-size:10px;letter-spacing:2px;margin-top:28px;color:#777}.auth-card{max-width:470px;padding:44px;background:#fff;border:1px solid #e6e6ea;border-radius:24px;box-shadow:0 16px 60px #1a18200a}.auth-card h1{font-size:38px;letter-spacing:-1.5px;margin:18px 0 14px}.auth-card p{line-height:1.7;color:#73737f}.auth-card input{width:100%;min-height:52px;font-size:16px}.auth-card .btn{width:100%;margin-top:18px;display:flex;justify-content:space-between;min-height:52px}.auth-card small{font-size:12px;color:#777}.auth-foot{grid-column:1/-1;align-self:end;letter-spacing:2px;font-size:10px}.auth-foot span{float:right;letter-spacing:0;color:#777}#auth-feedback{font-size:13px;min-height:24px}#sync-warning{padding:16px 24px;background:#fff2dc;display:flex;gap:20px;align-items:center}.sync-error{color:#b94118!important}.program-collection{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.folder-tree{padding:10px;max-height:70vh;overflow:auto;position:sticky;top:18px}.folder-tree h2{font-size:14px;margin:14px 12px}.folder-tree details{border-top:1px solid #eee}.folder-tree summary{cursor:pointer;display:flex;align-items:center;gap:10px;padding:15px 10px;list-style:none;font-size:14px;font-weight:600}.folder-tree summary:before{content:'›';font-size:18px;color:#888}.folder-tree details[open]>summary:before{transform:rotate(90deg)}.folder-children{padding:0 8px 12px 32px;display:grid;gap:5px}.folder-children button{background:transparent;border:0;text-align:left;padding:9px 8px;border-radius:6px;font:inherit;font-size:12px;cursor:pointer}.folder-children button:hover{background:#fff0f2;color:#df1024}.folder-children small{padding:8px;font-size:11px;color:#888}.compact-program{padding:22px;display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:12px}.compact-program h2{font-size:18px;margin:8px 0}.compact-program p{font-size:13px;line-height:1.5}.compact-program small{display:block;font-size:12px;margin-top:7px}.compact-program .toolbar{margin:0;flex-shrink:0;gap:8px}.compact-program .btn{min-height:42px;padding:10px 14px;font-size:12px}.danger-link{color:#bc1d30!important}.onboard-wrap{max-width:880px;margin:auto}.onboard-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.onboard-progress{display:flex;gap:5px;margin-bottom:34px}.onboard-progress span{height:3px;flex:1;background:#e4e4e9}.onboard-progress .done{background:#df1024}.onboard-card{padding:38px}.onboard-card h1{font-size:34px;letter-spacing:-1.1px;margin:12px 0}.onboard-card>p{font-size:14px;line-height:1.7;margin-bottom:30px}.onboard-card label{font-size:13px;color:#444;margin:22px 0 9px}.onboard-card input,.onboard-card select,.onboard-card textarea{font-size:16px;min-height:48px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice-grid label{margin:0!important;border:1px solid #e3e3e9;border-radius:12px;padding:17px;display:flex;gap:12px;align-items:center;cursor:pointer;line-height:1.4}.choice-grid input{width:18px;min-height:18px;accent-color:#df1024;flex-shrink:0}.choice-grid label:has(input:checked){border-color:#df1024;background:#fff4f5}.onboard-actions{display:flex;justify-content:space-between;gap:12px;margin-top:32px;padding-top:24px;border-top:1px solid #eee}.onboard-note{font-size:12px!important;color:#888!important;margin:14px 0 0!important}.onboard-review{display:grid;grid-template-columns:1fr 1fr;gap:16px}.onboard-review>div{padding:18px;background:#f8f8fa;border-radius:12px}.onboard-review h3{font-size:13px;margin-bottom:10px}.onboard-review p{font-size:13px;line-height:1.6;white-space:pre-wrap}.onboard-review button{margin-top:12px}.onboard-error{color:#bc1d30!important;font-size:13px!important}.onboard-actions .btn{min-width:120px}.onboard-summary{margin-top:22px}.onboard-summary dl{display:grid;grid-template-columns:180px 1fr;gap:12px;font-size:13px}.onboard-summary dd{margin:0;white-space:pre-wrap;line-height:1.5}.onboard-summary dt{color:#888}
@media(max-width:1100px){.program-collection{grid-template-columns:230px minmax(0,1fr)}.compact-program{align-items:start;flex-direction:column}.compact-program .toolbar{flex-wrap:wrap}.auth-card{padding:30px}#auth-screen{padding:40px;gap:30px}}
@media(max-width:700px){#auth-screen{padding:28px 20px;display:flex;flex-direction:column;gap:34px;align-items:stretch}.auth-brand img{width:170px}.auth-brand span{font-size:8px;margin-top:18px}.auth-card{padding:28px 24px;max-width:none}.auth-card h1{font-size:32px}.auth-foot{margin-top:auto}.program-collection{display:block}.folder-tree{position:static;max-height:none;margin-bottom:20px}.compact-program{padding:18px}.onboard-card{padding:24px 20px}.onboard-card h1{font-size:29px}.choice-grid,.onboard-review{grid-template-columns:1fr}.onboard-top{font-size:12px}.onboard-actions{position:sticky;bottom:0;background:#fff;padding:18px 0;margin-top:24px}.onboard-summary dl{grid-template-columns:1fr;gap:6px}.onboard-summary dd{margin-bottom:12px}#connection{font-size:10px;max-width:140px}#sign-out{padding:9px;font-size:11px}}
.auth-card label,.onboard-card label{display:block}.onboard-field{min-width:0}.onboard-field input,.onboard-field textarea{display:block;width:100%;box-sizing:border-box}.onboard-card .choice-grid label{display:flex}.onboard-card .privacy-choice{display:flex;align-items:flex-start;gap:12px;line-height:1.6}.privacy-choice input{width:20px;min-height:20px;flex-shrink:0;margin-top:3px}.auth-card input{display:block;box-sizing:border-box}.onboard-card .onboard-field>label{margin-top:20px}
@media(max-width:700px){body[data-view=Onboarding] #nav{display:none}.choice-grid{grid-template-columns:1fr 1fr}.choice-grid label{padding:13px 10px;gap:8px;font-size:12px;min-width:0}#nav{overflow-x:auto;justify-content:flex-start}#nav button{min-width:64px;flex-shrink:0}.onboard-card .form-pair{grid-template-columns:1fr 1fr}}

.exercise-video{width:100%;aspect-ratio:16/9;margin:24px 0 12px;background:#111;border-radius:12px;overflow:hidden}
.exercise-video iframe{display:block;width:100%;height:100%;border:0}
.exercise-cues{white-space:pre-wrap;line-height:1.7}
.exercise-tile .toolbar{flex-wrap:wrap;margin-top:16px}
#exercise-video-url{width:100%;min-width:0}
@media(max-width:600px){.exercise-tile{padding:20px}.exercise-video{margin-top:20px}.exercise-tile .btn{min-height:44px}}

.muscle-dropdown{border:1px solid #e2e2e8;border-radius:10px;background:#fafafa;margin-bottom:8px}
.muscle-dropdown summary{padding:14px;min-height:48px;display:flex;justify-content:space-between;gap:16px;cursor:pointer;font-size:14px;list-style:none}
.muscle-dropdown summary::-webkit-details-marker{display:none}
.muscle-dropdown[open] summary{border-bottom:1px solid #e7e7ec}
.exercise-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}
.exercise-checks label{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:8px!important;min-height:42px;font-size:13px!important;color:#35353c!important;cursor:pointer;line-height:1.4}
.exercise-checks input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px;margin:0;accent-color:#df1024}
.equipment-fieldset{border:1px solid #e2e2e8;border-radius:10px;margin:24px 0 16px;padding:0}
.equipment-fieldset legend{font-size:13px;padding:0 8px;margin-left:8px}
#exercise-kind{display:block;width:100%;min-height:48px;border:1px solid #e2e2e8;border-radius:10px;background:#fafafa;padding:12px;font:inherit;font-size:14px}
.exercise-thumbnail{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;margin:16px 0 0;border:0;border-radius:10px;overflow:hidden;background:#242429;cursor:pointer;color:white}
.exercise-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;margin:0}
.thumbnail-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:36px;border-radius:10px;background:#e51024;color:white;font-size:17px}
.thumbnail-caption{position:absolute;bottom:0;left:0;right:0;padding:20px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.8));font-size:12px;text-align:left}
.exercise-thumbnail:focus-visible,.muscle-dropdown summary:focus-visible{outline:3px solid #df1024;outline-offset:3px}
@media(max-width:380px){.exercise-checks{gap:3px;padding:7px}.exercise-checks label{font-size:12px!important;padding:5px!important}}
.exercise-delete{background:#fff4f5!important;color:#c40d20!important;border:1px solid #f0c5cb!important}
.exercise-delete:hover{background:#ffe8eb!important}
.avatar{overflow:hidden;flex-shrink:0}
.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;margin:0}
.profile-picture-card{display:flex;align-items:center;gap:24px;margin-bottom:22px}
.profile-avatar{width:96px!important;height:96px!important;min-width:96px;font-size:28px!important}
.profile-picture-card .btn{margin:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:white}
.profile-picture-card .btn.secondary{color:#444}
@media(max-width:600px){.profile-picture-card{align-items:flex-start;gap:16px;flex-direction:column}.profile-picture-card .toolbar{flex-wrap:wrap}}
.calendar-filter{display:flex;align-items:center;gap:14px;margin-bottom:22px;flex-wrap:wrap}
.calendar-filter label{margin:0;font-size:13px}
.calendar-filter select{border:1px solid #e2e2e8;border-radius:10px;padding:12px;max-width:100%;background:white;min-width:200px}
.activity-calendar .cell{position:relative;text-align:left;font:inherit;color:inherit;background:white;min-width:0;overflow:hidden}
.activity-calendar .cell:hover{background:#fff7f8;border-color:#df1024}
.activity-calendar .cell:focus-visible{outline:3px solid #df1024;outline-offset:2px}
.calendar-count{float:right;color:#c90d21;font-size:11px;font-weight:700}
.calendar-preview{display:block;margin-top:8px}
.calendar-preview small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-help{font-size:12px;color:#777;margin-top:16px}
.calendar-client-activity{border-top:1px solid #e7e7ec;padding:22px 0 8px;margin-top:20px}
.calendar-person{display:flex;gap:12px;align-items:center}.calendar-person h2{font-size:18px}
.calendar-session{padding:16px;background:#f8f8fa;border-radius:12px;margin:12px 0}
.calendar-session h3{margin:12px 0}.calendar-exercise{margin-top:14px}.calendar-exercise p{font-size:13px;line-height:1.7;margin:5px 0}
.calendar-note{white-space:pre-wrap;line-height:1.7;font-size:13px}
.calendar-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.calendar-metrics strong{font-size:20px}.calendar-metrics strong span{font-size:12px;color:#777;font-weight:400}
@media(max-width:600px){.calendar-preview{display:none}.calendar-count{float:none;display:block;margin-top:10px;font-size:11px}.calendar-client-activity .section-title{flex-wrap:wrap;gap:12px}.activity-calendar .cell{min-height:70px}.calendar-filter select{width:100%}}
/* Program and client import review */
.import-steps{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0;color:#767782;font-size:13px}.import-steps span{border-bottom:2px solid #eeeef1;padding:8px 12px}.import-steps .active{color:#df1024;border-color:#df1024;font-weight:650}.import-drop{display:flex!important;flex-direction:column;gap:12px;border:1px dashed #b9bac4;background:#fafafb;border-radius:16px;padding:26px!important;margin:22px 0!important;color:#222!important}.import-drop input{padding:12px!important;background:white!important;width:100%;font-size:14px!important}.import-note{font-size:13px!important;line-height:1.65!important;color:#757681;margin:14px 0!important}.import-warning{border:1px solid #ead7ad;border-radius:12px;background:#fffbf2;color:#725318;padding:18px;margin:22px 0;font-size:14px;line-height:1.6}.import-warning ul{padding-left:22px;margin:10px 0}.import-workout{margin:28px 0;border-top:1px solid #ececf0;padding-top:22px}.import-workout>input{font-size:20px!important;font-weight:650}.import-exercises{margin-top:18px}.import-exercise{padding:18px 0;border-bottom:1px solid #ececf0}.import-exercise .pill{margin-bottom:10px;display:inline-block}.import-fields{display:grid;grid-template-columns:minmax(190px,2.5fr) minmax(65px,.6fr) minmax(100px,1.2fr) minmax(90px,.85fr);gap:12px;align-items:end}.import-fields label{margin:0!important;font-size:12px!important;display:block}.import-fields input{margin-top:7px!important;min-height:46px;padding:10px 12px!important;font-size:14px!important;width:100%;min-width:0}.import-exercise details{font-size:13px;margin-top:12px;color:#757681}.import-exercise summary{cursor:pointer;padding:8px 0}.import-cues{white-space:pre-line}.import-exercise textarea{font-size:14px!important}.import-confirm{display:flex!important;align-items:flex-start;gap:12px;font-size:14px!important;line-height:1.6!important}.import-confirm input{width:20px!important;height:20px;flex-shrink:0;margin-top:3px}.import-actions{display:flex;gap:10px;flex-wrap:wrap;padding:18px 0}.import-client-list{margin:20px 0;max-height:50vh;overflow:auto}.import-client-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 4px;border-bottom:1px solid #eeeef1}.import-client-list small{display:block;margin-top:5px;overflow-wrap:anywhere}.import-client-list .pill{white-space:nowrap}.import-modal{max-width:1080px!important}.import-modal .form-pair>div{min-width:0}
@media(max-width:700px){.import-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.import-exercise-name{grid-column:1/-1}.import-fields label{font-size:11px!important}.import-actions .btn{flex:1;min-width:140px}.import-client-list article{align-items:flex-start;flex-direction:column;gap:8px}.import-drop{padding:18px!important}.import-steps{gap:4px;font-size:12px}.import-steps span{padding:8px}.import-warning{padding:14px}.import-modal .form-pair{grid-template-columns:1fr}}
/* Client folder > training phase > workouts */
.phase-tree{align-self:start;position:sticky;top:20px}.phase-tree>.search{width:100%;min-width:0;margin-bottom:14px}.phase-tree summary{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.phase-tree summary>span{flex:1;min-width:0;overflow-wrap:anywhere}.phase-tree summary small{font-size:11px;line-height:1.5;font-weight:400;color:#858591}.phase-tree-children{padding:0 0 12px 12px}.phase-tree .phase-tree-phase{margin:0;border-bottom:0}.phase-tree .phase-tree-phase summary{padding:12px 8px;border-left:2px solid #eeeef1;font-size:13px}.phase-tree .phase-tree-phase.selected-phase summary{border-left-color:#df1024;background:#fff5f6}.phase-tree .phase-tree-phase summary small{flex-basis:100%;padding-left:16px}.phase-tree-link,.phase-tree-workouts button{display:block;text-align:left;width:100%;border:0;background:none;color:#656571;font:inherit;font-size:12px;line-height:1.6;padding:10px 8px;cursor:pointer;overflow-wrap:anywhere}.phase-tree-link:hover,.phase-tree-workouts button:hover{color:#df1024;background:#fff5f6}.phase-tree-workouts{padding-left:18px;border-left:1px solid #eeeef1}.phase-tree-workouts button span{margin-right:8px;color:#a4a4ae}.phase-tree-workouts>small{padding:10px;display:block}.phase-tree-add{color:#df1024!important}.phase-card{padding:24px;margin-bottom:16px}.phase-card h2{font-size:21px;margin:8px 0}.phase-card p{font-size:13px;margin:8px 0}.phase-workout-names{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.phase-workout-names span{padding:6px 10px;background:#f7f7f9;border-radius:6px;font-size:12px;color:#747480}.phase-toolbar{padding:20px;margin-bottom:24px}.phase-toolbar>p{font-size:13px;line-height:1.6;margin-top:14px}.phase-workout{padding:24px;margin-bottom:16px}.phase-workout h2{font-size:22px}.phase-workout p{font-size:13px;margin:10px 0}.phase-preview-group{padding:18px 0;border-top:1px solid #eeeef1}.phase-preview-exercise{padding:12px 0}.phase-preview-exercise p{font-size:13px;margin:8px 0}.phase-preview-exercise .exercise-thumbnail{max-width:320px;margin:12px 0}.phase-preview-exercise small{white-space:pre-line;line-height:1.7}.import-match-field{margin:16px 0}.exercise-match-select{width:100%;border:1px solid #e1e1e8;border-radius:10px;min-height:46px;padding:10px;font:inherit;font-size:14px;background:#fafafb;color:#29292d;margin:8px 0}.import-match-field>small,.exercise-matching-list small{font-size:12px;line-height:1.6;display:block}.exercise-matching-list h3{font-size:16px}.phase-tree .phase-tree-link:focus-visible,.phase-tree-workouts button:focus-visible{outline:2px solid #df1024;outline-offset:2px}
@media(max-width:900px){.phase-tree{position:static}.phase-card,.phase-workout{padding:20px}.phase-card .section-title{align-items:flex-start;gap:12px}.phase-toolbar .toolbar{gap:8px}.phase-toolbar .btn{flex:1}.phase-tree-workouts button{padding-top:12px;padding-bottom:12px}}
.phase-mobile-picker{display:none!important}
@media(max-width:700px){.phase-mobile-picker{display:block!important;margin:10px!important;font-size:12px!important}.phase-mobile-picker select{display:block;width:100%;min-height:48px;margin-top:8px;padding:10px;border:1px solid #e1e1e8;border-radius:10px;font:inherit;background:#fff}.phase-tree>.search{display:none}.phase-tree #phase-tree-items>details{display:none}.phase-tree #phase-tree-items>details.current-folder{display:block}.phase-tree #phase-tree-items:empty{display:none}.phase-tree{max-height:400px!important;overflow:auto}}

/* Keep dismissal available while any dialog body scrolls. */
.modal-close-bar{position:sticky;top:0;height:0;z-index:20;display:flex;justify-content:flex-end;pointer-events:none}.modal-close-bar .modal-close{position:relative;top:-16px;right:-16px;flex:0 0 40px;width:40px;height:40px;pointer-events:auto;box-shadow:0 2px 8px #0001;background:#fff}.modal-box>h1{padding-right:48px}@media(max-width:700px){.modal-close-bar{top:0}.modal-close-bar .modal-close{top:-12px;right:-8px}}

.ai-tools{margin-top:24px;grid-template-columns:repeat(2,minmax(0,1fr))}.ai-tools h2{margin:20px 0 12px}.ai-tools p{min-height:54px;margin-bottom:24px}.ai-match-panel{padding:20px;background:#faf8f6;border:1px solid var(--line);border-radius:14px;margin:20px 0}.ai-match-panel summary{cursor:pointer;font-weight:700}.ai-match-reason{background:#f9f1e6;padding:12px;border-radius:8px;font-size:13px}.ai-program-list{display:grid;gap:12px;margin-top:20px}.ai-plain{white-space:pre-wrap}.ai-summary{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}.ai-summary li{margin:12px 0}.ai-summary h3{margin-top:20px}@media(max-width:700px){.ai-tools{grid-template-columns:1fr}.ai-tools p{min-height:0}}

.import-match-summary{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;padding:16px;border-radius:12px;background:#f1f8f3;margin:20px 0}.import-match-field summary{cursor:pointer;font-size:13px;color:#39774b;padding:10px 0}.import-match-field.needs-review{background:#fff8ed;padding:12px;border-radius:10px}.import-match-field.needs-review summary{color:#866126}

/* Folder subscriptions: compact, labelled client choices. */
.folder-subscriber-list{border:1px solid #e5e5eb;border-radius:14px;padding:8px 14px;margin:20px 0}.folder-subscriber-list legend{padding:0 5px;font-weight:600}.modal-box label.folder-client-choice{display:flex;align-items:center;gap:12px;margin:0;padding:12px 0;cursor:pointer;line-height:1.5}.folder-client-choice input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0;padding:0}.folder-subscriber-list .folder-client-choice+.folder-client-choice{border-top:1px solid #f0f0f4}

/* Named client-folder navigation. */
.named-folder-tree{position:static;margin-bottom:20px;padding:20px;max-height:none!important;overflow:visible}.named-folder-tree .section-title{margin:0 0 14px;gap:12px}.named-folder-tree h2{font-size:16px}.named-folder-tree .named-folder-create{width:34px;min-height:34px;padding:4px;font-size:20px;border-radius:10px}.named-folder-tree .named-folder-item{margin:0;border:0;border-top:1px solid var(--line);padding:0}.named-folder-tree .named-folder-heading{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:16px 4px;margin:0;border:0;border-radius:8px;background:transparent;line-height:1.45}.named-folder-heading::-webkit-details-marker{display:none}.named-folder-tree summary::before{display:none;content:none}.named-folder-tree .named-folder-icon{flex:0 0 24px;font-size:22px;color:#8e8e9b}.named-folder-tree .named-folder-copy{display:block;flex:1;min-width:0}.named-folder-copy strong{display:block;font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.named-folder-tree .named-folder-copy small{display:block;margin-top:3px;padding:0;font-size:11px;font-weight:400;color:var(--muted)}.named-folder-tree .named-folder-chevron{flex:0 0 16px;color:#93939e;font-size:17px;transition:transform .15s;text-align:center}.named-folder-item[open]>.named-folder-heading>.named-folder-chevron{transform:rotate(180deg)}.named-folder-tree .named-folder-links{padding:0 0 12px 18px;margin:0 0 0 14px;border-left:1px solid var(--line)}.named-folder-tree .named-folder-link{appearance:none;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:42px;margin:2px 0;padding:9px 10px;border:0;border-radius:8px;background:transparent;text-align:left;font:inherit;font-size:12px;line-height:1.5;color:#646471;cursor:pointer}.named-folder-link>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.named-folder-tree .named-folder-link strong{display:block;font-size:13px;font-weight:550}.named-folder-tree .named-folder-link small{display:block;font-size:11px;color:#888894;margin-top:2px;line-height:1.5}.named-folder-link-icon{flex:0 0 16px;text-align:center;color:#9999a5}.named-folder-arrow{flex:0 0 14px;color:#9999a5}.named-folder-tree .named-folder-link:hover,.named-folder-tree .named-folder-heading:hover{background:#faf6f7;color:var(--red)}.named-folder-item.is-current>.named-folder-heading{color:#26262b}.named-folder-tree .named-folder-add{margin-top:8px;color:var(--red)}.named-folder-add .named-folder-link-icon{color:inherit}.named-folder-heading:focus-visible,.named-folder-link:focus-visible{outline:2px solid var(--red);outline-offset:2px}.named-folder-empty{font-size:13px;color:var(--muted);line-height:1.65;padding:8px 0}
@media(max-width:700px){.named-folder-tree{padding:16px}.named-folder-tree .named-folder-heading{min-height:64px}.named-folder-tree .named-folder-link{min-height:46px}.named-folder-tree .named-folder-links{padding-left:12px}}

/* One folder navigation and consistent phase-page rhythm. */
.unified-folder-search{width:100%!important;margin:0 0 14px;min-height:42px;font-size:12px}
.named-folder-tree .unified-client-items>details>summary{padding:18px 10px;gap:10px;flex-wrap:wrap}
.named-folder-tree .unified-client-items>details>summary>span{flex:1;min-width:0;font-size:14px}
.named-folder-tree .unified-client-items>details>summary>small{font-size:11px;margin:0}
.named-folder-tree .unified-client-items>details>summary:before{content:'▱';font-size:19px;transform:none!important;color:#96969f}
.named-folder-tree .unified-client-items .phase-tree-children{margin:0 0 12px 14px;padding-left:16px;border-left:1px solid var(--line)}
.folder-phase-page{max-width:1120px}
.folder-phase-back{margin-bottom:26px}
.folder-phase-back .btn{padding:10px 14px;min-height:42px}
.folder-phase-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}
.folder-phase-heading .eyebrow{display:block;margin:0 0 10px}
.folder-phase-heading h1{margin:0 0 12px}
.folder-phase-heading p{margin:0;line-height:1.6}
.folder-phase-heading>.btn{flex-shrink:0}
.folder-phase-actions{margin:0 0 24px;padding-bottom:24px;border-bottom:1px solid var(--line);gap:10px}
.folder-phase-workouts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.folder-phase-empty{grid-column:1/-1;padding:36px 24px;display:grid;gap:10px;text-align:left}
.folder-phase-empty h2{margin:0}
.folder-phase-note{margin:24px 0 0;max-width:780px;font-size:12px;line-height:1.7}
@media(max-width:700px){.folder-phase-back{margin-bottom:24px}.folder-phase-heading{align-items:flex-start;flex-direction:column;gap:18px}.folder-phase-workouts{grid-template-columns:1fr}.folder-phase-empty{padding:26px 20px}.folder-phase-actions .btn{min-height:44px}.folder-phase-heading>.btn{min-height:44px}}

.text-only-workout h2{margin:10px 0 16px}.text-complete{display:flex;align-items:center;gap:10px;margin:20px 0;font-size:13px}.text-complete input{width:20px;height:20px;accent-color:var(--red)}.text-only-workout .coach-note{margin-top:16px}

/* Master program picker follows the app's form controls. */
#phase-master-source{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:52px;padding:14px 48px 14px 16px;border:1px solid #e3e3e8;border-radius:10px;background-color:#fafafb;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23777782' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:20px;font:inherit;font-size:14px;line-height:1.5;color:#303039;cursor:pointer;transition:border-color .15s,box-shadow .15s}
#phase-master-source:hover{border-color:#c9c9d2}
#phase-master-source:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-color:var(--red)}
#phase-master-source option{color:#303039;background:white}
@media(max-width:700px){#phase-master-source{font-size:16px;min-height:52px}}

/* Branded passwordless entry, with a quiet recovery route. */
.auth-next-step {margin:22px 0;padding:20px;border:1px solid #ececf1;border-radius:14px;background:#fafafa;text-align:left;}
.auth-next-step p {margin:8px 0;}
#email-link-confirm .btn {width:100%;}
#email-link-reset {display:block;margin:18px auto;}
#email-code-fallback {margin-top:20px;text-align:left;}
#email-code-fallback summary {cursor:pointer;font-size:13px;color:#666775;}
#email-code-fallback p {font-size:13px;}
#auth-feedback:empty {display:none;}
