/* Owner and trainer workspace styling. Scoped to the active staff screens. */
.staff-ui #library-send-dialog{width:min(600px,calc(100% - 32px));max-height:90dvh;box-sizing:border-box;overflow:auto;margin:auto;padding:28px;border:1px solid var(--staff-border);border-radius:22px;background:var(--staff-panel);color:var(--staff-text);box-shadow:0 28px 100px #0008}
#library-send-dialog::backdrop{background:#05070bcc;backdrop-filter:blur(7px)}
.library-send-heading,.library-send-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}
.library-send-heading{align-items:flex-start;margin-bottom:24px}.library-send-heading h2{font-size:24px;margin:0 0 7px}.library-send-heading p{margin:0;overflow-wrap:anywhere}
#library-send-dialog>label{display:block}#library-send-search{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px}
.library-send-toolbar{margin:16px 0;font-size:12px}.library-send-toolbar .gym-muted{font-size:12px}
#library-send-people{max-height:36dvh;overflow:auto;overscroll-behavior:contain;display:grid;gap:8px;padding:2px}
.staff-ui .library-send-person{display:flex;flex-direction:row;text-align:left;align-items:center;gap:14px;margin:0;padding:13px 14px;border:1px solid var(--staff-border);border-radius:12px;background:var(--staff-panel-soft);cursor:pointer}
.staff-ui .library-send-person:has(input:checked){border-color:color-mix(in srgb,var(--accent) 55%,var(--staff-border));background:color-mix(in srgb,var(--accent) 6%,var(--staff-panel-soft))}
.library-send-person input{width:19px;height:19px;flex-shrink:0;accent-color:var(--accent)}.library-send-person span{min-width:0}.library-send-person strong{display:block;color:var(--staff-text);font-size:14px}.library-send-person small{display:block;overflow-wrap:anywhere;color:var(--staff-muted);font-size:12px}
#library-send-status{font-size:13px;line-height:1.6;min-height:21px}#library-send-submit{width:100%}.staff-ui #coaching-library [data-library-send]{margin-top:10px;align-self:flex-start}
@media(max-width:600px){.staff-ui #library-send-dialog{padding:20px;border-radius:18px}.library-send-heading h2{font-size:21px}.library-send-toolbar{gap:8px}.library-send-person{padding:12px!important}}
.staff-ui{--staff-bg:#0d0f12;--staff-panel:#15181e;--staff-panel-soft:#12151a;--staff-card-top:#1a1e25;--staff-control:#1b1f26;--staff-field:#0f1217;--staff-text:#edf0f5;--staff-muted:#9da7b5;--staff-border:#303741}
html[data-theme=light] .staff-ui{--staff-bg:#f5f7fa;--staff-panel:#fff;--staff-panel-soft:#f8fafc;--staff-card-top:#f6f8fb;--staff-control:#edf1f6;--staff-field:#fff;--staff-text:#182230;--staff-muted:#586577;--staff-border:#cdd5e1}
.staff-ui{background:var(--staff-bg)!important;background-image:none!important;color:var(--staff-text)!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;--surface:var(--staff-panel);--card:var(--staff-panel);--border:var(--staff-border);--muted:var(--staff-muted)}
.staff-ui body,.staff-ui main{background-image:none!important}
.staff-ui .gym-muted,.staff-ui .stat-sub{color:var(--staff-muted)!important;line-height:1.6}
.staff-ui #page-gym{max-width:1180px;margin:0 auto;padding-top:28px}
.staff-ui .gym-panel{background:var(--staff-panel)!important;border:1px solid var(--staff-border)!important;border-radius:16px!important;padding:26px!important;box-shadow:0 8px 28px #00000012;margin-bottom:22px}
.staff-ui h1,.staff-ui h2,.staff-ui h3{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.45px;line-height:1.25!important}
.staff-ui #gym-workspace-name{font-size:32px!important;margin:7px 0 8px!important}
.staff-ui #gym-workspace-url{font-size:12px;color:var(--staff-muted);margin-bottom:25px}
.staff-ui #gym-role{border-radius:8px;padding:7px 11px;background:color-mix(in srgb,var(--accent) 8%,transparent);color:var(--accent)!important;font-size:11px!important;font-weight:700;letter-spacing:.6px}
.staff-ui .staff-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--accent);margin:0 0 8px}
.staff-ui #gym-signed-in{padding:16px 20px!important;border-radius:12px!important;background:var(--staff-panel-soft)!important;box-shadow:none!important;margin-bottom:25px!important}
.staff-ui #gym-user-name{font-size:14px!important}.staff-ui #gym-user-email{font-size:12px!important}
.staff-ui .gym-button{border-radius:9px!important;min-height:42px;padding:10px 16px!important;font:600 12px/1.4 system-ui!important;background:var(--staff-control);color:var(--staff-text);border:1px solid var(--staff-border)!important;text-decoration:none!important;box-shadow:none!important}
.staff-ui .gym-button.primary{background:var(--accent)!important;color:var(--staff-accent-ink,#111)!important;border-color:var(--accent)!important}
.staff-ui .gym-button.danger{background:#ed646411;color:#ff9292!important;border-color:#ed646433!important}
.staff-ui input:not([type=checkbox]):not([type=color]),.staff-ui select,.staff-ui .tmw-select-trigger{background:var(--staff-field)!important;border:1px solid var(--staff-border)!important;border-radius:9px!important;min-height:44px;font:13px system-ui!important;color:var(--staff-text)!important}
.staff-ui label{font:500 12px/1.7 system-ui!important;color:var(--staff-muted)}
.staff-ui #gym-metrics{gap:14px!important;margin-top:24px!important;margin-bottom:24px!important}
.staff-ui .stat-card{border:1px solid var(--staff-border)!important;background:linear-gradient(145deg,var(--staff-card-top),var(--staff-panel))!important;border-radius:14px!important;padding:22px 20px!important;min-height:150px!important;text-align:left}
.staff-ui .stat-label{font:600 10px/1.5 system-ui!important;letter-spacing:1px;color:var(--staff-muted)!important;text-transform:uppercase}
.staff-ui .stat-value{font:650 32px/1.3 system-ui!important;color:var(--staff-text)!important;margin:12px 0 8px}
.staff-ui .stat-sub{font:11px/1.6 system-ui!important}
.staff-ui .gym-seat-card .stat-value{color:var(--accent)!important}
.staff-ui #coaching-manager>h3{font-size:22px!important;margin:0 0 8px!important}
.staff-ui #coaching-manager>p{font-size:12px;margin:0 0 23px;max-width:660px}
.staff-ui #coaching-picker{background:none!important;border:none!important;padding:0!important}
.staff-ui #coaching-picker[open]>summary{display:none}
.staff-ui #coaching-search{margin-top:7px;padding-left:16px!important}
.staff-ui #coaching-unassigned{margin:12px 0!important;padding:7px 12px!important;border-radius:7px!important;font-size:11px!important;background:var(--staff-control)!important;border:1px solid var(--staff-border)!important}
.staff-ui #coaching-directory{border:1px solid var(--staff-border);border-radius:11px;overflow:hidden;margin-top:12px}
.staff-ui .coaching-member-choice{display:grid!important;grid-template-columns:42px 1fr auto;column-gap:14px;align-items:center;background:var(--staff-panel)!important;padding:16px!important;border-bottom:1px solid var(--staff-border)!important;min-height:78px;text-align:left}
.staff-ui .coaching-member-choice strong{grid-column:2;font:600 14px/1.4 system-ui!important;color:var(--staff-text)}
.staff-ui .coaching-member-choice>span:not(.staff-avatar){grid-column:2;font:12px/1.6 system-ui!important;color:var(--staff-muted)!important}
.staff-ui .coaching-member-choice small{grid-column:3;grid-row:1/3;padding:6px 10px;background:color-mix(in srgb,var(--accent) 6%,transparent);border:1px solid color-mix(in srgb,var(--accent) 16%,transparent);border-radius:7px;font:11px/1.4 system-ui!important;color:var(--accent)!important;max-width:180px}
.staff-ui .staff-avatar{grid-column:1;grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,var(--staff-panel));color:var(--accent);border-radius:11px;font:600 12px system-ui}
.staff-ui .gym-actions{gap:10px!important;margin-top:18px!important;align-items:center}
.staff-ui #coaching-count{margin-left:auto;font-size:11px}
.staff-ui #coaching-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.staff-ui #coaching-library>div{display:flex;flex-direction:column;gap:12px;padding:20px;background:var(--staff-card-top);border:1px solid var(--staff-border);border-radius:13px;margin:0!important}
.staff-ui #coaching-library strong{font-size:15px}.staff-ui #coaching-library .gym-actions{margin-top:auto!important}
.staff-ui #coaching-manager>details:last-child{padding:20px!important;border:1px solid var(--staff-border)!important;border-radius:12px;margin-top:25px!important}
.staff-ui #member-profile{max-width:1120px;padding-top:28px!important}
.staff-ui .profile-heading{background:var(--staff-panel);border:1px solid var(--staff-border);padding:26px;border-radius:15px;margin-bottom:22px}
.staff-ui .profile-heading>div{display:grid;grid-template-columns:64px 1fr;column-gap:18px;align-items:center}
.staff-ui .staff-profile-avatar{grid-column:1;grid-row:1/4;width:64px;height:64px;background:color-mix(in srgb,var(--accent) 12%,var(--staff-panel));border:1px solid color-mix(in srgb,var(--accent) 32%,transparent);border-radius:18px;display:grid;place-items:center;color:var(--accent);font:600 20px system-ui}
.staff-ui .profile-heading p,.staff-ui .profile-heading h1{grid-column:2;margin:4px 0!important}
.staff-ui .profile-heading h1{font-size:29px!important}
.staff-ui .profile-tabs{background:var(--staff-panel)!important;border:1px solid var(--staff-border)!important;border-radius:11px;padding:6px!important;gap:4px!important}
.staff-ui .profile-tabs button{background:transparent!important;border:0!important;border-radius:7px!important;min-height:40px;padding:9px 18px!important}
.staff-ui .profile-tabs button[aria-selected=true]{background:var(--accent)!important;color:var(--staff-accent-ink,#111)!important}
.staff-ui #profile-workout{background:var(--staff-panel)!important;border-color:var(--staff-border)!important;border-radius:15px;padding:28px!important}
.staff-ui #coaching-delivery{background:color-mix(in srgb,var(--accent) 6%,transparent);border:1px solid color-mix(in srgb,var(--accent) 24%,transparent)!important;padding:12px 15px!important;border-radius:9px;color:var(--accent)!important}
.staff-ui .coaching-day{background:var(--staff-control)!important;padding:15px!important;border-radius:10px!important}
.staff-ui #seat-person,.staff-ui #gym-seats-dialog{border:1px solid var(--staff-border)!important;background:var(--staff-panel)!important;border-radius:18px!important;padding:24px!important}
@media(max-width:600px){
.staff-ui #page-gym{padding:18px 14px!important}.staff-ui .gym-panel{padding:18px!important;border-radius:13px!important}.staff-ui #gym-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.staff-ui .stat-card{padding:17px!important;min-height:135px!important}.staff-ui .stat-value{font-size:29px!important}.staff-ui #gym-workspace-name{font-size:27px!important}
.staff-ui .coaching-member-choice{grid-template-columns:36px 1fr!important;gap:2px 12px;padding:14px!important}.staff-ui .staff-avatar{width:36px;height:36px;grid-row:1/4}.staff-ui .coaching-member-choice small{grid-column:2;grid-row:3;justify-self:start;margin-top:5px;padding:3px 7px;font-size:10px!important}.staff-ui .coaching-member-choice strong{font-size:13px!important}.staff-ui .coaching-member-choice>span:not(.staff-avatar){font-size:11px!important}.staff-ui #coaching-library{grid-template-columns:1fr}.staff-ui #member-profile{padding:20px 14px!important}.staff-ui .profile-heading{padding:18px;gap:8px}.staff-ui .profile-heading>div{grid-template-columns:44px 1fr;gap:12px}.staff-ui .staff-profile-avatar{width:44px;height:44px;border-radius:12px;font-size:14px}.staff-ui .profile-heading h1{font-size:23px!important}.staff-ui .profile-eyebrow{font-size:10px!important}.staff-ui #profile-email{font-size:12px!important}.staff-ui .profile-heading #profile-refresh{font-size:10px!important;padding:8px!important}.staff-ui .profile-tabs button{font-size:11px!important;padding:8px 11px!important}.staff-ui #profile-workout{padding:20px 16px!important}
}
.staff-ui .staff-plan-meta{font:12px/1.6 system-ui;color:var(--staff-muted);margin:0 0 8px}
.staff-ui .profile-heading{display:flex!important;flex-wrap:nowrap!important;align-items:center!important}.staff-ui .profile-heading>div{flex:1;min-width:0}.staff-ui .profile-heading #profile-refresh{flex:0 0 auto;width:auto!important}
@media(max-width:600px){.staff-ui .profile-heading{padding:16px 12px!important}.staff-ui .profile-heading>div{grid-template-columns:36px 1fr;column-gap:10px}.staff-ui .staff-profile-avatar{width:36px;height:36px}.staff-ui .profile-heading h1{font-size:20px!important}.staff-ui .profile-heading .profile-eyebrow{font-size:10px!important;letter-spacing:1px}.staff-ui .profile-heading #profile-refresh{font-size:12px!important;padding:8px!important;min-height:34px}}

.staff-ui .staff-avatar,.staff-ui .staff-profile-avatar{user-select:none}
.staff-ui .coaching-member-choice>*{min-width:0;overflow-wrap:anywhere}
.staff-ui :is(.gym-button,.coaching-member-choice,.profile-tabs button,summary,a,input,select):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.staff-ui .gym-button:hover:not(:disabled){filter:brightness(1.08)}
.staff-ui #coaching-directory{max-height:420px;overflow-y:auto;scrollbar-width:thin}
.staff-ui #coaching-library>.gym-muted{grid-column:1/-1}
.staff-ui #coaching-library .gym-plan-row>a{align-self:flex-start;padding:8px 12px;border:1px solid var(--staff-border);border-radius:7px;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.staff-ui #coaching-library .gym-plan-row strong{overflow-wrap:anywhere}
.staff-ui input[type=file]::file-selector-button{padding:7px 10px;background:var(--staff-control);color:var(--staff-text);border:1px solid var(--staff-border);border-radius:6px;margin-right:10px}
.staff-ui #seat-person{border:0!important;padding:0!important}
.staff-ui #gym-seats-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;box-sizing:border-box}
.staff-ui .gym-remove-person{color:#e65e70!important;border-color:#e65e7055!important}
.staff-ui .gym-seat-person{border-radius:10px;padding:15px;margin:8px 0;background:var(--staff-control);border:1px solid var(--staff-border)}
.staff-ui #profile-workout-summary .gym-actions a{display:inline-flex;align-items:center;justify-content:center}
.staff-ui .profile-tabs{scrollbar-width:thin}.staff-ui .profile-tabs button{cursor:pointer}
@media(min-width:601px) and (max-width:950px){.staff-ui #coaching-library{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.staff-ui .gym-button{min-height:44px}.staff-ui #coaching-count{margin-left:0;flex:1;text-align:center}.staff-ui .profile-heading #profile-refresh{min-height:44px}.staff-ui .profile-tabs button{min-height:44px}.staff-ui #gym-workspace-url{overflow-wrap:anywhere}}

.staff-ui .gym-chart svg text{fill:var(--staff-muted)}

/* Comfortable, consistent controls without changing the workspace layout. */
.staff-ui .gym-button{font-size:13px!important;min-height:44px}
.staff-ui .stat-label{font-size:11px!important}.staff-ui .stat-sub{font-size:12px!important}
.staff-ui #gym-user-email{overflow-wrap:anywhere}
.staff-ui .gym-panel>summary{cursor:pointer;line-height:1.5}
html[data-theme=light] .staff-ui .gym-button.danger{color:#a52438!important}
@media(max-width:600px){
 .staff-ui #gym-signed-in{padding:12px!important}
 .staff-ui #gym-metrics>.stat-card:last-child:nth-child(odd){grid-column:1/-1;min-height:100px!important}
 .staff-ui input:not([type=checkbox]):not([type=color]),.staff-ui select,.staff-ui .tmw-select-trigger{font-size:16px!important}
 .staff-ui .coaching-member-choice strong{font-size:14px!important}
 .staff-ui .coaching-member-choice>span:not(.staff-avatar){font-size:12px!important}
 .staff-ui .profile-heading{flex-wrap:wrap!important}
}

/* The account controls get their own compact surface; the workspace stays open. */
.staff-ui #gym-signed-in{background:transparent!important;padding:0!important;border:0!important}
.staff-ui .gym-account-strip{padding:18px;border:1px solid var(--staff-border);border-radius:14px;background:var(--staff-panel-soft);margin-bottom:24px}
.staff-ui .gym-account-strip>div{min-width:0}
.staff-ui .gym-account-strip label{min-width:0}
.staff-ui .gym-account-strip .tmw-select-trigger{width:100%;max-width:100%}
.staff-ui .gym-empty-chart{display:grid;gap:6px;padding:24px 16px;border:1px dashed var(--staff-border);border-radius:12px;background:var(--staff-panel-soft);text-align:center}
.staff-ui .gym-empty-chart strong{font-size:14px;color:var(--staff-text)}
.staff-ui .gym-empty-chart span{font-size:12px;color:var(--staff-muted);line-height:1.6}
@media(max-width:600px){
 .staff-ui .gym-account-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:16px}
 .staff-ui .gym-account-strip>div{grid-column:1;grid-row:1}
 .staff-ui .gym-account-strip>button{grid-column:2;grid-row:1}
 .staff-ui #gym-switch-wrap{grid-column:1/-1;grid-row:2;width:100%;margin:0}
}

.staff-ui .gym-account-strip .tmw-select-wrap{display:inline-grid;margin:0;font-size:inherit;color:inherit}
.staff-ui .gym-account-strip .tmw-select-chevron{margin:0}
.staff-ui .gym-account-strip .tmw-select-value{margin:0;font-size:inherit;color:inherit}

/* Workspace navigation and roster layout. */
.staff-ui .staff-workspace{display:grid;grid-template-columns:minmax(8.5rem,11rem) minmax(0,1fr);column-gap:clamp(18px,4vw,48px);align-items:start}
.staff-ui .staff-workspace>.gym-workspace-heading,.staff-ui .staff-workspace>#gym-staff,.staff-ui .staff-workspace>#gym-owner{grid-column:2;min-width:0}
.staff-ui .staff-workspace>.gym-workspace-heading{grid-row:1;align-items:center;justify-content:flex-start;margin-bottom:10px}
.staff-ui::before{display:none}
.staff-ui .staff-workspace-nav{grid-column:1;grid-row:1/4;display:grid;align-content:start;gap:4px;padding:5px 16px 18px 0;border:0;border-inline-end:1px solid var(--staff-border);position:sticky;inset:85px auto auto;height:auto;z-index:auto;background:transparent}
.staff-ui .staff-workspace-nav button{border:0;background:none;color:var(--staff-muted);border-radius:7px;padding:9px 11px;text-align:left;font:550 14px/1.4 system-ui;min-height:44px}
.staff-ui .staff-workspace-nav button:hover,.staff-ui .staff-workspace-nav button:focus-visible{background:var(--staff-control);color:var(--staff-text)}
.staff-ui .staff-workspace-nav button{cursor:pointer;transition:background-color .16s ease,color .16s ease}
.staff-ui .staff-workspace-nav button[aria-current=page]{background:color-mix(in srgb,var(--accent) 10%,var(--staff-panel));color:var(--staff-text);box-shadow:inset 3px 0 var(--accent)}
.staff-ui .staff-workspace .staff-view-hidden,.staff-ui #gym-signed-in>.staff-view-hidden{display:none!important}
.staff-ui .staff-view-heading{font-size:23px;margin:12px 0 24px;scroll-margin-top:90px}
.staff-ui .staff-view-heading:focus{outline:none}
.staff-ui .staff-workspace[data-staff-view=members] #coaching-manager>h3,.staff-ui .staff-workspace[data-staff-view=trainers] .staff-trainer-directory>h3{display:none}
.staff-ui .staff-workspace #gym-staff{min-height:320px}
@media(prefers-reduced-motion:reduce){.staff-ui .staff-workspace-nav button{transition:none}}
.staff-ui .staff-workspace-action{margin-inline-start:auto;flex-shrink:0;white-space:nowrap}
.staff-ui .staff-workspace #gym-role{color:var(--staff-muted)!important;background:none;border-color:var(--staff-border);white-space:nowrap}
.staff-ui .staff-workspace #gym-staff-eyebrow{display:none}
.staff-ui .staff-workspace #gym-workspace-url{margin-bottom:0}
.staff-ui .staff-workspace :is(.gym-workspace-heading,#coaching-manager,#coaching-manager>details,.gym-panel){scroll-margin-top:90px}
.staff-ui .staff-workspace #gym-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr))!important;gap:0!important;margin:16px 0 25px!important;padding:12px 0;border-block:1px solid var(--staff-border)}
.staff-ui .staff-workspace #gym-metrics>.stat-card{grid-column:auto!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:6px 14px!important;min-height:0!important}
.staff-ui .staff-workspace #gym-metrics>.stat-card+.stat-card{border-inline-start:1px solid var(--staff-border)!important}
.staff-ui .staff-workspace #gym-metrics>.gym-seat-card:hover{background:var(--staff-control)!important}
.staff-ui .staff-workspace #gym-metrics .stat-value{font-size:25px!important;margin:4px 0!important;color:var(--staff-text)!important}
.staff-ui .staff-workspace #gym-metrics .stat-label{text-transform:none;letter-spacing:0;font-size:12px!important}
.staff-ui .staff-workspace #coaching-manager{border:0!important;border-radius:0!important;padding:8px 0!important;background:transparent!important;box-shadow:none;margin-bottom:20px!important}
.staff-ui .staff-workspace #coaching-manager>p{margin-bottom:12px}
.staff-ui .staff-workspace #coaching-search{max-width:360px}
.staff-ui .staff-workspace #coaching-directory{border:0;border-radius:0;border-block-start:1px solid var(--staff-border)}
.staff-trainer-directory{scroll-margin-top:90px;padding:8px 0;margin-bottom:20px}
.staff-trainer-directory input{max-width:360px}
.staff-trainer-directory [role="status"]:empty{display:none}
.staff-trainer-rows{margin-top:20px;border-block-start:1px solid var(--staff-border)}
.staff-trainer-rows .coaching-member-choice{width:100%;border:0;border-radius:0}
.staff-ui .staff-workspace .coaching-member-choice{background:transparent!important;min-height:60px;padding:10px 24px 10px 4px!important;position:relative;grid-template-columns:36px minmax(0,1fr) minmax(0,.52fr)}
.staff-ui .staff-workspace .coaching-member-choice:hover{background:var(--staff-control)!important}
.staff-ui .staff-workspace .coaching-member-choice::after{content:'›';position:absolute;inset-inline-end:8px;color:var(--staff-muted);font-size:20px}
.staff-ui .staff-workspace .coaching-member-choice small{background:none;border:0;padding:0;color:var(--staff-muted)!important;font-size:12px!important;max-width:none}
.staff-ui .staff-workspace .coaching-member-choice > .staff-member-status{grid-column:2;font-weight:600!important}
.staff-member-status::before{content:'';display:inline-block;width:6px;height:6px;margin-inline-end:6px;border-radius:50%;background:var(--accent)}
.staff-ui .staff-workspace .staff-avatar{width:34px;height:34px;border-radius:50%;background:var(--staff-control);color:var(--staff-text)}
.staff-ui .staff-workspace #coaching-manager>details:last-child{border-radius:9px;margin-top:16px!important}
@media(max-width:720px){
 .staff-ui .staff-workspace{display:block}
 .staff-ui .staff-workspace-nav{display:flex;overflow-x:auto;position:static;border:0;border-block-end:1px solid var(--staff-border);padding:0;margin:10px 0 16px;scrollbar-width:thin}
 .staff-ui .staff-workspace-nav button{white-space:nowrap;font-size:13px;padding-inline:9px}
 .staff-ui .staff-workspace #gym-role{display:none}
 .staff-ui .staff-workspace #gym-metrics>.stat-card{padding:7px 10px!important}
 .staff-ui .staff-workspace .coaching-member-choice{grid-template-columns:34px minmax(0,1fr)!important}
 .staff-ui .staff-workspace .coaching-member-choice small{margin-top:2px}
}

.staff-nav-icon{display:none}

/* Mobile workspace uses compact account controls and a complete section dock. */
@media(max-width:720px){
 .staff-ui #page-gym{padding:18px 16px 32px!important}
 .staff-ui #page-gym>.gym-heading{align-items:center;gap:8px;margin-bottom:18px}
 .staff-ui #page-gym>.gym-heading .section-title{font:650 21px/1.2 system-ui;letter-spacing:-.6px;margin:0}
 .staff-ui #gym-account-label{display:none}
 .staff-ui .gym-heading #gym-message:empty{display:none}
 .staff-ui .gym-heading #gym-message:not(:empty){flex-basis:100%;margin:4px 0}
 .staff-ui .gym-account-strip{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--staff-panel-soft);margin-bottom:24px}
 .staff-ui .gym-account-strip>div{min-width:0;flex:1;order:0}
 .staff-ui #gym-user-name{font-size:13px!important}
 .staff-ui #gym-user-email{font-size:11px!important;margin-top:3px}
 .staff-ui .gym-account-strip>button{min-height:44px;padding:9px 12px!important;font-size:12px!important;order:1;flex-shrink:0}
 .staff-ui #gym-switch-wrap{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;flex-basis:100%;width:100%;padding-top:10px;border-top:1px solid var(--staff-border);font-size:11px!important;margin:0;min-width:0;order:2}
 .staff-ui #gym-platform-admin{order:3}
 .staff-ui #gym-switch-wrap .tmw-select-wrap{display:grid;min-width:0;width:100%}
 .staff-ui #gym-switch-wrap .tmw-select-trigger{min-height:44px;padding:8px 12px!important;font-size:13px!important}
 .staff-ui .staff-workspace>.gym-workspace-heading{gap:12px;margin-bottom:18px;align-items:center}
 .staff-ui .gym-workspace-heading>div{min-width:0;flex:1}
 .staff-ui #gym-workspace-name{font-size:25px!important;line-height:1.2!important;letter-spacing:-.8px;margin:0!important}
 .staff-ui .staff-workspace #gym-workspace-url{font-size:11px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
 .staff-ui .staff-workspace-action{border-radius:12px!important;min-height:44px;padding:10px 14px!important;font-size:12px!important}
 .staff-ui .staff-workspace-nav{display:flex;position:sticky;top:66px;z-index:12;gap:3px;overflow:visible;padding:5px;margin:0 0 24px;border:1px solid var(--staff-border);border-radius:16px;background:color-mix(in srgb,var(--staff-panel) 94%,transparent);backdrop-filter:blur(16px);box-shadow:0 8px 24px #00000012;scroll-margin-top:76px}
 .staff-ui .staff-workspace-nav button{flex:1;min-width:0;min-height:62px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:8px 0;border-radius:11px;font:550 11px/1.2 system-ui;text-align:center;letter-spacing:-.15px}
 .staff-ui .staff-workspace-nav button[aria-current=page]{background:color-mix(in srgb,var(--accent) 10%,var(--staff-panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent);color:var(--staff-text)}
 .staff-ui .staff-workspace-nav button[aria-current=page] .staff-nav-icon{color:var(--accent)}
 .staff-ui .staff-workspace-nav button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
 .staff-ui .staff-nav-icon{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
 .staff-ui .staff-view-heading{font-size:24px;letter-spacing:-.7px;margin:4px 0 18px}
 .staff-ui .staff-workspace #coaching-manager{padding:0!important}
 .staff-ui .staff-workspace #coaching-manager>p{font-size:12px;margin-bottom:18px;line-height:1.6}
 .staff-ui .staff-trainer-directory{padding:0}
 .staff-ui #staff-trainer-usage{font-size:12px!important;margin:0 0 18px}
 .staff-ui .staff-workspace #coaching-search,.staff-ui .staff-trainer-directory input{width:100%;max-width:none;border-radius:12px!important;min-height:48px}
 .staff-ui .staff-workspace #coaching-directory,.staff-ui .staff-trainer-rows{background:var(--staff-panel-soft);border:1px solid var(--staff-border);border-radius:16px;overflow:hidden;margin-top:18px}
 .staff-ui .staff-workspace .coaching-member-choice{padding:16px 30px 16px 14px!important;min-height:84px;grid-template-columns:40px minmax(0,1fr)!important;column-gap:12px;row-gap:2px}
 .staff-ui .staff-workspace .coaching-member-choice:last-child{border-bottom:0!important}
 .staff-ui .staff-workspace .coaching-member-choice::after{inset-inline-end:14px;font-size:22px}
 .staff-ui .staff-workspace .staff-avatar{width:40px;height:40px;border-radius:13px;background:color-mix(in srgb,var(--accent) 8%,var(--staff-control));color:var(--staff-text);grid-row:1/5}
 .staff-ui .staff-workspace .coaching-member-choice strong{font-size:14px!important;letter-spacing:-.2px}
 .staff-ui .staff-workspace .coaching-member-choice>.staff-member-status{font-size:11px!important}
 .staff-ui .staff-workspace #gym-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;border:0;padding:0;margin:0 0 20px!important}
 .staff-ui .staff-workspace #gym-metrics>.stat-card{border:1px solid var(--staff-border)!important;border-radius:14px!important;background:linear-gradient(145deg,var(--staff-card-top),var(--staff-panel))!important;padding:16px!important;min-height:124px!important}
 .staff-ui .staff-workspace #gym-metrics>.stat-card:last-child:nth-child(odd){grid-column:1/-1!important;min-height:110px!important}
 .staff-ui .staff-workspace #gym-metrics .stat-value{font-size:30px!important;letter-spacing:-1px;margin:8px 0!important}
 .staff-ui .staff-workspace #gym-metrics .stat-sub{font-size:11px!important;line-height:1.5}
 .staff-ui .staff-workspace .gym-panel{border-radius:16px!important;padding:20px!important}
 .staff-ui #gym-staff .gym-panel>summary,.staff-ui #gym-owner .gym-panel>summary{font-size:14px}
 .staff-ui .staff-workspace #coaching-library{gap:12px;margin:18px 0}
 .staff-ui .staff-workspace #coaching-library>div{padding:20px;border-radius:15px;background:linear-gradient(145deg,var(--staff-card-top),var(--staff-panel-soft))}
}
@media(max-width:350px){
 .staff-ui #page-gym{padding-inline:12px!important}
 .staff-ui .staff-workspace-nav button{font-size:10px;letter-spacing:-.25px}
 .staff-ui #gym-workspace-name{font-size:22px!important}
 .staff-ui .staff-workspace-action{padding-inline:11px!important}
}
