/* Workspace navigation and compact phone layouts. */
.workspace-tabs{display:flex;margin:0 18px 12px;border-bottom:1px solid #343438;gap:16px}
.workspace-tabs button{position:relative;flex:1;min-height:48px;margin:0;padding:12px 8px;border:0;background:none;color:#bcbcc4;font-size:15px;font-weight:650;cursor:pointer}
.workspace-tabs button.active{color:#dfc396}
.workspace-tabs button.active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:#c4a46a}
.workspace-tabs button:focus-visible{outline:2px solid #dfc396;outline-offset:-4px}
@media(max-width:600px){
 .topbar{position:relative;padding:18px 16px 12px;gap:10px;background:#09090a}
 .topbar .header-brand{width:44px;height:44px}
 .topbar .topbar-brand{gap:10px}
 .topbar .eyebrow{font-size:10px;letter-spacing:.14em}
 .topbar h2{font-size:clamp(16px,4.8vw,21px);line-height:1.3}
 .topbar #openProfile{width:42px;height:42px;min-height:42px}
 .workspace-tabs{margin:0 16px 12px;gap:12px}
 .content{padding:4px 16px 28px}
 .app{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 #homeSessionCard{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:18px;border-radius:20px;margin-bottom:20px}
 #homeSessionCard>div{max-width:100%}
 #homeSessionCard h1{font-size:28px;line-height:1.2;margin:14px 0 8px}
 #homeSessionCard p{font-size:14px;line-height:1.5;margin:0 0 8px}
 #homeSessionCard .pill{font-size:10px;padding:7px 10px}
 #homeSessionCard button{width:100%;min-height:46px;margin:0;padding:12px;font-size:14px}
 #home .grid2{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
 #home .mini{padding:15px 13px;min-width:0;display:flex;flex-direction:column;border-radius:18px}
 #home .mini h4{font-size:16px;margin:9px 0 4px}
 #home .mini p{font-size:13px;line-height:1.5;margin:8px 0 10px;color:#bcbcc4}
 #home .mini .link-btn{margin-top:auto;align-self:flex-start;min-height:44px;padding:10px 0;font-size:14px}
 #home .section-head{margin:16px 0 12px;gap:8px}
 #homeTodayLabel{font-size:12px}
 .bottom-nav{padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));grid-template-columns:repeat(6,minmax(0,1fr));min-height:68px}
 .bottom-nav button{min-width:0;min-height:44px;padding:3px 0;font-size:clamp(9px,2.45vw,11px);line-height:1.4;color:#b0b0b7}
 .bottom-nav button.active{color:#dfc396}
 .bottom-nav button>span{margin-bottom:4px}
 #coach>.coach-heading{margin:4px 0 8px;align-items:center}
 #coach>.coach-heading h1{font-size:24px;margin:4px 0}
 #coach>.coach-heading .eyebrow{font-size:10px}
 #coach>.section-head{margin:8px 0 12px;gap:10px;align-items:center}
 #coachStatus:empty{display:none}
 #coachStatus{font-size:12px;line-height:1.5}
 #coachOverview .coach-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #coachOverview .coach-metrics>.card{padding:12px 9px;min-height:88px;margin:0 0 14px;text-align:left;border-radius:14px}
 #coachOverview .coach-metrics strong{font-size:26px}
 #coachOverview .coach-metrics span{font-size:11px;line-height:1.4;display:block;margin-top:6px;color:#bcbcc4}
 .coach-roster-heading{flex-direction:column;align-items:center;gap:12px;margin:8px 0 12px;text-align:center}
 .coach-roster-heading h2{font-size:21px;margin:0}
 .coach-roster-heading .coach-search{display:block;width:100%;font-size:12px;margin:0;color:#bcbcc4}
 .coach-search input{margin-top:6px;min-height:44px;font-size:16px}
 .coach-client-row{margin:10px 0}
 #coachRoster .coach-client{padding:15px 13px;gap:12px;border-radius:16px;margin:0}
 #coachRoster .coach-client>div{min-width:0}
 #coachRoster .coach-client h3{font-size:17px;margin:0 0 6px}
 #coachRoster .coach-client p{font-size:12px;line-height:1.5;margin:5px 0}
 #coachRoster .coach-client>div:last-child{max-width:42%;font-size:11px}
 #coachRoster .coach-client .pill{font-size:9px;padding:6px}
 #coachClientHeading .coach-heading{gap:12px;margin:12px 0 16px}
 #coachClientHeading .coach-heading h2{font-size:22px;margin:6px 0}
 #coachClientHeading .coach-heading p{margin:6px 0;font-size:13px}
 #coachClientHeading .coach-sheet-link{min-height:44px;padding:12px;font-size:13px;margin:0}
 #coach .coach-block-entry{padding:16px;gap:10px;margin:0 0 16px;border-radius:18px}
 #coach .coach-block-entry strong{font-size:21px;line-height:1.3}
 .coach-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;margin-bottom:16px}
 .coach-tabs button{min-height:44px;padding:10px 3px;font-size:12px;min-width:0}
 .coach-week-heading{gap:6px;margin:12px 0 10px}
 .coach-week-heading button{min-width:44px;min-height:44px}
 .coach-week-heading strong{font-size:12px;text-align:center;line-height:1.4}
 .coach-week-days{gap:5px}
 .coach-week-day{min-width:0;min-height:58px;padding:8px 1px 5px}
 .coach-week-day span{font-size:10px}
 .coach-week-day strong{font-size:16px}
 #coachClientData>.card{padding:18px 16px;font-size:14px;line-height:1.5}
 /* Shared by running sessions and the coach program iframe. */
 .free-facts,.free-facts.program-facts,.free-running-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:left;margin:14px 0}
 .free-facts>div{min-width:0;padding:12px;border:1px solid #343438!important;border-radius:10px;background:#171719}
 .free-facts small{font-size:12px;margin-bottom:6px;color:#bcbcc4}
 .free-facts b{font-size:18px;line-height:1.4;overflow-wrap:normal;word-break:normal;display:block}
 .free-movement{padding:16px 0}
 .free-movement-head{gap:10px}
 .free-movement-head h3,.program-movement-title h4{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
 .free-video{width:44px;height:44px;flex-basis:44px;border-radius:12px}
 .free-objective{margin:18px 0 12px;text-align:left;font-size:11px}
 .program-series-pill{margin-bottom:12px}
 .program-group-heading{padding:14px;gap:8px}
 .program-group-heading strong,.program-group-heading span{font-size:13px}
 .program-movement,.is-sequence .program-movement{padding:16px 0}
 .program-client-advice{font-size:13px;line-height:1.6;margin:14px 0 10px}
 .program-client-rest{font-size:12px;line-height:1.5;padding:10px 12px;border:1px solid #665238;border-radius:10px;background:#242019}
}
/* The coach destination stays visible while selected. */
.coach-page-active .workspace-tabs #openCoach:not(.hidden){display:block!important}
@media(max-width:600px){
 #homeSessionCard #homeStartSession{background:linear-gradient(135deg,#dfc396,#c4a46a);color:#17130c;border:1px solid #dbc18f;box-shadow:none;text-transform:none}
}



/* Touch browsers may retain :hover after tapping: selection must stay gold. */
#homeWeek button.week-day-button.focus-selected,
#homeWeek button.week-day-button.focus-selected:hover:not(:disabled),
#homeWeek button.week-day-button.focus-selected:focus,
#homeWeek button.week-day-button.focus-selected:active{
 background:#c4a46a;color:#111;border-color:#c4a46a;box-shadow:0 0 18px #c4a46a26;
}
#homeWeek button.week-day-button.focus-selected :is(small,b){color:#111}
#supportVideoStatus:empty{display:none}
#coachOverview .coach-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){#coachOverview .coach-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
#trainingSessionCards .session{position:relative;-webkit-touch-callout:none}
.session-holding{outline:2px solid #c4a46a;outline-offset:2px;user-select:none}
.session-actions-dialog{width:min(420px,calc(100% - 32px));padding:24px;background:#151517;color:#f7f7f7;border:1px solid #665238;border-radius:20px}
.session-actions-dialog::backdrop{background:#000b}
.session-actions-dialog h2{font-size:21px;margin:0 0 12px}
.session-actions-dialog p{color:#bcbcc4;font-size:14px;line-height:1.6}
.session-actions-dialog button{min-height:46px;width:100%;margin-top:12px}

.session-action-row{position:relative;overflow:hidden;margin-bottom:14px;border-radius:22px}
#trainingSessionCards .session-action-row>.session{width:100%;margin-bottom:0;transition:transform .25s ease;position:relative;z-index:1;background:#111113}
#trainingSessionCards .session-action-revealed>.session{transform:translateX(-72px)}
.session-pass-action{position:absolute;inset:0 0 0 auto;width:64px;border:1px solid #74353a;border-radius:18px;background:#351619;color:#ff6975;font-size:34px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.session-pass-action[hidden]{display:none}
.session-pass-action:focus-visible{outline:2px solid #ff9ba3;outline-offset:-4px}
@media(prefers-reduced-motion:reduce){#trainingSessionCards .session-action-row>.session{transition:none}}

.session-passed-note{display:flex;align-items:center;gap:8px;margin:12px 0 0!important;font-size:13px!important;line-height:1.5;color:#e2b8bc!important}
.session-passed-cross{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#3b1b21;color:#ff6975;font-size:23px;font-weight:700}
.coach-passed-notice{color:#ff919b!important;font-size:12px;line-height:1.5}

@media(pointer:coarse){#trainingSessionCards .session-action-row>.session{touch-action:pan-y}}

@media(max-width:600px){#home,#coach,#workspaceTabs{touch-action:pan-y}}

@media(max-width:600px){.topbar{touch-action:pan-y}}

@media(max-width:600px){
 html{overscroll-behavior-y:contain}
 #coach .coach-roster-heading .coach-search{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:360px;min-width:0;flex:0 1 auto;text-align:center;margin:0 auto}
 #coach .coach-roster-heading #coachSearch{display:block;width:100%;max-width:100%;min-width:0;margin:0;min-height:48px;padding:14px;text-align:center}
}
.pull-refresh-status{position:fixed;top:calc(env(safe-area-inset-top,0px) + 8px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 18px;border:1px solid #665238;border-radius:24px;background:#25221efa;color:#dfc396;font-size:13px;text-align:center;z-index:1100;box-shadow:0 4px 20px #0008;pointer-events:none}
.pull-refresh-status[hidden]{display:none}
.pull-refresh-status[data-state="error"]{color:#ffb2ba;border-color:#8c4a53}

@media(max-width:600px){
 .content:has(#home.active),.content:has(#coach.active){overflow-x:clip}
 .workspace-transitioning .content{pointer-events:none}
 #workspaceTabs button::after{transition:opacity .2s ease}
}

/* Mobile refresh feedback stays in the center of the viewport. */
@media(max-width:600px){
 .pull-refresh-status{top:50%;transform:translate(-50%,-50%)}
 .topbar{background:#09090b!important;backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* Disable browser double-tap and pinch zoom; keep scrolling on both axes. */
html,body{touch-action:pan-x pan-y}
@media(max-width:600px){input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select{font-size:max(16px,1em)!important}}

/* Pending follow-up signals replace lifetime workout counters. */
.coach-followup-notices{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0 0 12px}
.coach-followup-notice{display:inline-flex;align-items:center;gap:7px;max-width:100%;border:1px solid #665236;border-radius:20px;padding:7px 11px;background:#282218;color:#e2c68f;font-size:12px;font-weight:650;line-height:1.4;text-align:left}
.coach-followup-notice i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
.coach-followup-current{display:inline-block;color:#a4cbb4;font-size:13px;margin-bottom:12px}
.coach-followup-action{margin:20px 0 12px}
@media(max-width:600px){
 #coachRoster .coach-client{display:grid;grid-template-columns:minmax(0,1fr);text-align:left}
 #coachRoster .coach-client>div:last-child{max-width:100%;width:100%}
 .coach-followup-notices{justify-content:flex-start}
 .coach-followup-action button{width:100%;min-height:48px}
}
