[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:#fff7f5;color:#d51d1d}.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:#bc1d1d!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:#d51d1d}.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:#d51d1d;flex-shrink:0}.choice-grid label:has(input:checked){border-color:#d51d1d;background:#fff7f5}.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:#bc1d1d!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:#d51d1d}
.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:#e51010;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 #d51d1d;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:#fff7f5!important;color:#c40d0d!important;border:1px solid #f0c5c5!important}
.exercise-delete:hover{background:#ffe8e8!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:#fff7f5;border-color:#d51d1d}
.activity-calendar .cell:focus-visible{outline:3px solid #d51d1d;outline-offset:2px}
.calendar-count{float:right;color:#c90d0d;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:#d51d1d;border-color:#d51d1d;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:#d51d1d;background:#fff7f5}.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:#d51d1d;background:#fff7f5}.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:#d51d1d!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 #d51d1d;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:#faf6f6;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 .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;}

/* Shared select treatment throughout the workspace. */
select:not([multiple]){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}

select:not([multiple]):focus-visible{outline:2px solid var(--red);outline-offset:3px;border-color:var(--red)}
select:disabled{opacity:.6;cursor:not-allowed}
select option{background:white;color:#303039}
@media(max-width:700px){select:not([multiple]){font-size:16px}}

.thread-folders{display:flex;gap:6px;margin:0 0 20px;padding:5px;width:fit-content;border:1px solid #e6e7ec;background:white;border-radius:14px}
.thread-folders button{border:0;background:transparent;border-radius:9px;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer;color:#72737e}
.thread-folders button.selected{background:#fff7f5;color:#d51d1d;font-weight:600}
.thread-folders span{margin-left:7px;font-size:11px;opacity:.75}
.thread-row{position:relative;overflow:hidden;border-bottom:1px solid #eee;touch-action:pan-y}
.thread-row:last-child{border-bottom:0}
.thread-front{position:relative;display:flex;background:white;transition:transform .18s ease;z-index:1;touch-action:pan-y}
.thread-front .message-thread{flex:1;min-width:0;border:0;padding-right:8px}
.thread-menu{width:38px;flex-shrink:0;align-self:stretch;border:0;background:transparent;font-size:23px;cursor:pointer;color:#72737e}
.thread-menu:focus-visible{outline:2px solid #d51d1d;outline-offset:-4px;border-radius:10px}
.thread-row-actions{position:absolute;inset:0 0 0 auto;width:168px;display:flex;justify-content:flex-end}
.thread-row-actions button{flex:1;border:0;color:white;font:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:8px}
.thread-archive,.thread-restore{background:#515869}.thread-delete{background:#d51d1d}
.thread-row.actions-open .thread-front{transform:translateX(-168px)}
.thread-empty{padding:50px 28px;text-align:center;min-height:240px;display:flex;flex-direction:column;justify-content:center}.thread-empty p{margin:12px 0}
.thread-empty-list{padding:28px;text-align:center;color:#72737e}
@media(max-width:900px){.message-threads{display:block;overflow:hidden}.thread-row .message-thread{min-width:0;max-width:none;width:100%;border:0}.thread-row .message-thread.selected{box-shadow:inset 3px 0 #d51d1d}.thread-folders{width:100%;justify-content:space-between}.thread-folders button{padding:10px 9px}}
@media(prefers-reduced-motion:reduce){.thread-front{transition:none}}

.program-folder-organizer{padding:20px;margin-bottom:20px}.program-folder-organizer .section-title{margin:0 0 16px}.program-folder-organizer .btn{font-size:12px;padding:10px 14px;min-height:40px}
.program-folder-tabs{display:flex;flex-wrap:wrap;gap:8px}.program-folder-tabs button{font:inherit;font-size:13px;display:flex;gap:9px;align-items:center;max-width:100%;overflow-wrap:anywhere;border:1px solid #e6e7ec;background:#fafafb;border-radius:10px;padding:11px 14px;color:#555662;cursor:pointer}.program-folder-tabs button.selected{border-color:#f6cbcb;background:#fff7f5;color:#d51d1d}.program-folder-tabs small{opacity:.65}.program-folder-organizer>.text-btn{margin-top:16px}.program-folder-badge{display:inline-block;margin:0 0 10px 12px;padding:5px 9px;border-radius:7px;background:#f5f5f8;color:#72737e;font-size:11px}
.section-title select:not([multiple]),.client-list-controls select:not([multiple]){width:auto;min-width:160px;max-width:100%}

.program-title-button{appearance:none;display:inline;text-align:left;background:none;border:0;padding:0;margin:0;font:inherit;font-weight:inherit;line-height:inherit;color:inherit;cursor:pointer;border-radius:4px}.program-title-button:hover{color:var(--red)}.program-title-button:focus-visible{outline:2px solid var(--red);outline-offset:5px}

/* Keep the mobile welcome flow clear of the hidden navigation tray. */
@media(max-width:700px){body[data-view=Onboarding] aside{display:none}body[data-view=Onboarding] main{padding-bottom:0}}

/* Client management uses the same swipe reveal as conversations. */
.client-status-tabs{margin-bottom:10px}.client-swipe-hint{font-size:12px;margin:0 0 22px;color:var(--muted)}
.client-table td:first-child{min-width:285px}.client-swipe-row{border:0;border-radius:10px;max-width:100%}.client-row-front{align-items:stretch;min-height:58px;overflow:hidden}.client-row-front .client-name{flex:1;min-width:0;padding:7px 8px 7px 2px}.client-row-front .client-name>span:last-child{min-width:0}.client-row-front .client-name b{display:block;overflow-wrap:anywhere}.client-row-menu{min-width:40px;width:40px;min-height:48px;border-radius:8px}.client-swipe-row .thread-row-actions{border-radius:10px;overflow:hidden}.client-swipe-row .thread-row-actions button{min-width:0}
@media(max-width:700px){.client-status-tabs{width:100%}.client-status-tabs button{flex:1}.client-table td:first-child{min-width:0}.client-swipe-hint{font-size:11px}.client-row-front .client-name{padding-top:8px;padding-bottom:8px}}

/* Floating rest controls remain reachable above phone navigation. */
#rest-timer:not([hidden]){position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));right:24px;width:320px;max-width:calc(100vw - 32px);z-index:850;background:#fff;border:1px solid #e4e4eb;border-radius:20px;padding:16px;box-shadow:0 12px 48px #2222}
.rest-timer-title,.rest-timer-clock,.rest-timer-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.rest-timer-clock{margin:10px 0}.rest-timer-clock output{font-size:32px;font-weight:700;font-variant-numeric:tabular-nums}.rest-timer-clock button,.rest-timer-controls button{min-height:44px;border:1px solid #e4e4eb;background:#f8f8fa;border-radius:10px;padding:9px 12px;color:#353540;font:inherit;cursor:pointer}.rest-timer-controls button{flex:1}.rest-timer-clock button:focus-visible,.rest-timer-controls button:focus-visible{outline:2px solid #d51d1d;outline-offset:2px}#rest-timer button:disabled{opacity:.45;cursor:default}.start-rest{margin-top:16px}@media(max-width:760px){#rest-timer:not([hidden]){bottom:calc(88px + env(safe-area-inset-bottom));right:16px}}

#rest-timer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

#phone-more{display:none}.phone-menu{display:grid;gap:10px;margin:18px 0}.recovery-list{max-height:360px;overflow:auto;margin:16px 0}.recovery-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #eee}.recovery-row small{display:block}.library-tools{margin-bottom:20px}.program-select{display:flex;gap:8px;align-items:center;font-size:12px;margin-bottom:12px}.program-select input{width:18px;height:18px}.swap-undo{margin-bottom:20px}.compact-program[hidden]{display:none}@media(max-width:760px){#phone-more{display:inline-flex}.header-right{gap:8px}#phone-more{min-height:44px;padding:8px 12px}.library-tools .form-pair{grid-template-columns:1fr}.recovery-row{align-items:flex-start}.phone-menu .btn{justify-content:flex-start}}

.record-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px}

/* Scoped library controls and readable allowance cards. */
.library-tools{padding:24px!important;margin-bottom:22px}.library-filter-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(180px,1fr);gap:20px;align-items:end}.library-field{min-width:0}.library-tools .library-field>label{display:block!important;color:#71727e;font-size:12px;font-weight:600;line-height:1.4;margin:0 0 9px!important}.library-search-field{position:relative}.library-search-field>span{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:25px;color:#8c8d97;pointer-events:none}.library-tools input#master-search,.library-tools select#master-sort{display:block;width:100%;max-width:none;min-width:0;min-height:52px;margin:0!important;font-size:14px}.library-tools input#master-search{padding:13px 14px 13px 43px!important}.library-bulk-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #eeeef2;padding-top:18px;margin-top:22px}.library-bulk-bar>span{font-size:12px;line-height:1.5;color:#858590}.library-bulk-actions{display:flex;gap:10px;flex-wrap:wrap}.library-bulk-actions .btn{min-height:42px;padding:10px 14px;font-size:12px}.library-bulk-actions .btn:disabled{opacity:.45;cursor:default;box-shadow:none}.ai-loading-status:empty{display:none}.ai-allowance-card{padding:24px;border:1px solid #ece4e4;border-radius:18px;background:#fff7f5;margin:22px 0}.ai-allowance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ai-allowance-heading .eyebrow{font-size:10px}.ai-connection-pill{font-size:11px;border-radius:30px;padding:6px 10px;background:#f0edef;color:#777}.ai-connection-pill.ready{background:#e8f4eb;color:#3d7750}.ai-allowance-number{display:flex;align-items:center;gap:16px;margin:22px 0}.ai-allowance-number>strong{font-size:58px;line-height:1;letter-spacing:-2px;font-weight:700;color:#202026}.ai-allowance-number>span{font-size:17px;color:#34343d;line-height:1.4}.ai-allowance-number>span>span{display:block;font-size:13px;color:#858590}.ai-usage-track{height:7px;border-radius:8px;background:#eee4e4;overflow:hidden}.ai-usage-track>span{display:block;height:100%;background:#d51d1d;border-radius:8px}.ai-usage-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#777883;margin-top:10px}.ai-allowance-card p.ai-shared-note{font-size:13px;line-height:1.6;margin:18px 0 0;color:#6c6d79}.ai-allowance-explainer{margin:26px 0}.ai-allowance-explainer h2{font-size:17px;margin:0 0 12px}.ai-allowance-explainer ul{padding-left:20px;margin:0 0 14px}.ai-allowance-explainer li,.ai-allowance-explainer p,.ai-allowance-details p{font-size:13px;line-height:1.75;color:#777883}.ai-allowance-explainer li+li{margin-top:7px}.ai-allowance-details{border-top:1px solid #eeeef2;padding:15px 0}.ai-allowance-details summary{font-size:13px;font-weight:600;cursor:pointer;color:#565663}.ai-allowance-details p{margin-top:14px}.ai-allowance-inline .ai-allowance-card{margin:18px 0}.ai-allowance-card.compact{padding:18px}.ai-allowance-card.compact .ai-allowance-number{margin:14px 0}.ai-allowance-card.compact .ai-allowance-number>strong{font-size:40px}.ai-allowance-card.compact small{display:block;line-height:1.6;margin-top:10px;font-size:12px;color:#777883}@media(max-width:760px){.library-tools{padding:18px!important}.library-filter-grid{grid-template-columns:1fr;gap:17px}.library-bulk-bar{align-items:flex-start;flex-direction:column;gap:12px}.library-bulk-actions{width:100%}.library-bulk-actions .btn{flex:1}.ai-allowance-card{padding:18px}.ai-allowance-number>strong{font-size:48px}.ai-usage-meta{font-size:11px}.ai-connection-pill{font-size:10px}}

/* Focused master-program workout browser. */
.focused-program-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 18px;flex-wrap:wrap}.focused-program-options{position:relative}.focused-program-options>summary{display:flex;gap:14px;align-items:center;list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:#686975;padding:12px}.focused-program-options>summary::-webkit-details-marker{display:none}.focused-program-options-menu{position:absolute;right:0;top:100%;z-index:30;background:#fff;border:1px solid #e5e5ed;border-radius:14px;padding:10px;box-shadow:0 12px 35px #19192312;min-width:235px;display:grid;gap:6px}.focused-program-options-menu .btn{justify-content:flex-start;text-align:left;border:0;white-space:normal}.focused-subscribers{border-top:1px solid #e4e4ec;border-bottom:1px solid #e4e4ec;margin-bottom:28px}.focused-subscribers>summary{display:flex;justify-content:space-between;gap:12px;list-style:none;padding:16px 0;cursor:pointer;font-size:13px;color:#767782}.focused-subscribers>summary::-webkit-details-marker{display:none}.focused-subscribers-content{padding-bottom:20px}.focused-workouts-section>.section-title{margin-bottom:18px}.focused-workouts-layout{display:grid;grid-template-columns:minmax(190px,245px) minmax(0,1fr);align-items:start;gap:24px}.focused-workout-nav{display:grid;width:auto;min-width:0;gap:10px;align-content:start}.focused-workout-choice{display:flex;align-items:center;gap:13px;text-align:left;min-width:0;width:100%;min-height:84px;padding:16px;background:#fff;border:1px solid #e2e2eb;border-radius:14px;color:#24242c;cursor:pointer;font-family:inherit}.focused-workout-choice.selected{background:#fff7f5;border-color:#d51d1d}.focused-workout-choice>span:last-child{min-width:0}.focused-workout-choice b{font-size:15px;font-weight:650;display:block;overflow-wrap:anywhere}.focused-workout-choice small{display:block;color:#858591;font-size:12px;margin-top:6px}.focused-workout-marker{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;color:#d51d1d;background:#fff7f5;border-radius:10px;font-size:18px;font-weight:700}.focused-workout-detail{padding:0;overflow:hidden}.focused-workout-heading{position:static;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:transparent;border:0;padding:26px 28px;margin:0;height:auto;min-height:0}.focused-workout-heading .eyebrow{font-size:10px;letter-spacing:1.5px}.focused-workout-heading h2{font-size:25px;line-height:1.3;margin:10px 0 8px;letter-spacing:-.5px;overflow-wrap:anywhere}.focused-workout-heading p{font-size:12px;color:#858591}.focused-workout-heading>.btn{flex-shrink:0}.focused-workout-instructions{white-space:pre-wrap;font-size:13px;line-height:1.75;color:#737480;padding:18px 28px 22px}.focused-exercise-list{list-style:none;padding:0;margin:0}.focused-exercise-list>li{border-top:1px solid #eeeef3}.focused-exercise-row{display:flex;align-items:flex-start;gap:16px;padding:20px 28px}.focused-exercise-number{font-size:12px;font-variant-numeric:tabular-nums;color:#999aa4;min-width:22px;padding-top:3px}.focused-exercise-info{flex:1;min-width:0}.focused-exercise-info h3{font-size:15px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;margin:0}.focused-exercise-info>p{font-size:12px;color:#858591;line-height:1.6;margin-top:6px}.focused-exercise-view{font-size:12px;white-space:nowrap;flex-shrink:0;padding:4px 0;min-height:32px}.focused-exercise-notes{font-size:12px;color:#777884;margin-top:9px}.focused-exercise-notes summary{cursor:pointer;padding:5px 0}.focused-exercise-notes p{white-space:pre-wrap;font-size:12px;line-height:1.7;margin:6px 0}.focused-superset-label{font-size:10px;letter-spacing:.6px;font-weight:600;color:#a96c37;background:#fcf7ef;padding:10px 28px}.focused-workout-empty{padding:30px}.focused-workout-empty p{margin-top:10px;color:#858591;font-size:13px}.focused-workout-choice:focus-visible,.focused-program-options>summary:focus-visible,.focused-subscribers>summary:focus-visible{outline:2px solid #d51d1d;outline-offset:3px}@media(max-width:1000px){.focused-workouts-layout{grid-template-columns:minmax(155px,205px) minmax(0,1fr);gap:16px}.focused-workout-choice{padding:14px 12px;gap:10px}.focused-workout-heading{padding:22px}.focused-exercise-row{padding:18px 22px;gap:12px}.focused-workout-heading h2{font-size:22px}}@media(max-width:760px){.focused-workouts-layout{grid-template-columns:1fr;gap:18px}.focused-workout-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;overflow:visible;gap:10px}.focused-workout-choice{min-height:80px;align-items:center}.focused-workout-choice b{font-size:13px}.focused-workout-choice small{font-size:11px}.focused-workout-marker{width:30px;height:30px;font-size:15px;border-radius:8px}.focused-workout-heading{padding:20px 18px;flex-wrap:wrap;gap:16px}.focused-workout-heading h2{font-size:23px}.focused-exercise-row{padding:18px;gap:10px;flex-wrap:wrap}.focused-exercise-info h3{font-size:14px}.focused-exercise-number{min-width:20px}.focused-exercise-view{margin-left:30px;min-height:40px;padding:8px 0}.focused-exercise-info{flex-basis:calc(100% - 35px)}.focused-workout-instructions{padding:16px 18px 20px}.focused-superset-label{padding:10px 18px}.focused-program-toolbar{align-items:flex-start}.focused-program-toolbar>.toolbar{flex:1}.focused-program-toolbar>.toolbar .btn{flex:1;min-width:120px}.focused-program-options{width:100%}.focused-program-options>summary{padding:10px 0}.focused-program-options-menu{right:auto;left:0;max-width:calc(100vw - 60px)}.focused-subscribers>summary{font-size:12px}.focused-subscribers{margin-bottom:22px}}

/* Client welcome and session builder: consistent rhythm and compact touch choices. */
.client-today>.page-heading{margin-bottom:28px}.client-session-card{margin:0 0 28px!important}.client-welcome-card{margin:0 0 28px}.client-session-card,.client-welcome-card{padding:28px!important}.client-session-card h2,.client-welcome-card h2{margin:12px 0!important;line-height:1.35}.client-session-card p,.client-welcome-card p{margin:0!important;line-height:1.75}.client-session-card>.btn{margin-top:20px}.client-session-card>small{display:block;margin-top:14px;line-height:1.6}.client-today>.card+.grid{gap:20px}.client-today>.title{margin-bottom:28px}.client-today .card>p{line-height:1.75}.client-today .card>.toolbar:empty{display:none}.onboard-card>h1{margin:16px 0}.onboard-card>p{line-height:1.75;margin-bottom:28px}.onboard-card .onboard-field{margin-bottom:22px}.onboard-card .choice-grid{gap:10px;margin:12px 0 26px}.onboard-card .onboard-actions{margin-top:28px;gap:12px}
.modal-box:has(.session-builder-form){padding:28px;max-width:700px}.modal-box:has(.session-builder-form)>h1{font-size:28px;line-height:1.3;padding-right:32px;margin:14px 0 20px}.session-intro{line-height:1.7!important;margin:20px 0 26px!important}.session-builder-form .form-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;margin:0 0 28px}.session-builder-form .form-pair>div{min-width:0}.session-builder-form .form-pair>div:last-child{grid-column:1/-1}.modal-box .session-builder-form .form-pair label{display:block;font-size:12px;line-height:1.5;margin:0 0 8px!important}.session-builder-form select{min-height:50px;margin:0!important;font-size:16px!important}.session-builder-form .session-equipment{border:1px solid #e5e5ed;border-radius:16px;padding:20px;margin:0 0 28px;min-width:0}.session-equipment legend{font-size:15px;font-weight:650;color:#292932;padding:0 7px}.session-equipment>small{display:block;font-size:12px;line-height:1.65;color:#7a7a86;margin-bottom:16px}.session-builder-form .exercise-equipment-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important}.modal-box .session-builder-form .exercise-equipment-options>label{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:12px 10px;border:1px solid #e4e4eb;border-radius:10px;background:#fafafb;min-width:0;min-height:54px;font-size:12px;line-height:1.4;color:#51515f;cursor:pointer}.session-builder-form .exercise-equipment-options>label:has(input:checked){border-color:#d51d1d;background:#fff7f5;color:#a60e0e}.session-builder-form input[type=checkbox]{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;flex:none;accent-color:#d51d1d;margin:0!important;padding:0!important}.session-builder-form .exercise-equipment-options span{min-width:0;overflow-wrap:anywhere}.modal-box .session-builder-form .session-confirm{display:flex!important;align-items:flex-start;gap:12px;margin:22px 0 0!important;font-size:12px;line-height:1.7;color:#696977}.session-builder-form .session-confirm input{margin-top:3px!important}.session-builder-form .import-note{font-size:12px;line-height:1.7;margin:12px 0 24px 31px}.session-builder-form #session-status:empty{display:none}.session-builder-form>.toolbar{gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid #eeeef2}.ai-session-allowance{background:#fff7f5;border:1px solid #ecdfdf;border-radius:14px;padding:16px;margin:0}.ai-session-allowance-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-session-allowance-top>span{font-size:14px;font-weight:500;color:#3b3942}.ai-session-allowance-top strong{font-size:25px;font-weight:750;margin-right:5px}.ai-session-allowance-top small{font-size:11px;white-space:nowrap;color:#87808b}.ai-session-allowance .ai-usage-track{margin:12px 0;height:5px}.ai-session-allowance summary{font-size:11px;color:#7e7581;cursor:pointer;line-height:1.6}.ai-session-allowance details>p{font-size:12px;line-height:1.65;margin:10px 0 0;color:#7e7581}
@media(max-width:760px){.client-today{display:grid;gap:24px}.client-today>*{margin-top:0!important;margin-bottom:0!important}.client-today .title h1{font-size:29px!important;line-height:1.25!important}.client-today .title p{margin-top:14px;line-height:1.65}.client-session-card,.client-welcome-card{padding:22px!important}.client-welcome-card{margin-bottom:26px}.client-today .panel-pad{padding:22px}.client-today .card h2{font-size:21px}.client-session-card>.btn{width:100%;justify-content:center}.client-session-card>small{font-size:11px}.modal-box:has(.session-builder-form){padding:22px 18px}.modal-box:has(.session-builder-form)>h1{font-size:26px;margin-bottom:18px}.session-builder-form .form-pair{gap:22px 12px}.session-builder-form .form-pair label{font-size:12px;min-height:36px}.session-builder-form .form-pair>div:last-child label{min-height:0}.session-builder-form .session-equipment{padding:16px 12px}.session-builder-form .exercise-equipment-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.modal-box .session-builder-form .exercise-equipment-options>label{padding:11px 9px;font-size:12px;min-height:56px}.session-builder-form>.toolbar .btn{flex:1;justify-content:center}.onboard-top{gap:16px;align-items:flex-start}.onboard-card{padding:24px 20px}.onboard-card>h1{font-size:27px;line-height:1.3}.onboard-card .form-pair{gap:20px}.onboard-card .onboard-actions .btn{padding:12px 15px}.ai-session-allowance{padding:14px}.session-intro{font-size:13px!important}}

/* Client-built workouts put the essentials first; optional targets stay available. */
.client-workout-builder .workout-meta{grid-template-columns:1fr;max-width:540px;margin:18px 0 22px}.client-workout-builder .builder-heading h1{font-size:24px;line-height:1.3}.client-workout-builder .builder-heading .toolbar{margin:12px 0 0;gap:8px}.client-workout-builder .builder-layout{gap:20px}.client-workout-builder .section-title{margin-bottom:12px;gap:10px}.client-workout-builder .section-title h2{font-size:18px;line-height:1.4}.client-workout-builder .section-title small{font-size:11px;line-height:1.4}.client-workout-builder .prescription-row{padding:16px;margin-bottom:12px}.client-workout-builder .prescription-fields{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.client-workout-builder .prescription-fields>div{min-width:0}.client-workout-builder .prescription-fields label{font-size:11px!important;line-height:1.4;margin:0 0 6px!important}.client-workout-builder .prescription-fields input{padding:9px 10px;font-size:16px;min-height:42px;margin:0!important}.client-workout-builder .exercise-select h3{font-size:14px;line-height:1.4;margin:0}.client-workout-builder .exercise-select{gap:8px;min-width:0}.client-workout-builder .exercise-select input{width:19px!important;height:19px!important;min-width:19px;flex:none;margin:0}.client-workout-builder .exercise-select .eyebrow{font-size:10px}.client-workout-builder .row-actions{gap:4px;flex-shrink:0}.client-workout-builder .row-actions button{width:34px;height:36px;min-width:34px;min-height:36px;padding:0}.client-workout-builder .client-exercise-options{border-top:1px solid #eeeef2;margin-top:14px;padding-top:10px}.client-workout-builder .client-exercise-options>summary{font-size:12px;color:#7a7a86;cursor:pointer;padding:6px 0}.client-workout-builder .client-exercise-options>.prescription-fields{margin-top:12px}.client-workout-builder .client-exercise-options textarea{font-size:16px;min-height:65px}.client-workout-builder .superset-toolbar{padding:12px;gap:8px;margin:0 0 14px;position:static}.client-workout-builder .superset-toolbar>span{font-size:11px;flex-basis:100%}.client-workout-builder .superset-toolbar .btn,.client-workout-builder .superset-toolbar .text-btn{font-size:11px;padding:9px;min-height:36px}.client-workout-builder .superset-card-heading{padding:14px;gap:12px;align-items:center}.client-workout-builder .superset-card-heading .eyebrow{font-size:10px}.client-workout-builder .superset-card-heading p{font-size:11px;line-height:1.5;margin-top:5px}.client-workout-builder .superset-card-heading label{font-size:11px;line-height:1.4;margin:0 0 6px}.client-workout-builder .superset-card-heading input{font-size:16px;min-height:42px;padding:8px;width:82px!important}.client-workout-builder .builder-library h3{font-size:14px;line-height:1.4}.client-workout-builder .builder-library small,.client-workout-builder .builder-library p{font-size:11px;line-height:1.5}.client-workout-builder .builder-library .exercise-select-row{padding:12px 0}.client-workout-builder .builder-library .search{font-size:16px;min-height:44px}.client-workout-builder .empty{padding:20px;font-size:13px}
@media(max-width:760px){.modal-box.client-workout-builder{padding:20px 16px}.client-workout-builder .builder-heading h1{font-size:23px}.client-workout-builder .builder-heading>.toolbar{gap:8px;margin:12px 0}.client-workout-builder .builder-heading>.toolbar .btn{padding:10px 14px;min-height:42px;font-size:12px}.client-workout-builder .workout-meta{margin:10px 0 18px}.client-workout-builder .workout-meta label{font-size:11px;margin:0 0 6px}.client-workout-builder .workout-meta input{font-size:16px;padding:10px;min-height:44px}.client-workout-builder .builder-library{padding:16px;margin:0 0 18px}.client-workout-builder #builder-library{max-height:230px}.client-workout-builder .prescription-row{padding:14px}.client-workout-builder .prescription-row>.section-title{align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}.client-workout-builder .prescription-row .exercise-select{flex:1;min-width:150px}.client-workout-builder .superset-card-heading>div:last-child{max-width:120px}.client-workout-builder .superset-card-heading input{width:78px!important}.client-workout-builder .superset-card .prescription-row{padding:14px}.client-workout-builder .client-exercise-options label{font-size:11px;margin:12px 0 6px}.client-workout-builder .section-title h2{font-size:17px}.client-workout-builder .section-title small{font-size:10px}.client-workout-builder .builder-library .exercise-select-row{padding:10px 0}}
.client-workout-builder .builder-library{max-height:none;overflow:visible}.client-workout-builder #builder-library{max-height:280px;overflow:auto;overscroll-behavior:contain;margin-top:10px}.client-workout-builder .builder-library>.section-title{margin-bottom:10px}.client-workout-builder .builder-library>small{display:none}.client-workout-builder .builder-library-row{padding:11px 0}.client-workout-builder .builder-library-row h3{font-size:13px}.client-workout-builder .builder-library-row .btn{min-width:36px;min-height:36px;padding:5px 10px}@media(max-width:760px){.client-workout-builder #builder-library{max-height:170px}.client-workout-builder .builder-library-row{padding:10px 0}}
.builder-target-type{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 16px}.builder-target-type>span{font-size:12px;font-weight:600;color:#777784}.builder-target-switch{display:inline-flex;background:#f2f2f6;border:1px solid #e7e7ed;padding:3px;border-radius:10px;gap:3px}.builder-target-switch button{font:inherit;font-size:12px;color:#82828d;background:transparent;padding:8px 16px;min-height:36px;min-width:66px;border-radius:7px}.builder-target-switch button[aria-pressed=true]{background:#fff;color:#cf1010;box-shadow:0 1px 4px #24242c10;font-weight:650}.builder-target-switch button:focus-visible{outline:2px solid #d51d1d;outline-offset:1px}.client-workout-builder .builder-target-type{margin:8px 0 12px}.client-workout-builder .builder-target-type>span{font-size:11px}.client-workout-builder .builder-target-switch button{font-size:11px;min-height:32px;min-width:60px;padding:6px 12px}
.session-equipment-presets{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.session-equipment-presets .btn{font-size:12px;padding:10px 16px;min-height:40px}.session-equipment-presets .btn[aria-pressed=true]{border-color:#d51d1d;background:#fff7f5;color:#c51010}.session-equipment-presets .text-btn{font-size:12px;min-height:40px;padding:8px}.session-equipment-presets .text-btn:disabled{opacity:.4;cursor:default}.session-equipment-presets small{font-size:11px;color:#85858f;margin-left:auto}
.exercise-last-session{background:#f7f7fa;border:1px solid #ececf2;border-radius:10px;padding:10px 12px;margin:10px 0 14px}.exercise-last-session>span{display:block;font-size:9px;letter-spacing:.7px;font-weight:650;color:#9696a1}.exercise-last-session>p{font-size:12px;line-height:1.6;color:#60606e;margin:5px 0 0;overflow-wrap:anywhere}.workout-top .exercise-last-session{max-width:560px}.ai-cost-breakdown{border-top:1px solid #eee3e3;padding-top:12px;margin-top:18px}.ai-cost-breakdown p{display:flex;justify-content:space-between;gap:14px;margin:8px 0;font-size:13px;color:#77717b}.ai-cost-breakdown strong{font-variant-numeric:tabular-nums;font-weight:550;color:#4d4550}.session-preference-note{font-size:11px;color:#85858f;line-height:1.6;margin:0 0 22px}.client-workout-builder .builder-heading>.toolbar .btn{font-size:11px;padding:10px 12px}.client-workout-builder .exercise-last-session{margin:8px 0 12px;padding:9px 10px}.client-workout-builder .exercise-last-session>p{font-size:11px}
@media(max-width:760px){.workout-top:has(.exercise-last-session){display:block}.workout-top:has(.exercise-last-session)>.toolbar{margin:12px 0 0}.workout-top .exercise-last-session{max-width:none}.workout-top .exercise-last-session>p{font-size:12px}.workout-top .exercise-last-session>span{font-size:9px}}

/* Completed session: calm totals, clear records and compact exercise results. */
.session-summary{padding-top:4px}.session-summary h1{padding-right:36px}.session-summary .summary-workout{margin:12px 0;color:#25262c;font-weight:600}.summary-workout span{color:#777984;font-weight:400}.summary-sync{font-size:12px;color:#63786d;margin:0 0 20px}.record-celebration{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #eed7a9;background:#fffbf0;border-radius:18px;margin:20px 0}.record-celebration>span{font-size:34px;color:#ac7e21}.record-celebration strong{font-size:21px;color:#5b451a}.record-celebration p{margin:5px 0 0;font-size:14px;line-height:1.5;color:#746344}.summary-encouragement{margin:18px 0!important}.summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0 28px}.summary-stats>div{background:#f7f7f9;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px}.summary-stats strong{font-size:23px;line-height:1.2}.summary-stats span{font-size:12px;color:#757783}.session-summary h2{font-size:20px;margin-bottom:14px}.summary-exercises{display:grid;gap:12px}.summary-exercise{border:1px solid #e7e7ed;border-radius:16px;padding:18px}.summary-exercise.has-record{border-color:#e9c990}.summary-exercise-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}.summary-exercise h3{font-size:16px;margin:0;line-height:1.4}.summary-exercise>p{font-size:13px;margin:8px 0 0;line-height:1.5}.record-count{color:#865d12;background:#fff5da;border-radius:99px;font-size:12px;font-weight:600;padding:6px 10px;white-space:nowrap}.summary-records{list-style:none;padding:0;margin:14px 0 0}.summary-records li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ececf0;padding:11px 0}.summary-records li:last-child{padding-bottom:0}.summary-records b{font-size:13px}.summary-records small{font-size:12px;margin-top:3px;display:block}.summary-records strong{text-align:right;font-size:16px}.summary-records strong span{font-size:11px;font-weight:400;color:#777984}.summary-benchmarks,.summary-rules{margin-top:15px;font-size:12px}.summary-benchmarks summary,.summary-rules summary{cursor:pointer;padding:5px 0;color:#6c6e77}.summary-rules p,.session-summary .summary-save-help{font-size:12px;line-height:1.6;margin:16px 0 0}.summary-session-note{margin-top:20px}.summary-session-note p{white-space:pre-wrap;font-size:14px}.session-summary .summary-actions{margin-top:22px;gap:10px}@media(max-width:600px){.summary-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}.summary-stats>div{padding:13px}.summary-stats strong{font-size:20px}.record-celebration{padding:16px;gap:12px}.record-celebration strong{font-size:18px}.summary-exercise{padding:14px}.summary-records strong{font-size:15px}.session-summary h1{font-size:28px}.session-summary .summary-actions .btn{flex:1}}

/* Phone session consent, progress and actions have distinct visual spacing. */
.modal-box .session-builder-form #session-status:not(:empty){display:block;margin:24px 0 0!important;padding:14px 16px;background:#f7f7fa;border:1px solid #e7e7ef;border-radius:12px;font-size:13px;line-height:1.65;color:#555563;overflow-wrap:anywhere}.modal-box .session-builder-form .session-confirm{margin-top:24px!important}.modal-box .session-builder-form .import-note{margin:12px 0 24px 31px!important}.session-builder-form>.toolbar{margin-top:24px!important;padding-top:24px!important}.phone-install-card h2{margin:0 0 10px;line-height:1.35}.phone-install-card>p{margin:0 0 22px!important;line-height:1.65}.phone-install-card>.btn{margin-top:0}.phone-install-card{padding:24px!important}
.builder-exercise-preview{background:none;border:0;padding:10px 0;text-align:left;flex:1;min-width:0;cursor:pointer;color:inherit;border-radius:6px}.builder-exercise-preview h3{font-size:14px;line-height:1.45;margin:0 0 5px}.builder-exercise-preview small{display:block;font-size:11px;line-height:1.5}.builder-exercise-preview:hover h3,.exercise-title-link:hover{color:#d51d1d}.builder-exercise-preview:focus-visible,.exercise-title-link:focus-visible{outline:2px solid #d51d1d;outline-offset:4px}.exercise-title-link{background:none;border:0;padding:0;font:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.builder-library-row{display:flex;align-items:center;gap:12px}.builder-library-row>.arrow{flex:none}
.subscription-empty-notice{padding:18px;border:1px solid #ead4b2;background:#fffbf2;border-radius:14px;margin:20px 0 24px}.subscription-empty-notice h3{font-size:16px;margin:0 0 10px}.subscription-empty-notice p{font-size:13px;line-height:1.65;margin:0 0 16px}.subscription-empty-notice .toolbar{margin:0}.modal-box .folder-client-choice{display:flex;align-items:flex-start;gap:12px;line-height:1.65;margin:20px 0;cursor:pointer}.modal-box .folder-client-choice input[type=checkbox]{width:20px;height:20px;min-width:20px;margin:3px 0 0;flex:none;accent-color:#d51d1d}.folder-subscriber-list{margin:24px 0}.folder-subscriber-list .folder-client-choice{align-items:center;padding:12px 0;margin:0}.folder-subscriber-list .folder-client-choice input{margin:0!important}
@media(max-width:700px){body[data-user-role=client] #nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;min-width:0;max-width:100%;overflow:visible;gap:2px;justify-content:center;align-items:stretch}body[data-user-role=client][data-view=Onboarding] #nav{display:none}body[data-user-role=client] #nav button{width:100%;min-width:0;max-width:100%;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:9px 1px;min-height:60px;font-size:9.5px;line-height:1.2;letter-spacing:0;white-space:nowrap}body[data-user-role=client] #nav .ico{display:grid;place-items:center;width:24px;height:24px;font-size:21px;line-height:1}body[data-user-role=client] #nav .badge{display:none}.phone-install-card{padding:20px!important}.phone-install-card>p{margin-bottom:20px!important}}
@media(max-width:350px){body[data-user-role=client] #nav button{font-size:8.5px}}
.workout-exercise-title{font:inherit;font-weight:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}.workout-exercise-title small{display:block;font-size:11px;font-weight:500;color:#b51212;margin-top:6px}.rir-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}.rir-choices .btn{font-size:21px;padding:14px}.rir-help{margin:16px 0 22px!important;font-size:13px!important}.starting-load{background:#f2f7f3;border:1px solid #dce9df;border-radius:12px;padding:12px 14px;margin:12px 0}.starting-load b{display:block;font-size:13px;color:#36583f}.starting-load small{display:block;font-size:11px;line-height:1.6;margin-top:7px}#quick-rest:not([hidden]){position:fixed;right:20px;bottom:22px;z-index:860;width:66px;height:66px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#fff;background:#d51d1d;border:2px solid #fff;box-shadow:0 5px 22px #35121230;cursor:pointer}#quick-rest span{font-size:24px;line-height:1}#quick-rest small{font-size:10px;color:#fff;font-variant-numeric:tabular-nums}#rest-timer:not([hidden]){right:98px;max-width:calc(100vw - 114px)}@media(max-width:760px){#quick-rest:not([hidden]){right:12px;bottom:calc(83px + env(safe-area-inset-bottom));width:60px;height:60px}#rest-timer:not([hidden]){right:12px;bottom:calc(156px + env(safe-area-inset-bottom));width:300px;max-width:calc(100vw - 24px)}}

/* Clear session targets and compact exercise replacement picker. */
.workout-target{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;padding:12px 14px;margin:14px 0;background:#fff7f5;border:1px solid #f5dcdc;border-radius:12px}.workout-target>span{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#a31a1a}.workout-target strong{font-size:21px;line-height:1.25;color:#211d20}.workout-target small{font-size:12px;color:#67616b}.substitute-picker h2{margin:10px 0 22px}.substitute-search{display:block;font-size:12px;color:#777580}.substitute-search input{display:block;width:100%;margin-top:8px}.substitute-count{font-size:12px!important;margin:14px 0 8px!important;color:#777580}.substitute-list{max-height:48vh;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}.substitute-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eeedf1}.substitute-row>div{flex:1;min-width:0}.substitute-row b{display:block;font-size:14px;line-height:1.4}.substitute-row small{display:block;font-size:11px;color:#85818c;line-height:1.5;margin-top:3px}.substitute-row .btn{flex-shrink:0;padding:9px 13px;font-size:12px;min-height:40px}.substitute-row .btn:disabled{opacity:.5;cursor:default}.substitute-footer{padding-top:18px}.substitute-empty{padding:26px 0;font-size:14px;color:#777580}

/* Keep the timer dismiss control visible and comfortable to tap. */
#rest-timer .rest-timer-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #e0dce2;border-radius:12px;background:#f5f3f6;color:#29232d;font:500 30px/1 Arial,sans-serif;cursor:pointer;touch-action:manipulation}#rest-timer .rest-timer-close:hover{background:#fff7f5;border-color:#e8aaaa;color:#b51212}#rest-timer .rest-timer-close:focus-visible{outline:3px solid #d51d1d;outline-offset:3px}#rest-timer .rest-timer-close:active{background:#f8dcdc}

@media(max-width:767px){
 .modal:has(.substitute-picker){
  top:var(--exercise-picker-viewport-top,0px);
  bottom:auto;
  height:var(--exercise-picker-viewport-height,100dvh);
  padding:8px 12px;
 }
 .modal-box:has(.substitute-picker){
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:100%;
  padding:16px 18px;
 }
 .substitute-picker{
  display:flex;
  flex-direction:column;
  min-height:0;
 }
 .substitute-picker h2{margin:6px 46px 10px 0}
 .modal-box .substitute-search{margin:0}
 .substitute-search input{margin-top:4px}
 #exercise-picker-results{
  display:flex;
  flex-direction:column;
  min-height:0;
 }
 .substitute-count{margin:8px 0 4px!important}
 .substitute-list{min-height:0;max-height:none}
 .substitute-row{padding:8px 0}
 .substitute-footer{display:none}
}

.coach-calendar-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px 20px;margin-bottom:22px}
.coach-calendar-controls .calendar-filter{margin:0}
.coach-activity-feed h2{margin-bottom:16px}
.coach-activity-day h3{padding:12px 0;border-bottom:1px solid #e7e7ec;margin:16px 0 0}
.coach-activity-day ul{padding:0;margin:0;list-style:none}
.coach-activity-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid #e7e7ec;overflow-wrap:anywhere}
.coach-activity-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.coach-activity-line .text-btn{padding:2px 0;font-weight:700;text-align:left}
.coach-activity-item :is(p,details){margin-top:6px}
.coach-activity-item summary{cursor:pointer}
.coach-activity-name{font-weight:650;margin-top:4px}
.coach-activity-training{color:#285eac!important;background:#edf4ff!important}
.coach-activity-cardio{color:#176c53!important;background:#eaf6ef!important}
.coach-activity-measurements,.coach-activity-steps,.coach-activity-photos,.coach-activity-planned{color:#4b5261!important;background:#f0f1f5!important}
.coach-activity-feed>.btn{margin-top:16px}
@media(max-width:600px){.coach-calendar-controls .calendar-filter{flex:1 1 100%}.coach-activity-item{grid-template-columns:36px minmax(0,1fr)}.coach-activity-item .avatar{width:36px;height:36px}}

#challenge-content.challenge-clubhouse{
 --club-ink:#221d20;
 --club-muted:#655b60;
 --club-rule:#e8dfdc;
 --club-red:#a72235;
 --club-blush:#f4e3e3;
 background:#fdfbf8;color:var(--club-ink);padding:clamp(16px,4vw,38px);
}
.challenge-clubhouse #challenge-details{max-width:760px;margin:0 auto}
.challenge-selector{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 16px;margin-bottom:clamp(16px,3vw,26px)}
.challenge-selector .challenge-picker{display:flex;align-items:center;gap:10px;flex:1 1 200px;min-width:0}
.challenge-selector label{margin:0}
.challenge-selector select{flex:1;min-width:0;max-width:100%;width:auto;margin:0}
.challenge-selector>.btn{margin:0}
.challenge-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.challenge-heading-copy{min-width:0}
.challenge-heading h2{margin:0;color:var(--club-ink);font-family:inherit;font-style:normal;font-size:clamp(28px,4vw,42px);font-weight:750;line-height:1.15;letter-spacing:-.035em;overflow-wrap:anywhere}
.challenge-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 15px;margin:12px 0 0;font-size:13px;color:var(--club-muted)}
.challenge-status{display:inline-flex;align-items:center;gap:6px;font-weight:680}
.challenge-status.is-live{color:var(--club-red)}
.challenge-status.is-live::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.challenge-description{margin:14px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--club-muted)}
.challenge-own-score{display:flex;flex-wrap:wrap;gap:6px 10px;margin:18px 0 0;padding:10px 12px;background:var(--club-blush);border-radius:10px}
.challenge-spotlight{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(8px,3vw,18px);margin:clamp(18px,4vw,34px) 0 0;padding:clamp(14px,3.5vw,25px) 0;border-block:1px solid var(--club-rule)}
.challenge-initials{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#f2ebe8;color:var(--club-muted);font-size:11px;font-weight:700}
.challenge-spotlight>.challenge-initials{width:clamp(36px,9vw,60px);height:clamp(36px,9vw,60px);color:var(--club-red);background:var(--club-blush);font-size:clamp(11px,2.8vw,17px)}
.challenge-spotlight-person p{margin:0 0 4px;font-size:11px;letter-spacing:.065em;text-transform:uppercase;color:var(--club-muted)}
.challenge-spotlight-person h3{margin:0;color:var(--club-ink);font-family:inherit;font-style:normal;font-size:clamp(19px,3vw,28px);font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.challenge-spotlight-person>small,.challenge-standings small,.challenge-you{color:var(--club-muted);font-family:inherit;font-style:normal;font-size:11px;font-weight:600;line-height:1.3}
.challenge-spotlight-person>small,.challenge-standings small{display:block;margin-top:4px}
.challenge-spotlight-points{min-width:0;margin:0;text-align:right}
.challenge-spotlight-points strong{display:block;color:var(--club-red);font-family:inherit;font-style:normal;font-size:clamp(25px,4vw,38px);font-weight:750;line-height:1.1;font-variant-numeric:lining-nums tabular-nums}
.challenge-spotlight-points span{font-size:12px;color:var(--club-muted)}
.challenge-standings{margin-top:clamp(20px,4vw,32px)}
.challenge-standings-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 10px}
.challenge-standings-heading h3,.challenge-standings-heading p{margin:0}
.challenge-standings-heading p{font-size:12px;color:var(--club-muted);text-align:right}
.challenge-standings table{width:100%;border-collapse:collapse;table-layout:fixed}
.challenge-standings :is(th,td){padding:10px 4px;border-bottom:1px solid var(--club-rule);text-align:left;overflow-wrap:anywhere}
.challenge-standings thead th{font-size:11px;color:var(--club-muted)}
.challenge-standings :is(th,td):first-child{width:48px}
.challenge-standings :is(th,td):last-child{width:22%;text-align:right;font-variant-numeric:tabular-nums}
.challenge-standing-name{display:flex;align-items:center;gap:9px;min-width:0}
.challenge-standing-name>span:last-child{min-width:0}
.challenge-self{background:#fcf0ed}
.challenge-empty{margin:18px 0}
.challenge-rules{margin-top:20px}
.challenge-rules summary{cursor:pointer;font-weight:650}
.challenge-rules dl>div{display:flex;justify-content:space-between;gap:12px;margin:10px 0}
.challenge-rules dd{margin:0;white-space:nowrap}
@media(max-width:520px){
 .challenge-heading{flex-direction:column;gap:12px}
 .challenge-selector .challenge-picker{flex-basis:100%}
 .challenge-standings :is(th,td):first-child{width:34px}
 .challenge-standing-name{gap:6px}
 .challenge-standing-name .challenge-initials{width:25px;height:25px;font-size:9px}
}
.challenge-form fieldset{border:1px solid #dce0e7;border-radius:12px;padding:12px;margin:16px 0;min-width:0}
.challenge-form legend{font-weight:700;padding:0 5px}
.challenge-point-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.challenge-participants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;max-height:240px;overflow:auto;padding:4px}
.challenge-participants label{display:flex;align-items:center;gap:8px;margin:0;min-height:36px;overflow-wrap:anywhere}
.challenge-participants input{width:18px!important;height:18px!important;flex:none;margin:0!important}
@media(max-width:480px){.challenge-point-inputs,.challenge-participants{grid-template-columns:1fr}}

/* Challenge fields stay inside their columns, including native iPhone dates. */
.modal-box .challenge-form{display:grid;gap:20px;min-width:0;margin-top:22px}
.modal-box .challenge-form>label,.modal-box .challenge-form .form-pair>label,.modal-box .challenge-point-inputs>label{display:grid;gap:8px;margin:0;min-width:0;line-height:1.5}
.challenge-form .form-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;min-width:0}
.modal-box .challenge-form input:not([type=checkbox]),.modal-box .challenge-form textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;min-height:48px;font-size:16px;padding:11px 12px}
.modal-box .challenge-form input[type=date]{-webkit-appearance:none;appearance:none;text-align:left}
.challenge-form input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
.modal-box .challenge-form textarea{min-height:96px;resize:vertical}
.modal-box .challenge-form fieldset{margin:0;padding:16px;min-width:0}
.challenge-form fieldset>p,.challenge-form>p{margin:0;font-size:12px;line-height:1.65}
.challenge-form fieldset>p{margin:0 0 16px}
.challenge-point-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
@media(max-width:420px){.challenge-form .form-pair,.challenge-point-inputs{grid-template-columns:minmax(0,1fr)}.modal-box:has(.challenge-form){padding-inline:20px}}

.challenge-field{display:grid;gap:8px;min-width:0}.modal-box .challenge-field>label{margin:0}.challenge-form .import-note{margin:0!important}.challenge-form fieldset .challenge-point-inputs+.challenge-point-inputs{margin-top:18px}
@media(max-width:760px){.modal:has(.challenge-form){padding:20px 14px calc(20px + env(safe-area-inset-bottom));align-items:center}.modal-box:has(.challenge-form){width:100%;max-width:520px;max-height:calc(100dvh - 60px - env(safe-area-inset-bottom));border-radius:20px;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px}.modal-box:has(.challenge-form)>h1{font-size:26px;padding-right:38px}.challenge-form .toolbar{margin:0;gap:10px}}

.ai-program-schedule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.modal-box .ai-program-schedule label{min-width:0;margin:0;line-height:1.5}.ai-program-schedule input{display:block;min-width:0;font-size:16px;margin-top:8px}@media(max-width:420px){.ai-program-schedule{grid-template-columns:1fr;gap:18px}}
.program-folder-home .program-folder-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.program-folder-home .program-folder-tabs>button{display:flex;align-items:center;flex-wrap:wrap;gap:10px;text-align:left;padding:16px;min-width:0;min-height:76px}.program-folder-home .program-folder-tabs>button>span:nth-child(2){flex:1;overflow-wrap:anywhere}.program-folder-home .program-folder-tabs small{margin:0;font-size:11px}.program-folder-home>p{font-size:12px}@media(max-width:600px){.program-folder-home .program-folder-tabs{grid-template-columns:1fr}}

.title-row .program-library-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}.program-library-actions .btn{width:100%;height:100%;min-height:48px;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center;margin:0}.modal-box .ai-program-schedule select{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;margin-top:8px;font-size:16px;box-sizing:border-box}@media(max-width:700px){.title-row:has(.program-library-actions){flex-direction:column;align-items:stretch}.title-row .program-library-actions{width:100%;margin-top:8px}.program-library-actions .btn{padding:12px 10px;font-size:12px}}

.template-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template-filters label{min-width:0}.template-filters select{display:block;width:100%;min-width:0;margin-top:8px;font-size:16px;min-height:48px}.template-catalog{display:grid;gap:10px;margin-top:20px}.template-catalog>button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:16px;border:1px solid #dfe2e8;background:#f8f9fb;border-radius:12px;color:#242e3c;min-height:70px}.template-catalog small{display:block;margin-top:6px;line-height:1.5}.template-workout{border:1px solid #dfe2e8;border-radius:12px;margin:12px 0;padding:14px}.template-workout summary{cursor:pointer;font-weight:700;line-height:1.5;min-height:32px}.template-workout p{font-size:12px;line-height:1.7;margin:14px 0}.template-exercise{padding:12px 0;border-top:1px solid #e4e6eb}.template-exercise strong,.template-exercise span{display:block;line-height:1.5;font-size:13px}.template-exercise span{color:#626d7c;margin-top:5px}.template-library-entry{display:grid;gap:8px;width:100%;padding:18px;text-align:left;border:1px solid #d51d1d;border-radius:12px;background:#fff7f5;color:#a61b1b;margin:16px 0}.template-library-entry span{font-size:12px;line-height:1.5}@media(max-width:480px){.template-filters{grid-template-columns:1fr}.template-filters label{margin-top:12px}}

.program-tag-selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.modal-box .program-tag-selectors label{margin:0;min-width:0}.program-tag-selectors select{display:block;width:100%;min-width:0;margin-top:8px;min-height:48px;font-size:16px}.program-tag-selection{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.program-tag-selection button{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;border-radius:10px;background:#fff7f5;color:#a61b1b;border:1px solid #e8c4c4;font-size:13px}.program-tag-selection p{font-size:12px}@media(max-width:480px){.program-tag-selectors{grid-template-columns:1fr}}

.summary-record-highlights{margin:14px 0;padding:12px;border:1px solid #dbb55f;border-radius:12px;background:#fff8e6}.summary-record-highlights ol{list-style:none;padding:0;margin:0;display:grid;gap:12px}.summary-record-highlights li{display:flex;gap:10px;align-items:flex-start}.summary-record-number{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#8a5a0a;color:white;font-size:12px;font-weight:700}.summary-record-highlights strong{display:block;font-size:14px;color:#63400a;line-height:1.5}.summary-record-highlights p{margin:4px 0;font-size:14px;line-height:1.6;color:#756448}.summary-record-highlights p b{color:#533500}.summary-record-highlights small{display:block;font-size:11px;line-height:1.6;color:#756448}.exercise-history-sets .summary-record-set{background:#fff8e6}

/* Keep the subscription dialog controls outside the scrolling form. */
.modal-box:has(> .subscription-scroll){
 display:flex;
 flex-direction:column;
 overflow:hidden;
 padding:0;
 max-height:min(90dvh, calc(100dvh - 32px));
}
.modal-box:has(> .subscription-scroll) > .modal-close-bar{
 position:static;
 flex:none;
 height:52px;
 padding:8px 16px 4px;
}
.modal-box:has(> .subscription-scroll) > .modal-close-bar .modal-close{
 top:auto;
 right:auto;
}
.subscription-scroll{
 min-height:0;
 overflow:auto;
 overscroll-behavior:contain;
 scrollbar-gutter:stable both-edges;
 padding:0 clamp(14px, 4vw, 28px) 24px;
}
.subscription-scroll .subscription-warning .replacement-choice{
 display:grid;
 grid-template-columns:18px minmax(0, 1fr);
 align-items:start;
 gap:10px;
 line-height:1.5;
}
.subscription-scroll .replacement-choice input[type=checkbox]{
 width:18px;
 height:18px;
 min-height:0;
 margin:1px 0 0;
 padding:0;
}

.client-workout-option:has(.client-workout-preview){position:relative}
.client-workout-option .client-workout-preview{
 display:flex;
 align-items:center;
 gap:11px;
 flex:1;
 min-width:0;
 border:0;
 background:none;
 color:inherit;
 padding:0;
 font:inherit;
 text-align:left;
 cursor:pointer;
}
.client-workout-preview::after{content:"";position:absolute;inset:0;border-radius:inherit}
.client-workout-preview .client-workout-info strong{display:block;line-height:1.3;font-size:14px;overflow-wrap:anywhere}
.client-workout-preview .client-workout-info small{display:block;margin-top:4px;color:#596272}
.client-workout-option:has(.client-workout-preview) .client-workout-controls{position:relative}
.client-workout-preview-list{margin:20px 0;padding-inline-start:24px}
.client-workout-preview-list li{padding:12px 0;border-bottom:1px solid #e4e7ee;overflow-wrap:anywhere}
.client-workout-preview-list small{display:block;margin-top:4px;white-space:pre-line}

.modal-box:has(> :is(.saved-history-picker,.session-summary)){
 display:flex;
 flex-direction:column;
 overflow:hidden;
 padding:0;
 max-height:min(90dvh, calc(100dvh - 32px - env(safe-area-inset-bottom)));
}
.modal-box:has(> :is(.saved-history-picker,.session-summary)) > .modal-close-bar{
 position:static;
 flex:none;
 height:52px;
 padding:8px 16px 4px;
}
.modal-box:has(> :is(.saved-history-picker,.session-summary)) > .modal-close-bar .modal-close{top:auto;right:auto}
.modal-box > :is(.saved-history-picker,.session-summary){display:flex;flex-direction:column;min-height:0;padding:0}
.saved-history-picker > :is(h1,label,input,.toolbar){margin-inline:clamp(16px,4vw,28px)}
.saved-history-picker > input{width:auto}
.saved-history-picker .saved-history-list,.session-summary .summary-scroll{
 min-height:0;
 overflow:auto;
 overscroll-behavior:contain;
 scrollbar-gutter:stable both-edges;
 padding:0 clamp(16px,4vw,28px) 16px;
}
.saved-history-picker .saved-history-list{
 max-height:none;
 border-top:0;
 margin-top:10px;
 padding-top:4px;
}
.saved-history-picker .session-history-row>span:first-child{min-width:0}
.saved-history-picker .session-history-type{margin-left:4px}
.modal-box .session-summary .summary-actions,.saved-history-picker > .toolbar{
 flex:none;
 margin:0;
 padding:12px clamp(16px,4vw,28px) 18px;
 border-top:1px solid #e4e7ee;
}

/* Keep the saved workout title and actions readable on small screens. */
.client-personal-workouts:has(.saved-workout-actions) .client-workout-controls{
 gap:8px;
}
@media(max-width:600px){
 .client-personal-workouts:has(.saved-workout-actions) .client-workout-option{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  padding:14px;
 }
 .client-personal-workouts:has(.saved-workout-actions) .client-workout-controls{
  flex-direction:row;
  align-items:center;
  flex-wrap:wrap;
  padding-top:10px;
  border-top:1px solid var(--border,#e4e7ee);
 }
 .client-personal-workouts:has(.saved-workout-actions) .client-workout-controls .btn{
  min-height:44px;
  padding:8px 10px;
  font-size:12px;
 }
 .client-personal-workouts:has(.saved-workout-actions) .client-workout-remove{
  margin-inline-start:auto;
 }
 .client-personal-workouts:has(.saved-workout-actions) .section-title{
  gap:8px 12px;
  flex-wrap:wrap;
 }
 .client-personal-workouts .saved-workout-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
 }
}

.workout-preview .client-workout-preview-list{
 margin:14px 0 0;
 padding:0;
 list-style:none;
}
.workout-preview .client-workout-preview-list>li{padding:10px 0}
.workout-review-row{
 display:flex;
 align-items:flex-start;
 gap:10px;
}
.workout-review-text{min-width:0;overflow-wrap:anywhere}
.workout-review-row .focus-thumbnail{
 flex:0 0 48px;
 width:48px;
 height:48px;
 border-radius:8px;
}
.summary-exercise-head.workout-review-row{
 align-items:center;
 justify-content:flex-start;
 flex-wrap:wrap;
}
.summary-exercise-head.workout-review-row h3{flex:1 1 120px}

.onboarding-review-form{margin-top:18px}
.onboarding-review-form>label{
 display:flex;
 align-items:center;
 gap:10px;
 min-height:44px;
 cursor:pointer;
}
.onboarding-review-form>label>input[type=checkbox]{
 flex:none;
 width:18px;
 height:18px;
 margin:0;
}

.card.client-review-card{
 display:grid;
 gap:12px;
 margin-top:24px;
}
.client-review-heading{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:8px 12px;
}
.client-review-card :is(h3,p,.toolbar){margin:0}
.client-review-card .toolbar{margin-top:4px;flex-wrap:wrap}

.workout-preview-exercise{
 width:100%;
 padding:0;
 border:0;
 background:transparent;
 color:inherit;
 font:inherit;
 text-align:left;
 cursor:pointer;
}
.workout-preview-exercise:focus-visible{outline-offset:4px}

#email-code-fallback{border-top:1px solid #e0e3e9;padding-top:20px;margin-top:24px}#email-code-fallback h2{font-size:20px;margin:0 0 10px}#email-code-fallback p{font-size:14px;line-height:1.65}#signin-code{font-size:24px!important;font-variant-numeric:tabular-nums;letter-spacing:3px}#verify-form label{display:block;margin:14px 0 7px;font-size:13px}

#coach-client-banner:not([hidden]){position:sticky;top:0;z-index:110;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-left:224px;min-height:52px;padding:8px 18px;background:#192b46;color:white;font-size:13px}#coach-client-banner>span{overflow-wrap:anywhere}#coach-client-banner>button{flex:none;min-height:36px;padding:8px 12px;border:1px solid #ffffff60;border-radius:8px;background:#fff;color:#192b46;font-weight:700;font-size:12px}body.coach-client-mode main>header{top:52px}@media(max-width:700px){#coach-client-banner:not([hidden]){margin-left:0;padding:8px 12px;font-size:12px}}

@media(max-width:480px){.title-row .program-library-actions{grid-template-columns:1fr}}
.modal-box .workout-format-editor{margin-top:16px;padding:16px 20px}
.modal-box .workout-format-editor>label:first-child{margin-top:0}
.workout-format-editor>p:first-of-type{margin-top:10px}
.workout-format-editor>p+p{margin-top:4px}
#builder-rows [data-builder-drop="before"]{box-shadow:0 -3px 0 var(--red)}
#builder-rows [data-builder-drop="after"]{box-shadow:0 3px 0 var(--red)}
.builder-layout .superset-toolbar{position:static}
.focused-workout-heading>.toolbar{margin:0}

@media(min-width:901px){
 .compact-workout-builder #builder-rows .prescription-row{padding:12px 14px;margin-bottom:8px}
 .compact-workout-builder #builder-rows .prescription-row>.section-title{margin-bottom:5px;gap:8px}
 .compact-workout-builder #builder-rows .prescription-row h3{margin:0}
 .compact-workout-builder #builder-rows .exercise-last-session{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:5px 0;padding:4px 8px}
 .compact-workout-builder #builder-rows .exercise-last-session p{font-size:12px;margin:0}
 .compact-workout-builder #builder-rows .builder-target-type{margin:5px 0}
 .compact-workout-builder #builder-rows .builder-target-switch button{min-height:30px;padding:4px 10px}
 .compact-workout-builder #builder-rows .prescription-fields{gap:8px}
 .compact-workout-builder #builder-rows .prescription-fields label{margin:4px 0 3px;font-size:12px;line-height:1.3}
 .compact-workout-builder #builder-rows .prescription-fields input{min-height:34px;padding:5px 7px}
 .compact-workout-builder #builder-rows .prescription-fields .af-number-control button{min-height:34px}
 .compact-workout-builder #builder-rows .builder-exercise-options{margin:6px 0 0;padding:0}
 .compact-workout-builder #builder-rows .builder-exercise-options>summary{cursor:pointer;padding:4px 0}
 .compact-workout-builder #builder-rows [data-builder-group]>.text-btn{padding:3px 8px;margin:0;font-size:12px;min-height:24px}
 .compact-workout-builder .builder-library-row{padding-block:8px}
}

.builder-draggable-card{cursor:grab}
.builder-draggable-card:active{cursor:grabbing}
.builder-draggable-card :is(input,textarea){cursor:text}
.builder-draggable-card :is(button,summary,select,input[type=checkbox]){cursor:pointer}

#builder-workout-column{align-self:stretch;padding-bottom:24px}
.builder-layout .builder-library{min-width:0;max-height:none;overflow:visible}
.builder-layout #builder-library{max-height:clamp(180px,55dvh,560px);overflow:auto;overscroll-behavior:contain;margin-top:10px}
@media(min-width:761px){
 .compact-workout-builder .builder-library{position:sticky;top:16px}
}

.modal-close-bar:has(.modal-back){gap:8px}
.one-off-title{padding-top:26px}
.one-off-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
.one-off-sources .btn{white-space:normal}
.one-off-program-group{margin-top:20px}
.one-off-program-group h2{font-size:16px;margin:0 0 8px}
.one-off-program{border:1px solid #dce1e9;border-radius:10px;margin-bottom:6px}
.one-off-program summary{padding:11px 12px;cursor:pointer}
.one-off-program summary small{margin-left:8px;color:#606a7d;white-space:nowrap}
.one-off-workouts{display:grid;gap:6px;padding:0 12px 12px}
.one-off-workouts .btn{text-align:left;justify-content:flex-start;white-space:normal}
.one-off-workouts [hidden]{display:none}
.modal-box.compact-workout-builder>.builder-heading{align-items:center;padding:36px 0 0}
.modal-box.compact-workout-builder>.builder-heading>.toolbar{align-items:center;gap:10px}

.title-row .coach-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}
.title-row .coach-quick-actions>.btn{align-self:stretch;margin:0}
.coach-quick-actions>.btn,.one-off-sources>.btn{min-width:0;justify-content:center;text-align:center;white-space:normal}
.title-row .coach-quick-actions>.btn.secondary{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:white}
.client-workout-option.received-workout-card {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:12px;
 padding:14px;
}
.received-workout-card .client-workout-info { min-width:0; overflow-wrap:anywhere; }
.received-workout-card .client-workout-info small { display:block; margin-top:4px; }
.received-workout-actions {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px;
 border-top:1px solid #e4e7ee;
 padding-top:10px;
}
.received-workout-actions>.btn {
 min-width:0;
 margin:0;
 justify-content:center;
 text-align:center;
 white-space:normal;
}

#connection:not([hidden]){display:grid;place-items:center;flex:none;width:14px;height:14px;font-size:0;overflow:hidden}
#connection::before{content:"";grid-area:1/1;width:11px;height:11px;border:1.5px solid #c5ccd6;border-right-color:#47566d;border-radius:50%;animation:header-sync-spin .8s linear infinite}
#sync-issue:not([hidden]){margin:0;padding:8px 16px;background:#fff5e8;color:#643b0a;font-size:12px}
@keyframes header-sync-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){#connection::before{animation:none}}
@media(max-width:370px){.header-navigation:has(#global-back:not([hidden])) .mobile-brand{display:block}}

.folder-phase-workouts{align-items:start}
.card.phase-workout-disclosure{padding:0;margin-bottom:8px;overflow:hidden}
.phase-workout-disclosure>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 12px;padding:12px 16px;cursor:pointer;list-style:none}
.phase-workout-disclosure>summary::-webkit-details-marker{display:none}
.phase-workout-disclosure>summary::after{content:"";grid-area:1/2/span 2;border:solid currentColor;border-width:0 2px 2px 0;width:7px;height:7px;transform:rotate(45deg);margin-right:3px}
.phase-workout-disclosure[open]>summary::after{transform:rotate(225deg)}
.phase-workout-disclosure>summary:hover{background:#f6f7f9}
.phase-workout-disclosure>summary:focus-visible{outline-offset:-4px}
.phase-workout-disclosure>summary small{grid-column:1;color:#606a7d}
.phase-workout-details{padding:0 16px 14px}
.phase-workout-details>.toolbar{margin-top:10px}

.phase-workout-details{container-type:inline-size}
.phase-exercise-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.phase-exercise-list>li{display:grid;grid-template-columns:2ch minmax(0,1fr);align-items:baseline;gap:6px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.phase-exercise-list strong{font-weight:600}
.phase-exercise-list small{display:block;margin-top:2px;color:#606a7d;font-size:11px;font-variant-numeric:tabular-nums}
.phase-exercise-number{color:#b51616;font-weight:700;font-variant-numeric:tabular-nums}
@container (max-width:275px){.phase-exercise-list{grid-template-columns:1fr}}

.card.compact-program{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:14px;overflow:visible}
.card.compact-program[hidden]{display:none}
.compact-program .compact-program-actions{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:8px}
.compact-program-more>summary{display:inline-flex;align-items:center;gap:7px;list-style:none;cursor:pointer}
.compact-program-more>summary::-webkit-details-marker{display:none}
.compact-program-more>summary:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.compact-program-more{max-width:100%}
.compact-program-menu{display:grid;width:100%;margin-top:6px;gap:2px;padding:6px;border:1px solid #dfe3eb;border-radius:12px;background:#fff;box-shadow:0 8px 24px #19192318}
.compact-program-menu>.btn{justify-content:flex-start;text-align:left;box-shadow:none;border-color:transparent}
.compact-program-more:not([open])>.compact-program-menu{display:none}

.new-message-results{list-style:none;max-height:min(300px,40dvh);overflow-y:auto;overscroll-behavior:contain;padding:4px;margin:8px -4px 0}
.new-message-results>li+li:not([hidden]){margin-top:6px}
.new-message-results .btn{display:flex;width:100%;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere}

#exercise-photo-file{width:100%;max-width:100%;padding:5px 10px 5px 5px;background:#f6f8fb;color:#4b5668;border:1px solid #dce2eb;border-radius:12px;cursor:pointer}
#exercise-photo-file::file-selector-button{min-height:38px;margin-inline-end:10px;padding:7px 13px;border:1px solid #dce2eb;border-radius:8px;background:#fff;color:#354155;font:inherit;font-weight:650;cursor:pointer;box-shadow:0 1px 2px #18243b0d}
#exercise-photo-file:hover::file-selector-button{border-color:#e5b9b9;background:#fff8f7;color:#9e1818}
