/* Approved Stitch trainer screens, adapted to real data and existing controls. */
#trainer-app body.c3-coach-mode {
 --bg:#0f1413;--surface:#181e1c;--surface2:#1e2623;--surface3:#25302c;--panel2:#25302c;
 --text:#f6f7f5;--muted:#a3ada7;--line:#303d35;--green:#15d778;--green2:#12b866;--greenSoft:#162b21;--green-soft:#162b21;--red:#ef4444;
 --c3-bg:var(--bg);--c3-text:var(--text);--c3-muted:var(--muted);--c3-line:var(--line);--c3-lime:var(--green);
 background:var(--bg)!important;color:var(--text);font-family:Odmakni Jakarta,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
 font-variant-numeric:tabular-nums;-webkit-text-size-adjust:100%;text-size-adjust:100%;
}
#trainer-app[data-theme=light] body.c3-coach-mode {--bg:#f3f6f4;--surface:#fff;--surface2:#eaf1ec;--surface3:#e2ece6;--panel2:#e2ece6;--text:#14221a;--muted:#55665b;--line:#d4dfd7;--green:#087f44;--green2:#076837;--greenSoft:#e0f4e8;--green-soft:#e0f4e8}
#trainer-app body.c3-coach-mode :where(button,input,select,textarea){font-family:inherit}
#trainer-app body.c3-coach-mode :where(button,a,summary){touch-action:manipulation}
#trainer-app body.c3-coach-mode .page{max-width:1600px!important;padding:24px!important}
#trainer-app body.c3-coach-mode #screen-trainer #trainerRoot.coach-stitch217{--coach-panel:var(--surface);--coach-border:var(--line);grid-template-columns:210px minmax(0,1fr)!important;gap:28px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-page-v49,.v46-page,.coach-overview,.coach-client-workspace,.v57-coach-main){max-width:none!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(button,input,select,textarea){font-family:inherit}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(button,summary):focus-visible{outline:2px solid var(--green);outline-offset:3px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav{top:24px!important;padding:12px 8px!important;border-radius:16px;background:var(--surface)!important;min-height:calc(100dvh - 48px)!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-workspace-brand{padding:12px 12px 28px;gap:8px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-workspace-brand .brand-lockup210{width:170px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button{min-height:48px!important;border:0!important;border-radius:10px!important;font-weight:600}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button.active{background:var(--greenSoft)!important;color:var(--green)!important;box-shadow:inset 3px 0 var(--green)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button>b{min-width:20px;padding:2px 6px;background:var(--surface3);color:var(--text);border-radius:7px;line-height:1.4;font-size:11px!important}
#trainer-app body.c3-coach-mode #screen-trainer #trainerRoot.coach-stitch217 .coach-account-bar.coach-menu-launch{margin:0 0 24px!important;gap:12px;min-height:44px;justify-content:space-between}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachMenuOpen127{margin-left:auto;border:0;background:var(--surface2);border-radius:12px;min-width:44px}
.coach-mobile-brand217{display:none!important}
.coach-top-account217{display:grid;gap:2px;min-width:0}
.coach-top-account217 strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
#trainer-app .coach-top-account217 small{font-size:11px;color:var(--muted)}
#trainer-app .coach-icon217{width:18px;height:18px;flex:0 0 18px;pointer-events:none;vertical-align:middle}
#trainer-app .coach-icon-action217{display:inline-flex;align-items:center;justify-content:center;gap:7px}

/* Dashboard: priority first, optional summaries beside it on desktop. */
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview{gap:18px;padding:0!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-page-head-v49,.coach-overview-head){margin:0 0 20px!important;gap:16px;align-items:center}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-head{margin:0!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-page-head-v49,.coach-overview-head) :is(h1,h2){font-size:28px!important;font-weight:800;letter-spacing:-.035em;line-height:1.2;margin:0 0 5px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-head>div>span{font-size:12px!important;margin-bottom:5px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-refresh{background:var(--surface);color:var(--muted);border:0;border-radius:12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts{gap:12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts>button{padding:16px 18px;border:0;background:var(--surface);border-radius:16px;min-height:100px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts span{font-size:13px!important;font-weight:400}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts strong{font-size:32px!important;font-weight:800;margin-top:10px}
.coach-overview-columns217{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:18px;align-items:start}
.coach-overview-primary217,.coach-overview-secondary217{display:grid;gap:16px;min-width:0;align-content:start}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-panel{border:0;border-radius:16px;background:var(--surface)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-panel>header{padding:18px 18px 16px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-panel h2{font-size:18px!important;font-weight:700;letter-spacing:-.025em}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-total{border-radius:20px;min-width:24px;min-height:24px;padding:2px 7px;font-size:12px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row.compact{grid-template-columns:32px minmax(0,1fr) auto 10px;gap:10px;min-height:64px;padding:12px 18px;background:var(--surface2);border:0;border-bottom:1px solid var(--line);border-radius:0!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row.compact:last-child{border-bottom:0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-avatar217{border-radius:50%;width:32px;height:32px;background:var(--surface3);color:var(--text);font-size:11px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-name{font-size:14px!important;font-weight:600}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row.compact .coach-overview-kind{padding:4px 7px;border-radius:6px;background:var(--surface3);font-size:11px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row .coach-overview-arrow{font-size:20px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row.message .coach-overview-arrow{color:var(--green)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-planning-row{background:var(--surface2);border:0;min-height:72px;padding:14px 18px;border-radius:0!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-planning-row+.coach-planning-row{border-top:1px solid var(--line)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-planning-row strong{font-size:14px!important;font-weight:600}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-planning-status{font-size:12px!important;line-height:1.5}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview :is(.coach-overview-secondary,.coach-overview-more-results){border:0;background:var(--surface);border-radius:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-more-results{border-radius:0!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview summary{padding:14px 18px;min-height:56px;font-size:14px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-updated{font-size:11px!important;text-align:right;margin-top:2px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row:hover,#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-planning-row:hover{background:var(--surface3)}

/* Search, filters and list cards. No fixed column can push actions out. */
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49 label{min-width:0;width:240px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49 label input{min-height:44px;background:var(--surface2);border:1px solid transparent;box-shadow:none;border-radius:12px;padding:10px 13px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49>div:last-child>button{background:var(--green);color:#062515;border:0;border-radius:12px;font-size:13px;font-weight:700;padding:10px 14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(#coachClientFilters121,#coachPlanFilters122){gap:6px;display:flex;flex-wrap:wrap;margin:0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachPlanFilters122{margin:0 0 16px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-filter-bar121{margin-bottom:16px;gap:8px;align-items:start}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(#coachClientFilters121,#coachPlanFilters122)>button{min-height:44px!important;padding:8px 12px;border:0;border-radius:10px;background:var(--surface);color:var(--muted);font-size:12px!important;gap:7px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(#coachClientFilters121,#coachPlanFilters122)>button[aria-pressed=true]{background:var(--greenSoft);color:var(--green)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(#coachClientFilters121,#coachPlanFilters122) b{font-size:11px;padding:2px 5px;border-radius:6px;background:var(--surface3);font-weight:600}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachClientFiltersRefresh121{min-width:44px;min-height:44px;background:var(--surface);border:0;border-radius:10px;color:var(--muted)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-table-v49{background:transparent!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #trainerClientListV46{gap:10px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-card117{grid-template-columns:minmax(170px,1.1fr) minmax(150px,1fr) minmax(260px,auto);gap:12px;padding:14px;border:1px solid transparent;background:var(--surface);border-radius:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-open117{grid-template-columns:40px minmax(0,1fr) 10px;padding:0;min-height:48px;gap:10px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-avatar117{width:40px;height:40px;border-radius:12px;background:var(--greenSoft);color:var(--green);font-size:13px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-open117 strong{font-size:14px!important;font-weight:700;line-height:1.4}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-open117 small{font-size:11px!important;color:var(--muted);overflow-wrap:anywhere}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117{padding:0;gap:3px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117 strong{font-size:12px!important;font-weight:600}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117 :is(span,small){font-size:11px!important;line-height:1.45}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-actions117{padding:0;min-width:0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-main161{gap:6px;min-width:0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-actions117 .coach-client-main161>button{min-width:0;min-height:44px!important;padding:8px!important;white-space:normal;border:0;background:var(--surface3);color:var(--text);font-size:12px!important;border-radius:10px;line-height:1.3}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-actions117 .coach-client-main161>button:first-child{background:var(--greenSoft);color:var(--green)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-main161>[data-client-planning121]{background:var(--surface3)!important;color:var(--green)!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-flags121{margin:0;gap:4px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-unread121{font-size:11px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-row{padding:16px;margin-bottom:10px;border:1px solid transparent;border-radius:14px;background:var(--surface);gap:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-identity{gap:6px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-identity>strong{font-size:16px;font-weight:700;line-height:1.35;letter-spacing:-.025em}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-meta163{gap:6px 10px;line-height:1.5}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-state{font-size:11px;background:transparent;border:0;padding:0;color:var(--muted)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-state.published{color:var(--green)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163{display:flex;gap:6px;min-width:0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163>button{min-height:44px!important;padding:10px 12px;border:0;background:var(--surface3);color:var(--text);border-radius:10px;font-size:12px!important;min-width:0;white-space:normal}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163>[data-coach-open-plan]{color:var(--green);background:var(--greenSoft)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163>.coach-plan-settings{width:44px;flex:0 0 44px;padding:0;font-size:17px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-tools-v49,.management-archive){margin-top:10px!important;border:0;background:var(--surface);border-radius:12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-tools-v49,.management-archive)>summary{padding:14px 16px!important;color:var(--text);font-size:13px!important;min-height:52px}

/* Client workspace keeps the existing read-only profile and all return links. */
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-breadcrumb{min-height:44px;margin-bottom:10px;font-size:12px;color:var(--muted)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-hero{background:var(--surface)!important;padding:18px!important;border-radius:16px;margin-bottom:18px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-avatar{width:48px;height:48px;min-width:48px;border-radius:12px;background:var(--greenSoft);color:var(--green)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-identity h1{font-size:24px!important;font-weight:800;line-height:1.25}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-state{color:var(--green);font-size:10px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-identity p{color:var(--muted);overflow-wrap:anywhere;font-size:12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-sections{gap:24px;margin:0 0 18px;border-bottom:1px solid var(--line)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-sections>button{font-size:14px;font-weight:600;min-height:44px;border-radius:0!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-panel{gap:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-panel>section{padding:18px!important;background:var(--surface);border:0;border-radius:16px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .trainer-panel-head{margin-bottom:14px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .trainer-panel-head h2{font-size:18px!important;font-weight:700}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-program-main{padding:14px!important;background:var(--surface2)!important;border-radius:12px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-program-main h3{font-size:18px;font-weight:700;margin:8px 0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-program-actions{margin:14px 0 0;max-width:none}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-program-actions>button{background:var(--surface3);border:0;color:var(--text);border-radius:10px;min-height:44px!important;font-size:12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-week .workspace-day{background:var(--surface2);border:0;border-radius:12px;padding:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-readiness{background:var(--surface);border:0;border-radius:12px;padding:0 16px}

/* Calendar shell only; the approved exercise editor remains unchanged. */
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-editor-breadcrumb{gap:4px;margin-bottom:16px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-editor-breadcrumb h1{font-size:28px!important;font-weight:800}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-live-selectors{background:var(--surface);border:0;border-radius:16px;padding:16px;gap:12px;margin-bottom:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-live-selectors select{background:var(--surface3)!important;color:var(--text);border:1px solid transparent;border-radius:10px;font-size:16px!important;min-height:44px;padding:10px 12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-live-selectors button{background:var(--surface2);border:0;color:var(--text);min-height:44px!important;font-size:13px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview{background:var(--surface);border:0;border-radius:16px;overflow:clip}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-header130{padding:18px 16px 12px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-header130 h2{font-size:20px!important;font-weight:800}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-header130 nav button{min-height:44px;min-width:44px;border:0;background:var(--surface3);border-radius:10px;color:var(--muted)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-table130{background:transparent}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-day-row130>th,#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-day-row130>td{border-color:var(--line);padding-block:8px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-item130{min-height:44px;padding:8px 0;background:transparent}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-item130 strong{font-size:14px;font-weight:600;line-height:1.4}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-day-button130{min-height:48px;font-size:14px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-day-button130 small{font-size:11px;color:var(--muted)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-footer130{background:var(--surface2);padding:12px 16px}

/* Native plan dialogs retain viewport/scroll locking from v183. */
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-dialog165{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-management{background:var(--surface)!important;border:0!important;padding:22px!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-settings-head164 h3{font-size:22px;font-weight:800;letter-spacing:-.03em}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-settings-head164 .coach-close-settings{background:var(--surface3);border:0;color:var(--muted)}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-management :is(input,select){background:var(--surface3)!important;color:var(--text);border:1px solid transparent!important;border-radius:10px;font-size:16px!important;min-height:46px;padding:10px 12px;box-shadow:none}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-management label{font-size:12px;color:var(--muted);gap:7px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-live-selectors,.coach-plan-management) select{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239ba3a0' stroke-width='1.8'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-start-shifts164>button,#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-management .coach-program-actions-v49>button{background:var(--surface3)!important;border:0!important;color:var(--text)!important;border-radius:10px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-danger [data-delete-program]{background:color-mix(in srgb,var(--red) 12%,var(--surface));color:#f87171;border:1px solid color-mix(in srgb,var(--red) 25%,transparent)}

/* Drawer: own scroll area and existing role-aware actions. */
#trainer-app body.c3-coach-mode #coachMenu127{background:var(--surface);border-color:var(--line);width:min(360px,calc(100vw - 24px));font-family:inherit}
#trainer-app body.c3-coach-mode #coachMenu127>header{padding:calc(16px + env(safe-area-inset-top)) 16px 16px;border:0}
#trainer-app body.c3-coach-mode #coachMenu127 .coach-menu-body{padding:0 16px calc(20px + env(safe-area-inset-bottom))}
#trainer-app body.c3-coach-mode #coachMenu127 .coach-menu-identity{display:grid;grid-template-columns:44px minmax(0,1fr);gap:3px 12px;padding:16px;margin-bottom:12px;background:var(--surface2);border-radius:14px}
#trainer-app body.c3-coach-mode #coachMenu127 .coach-menu-avatar217{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--greenSoft);color:var(--green);font-size:14px;font-weight:700}
#trainer-app body.c3-coach-mode #coachMenu127 .coach-menu-identity strong{font-size:15px;align-self:end;font-weight:700}
#trainer-app body.c3-coach-mode #coachMenu127 .coach-menu-identity>span:not(.coach-menu-avatar217){font-size:11px;grid-column:2;color:var(--muted)}
#trainer-app body.c3-coach-mode #coachMenu127 .coach-menu-tools>summary{color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;padding-inline:10px}
#trainer-app body.c3-coach-mode #coachMenu127 nav button{min-height:48px!important;gap:12px;padding:12px 10px!important;font-size:14px!important;justify-content:flex-start}
#trainer-app body.c3-coach-mode #coachMenu127 nav button svg{width:20px;height:20px;color:var(--muted)}
#trainer-app body.c3-coach-mode #coachMenu127 #v57ClientAppSwitch{background:var(--surface3);border-radius:10px;margin-bottom:12px}
#trainer-app body.c3-coach-mode #coachMenu127 #coachLogout{border:0;border-radius:12px;background:color-mix(in srgb,var(--red) 12%,var(--surface));color:#f87171;margin-top:18px;justify-content:center}
#trainer-app body.c3-coach-mode #coachMenu127 #coachLogout svg{color:inherit}
#trainer-app body.c3-coach-mode #coachMenu127 [data-coach-menu-close]{background:var(--surface3);border-radius:12px}

@media(max-width:1200px){
 #trainer-app body.c3-coach-mode #screen-trainer #trainerRoot.coach-stitch217{grid-template-columns:180px minmax(0,1fr)!important;gap:20px!important}
 .coach-overview-columns217{grid-template-columns:minmax(0,1fr)}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-card117{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-actions117{grid-column:1/-1}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117{display:grid;grid-template-columns:1fr;padding:0}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117>*{grid-column:1;grid-row:auto;text-align:left}
}
@media(max-width:760px){
 #trainer-app body.c3-coach-mode .page{padding:12px 16px calc(94px + env(safe-area-inset-bottom))!important}
 #trainer-app body.c3-coach-mode #screen-trainer #trainerRoot.coach-stitch217{display:block!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav{min-height:0!important;border-radius:0;top:auto!important;padding:6px 12px calc(6px + env(safe-area-inset-bottom))!important;background:var(--surface)!important;border:0!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button{border-radius:8px!important;min-height:54px!important;padding:6px 3px!important;gap:4px;background:transparent!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button.active{box-shadow:none;background:transparent!important;color:var(--green)!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button>span{font-size:10px!important;font-weight:600}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .v57-coach-nav>nav>button>b{right:10px;top:0;font-size:10px!important;min-width:17px;line-height:1.3;background:var(--green);color:#062515;padding:2px 4px}
 #trainer-app body.c3-coach-mode #screen-trainer #trainerRoot.coach-stitch217 .coach-account-bar.coach-menu-launch{margin:0 0 18px!important;min-height:44px;flex-wrap:nowrap}
 #trainer-app .coach-mobile-brand217{display:block!important;width:135px!important;min-width:0;flex:0 1 135px}
 #trainer-app .coach-mobile-brand217 img{width:100%;height:auto}
 #trainer-app .coach-top-account217{display:none!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachMenuOpen127{width:44px;padding:10px!important;background:transparent}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachMenuOpen127>span{display:none}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachMenuOpen127 svg{width:23px;height:23px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(.coach-page-head-v49,.coach-overview-head) :is(h1,h2){font-size:26px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview{gap:14px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts{gap:8px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts>button{padding:14px;min-height:88px;border-radius:14px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts span{font-size:12px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-counts strong{font-size:28px!important;margin-top:8px}
 .coach-overview-columns217,.coach-overview-primary217,.coach-overview-secondary217{gap:14px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-panel>header{padding:16px 14px 14px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row.compact{padding:12px 14px;gap:8px;grid-template-columns:30px minmax(0,1fr) auto 8px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-avatar217{width:30px;height:30px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-name{font-size:13px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-overview-row.compact .coach-overview-kind{font-size:10px!important;padding:4px 6px;max-width:100px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-planning-row{padding:14px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49{gap:14px;margin-bottom:14px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49 label{width:100%}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49>div:last-child{gap:8px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-page-head-v49>div:last-child>button{padding:10px 12px;font-size:12px!important;white-space:nowrap}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-filter-bar121{display:flex;gap:6px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachClientFilters121{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1;min-width:0}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 :is(#coachClientFilters121,#coachPlanFilters122)>button{padding:8px;font-size:11px!important;gap:5px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-card117{grid-template-columns:minmax(0,1fr);padding:14px;gap:12px;border-radius:14px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117>strong{grid-column:1;grid-row:1}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117>small{grid-column:2;grid-row:1;text-align:right;font-size:10px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117>span{grid-column:1;grid-row:2}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-flags121{grid-column:2;grid-row:2;justify-content:flex-end}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-actions117 .coach-client-main161>button{font-size:11px!important;padding:8px 6px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-main161:has(>button:nth-child(3)) .coach-icon217{display:none}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-row{padding:14px;gap:12px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 44px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163>button{padding:10px 6px;font-size:11px!important;gap:5px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163 .coach-icon217{width:16px;height:16px;flex-basis:16px}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-hero{padding:16px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .client-workspace-identity h1{font-size:21px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-panel>section{padding:16px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-management{padding:18px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-editor-breadcrumb h1{font-size:26px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 #coachWeekOverview .week-header130{padding:16px 14px 12px}
}
@media(max-width:360px){
 #trainer-app body.c3-coach-mode .page{padding-inline:12px!important}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117{grid-template-columns:1fr}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-client-plan117>*{grid-column:1!important;grid-row:auto!important;text-align:left!important;justify-content:flex-start}
 #trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-plan-actions163 .coach-icon217{display:none}
}
/* Keep the keyboard/chat visibility rules authoritative. */
#trainer-app body.op-chat-open #screen-trainer .coach-stitch217 .coach-account-bar,
#trainer-app body.op-coach-chat-open #screen-trainer .coach-stitch217 .coach-account-bar{display:none!important}
