/* Dedicated coach workspace */
body.coaching-open {
    --coach-bg: #f4f5f1;
    --coach-surface: #ffffff;
    --coach-ink: #17251f;
    --coach-muted: #68766f;
    --coach-line: #dce2dc;
    --coach-soft: #eef1ec;
    --coach-accent: #1d684b;
    --coach-accent-strong: #125139;
    --coach-warm: #e8b86d;
    background: var(--coach-bg);
}
[data-theme="dark"] body.coaching-open,
:root[data-theme="dark"] body.coaching-open {
    --coach-bg: #101713;
    --coach-surface: #18221d;
    --coach-ink: #ebf1ec;
    --coach-muted: #a5b1aa;
    --coach-line: #34423a;
    --coach-soft: #233029;
    --coach-accent: #9ed9ae;
    --coach-accent-strong: #b8e8c3;
}
body.coaching-open .container { max-width: none; width: 100%; min-height: 100dvh; padding: 0; margin: 0; }
body.coaching-open .container > .header,
body.coaching-open .container > .skip-link { display: none; }
body.coaching-open .community-view { padding: 0; min-height: 100dvh; color: var(--coach-ink); }
.coach-app { min-height: 100dvh; display: grid; grid-template-columns: 224px minmax(0,1fr); background: var(--coach-bg); color: var(--coach-ink); }
.coach-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 22px 14px 18px; background: #15251f; color: #edf5f0; border-right: 1px solid #2c3e35; z-index: 4; }
.coach-brand { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 54px; padding: 0 8px 18px; border-bottom: 1px solid #ffffff1a; font-size: 14px; font-weight: 750; letter-spacing: -.2px; }
.coach-brand-mark { grid-row: 1/3; width: 34px; height: 34px; display: grid; place-items: center; background: #b7e7c2; color: #173a28; border-radius: 9px; font: 800 16px/1 ui-monospace,monospace; }
.coach-brand small { color: #91a69a; font: 8px/1.2 ui-monospace,monospace; letter-spacing: 1.8px; }
.coach-nav { display: grid; gap: 3px; margin-top: 18px; }
.coach-nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 11px; color: #9fb2a7; background: transparent; border: 0; border-radius: 7px; text-align: left; font-size: 12px; }
.coach-nav-item:hover { color: #fff; background: #ffffff0d; }
.coach-nav-item.is-active { color: #fff; background: #2b4337; box-shadow: inset 3px 0 #a9deb4; }
.coach-nav-icon { width: 21px; text-align: center; color: #8ec5a0; font: 15px/1 ui-monospace,monospace; }
.coach-plan { margin-top: auto; padding: 14px; border: 1px solid #ffffff1a; border-radius: 9px; background: #ffffff08; }
.coach-plan-badge { display: inline-block; padding: 3px 6px; margin-bottom: 10px; border-radius: 4px; background: #a9deb4; color: #173a28; font: 700 8px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-plan strong { display: block; font-size: 13px; }
.coach-plan p { margin: 4px 0 10px; color: #94aa9e; font-size: 10px; }
.coach-plan .coach-text-button { color: #b7e7c2; }
.coach-exit { margin-top: 12px; padding: 10px 8px; color: #91a69a; background: transparent; border: 0; text-align: left; font-size: 10px; }
.coach-exit:hover { color: #fff; }
.coach-workspace { min-width: 0; height: 100dvh; overflow: auto; }
.coach-topbar { position: sticky; top: 0; z-index: 3; min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px,4vw,58px); background: color-mix(in srgb,var(--coach-bg) 92%,transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--coach-line); }
.coach-topbar-title { display: flex; align-items: baseline; gap: 10px; }
.coach-topbar-title p { margin: 0; color: var(--coach-muted); font: 8px/1 ui-monospace,monospace; letter-spacing: 1.5px; }
.coach-topbar-title span { font-size: 12px; font-weight: 700; }
.coach-topbar-actions { display: flex; align-items: center; gap: 8px; }
.coach-icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: transparent; color: var(--coach-muted); border: 1px solid var(--coach-line); border-radius: 8px; }
.coach-icon-button:hover { background: var(--coach-soft); color: var(--coach-ink); }
.coach-user { position: relative; width: 38px; height: 38px; display: grid; place-items: center; margin-left: 4px; border: 0; border-radius: 50%; background: #263f33; color: #fff; font: 700 10px/1 ui-monospace,monospace; }
.coach-online { position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border: 2px solid var(--coach-bg); border-radius: 50%; background: #67b681; }
.coach-content { width: min(1320px,100%); margin: 0 auto; padding: 40px clamp(22px,4vw,58px) 70px; outline: none; }
.coach-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.coach-kicker { margin: 0 0 9px; color: var(--coach-accent); font: 700 9px/1.3 ui-monospace,monospace; letter-spacing: 1.5px; }
.coach-page-head h1 { margin: 0; font-size: clamp(29px,3.2vw,43px); line-height: 1.08; font-weight: 590; letter-spacing: -1.6px; color: var(--coach-ink); }
.coach-page-copy { max-width: 580px; margin: 10px 0 0; color: var(--coach-muted); font-size: 13px; }
.coach-page-actions { display: flex; gap: 8px; flex-shrink: 0; }
.coach-button { min-height: 42px; padding: 10px 15px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-surface); color: var(--coach-ink); font-size: 11px; font-weight: 650; box-shadow: none; }
.coach-button:hover { transform: none; box-shadow: none; background: var(--coach-soft); }
.coach-button-primary { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
:root[data-theme="dark"] .coach-button-primary { color: #11251a; }
.coach-button-primary:hover { border-color: var(--coach-accent-strong); background: var(--coach-accent-strong); color: #fff; }
:root[data-theme="dark"] .coach-button-primary:hover { color: #11251a; }
.coach-button-secondary { background: transparent; }
.coach-button-quiet { min-height: 36px; padding: 8px 12px; background: transparent; }
.coach-button-small { min-height: 33px; padding: 7px 11px; font-size: 10px; }
.coach-button-block { width: 100%; }
.coach-button-dark { border-color: #223c31; background: #183528; color: #fff; }
.coach-button-danger { color: #a6423d; border-color: #d4a4a1; background: transparent; }
.coach-button:disabled { opacity: .45; cursor: not-allowed; background: var(--coach-soft); color: var(--coach-muted); border-color: var(--coach-line); }
.coach-text-button { padding: 4px 0; border: 0; background: transparent; color: var(--coach-accent); font-size: 10px; font-weight: 650; }
.coach-text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.coach-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.coach-stat-card { min-height: 126px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-stat-card > span { color: var(--coach-muted); font: 8px/1.3 ui-monospace,monospace; letter-spacing: 1px; }
.coach-stat-card > strong { margin: 12px 0 auto; font-size: 29px; line-height: 1; font-weight: 580; letter-spacing: -1px; }
.coach-stat-card small { color: var(--coach-muted); font-size: 9px; }
.coach-stat-good { color: #39805a!important; }
.coach-stat-warn { color: #a56c25!important; }
.coach-overview-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(290px,.8fr); gap: 12px; margin-bottom: 12px; }
.coach-panel { border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); overflow: hidden; }
.coach-panel-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 19px; border-bottom: 1px solid var(--coach-line); }
.coach-panel-head > div { font-size: 12px; font-weight: 700; }
.coach-panel-head > span,.coach-panel-head > small { color: var(--coach-muted); font-size: 9px; }
.coach-count-badge { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f6ead8; color: #8b5d22!important; }
.coach-agenda-row { min-height: 74px; display: grid; grid-template-columns: 60px 34px minmax(120px,1fr) auto auto; gap: 12px; align-items: center; padding: 11px 17px; border-bottom: 1px solid var(--coach-line); }
.coach-agenda-row:last-child { border-bottom: 0; }
.coach-agenda-time { display: grid; }
.coach-agenda-time strong { font-size: 11px; }
.coach-agenda-time small,.coach-agenda-info span { color: var(--coach-muted); font-size: 9px; }
.coach-agenda-info { min-width: 0; display: grid; }
.coach-agenda-info strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.coach-session-type { color: var(--coach-muted); font-size: 9px; }
.coach-avatar { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: color-mix(in srgb,var(--avatar-color) 45%,var(--coach-surface)); color: color-mix(in srgb,var(--avatar-color) 60%,#17251f); font: 750 10px/1 ui-monospace,monospace; }
.coach-avatar.small { width: 34px; height: 34px; font-size: 8px; }
.coach-avatar.large { width: 72px; height: 72px; font-size: 15px; }
.coach-attention-row { width: 100%; min-height: 74px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--coach-line); background: transparent; color: var(--coach-ink); text-align: left; }
.coach-attention-row:hover { background: var(--coach-soft); }
.coach-attention-row > div { min-width: 0; display: grid; }
.coach-attention-row strong { font-size: 11px; }
.coach-attention-row span { color: var(--coach-muted); font-size: 9px; }
.coach-attention-row > small { color: var(--coach-accent); font-size: 8px; white-space: nowrap; }
.coach-client-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: minmax(190px,1.25fr) minmax(140px,1fr) minmax(130px,.8fr) 88px 15px; gap: 20px; align-items: center; padding: 12px 19px; border: 0; border-bottom: 1px solid var(--coach-line); background: transparent; color: var(--coach-ink); text-align: left; }
.coach-client-row:last-child { border-bottom: 0; }
.coach-client-row:hover { background: var(--coach-soft); }
.coach-client-person { min-width: 0; display: flex; align-items: center; gap: 11px; }
.coach-client-person > div,.coach-client-program,.coach-adherence { min-width: 0; display: grid; }
.coach-client-person strong { font-size: 11px; }
.coach-client-person small,.coach-client-program small,.coach-adherence small { color: var(--coach-muted); font-size: 8px; }
.coach-client-program span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.coach-adherence > div { display: flex; justify-content: space-between; }
.coach-adherence strong { font-size: 9px; }
.coach-progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: var(--coach-soft); }
.coach-progress i { display: block; height: 100%; background: var(--coach-accent); }
.coach-last-seen { color: var(--coach-muted); font-size: 9px; }
.coach-chevron { color: var(--coach-muted); font-size: 18px; }
.coach-list-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.coach-search,.coach-select,.coach-field input,.coach-field select,.coach-field textarea { min-height: 43px; padding: 10px 12px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-surface); color: var(--coach-ink); font-size: 11px; }
.coach-search { width: min(360px,100%); }
.coach-list-count { margin-left: auto; color: var(--coach-muted); font-size: 9px; }
.coach-client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.coach-client-card { min-width: 0; padding: 18px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-client-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.coach-client-card-top > div { position: relative; }
.coach-status-dot { position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border: 2px solid var(--coach-surface); border-radius: 50%; background: #63aa78; }
.coach-status-dot.attention { background: #d49243; }
.coach-status-dot.paused { background: #9ea8a2; }
.coach-client-card-name { margin: 15px 0 18px; }
.coach-client-card-name h2 { margin: 0 0 3px; font-size: 16px; font-weight: 650; }
.coach-client-card-name span { color: var(--coach-muted); font-size: 9px; }
.coach-client-card-goal { min-height: 64px; display: grid; gap: 5px; padding: 12px; border-radius: 6px; background: var(--coach-soft); }
.coach-client-card-goal small { color: var(--coach-muted); font: 8px/1.2 ui-monospace,monospace; letter-spacing: .7px; }
.coach-client-card-goal strong { font-size: 11px; }
.coach-client-card-bottom { display: flex; justify-content: space-between; margin: 14px 0; color: var(--coach-muted); font-size: 9px; }
.coach-back { margin: -8px 0 24px; padding: 8px 0; border: 0; background: transparent; color: var(--coach-muted); font-size: 10px; }
.coach-client-hero { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 25px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-client-hero-info { flex: 1; display: flex; align-items: center; gap: 17px; }
.coach-client-hero h1 { margin: 0; font-size: 29px; line-height: 1.1; font-weight: 600; }
.coach-client-hero-info p:last-child { margin: 6px 0 0; color: var(--coach-muted); font-size: 10px; }
.coach-client-mini-stats { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 12px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-client-mini-stats > div { min-height: 84px; display: grid; align-content: center; gap: 7px; padding: 14px 18px; border-right: 1px solid var(--coach-line); }
.coach-client-mini-stats > div:last-child { border: 0; }
.coach-client-mini-stats small { color: var(--coach-muted); font: 8px/1.2 ui-monospace,monospace; letter-spacing: .7px; }
.coach-client-mini-stats strong { font-size: 11px; }
.coach-client-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-plan-row { min-height: 56px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; padding: 10px 18px; border-bottom: 1px solid var(--coach-line); }
.coach-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 50%; font-size: 8px; }
.coach-check.done { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
.coach-plan-row strong { font-size: 10px; }
.coach-plan-row small { color: var(--coach-muted); font-size: 9px; }
.coach-notes { width: calc(100% - 36px); min-height: 146px; margin: 18px; padding: 12px; resize: vertical; border: 1px solid var(--coach-line); border-radius: 6px; background: var(--coach-bg); color: var(--coach-ink); font: inherit; font-size: 11px; }
.coach-notes + .coach-button { margin: 0 18px 18px; }
.coach-week { display: grid; grid-template-columns: repeat(7,minmax(120px,1fr)); gap: 7px; overflow-x: auto; padding-bottom: 8px; }
.coach-day { min-height: 440px; padding: 8px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-surface); }
.coach-day.is-today { border-color: var(--coach-accent); }
.coach-day-head { height: 50px; display: grid; align-content: center; gap: 2px; padding: 0 5px 8px; border-bottom: 1px solid var(--coach-line); }
.coach-day-head span { color: var(--coach-muted); font-size: 8px; text-transform: uppercase; }
.coach-day-head strong { font-size: 17px; }
.coach-calendar-event { width: 100%; display: grid; gap: 5px; margin-top: 8px; padding: 10px; border: 0; border-left: 3px solid var(--coach-accent); border-radius: 4px; background: var(--coach-soft); color: var(--coach-ink); text-align: left; }
.coach-calendar-event time { color: var(--coach-accent); font-size: 8px; font-weight: 700; }
.coach-calendar-event strong { font-size: 10px; }
.coach-calendar-event span,.coach-calendar-event small { color: var(--coach-muted); font-size: 8px; }
.coach-day-empty { display: block; margin: 18px 5px; color: var(--coach-muted); font-size: 9px; }
.coach-calendar-note { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 19px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-surface); }
.coach-calendar-note strong { font-size: 11px; }
.coach-calendar-note span { flex: 1; color: var(--coach-muted); font-size: 10px; }
.coach-program-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 26px; border-radius: 10px; background: #cfe8d3; color: #173427; }
.coach-program-callout h2 { margin: 0; font-size: 23px; font-weight: 600; }
.coach-program-callout p:last-child { max-width: 590px; margin: 8px 0 0; color: #486455; font-size: 11px; }
.coach-program-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.coach-program-card { position: relative; display: grid; grid-template-columns: 46px 1fr 38px; gap: 13px; padding: 18px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-program-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: var(--coach-soft); color: var(--coach-accent); font: 750 10px/1 ui-monospace,monospace; }
.coach-program-card .coach-icon-button { grid-column: 3; grid-row: 1; }
.coach-program-card > div:nth-child(3) { grid-column: 1/4; }
.coach-program-card h2 { margin: 3px 0; font-size: 15px; }
.coach-program-card p,.coach-program-card > small { color: var(--coach-muted); font-size: 9px; }
.coach-program-data { grid-column: 1/4; display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--coach-line); border-bottom: 1px solid var(--coach-line); color: var(--coach-muted); font-size: 8px; }
.coach-program-card > small,.coach-program-card > .coach-button { grid-column: 1/4; }
.coach-program-new { min-height: 245px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1px dashed var(--coach-line); border-radius: 9px; background: transparent; color: var(--coach-muted); }
.coach-program-new > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 50%; font-size: 20px; }
.coach-program-new strong { color: var(--coach-ink); font-size: 11px; }
.coach-program-new small { font-size: 9px; }
.coach-form-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.72fr); gap: 14px; margin-bottom: 14px; }
.coach-form-studio { min-width: 0; padding: 16px; border: 1px solid var(--coach-line); border-radius: 9px; background: #16221c; }
.coach-video-drop { min-height: 400px; display: grid; place-items: center; border: 1px dashed #6f8177; border-radius: 7px; color: #dfe8e1; cursor: pointer; background: radial-gradient(circle at 50% 40%,#283a31,#17231d 64%); transition: border-color .15s,background .15s; }
.coach-video-drop:hover,.coach-video-drop.is-dragging { border-color: #a9deb4; background: #203229; }
.coach-upload-copy { display: grid; justify-items: center; gap: 9px; text-align: center; }
.coach-upload-copy strong { font-size: 15px; }
.coach-upload-copy small { color: #96a89e; font-size: 9px; }
.coach-upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #63786b; border-radius: 50%; font-size: 21px; }
.coach-video-preview { position: relative; min-height: 400px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: #080b09; }
.coach-video-preview video { display: block; width: 100%; max-height: 520px; }
.coach-video-badge { position: absolute; top: 12px; left: 12px; padding: 5px 7px; border-radius: 4px; background: #0009; color: #fff; font: 700 8px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-analysis-controls { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(130px,1fr) auto; gap: 8px; margin-top: 12px; }
.coach-analysis-controls .coach-search { width: 100%; }
.coach-form-explain { padding: 28px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-form-explain > h2 { margin: 0 0 25px; font-size: 25px; font-weight: 600; letter-spacing: -.7px; }
.coach-form-feature { display: grid; grid-template-columns: 25px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--coach-line); }
.coach-form-feature > span { color: var(--coach-accent); font: 9px/1.5 ui-monospace,monospace; }
.coach-form-feature strong { font-size: 11px; }
.coach-form-feature p { margin: 5px 0 0; color: var(--coach-muted); font-size: 10px; line-height: 1.6; }
.coach-privacy-note { display: flex; gap: 9px; margin-top: 18px; padding: 12px; border-radius: 6px; background: var(--coach-soft); color: var(--coach-muted); }
.coach-privacy-note p { margin: 0; font-size: 8px; line-height: 1.55; }
.coach-analysis-row { width: 100%; min-height: 64px; display: grid; grid-template-columns: 34px minmax(0,1fr) 75px 45px; gap: 11px; align-items: center; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--coach-line); background: transparent; color: var(--coach-ink); text-align: left; }
.coach-analysis-row:hover { background: var(--coach-soft); }
.coach-analysis-row > div { display: grid; }
.coach-analysis-row strong { font-size: 10px; }
.coach-analysis-row span,.coach-analysis-row time { color: var(--coach-muted); font-size: 8px; }
.coach-inbox { min-height: 570px; display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--coach-line); border-radius: 9px; overflow: hidden; background: var(--coach-surface); }
.coach-conversations { border-right: 1px solid var(--coach-line); }
.coach-conversation { width: 100%; min-height: 70px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--coach-line); background: transparent; color: var(--coach-ink); text-align: left; }
.coach-conversation.is-active { background: var(--coach-soft); }
.coach-conversation > div { min-width: 0; display: grid; }
.coach-conversation strong { font-size: 10px; }
.coach-conversation span { overflow: hidden; color: var(--coach-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coach-conversation time { color: var(--coach-muted); font-size: 7px; }
.coach-thread { display: grid; grid-template-rows: 60px 1fr auto; min-width: 0; }
.coach-thread-head { display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--coach-line); }
.coach-thread-head > div { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.coach-messages { display: flex; flex-direction: column; gap: 10px; padding: 25px; overflow: auto; }
.coach-message { max-width: 70%; margin: 0; padding: 11px 13px; border-radius: 10px; font-size: 10px; line-height: 1.55; }
.coach-message.client { align-self: flex-start; background: var(--coach-soft); }
.coach-message.coach { align-self: flex-end; background: var(--coach-accent); color: #fff; }
.coach-composer { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--coach-line); }
.coach-composer input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-bg); color: var(--coach-ink); font: inherit; font-size: 10px; }
.coach-room { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); min-height: 510px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-room-stage { position: relative; display: grid; place-items: center; min-height: 510px; overflow: hidden; background: #101612; }
.coach-camera { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.coach-camera-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #e6ece8; text-align: center; }
.coach-camera-placeholder > span { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: #294237; font: 700 17px/1 ui-monospace,monospace; }
.coach-camera-placeholder strong { font-size: 14px; }
.coach-camera-placeholder p { margin: 0; color: #91a49a; font-size: 9px; }
.coach-live-badge { position: absolute; top: 15px; left: 15px; padding: 6px 8px; border-radius: 4px; background: #c74842; color: #fff; font: 700 8px/1 ui-monospace,monospace; letter-spacing: .8px; }
.coach-room-side { padding: 27px; }
.coach-room-side h2 { margin: 0 0 24px; font-size: 22px; line-height: 1.2; }
.coach-room-client { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid var(--coach-line); border-bottom: 1px solid var(--coach-line); }
.coach-room-client > div { display: grid; }
.coach-room-client strong { font-size: 11px; }
.coach-room-client span { color: var(--coach-muted); font-size: 8px; }
.coach-room-checks { margin: 20px 0; }
.coach-room-checks > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--coach-muted); font-size: 9px; }
.coach-room-checks strong { color: var(--coach-ink); font-size: 8px; }
.coach-room-side > .coach-button { margin-top: 8px; }
.coach-room-features { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 12px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-surface); }
.coach-room-features > div { padding: 17px; border-right: 1px solid var(--coach-line); }
.coach-room-features > div:last-child { border: 0; }
.coach-room-features small { color: var(--coach-accent); font: 700 8px/1 ui-monospace,monospace; letter-spacing: .8px; }
.coach-room-features p { margin: 8px 0 0; color: var(--coach-muted); font-size: 9px; }
.coach-empty { grid-column: 1/-1; display: grid; justify-items: center; gap: 7px; padding: 44px 20px; color: var(--coach-muted); text-align: center; }
.coach-empty-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 50%; }
.coach-empty h3 { margin: 0; color: var(--coach-ink); font-size: 13px; }
.coach-empty p { max-width: 320px; margin: 0; font-size: 10px; }
.coach-dialog { width: min(510px,calc(100% - 28px)); margin: auto; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--coach-ink,var(--ink)); box-shadow: 0 24px 80px #0006; }
.coach-dialog::backdrop { background: #102018a8; backdrop-filter: blur(3px); }
.coach-dialog-card { padding: 23px; background: var(--coach-surface,var(--paper)); border: 1px solid var(--coach-line,var(--line)); border-radius: 11px; }
.coach-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.coach-dialog-head h2 { margin: 0; font-size: 24px; font-weight: 600; }
.coach-dialog-copy { margin: 9px 0 20px; color: var(--coach-muted,var(--muted)); font-size: 10px; line-height: 1.6; }
.coach-dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-field { display: grid; gap: 6px; color: var(--coach-muted,var(--muted)); font-size: 9px; }
.coach-field:first-child:nth-last-child(3),.coach-field:first-child:nth-last-child(3) ~ .coach-field { grid-column: 1/-1; }
.coach-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--coach-line,var(--line)); }
.coach-toast { position: fixed; left: 50%; bottom: 22px; z-index: 10020; padding: 11px 15px; border-radius: 7px; background: #173126; color: #fff; font-size: 10px; box-shadow: 0 8px 30px #0004; opacity: 0; transform: translate(-50%,15px); pointer-events: none; transition: opacity .18s,transform .18s; }
.coach-toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 1100px) {
    .coach-app { grid-template-columns: 190px minmax(0,1fr); }
    .coach-stats { grid-template-columns: repeat(2,1fr); }
    .coach-client-grid,.coach-program-grid { grid-template-columns: repeat(2,1fr); }
    .coach-client-row { grid-template-columns: minmax(180px,1.2fr) minmax(120px,1fr) minmax(110px,.8fr) 15px; }
    .coach-client-row .coach-last-seen { display: none; }
    .coach-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    body.coaching-open .community-view { min-height: auto; }
    .coach-app { display: block; }
    .coach-sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 8px 12px; display: grid; grid-template-columns: 43px 1fr; align-items: center; }
    .coach-brand { min-height: 42px; padding: 0; border: 0; display: block; }
    .coach-brand > div,.coach-brand small { display: none; }
    .coach-brand-mark { width: 36px; height: 36px; }
    .coach-nav { display: flex; gap: 3px; margin: 0; overflow-x: auto; scrollbar-width: none; }
    .coach-nav-item { flex: 0 0 auto; min-height: 38px; padding: 0 10px; }
    .coach-nav-item span:last-child { display: none; }
    .coach-nav-icon { width: 18px; }
    .coach-plan,.coach-exit { display: none; }
    .coach-workspace { height: auto; overflow: visible; }
    .coach-topbar { min-height: 59px; padding: 0 17px; }
    .coach-content { padding: 28px 17px 60px; }
    .coach-page-head { align-items: flex-start; flex-direction: column; margin-bottom: 23px; }
    .coach-page-actions { width: 100%; }
    .coach-page-actions .coach-button { flex: 1; }
    .coach-stats { gap: 8px; }
    .coach-stat-card { min-height: 110px; padding: 15px; }
    .coach-agenda-row { grid-template-columns: 52px 34px minmax(90px,1fr) auto; }
    .coach-session-type { display: none; }
    .coach-client-grid,.coach-program-grid { grid-template-columns: 1fr; }
    .coach-client-row { grid-template-columns: minmax(170px,1fr) 100px 15px; gap: 10px; }
    .coach-client-row .coach-client-program,.coach-client-row .coach-last-seen { display: none; }
    .coach-client-hero { align-items: flex-start; flex-wrap: wrap; }
    .coach-client-hero-info { flex-basis: 100%; }
    .coach-client-mini-stats { grid-template-columns: 1fr 1fr; }
    .coach-client-mini-stats > div:nth-child(2) { border-right: 0; }
    .coach-client-mini-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--coach-line); }
    .coach-client-detail-grid,.coach-form-layout { grid-template-columns: 1fr; }
    .coach-analysis-controls { grid-template-columns: 1fr; }
    .coach-video-drop,.coach-video-preview { min-height: 300px; }
    .coach-program-callout { align-items: flex-start; flex-direction: column; }
    .coach-inbox { grid-template-columns: 82px 1fr; }
    .coach-conversation { display: grid; grid-template-columns: 1fr; justify-items: center; }
    .coach-conversation > div,.coach-conversation time { display: none; }
    .coach-room { grid-template-columns: 1fr; }
    .coach-room-stage { min-height: 340px; }
    .coach-room-features { grid-template-columns: 1fr; }
    .coach-room-features > div { border-right: 0; border-bottom: 1px solid var(--coach-line); }
}
@media (max-width: 500px) {
    .coach-topbar-title p,.coach-search-button { display: none; }
    .coach-stats { grid-template-columns: 1fr 1fr; }
    .coach-stat-card { min-height: 102px; }
    .coach-stat-card > strong { font-size: 25px; }
    .coach-agenda-row { grid-template-columns: 48px minmax(100px,1fr) auto; }
    .coach-agenda-row .coach-avatar { display: none; }
    .coach-client-row { grid-template-columns: 1fr 15px; }
    .coach-client-row .coach-adherence { display: none; }
    .coach-list-toolbar { flex-wrap: wrap; }
    .coach-list-toolbar .coach-search { flex-basis: 100%; }
    .coach-list-count { margin-left: 0; }
    .coach-client-hero .coach-button { flex: 1; }
    .coach-client-mini-stats { grid-template-columns: 1fr; }
    .coach-client-mini-stats > div { border-right: 0; border-bottom: 1px solid var(--coach-line); }
    .coach-calendar-note { align-items: flex-start; flex-direction: column; }
    .coach-dialog-fields { grid-template-columns: 1fr; }
    .coach-field { grid-column: 1!important; }
    .coach-form-explain { padding: 21px; }
    .coach-video-drop,.coach-video-preview { min-height: 240px; }
    .coach-inbox { grid-template-columns: 64px 1fr; }
    .coach-messages { padding: 15px; }
    .coach-message { max-width: 88%; }
}
/* Coaching access and shared live studio */
.coach-access { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 clamp(24px,5vw,72px); overflow: hidden; background: radial-gradient(circle at 85% 20%,#d9e8d9 0,transparent 34%),var(--coach-bg); color: var(--coach-ink); }
:root[data-theme="dark"] .coach-access { background: radial-gradient(circle at 85% 20%,#1d3828 0,transparent 35%),var(--coach-bg); }
.coach-access-mast { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--coach-line); }
.coach-access-mast > span { color: var(--coach-muted); font: 8px/1 ui-monospace,monospace; letter-spacing: 2px; }
.coach-access-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.coach-access-brand strong { font-size: 13px; letter-spacing: -.2px; }
.coach-access-brand small { color: var(--coach-muted); font: 8px/1 ui-monospace,monospace; letter-spacing: 1.2px; }
.coach-access-hero { width: min(1260px,100%); align-self: center; justify-self: center; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(310px,.62fr); gap: clamp(30px,6vw,80px); padding: 55px 0; }
.coach-access-intro > h1 { max-width: 760px; margin: 0; font-size: clamp(48px,7vw,92px); font-weight: 520; line-height: .94; letter-spacing: clamp(-4px,-.06em,-2px); }
.coach-access-intro > p:not(.coach-kicker) { max-width: 640px; margin: 24px 0 36px; color: var(--coach-muted); font-size: 15px; line-height: 1.7; }
.coach-access-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-access-card { min-height: 230px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--coach-line); border-radius: 10px; background: color-mix(in srgb,var(--coach-surface) 92%,transparent); }
.coach-access-card.primary { border-color: color-mix(in srgb,var(--coach-accent) 45%,var(--coach-line)); }
.coach-access-number { color: var(--coach-accent); font: 700 9px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-access-card h2,.coach-guest-entry h2 { margin: 21px 0 9px; font-size: 21px; font-weight: 620; letter-spacing: -.6px; }
.coach-access-card p { margin: 0 0 25px; color: var(--coach-muted); font-size: 11px; line-height: 1.65; }
.coach-access-card .coach-button { margin-top: auto; }
.coach-guest-entry { align-self: end; padding: 28px; border-radius: 12px; background: #172820; color: #f0f6f1; box-shadow: 0 30px 80px #11251a1f; }
.coach-guest-entry .coach-access-number { color: #a9deb4; }
.coach-guest-entry h2 { margin-top: 25px; font-size: 28px; }
.coach-guest-entry > p { margin: 0 0 24px; color: #a8bab0; font-size: 11px; line-height: 1.7; }
.coach-guest-entry > small { display: block; margin-top: 12px; color: #81958a; font-size: 8px; }
.coach-guest-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.coach-guest-form input { min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff26; border-radius: 7px; background: #ffffff0c; color: #fff; font: inherit; font-size: 10px; }
.coach-guest-form input::placeholder { color: #879b90; }
.coach-access-trust { display: flex; justify-content: center; gap: 40px; min-height: 70px; align-items: center; border-top: 1px solid var(--coach-line); color: var(--coach-muted); font: 8px/1 ui-monospace,monospace; letter-spacing: 1.5px; }
.coach-role-page { min-height: 100dvh; background: var(--coach-bg); color: var(--coach-ink); }
.coach-role-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 clamp(22px,4vw,58px); border-bottom: 1px solid var(--coach-line); background: var(--coach-surface); }
.coach-role-topbar .coach-access-brand { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; }
.coach-role-topbar .coach-brand-mark { grid-row: 1/3; }
.coach-role-content { width: min(1200px,100%); margin: 0 auto; padding: 48px clamp(22px,4vw,58px) 70px; }
.coach-legacy-client-next { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 14px; padding: clamp(26px,5vw,52px); border-radius: 12px; background: #17352a; color: #fff; }
.coach-legacy-client-next h2 { margin: 0; font-size: clamp(25px,4vw,42px); font-weight: 560; letter-spacing: -1px; }
.coach-legacy-client-next p:last-child { margin: 9px 0 0; color: #b5c8bd; font-size: 11px; }
.coach-legacy-client-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.coach-legacy-client-card { min-height: 160px; padding: 22px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-legacy-client-card small { color: var(--coach-accent); font: 700 8px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-legacy-client-card h2 { margin: 35px 0 7px; font-size: 15px; }
.coach-legacy-client-card p { margin: 0; color: var(--coach-muted); font-size: 9px; }
.coach-room-code { color: var(--coach-muted); font: 8px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-role-session { width: min(1500px,100%); padding-top: 32px; }
.coach-live-studio { border: 1px solid var(--coach-line); border-radius: 10px; overflow: hidden; background: var(--coach-surface); }
.coach-live-studio-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 13px 9px 18px; border-bottom: 1px solid var(--coach-line); }
.coach-live-studio-bar > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.coach-live-studio-bar strong { font-size: 11px; }
.coach-live-studio-bar span { color: var(--coach-muted); font-size: 9px; }
.coach-live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #d95049; box-shadow: 0 0 0 4px #d9504919; }
.coach-studio-modes { display: flex; gap: 4px; padding: 3px; border-radius: 7px; background: var(--coach-soft); }
.coach-lab-tool { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 5px; background: transparent; color: var(--coach-muted); font-size: 9px; font-weight: 650; }
.coach-lab-tool.is-active { background: var(--coach-surface); color: var(--coach-ink); box-shadow: 0 1px 3px #00000014; }
.coach-lab-tool:disabled { opacity: 1; cursor: default; }
.coach-live-studio-body { display: grid; grid-template-columns: minmax(0,1fr) 158px; min-height: 575px; background: #101713; }
.coach-live-stage { position: relative; min-width: 0; min-height: 575px; display: grid; place-items: stretch; overflow: hidden; }
.coach-live-stage > .coach-camera { min-height: 575px; object-fit: cover; }
.coach-call-dock { position: absolute; left: 50%; bottom: 20px; display: flex; gap: 7px; transform: translateX(-50%); }
.coach-participants { display: flex; flex-direction: column; gap: 8px; padding: 9px; border-left: 1px solid #ffffff17; background: #17211c; }
.coach-participant-tile { min-height: 136px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 12px; border-radius: 7px; background: #223129; color: #e9f0eb; text-align: center; }
.coach-participant-tile > span:first-child { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: #355345; font: 700 10px/1 ui-monospace,monospace; }
.coach-participant-tile .coach-avatar { width: 47px; height: 47px; }
.coach-participant-tile strong { font-size: 9px; }
.coach-participant-tile small { color: #93a69c; font-size: 7px; }
.coach-room-people { display: grid; gap: 7px; margin-top: auto; padding: 12px 4px; border-top: 1px solid #ffffff17; color: #8fa299; font-size: 8px; }
.coach-session-tools { margin-top: 10px; padding: 16px; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-session-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.coach-session-tools-head h2 { margin: 2px 0 4px; font-size: 17px; }
.coach-session-tools-head span { color: var(--coach-muted); font-size: 8px; }
.coach-session-tools-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.coach-session-tools-grid[hidden] { display: none; }
.coach-session-tool { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-bg); }
.coach-session-tool > small { color: var(--coach-accent); font: 700 7px/1 ui-monospace,monospace; letter-spacing: .9px; }
.coach-session-tool h3 { margin: -4px 0 0; font-size: 11px; }
.coach-session-tool-display { min-height: 48px; display: grid; place-items: center; border-radius: 7px; background: #17211c; color: #edf5ef; font: 650 25px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-session-tool-display.is-complete { background: #5d2825; color: #fff; }
.coach-session-presets,.coach-session-tool-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.coach-session-preset { flex: 1; min-height: 28px; padding: 5px 7px; border: 1px solid var(--coach-line); border-radius: 5px; background: var(--coach-surface); color: var(--coach-muted); font-size: 8px; }
.coach-session-preset:hover,.coach-session-preset:focus-visible { border-color: var(--coach-accent); color: var(--coach-accent); }
.coach-session-inline-field { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; color: var(--coach-muted); font-size: 8px; }
.coach-session-number,.coach-session-operation { width: 100%; min-width: 0; min-height: 34px; padding: 7px 8px; border: 1px solid var(--coach-line); border-radius: 6px; background: var(--coach-surface); color: var(--coach-ink); font: 10px/1.2 ui-monospace,monospace; }
.coach-session-tool-actions .coach-button { flex: 1; }
.coach-session-tool-help { min-height: 28px; margin: 0; color: var(--coach-muted); font-size: 8px; line-height: 1.5; }
.coach-session-counter-controls { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 7px; }
.coach-session-counter-button { min-height: 44px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-surface); color: var(--coach-ink); font-size: 22px; }
.coach-session-counter-button.is-add { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
.coach-session-counter-value { text-align: center; font: 650 30px/1 ui-monospace,monospace; }
.coach-session-calculator { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 5px; }
.coach-session-calculator .coach-button { grid-column: 1/-1; }
.coach-session-calculator-result { min-height: 43px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--coach-soft); color: var(--coach-accent); font: 650 18px/1 ui-monospace,monospace; text-overflow: ellipsis; }
.coach-live-session-footer { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; padding: 9px 14px 9px 18px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-surface); color: var(--coach-muted); font-size: 9px; }
.coach-shared-lab { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: #101713; color: #e9f0eb; }
.coach-shared-bar { min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #ffffff17; background: #17211c; }
.coach-share-status { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 9px; }
.coach-share-status i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #6ec388; box-shadow: 0 0 0 4px #6ec3881b; }
.coach-prepared-select { width: min(250px,33%); min-height: 36px; border-color: #ffffff1f; background: #ffffff0a; color: #dce7df; }
.coach-prepared-select:disabled { opacity: .72; }
.coach-lab-upload { min-height: 36px; display: grid; place-items: center; color: #e9f0eb; border-color: #ffffff24; }
.coach-shared-workspace { min-width: 0; min-height: 430px; display: grid; grid-template-columns: 1.12fr .88fr; }
.coach-lab-pane { position: relative; min-width: 0; display: grid; place-items: center; overflow: hidden; background: #0c120f; }
.coach-lab-pane + .coach-lab-pane { border-left: 1px solid #ffffff17; }
.coach-lab-pane canvas,.coach-lab-pane video { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.coach-source-pane { background: radial-gradient(circle at 50% 43%,#31463b,#101713 68%); }
.coach-source-pane video + canvas.coach-overlay-canvas { position: absolute; inset: 0; pointer-events: none; opacity: .72; }
.coach-source-pane canvas.is-hidden-overlay { opacity: 0!important; }
.coach-lab-view-label { position: absolute; top: 11px; left: 11px; padding: 5px 7px; overflow: hidden; border-radius: 4px; background: #050806b8; color: #c6d4cb; font: 700 7px/1 ui-monospace,monospace; letter-spacing: .8px; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 22px); }
.coach-shared-lab.coach-lab-single .coach-source-pane { display: none; }
.coach-shared-lab.coach-lab-single .coach-shared-workspace { grid-template-columns: 1fr; }
.coach-shared-lab.coach-lab-single .coach-anatomy-pane { border-left: 0; }
.coach-lab-controls { min-height: 68px; display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-top: 1px solid #ffffff17; background: #17211c; }
.coach-lab-controls .coach-lab-tool { color: #9fb0a7; border: 1px solid #ffffff17; }
.coach-lab-controls .coach-lab-tool.is-active { background: #2b4035; color: #fff; box-shadow: none; }
.coach-angle-control { min-width: 150px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 0 8px; color: #9fb0a7; font-size: 8px; }
.coach-angle-control input { width: 100%; accent-color: #9ed9ae; }
.coach-live-note { flex: 1; display: flex; gap: 6px; min-width: 160px; }
.coach-live-note input { flex: 1; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid #ffffff1c; border-radius: 6px; background: #ffffff08; color: #fff; font: inherit; font-size: 9px; }
.coach-live-note input:disabled { color: #a6b5ad; opacity: 1; }
@media (max-width: 980px) {
    .coach-access-hero { grid-template-columns: 1fr; padding: 40px 0; }
    .coach-guest-entry { align-self: auto; }
    .coach-live-studio-body { grid-template-columns: minmax(0,1fr) 118px; }
    .coach-shared-workspace { grid-template-columns: 1fr; }
    .coach-lab-pane { min-height: 330px; }
    .coach-lab-pane + .coach-lab-pane { border-left: 0; border-top: 1px solid #ffffff17; }
    .coach-lab-controls { flex-wrap: wrap; }
    .coach-live-note { flex-basis: 100%; }
    .coach-session-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .coach-access { padding: 0 17px; overflow: auto; }
    .coach-access-mast { min-height: 67px; }
    .coach-access-hero { gap: 20px; padding: 32px 0; }
    .coach-access-intro > h1 { font-size: 48px; }
    .coach-access-intro > p:not(.coach-kicker) { margin: 17px 0 25px; font-size: 12px; }
    .coach-access-choices,.coach-legacy-client-grid { grid-template-columns: 1fr; }
    .coach-access-card { min-height: 190px; }
    .coach-guest-form { grid-template-columns: 1fr; }
    .coach-access-trust { gap: 13px; font-size: 6px; }
    .coach-role-topbar { padding: 0 15px; }
    .coach-room-code { display: none; }
    .coach-role-content { padding: 30px 15px 50px; }
    .coach-legacy-client-next { align-items: flex-start; flex-direction: column; }
    .coach-live-studio-bar { align-items: flex-start; flex-direction: column; }
    .coach-live-studio-bar > div:first-child { padding-top: 4px; }
    .coach-studio-modes { width: 100%; }
    .coach-studio-modes button { flex: 1; }
    .coach-live-studio-body { display: block; }
    .coach-live-stage { min-height: 510px; }
    .coach-participants { display: grid; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid #ffffff17; }
    .coach-participant-tile { min-height: 100px; }
    .coach-room-people { display: none; }
    .coach-shared-bar { flex-wrap: wrap; }
    .coach-share-status { flex-basis: 100%; }
    .coach-prepared-select { width: 100%; flex: 1; }
    .coach-shared-workspace { min-height: 360px; }
    .coach-lab-pane { min-height: 280px; }
    .coach-angle-control { flex: 1; }
    .coach-live-session-footer { align-items: flex-start; flex-direction: column; }
    .coach-session-tools-head { align-items: flex-start; }
    .coach-session-tools-grid { grid-template-columns: 1fr; }
}
/* Recorded coaching history */
.coach-recording-policy { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-recording-policy h2 { margin: 0; font-size: 20px; font-weight: 620; }
.coach-recording-policy p:last-child { max-width: 650px; margin: 7px 0 0; color: var(--coach-muted); font-size: 10px; line-height: 1.6; }
.coach-switch { display: grid; grid-template-columns: 42px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; flex: 0 0 auto; cursor: pointer; }
.coach-switch input { position: absolute; opacity: 0; pointer-events: none; }
.coach-switch > span { grid-row: 1/3; position: relative; width: 42px; height: 24px; border-radius: 15px; background: var(--coach-line); transition: background .15s; }
.coach-switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--coach-surface); box-shadow: 0 1px 3px #0003; transition: transform .15s; }
.coach-switch input:checked + span { background: var(--coach-accent); }
.coach-switch input:checked + span::after { transform: translateX(18px); }
.coach-switch strong { font-size: 10px; }
.coach-switch small { color: var(--coach-muted); font-size: 8px; }
.coach-archive-layout { min-height: 610px; display: grid; grid-template-columns: 300px minmax(0,1fr); border: 1px solid var(--coach-line); border-radius: 10px; overflow: hidden; background: var(--coach-surface); }
.coach-recording-list { border-right: 1px solid var(--coach-line); background: var(--coach-bg); }
.coach-recording-card { width: 100%; display: grid; gap: 12px; padding: 15px; border: 0; border-bottom: 1px solid var(--coach-line); background: transparent; color: var(--coach-ink); text-align: left; }
.coach-recording-card:hover,.coach-recording-card:focus-visible { background: var(--coach-surface); }
.coach-recording-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.coach-recording-status { color: #3d855b; font-size: 8px; }
.coach-recording-card > div:last-child { display: grid; gap: 3px; }
.coach-recording-card strong { font-size: 11px; }
.coach-recording-card span,.coach-recording-card small { color: var(--coach-muted); font-size: 8px; }
.coach-recording-detail { min-width: 0; padding: 22px; }
.coach-recording-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.coach-recording-detail-head h2 { margin: 0 0 5px; font-size: 22px; }
.coach-recording-detail-head span { color: var(--coach-muted); font-size: 9px; }
.coach-consent-badge { padding: 6px 8px; border-radius: 5px; background: var(--coach-soft); color: var(--coach-accent)!important; font-size: 8px!important; }
.coach-archive-player { min-height: 290px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #101713; }
.coach-archive-player video { width: 100%; max-height: 440px; }
.coach-archive-unavailable { display: grid; justify-items: center; gap: 8px; padding: 30px; color: #9aada2; text-align: center; }
.coach-archive-unavailable span { color: #8fcda1; font: 700 8px/1 ui-monospace,monospace; letter-spacing: 1px; }
.coach-archive-unavailable strong { color: #e8f0ea; font-size: 12px; }
.coach-archive-unavailable p { max-width: 360px; margin: 0; font-size: 9px; }
.coach-archive-timeline { position: relative; height: 22px; margin: 14px 0 20px; border-radius: 4px; background: var(--coach-soft); }
.coach-archive-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--coach-line); }
.coach-timeline-note { position: absolute; top: 6px; width: 10px; height: 10px; padding: 0; transform: translateX(-50%) rotate(45deg); border: 2px solid var(--coach-surface); background: #d28d3c; }
.coach-timeline-clip { position: absolute; top: 7px; height: 8px; min-width: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--coach-accent); opacity: .8; }
.coach-archive-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.coach-archive-columns h3 { margin: 0 0 8px; font-size: 11px; }
.coach-archive-note { width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--coach-line); background: transparent; color: var(--coach-ink); text-align: left; }
.coach-archive-note:hover { color: var(--coach-accent); }
.coach-archive-note time { color: var(--coach-accent); font: 8px/1.5 ui-monospace,monospace; }
.coach-archive-note span { font-size: 9px; }
.coach-archive-note.clip time { color: #a86d2d; }
.coach-archive-empty { color: var(--coach-muted); font-size: 9px; }
.coach-live-review { display: grid; grid-template-columns: 285px minmax(0,1fr); margin-top: 10px; border: 1px solid var(--coach-line); border-radius: 8px; overflow: hidden; background: var(--coach-surface); }
.coach-live-record { display: grid; align-content: start; gap: 15px; padding: 18px; border-right: 1px solid var(--coach-line); }
.coach-record-status { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 650; }
.coach-record-status i { width: 9px; height: 9px; border-radius: 50%; background: #9aa69f; }
.coach-record-status i.is-recording { background: #dc4e48; box-shadow: 0 0 0 4px #dc4e4819; animation: coach-record-pulse 1.4s infinite; }
@keyframes coach-record-pulse { 50% { opacity: .45; } }
.coach-record-consent { display: grid; grid-template-columns: 16px 1fr; gap: 4px 8px; align-items: center; color: var(--coach-ink); font-size: 9px; }
.coach-record-consent input { grid-row: 1/3; width: 15px; height: 15px; accent-color: var(--coach-accent); }
.coach-record-consent small { color: var(--coach-muted); font-size: 7px; }
.coach-live-notes { min-width: 0; padding: 16px 18px; }
.coach-live-review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.coach-live-review-head strong { font-size: 11px; }
.coach-live-review-head span { color: var(--coach-muted); font-size: 8px; }
.coach-live-note-form { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 7px; }
.coach-live-note-form time { display: grid; place-items: center; border-radius: 6px; background: var(--coach-soft); color: var(--coach-accent); font: 8px/1 ui-monospace,monospace; }
.coach-live-note-form input { min-width: 0; min-height: 38px; padding: 9px 10px; border: 1px solid var(--coach-line); border-radius: 6px; background: var(--coach-bg); color: var(--coach-ink); font: inherit; font-size: 9px; }
.coach-live-clip-tools { display: flex; gap: 7px; margin-top: 8px; }
.coach-live-moments { max-height: 120px; margin-top: 10px; overflow: auto; }
.coach-live-moment { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; gap: 8px; padding: 7px 2px; border-top: 1px solid var(--coach-line); }
.coach-live-moment time { color: var(--coach-accent); font: 8px/1.4 ui-monospace,monospace; }
.coach-live-moment span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.coach-live-moment small { color: var(--coach-muted); font-size: 7px; }
.coach-mesh-ready { color: #8fe0a6!important; }
@media (max-width: 900px) {
    .coach-archive-layout { grid-template-columns: 220px minmax(0,1fr); }
    .coach-live-review { grid-template-columns: 1fr; }
    .coach-live-record { grid-template-columns: 1fr auto auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--coach-line); }
}
@media (max-width: 680px) {
    .coach-recording-policy { align-items: flex-start; flex-direction: column; }
    .coach-archive-layout { display: block; }
    .coach-recording-list { max-height: 270px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--coach-line); }
    .coach-recording-detail { padding: 15px; }
    .coach-recording-detail-head { flex-direction: column; }
    .coach-archive-player { min-height: 210px; }
    .coach-archive-columns { grid-template-columns: 1fr; }
    .coach-live-record { grid-template-columns: 1fr; }
    .coach-live-note-form { grid-template-columns: 48px 1fr; }
    .coach-live-note-form .coach-button { grid-column: 1/3; }
}

/* Session Studio lobby */
.coach-session-launch { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 28px 30px; overflow: hidden; border-radius: 11px; background: linear-gradient(125deg,#183226,#284b38); color: #f2f7f3; box-shadow: 0 12px 30px #15291f18; }
.coach-session-launch h2 { margin: 2px 0 7px; font-size: 22px; font-weight: 620; }
.coach-session-launch p:last-child { max-width: 690px; margin: 0; color: #b9ccbf; font-size: 10px; line-height: 1.55; }
.coach-session-launch .coach-kicker { color: #9ed9ae; }
.coach-session-launch-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.coach-session-launch .coach-button-secondary { border-color: #ffffff2c; background: #ffffff0c; color: #fff; }
.coach-session-lobby-grid,.coach-legacy-client-room-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 14px; margin-bottom: 18px; }
.coach-session-lobby-panel { min-width: 0; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-session-lobby-panel > .coach-panel-head { min-height: 55px; padding: 0 17px; border-bottom: 1px solid var(--coach-line); }
.coach-session-lobby-row { min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--coach-line); }
.coach-session-lobby-row:last-child { border-bottom: 0; }
.coach-session-lobby-row:hover { background: color-mix(in srgb,var(--coach-soft) 55%,transparent); }
.coach-session-lobby-date { width: 70px; flex: 0 0 auto; display: grid; gap: 4px; }
.coach-session-lobby-date strong { font-size: 10px; }
.coach-session-lobby-date small { color: var(--coach-muted); font-size: 7px; }
.coach-session-lobby-copy { min-width: 0; flex: 1; display: grid; gap: 5px; }
.coach-session-lobby-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.coach-session-lobby-copy span { color: var(--coach-muted); font-size: 8px; }
.coach-open-room-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e5eee8; color: var(--coach-accent); font: 700 8px/1 ui-monospace,monospace; }
.coach-session-row-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.coach-live-pill { padding: 5px 7px; border-radius: 10px; background: #deefe4; color: #34704b; font: 700 7px/1 ui-monospace,monospace; letter-spacing: .8px; }
.coach-legacy-client-room-grid { margin-top: 14px; }
@media (max-width: 900px) {
    .coach-session-lobby-grid,.coach-legacy-client-room-grid { grid-template-columns: 1fr; }
    .coach-session-launch { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
    .coach-session-launch { padding: 22px; }
    .coach-session-launch-actions { width: 100%; flex-direction: column; }
    .coach-session-lobby-row { align-items: flex-start; flex-wrap: wrap; }
    .coach-session-lobby-row > .coach-button,.coach-session-row-actions { margin-left: auto; }
}

/* Personalized coaching workspace */
.coach-app[data-coach-accent="ocean"] { --coach-accent: #276d83; --coach-accent-strong: #1d5668; --coach-warm: #79b7ca; }
.coach-app[data-coach-accent="violet"] { --coach-accent: #6956a3; --coach-accent-strong: #514080; --coach-warm: #b09cdb; }
.coach-app[data-coach-accent="ember"] { --coach-accent: #a85335; --coach-accent-strong: #803c27; --coach-warm: #e7a06c; }
.coach-app[data-coach-accent="ocean"] .coach-sidebar { background: #132a31; border-color: #29434b; }
.coach-app[data-coach-accent="violet"] .coach-sidebar { background: #211d31; border-color: #3c354e; }
.coach-app[data-coach-accent="ember"] .coach-sidebar { background: #302018; border-color: #4d352a; }
.coach-app[data-coach-accent="ocean"] .coach-nav-item.is-active { background: #24444e; box-shadow: inset 3px 0 #8ac7d8; }
.coach-app[data-coach-accent="violet"] .coach-nav-item.is-active { background: #39304f; box-shadow: inset 3px 0 #baa9e4; }
.coach-app[data-coach-accent="ember"] .coach-nav-item.is-active { background: #4a3025; box-shadow: inset 3px 0 #efaa7d; }
.coach-app.coach-sidebar-right { grid-template-columns: minmax(0,1fr) 224px; }
.coach-app.coach-sidebar-right .coach-sidebar { grid-column: 2; grid-row: 1; border-right: 0; border-left: 1px solid #2c3e35; }
.coach-app.coach-sidebar-right .coach-workspace { grid-column: 1; grid-row: 1; }
.coach-app.coach-sidebar-compact { grid-template-columns: 76px minmax(0,1fr); }
.coach-app.coach-sidebar-compact .coach-sidebar { padding-inline: 10px; }
.coach-app.coach-sidebar-compact .coach-brand { display: grid; grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
.coach-app.coach-sidebar-compact .coach-brand-mark { grid-row: auto; }
.coach-app.coach-sidebar-compact .coach-brand > div,.coach-app.coach-sidebar-compact .coach-brand > small,.coach-app.coach-sidebar-compact .coach-nav-item > span:not(.coach-nav-icon),.coach-app.coach-sidebar-compact .coach-plan { display: none; }
.coach-app.coach-sidebar-compact .coach-nav-item { justify-content: center; padding: 0; }
.coach-app.coach-sidebar-compact .coach-nav-icon { width: auto; }
.coach-app.coach-sidebar-compact .coach-exit { padding-inline: 0; overflow: hidden; font-size: 0; text-align: center; }
.coach-app.coach-sidebar-compact .coach-exit::before { content: '←'; font-size: 16px; }
.coach-app.coach-density-compact .coach-topbar { min-height: 58px; }
.coach-app.coach-density-compact .coach-content { padding-top: 25px; padding-bottom: 45px; }
.coach-app.coach-density-compact .coach-page-head { margin-bottom: 20px; }
.coach-app.coach-density-compact .coach-stat-card { min-height: 100px; padding: 14px; }
.coach-app.coach-density-compact .coach-stat-card > strong { margin-top: 9px; font-size: 24px; }
.coach-app.coach-density-compact .coach-agenda-row,.coach-app.coach-density-compact .coach-attention-row,.coach-app.coach-density-compact .coach-client-row,.coach-app.coach-density-compact .coach-session-lobby-row { min-height: 59px; padding-top: 8px; padding-bottom: 8px; }
.coach-app.coach-density-compact .coach-panel-head { min-height: 46px; }
.coach-app.coach-density-compact .coach-client-card,.coach-app.coach-density-compact .coach-program-card { padding: 14px; }
.coach-customize-trigger { min-height: 38px; }
.coach-customizer { width: min(760px,calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: hidden; }
.coach-customizer-card { height: min(820px,calc(100dvh - 30px)); max-height: calc(100dvh - 30px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding: 0; overflow: hidden; }
.coach-customizer-card > .coach-dialog-head { padding: 22px 23px 12px; background: var(--coach-surface); }
.coach-customizer-body { min-height: 0; padding: 0 23px 20px; overflow: auto; scrollbar-gutter: stable; }
.coach-customizer-actions { margin: 0; padding: 15px 23px; background: var(--coach-surface); box-shadow: 0 -8px 24px color-mix(in srgb,var(--coach-ink) 7%,transparent); }
.coach-customizer-body > .coach-dialog-copy { margin-top: 0; }
.coach-customizer-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-customizer-group { min-width: 0; padding: 15px; border: 1px solid var(--coach-line); border-radius: 8px; }
.coach-customizer-group:last-child { grid-column: 1/3; }
.coach-customizer-group > strong,.coach-customizer-modules > strong { font-size: 11px; }
.coach-customizer-group > p,.coach-customizer-modules > p { margin: 4px 0 12px; color: var(--coach-muted); font-size: 8px; line-height: 1.5; }
.coach-preference-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); gap: 6px; }
.coach-preference-option { min-height: 67px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 9px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-bg); color: var(--coach-muted); }
.coach-preference-option:hover { background: var(--coach-soft); }
.coach-preference-option.is-selected { border-color: var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 9%,var(--coach-surface)); color: var(--coach-accent); box-shadow: inset 0 0 0 1px var(--coach-accent); }
.coach-preference-option > span { min-height: 18px; font: 16px/1 ui-monospace,monospace; }
.coach-preference-option > strong { font-size: 8px; }
.coach-swatch { width: 18px; min-height: 18px!important; border-radius: 50%; box-shadow: 0 0 0 3px var(--coach-surface),0 0 0 4px var(--coach-line); }
.coach-swatch.sage { background: #1d684b; }
.coach-swatch.ocean { background: #276d83; }
.coach-swatch.violet { background: #6956a3; }
.coach-swatch.ember { background: #a85335; }
.coach-customizer-modules { margin-top: 12px; padding: 16px; border: 1px solid var(--coach-line); border-radius: 8px; }
.coach-module-list { overflow: hidden; border: 1px solid var(--coach-line); border-radius: 7px; }
.coach-module-row { min-height: 62px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 9px 11px; border-bottom: 1px solid var(--coach-line); }
.coach-module-row:last-child { border-bottom: 0; }
.coach-module-row > input { width: 16px; height: 16px; accent-color: var(--coach-accent); }
.coach-module-row > div:nth-child(2) { display: grid; gap: 4px; }
.coach-module-row > div:nth-child(2) strong { font-size: 9px; }
.coach-module-row > div:nth-child(2) small { color: var(--coach-muted); font-size: 7px; }
.coach-module-order { display: flex; gap: 4px; }
.coach-module-order .coach-icon-button { width: 31px; height: 31px; }
.coach-customizer-actions { justify-content: space-between; }
.coach-customizer-actions > div { display: flex; gap: 8px; }
.coach-dashboard-cleared { min-height: 330px; display: grid; justify-items: center; place-content: center; padding: 35px; border: 1px dashed var(--coach-line); border-radius: 10px; background: var(--coach-surface); text-align: center; }
.coach-dashboard-cleared h2 { margin: 0; font-size: 22px; }
.coach-dashboard-cleared p:not(.coach-kicker) { max-width: 360px; margin: 8px 0 18px; color: var(--coach-muted); font-size: 10px; }
.coach-content > .coach-stats,.coach-content > .coach-overview-grid,.coach-content > .coach-roster-preview { margin-bottom: 12px; }
@media (max-width: 780px) {
    .coach-app.coach-sidebar-right,.coach-app.coach-sidebar-compact { display: block; }
    .coach-app.coach-sidebar-right .coach-sidebar { border-left: 0; border-bottom: 1px solid #2c3e35; }
    .coach-app.coach-sidebar-compact .coach-sidebar { display: grid; padding: 8px 12px; }
    .coach-app.coach-sidebar-compact .coach-brand > div,.coach-app.coach-sidebar-compact .coach-brand > small { display: none; }
    .coach-app.coach-sidebar-compact .coach-nav-item { justify-content: flex-start; padding: 0 11px; }
    .coach-app.coach-sidebar-compact .coach-exit::before { content: none; }
    .coach-customize-trigger { width: 38px; padding: 0; overflow: hidden; font-size: 0; }
    .coach-customize-trigger::before { content: '⚙'; font-size: 14px; }
    .coach-customizer-choices { grid-template-columns: 1fr; }
    .coach-customizer-group:last-child { grid-column: auto; }
    .coach-customizer-actions { align-items: stretch; flex-direction: column; }
    .coach-customizer-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
}
/* Direct visual workspace editor */
.coach-app.coach-workspace-editing .coach-content { padding-bottom: 120px; }
.coach-app.coach-workspace-editing .coach-customize-trigger { border-color: var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 10%,var(--coach-surface)); color: var(--coach-accent); }
.coach-visual-editor { margin-bottom: 18px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--coach-accent) 55%,var(--coach-line)); border-radius: 12px; background: var(--coach-surface); box-shadow: 0 10px 28px color-mix(in srgb,var(--coach-accent) 10%,transparent); }
.coach-visual-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 17px; background: linear-gradient(120deg,color-mix(in srgb,var(--coach-accent) 10%,var(--coach-surface)),var(--coach-surface)); }
.coach-visual-editor-head h2 { margin: 0; font-size: 20px; font-weight: 620; }
.coach-visual-editor-head p:last-child { max-width: 620px; margin: 6px 0 0; color: var(--coach-muted); font-size: 10px; line-height: 1.5; }
.coach-visual-editor-actions { position: fixed; left: 50%; bottom: 20px; z-index: 20; display: flex; gap: 7px; padding: 7px; transform: translateX(-50%); border: 1px solid var(--coach-line); border-radius: 10px; background: color-mix(in srgb,var(--coach-surface) 94%,transparent); box-shadow: 0 14px 42px #0f1e1740; backdrop-filter: blur(16px); }
.coach-visual-appearance { display: grid; grid-template-columns: 1.1fr .85fr 1fr; border-top: 1px solid var(--coach-line); }
.coach-visual-choice-group { min-width: 0; padding: 13px 16px 15px; border-right: 1px solid var(--coach-line); }
.coach-visual-choice-group:last-child { border-right: 0; }
.coach-visual-choice-group > span,.coach-hidden-modules > span { display: block; margin-bottom: 8px; color: var(--coach-muted); font: 700 7px/1.2 ui-monospace,monospace; letter-spacing: .8px; text-transform: uppercase; }
.coach-visual-choice-options { display: flex; flex-wrap: wrap; gap: 5px; }
.coach-visual-choice { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--coach-line); border-radius: 6px; background: var(--coach-bg); color: var(--coach-muted); font-size: 8px; font-weight: 650; }
.coach-visual-choice:hover { background: var(--coach-soft); color: var(--coach-ink); }
.coach-visual-choice.is-selected { border-color: var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 11%,var(--coach-surface)); color: var(--coach-accent); box-shadow: inset 0 0 0 1px var(--coach-accent); }
.coach-choice-color { width: 9px; height: 9px; border-radius: 50%; background: var(--choice-color); }
.coach-choice-color.sage { --choice-color: #1d684b; }
.coach-choice-color.ocean { --choice-color: #276d83; }
.coach-choice-color.violet { --choice-color: #6956a3; }
.coach-choice-color.ember { --choice-color: #a85335; }
.coach-hidden-modules { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-top: 1px solid var(--coach-line); background: var(--coach-bg); }
.coach-hidden-modules > span { margin: 0 5px 0 0; }
.coach-dashboard-module { position: relative; margin-bottom: 14px; padding-top: 43px; border: 1px dashed color-mix(in srgb,var(--coach-accent) 60%,var(--coach-line)); border-radius: 11px; background: color-mix(in srgb,var(--coach-accent) 3%,var(--coach-bg)); transition: opacity .15s,transform .15s,border-color .15s; }
.coach-dashboard-module-tools { position: absolute; inset: 0 0 auto; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 8px 5px 12px; border-bottom: 1px dashed var(--coach-line); color: var(--coach-ink); }
.coach-dashboard-module-tools > div:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.coach-dashboard-module-tools strong { font-size: 9px; }
.coach-dashboard-module-tools small { color: var(--coach-muted); font-size: 7px; }
.coach-drag-handle { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 6px; background: var(--coach-surface); color: var(--coach-accent); font-size: 18px; line-height: 1; cursor: grab; user-select: none; touch-action: none; }
.coach-drag-handle:active { cursor: grabbing; }
.coach-dashboard-module-actions { display: flex; align-items: center; gap: 4px; }
.coach-dashboard-module-actions .coach-icon-button { width: 31px; height: 31px; }
.coach-dashboard-module > .coach-stats,.coach-dashboard-module > .coach-overview-grid,.coach-dashboard-module > .coach-roster-preview { margin: 0; }
.coach-dashboard-module > .coach-stats { padding: 10px; }
.coach-dashboard-module > .coach-overview-grid { padding: 10px; }
.coach-dashboard-module > .coach-roster-preview { margin: 10px; }
.coach-dashboard-module > :not(.coach-dashboard-module-tools) { pointer-events: none; }
.coach-dashboard-module.is-dragging { opacity: .42; transform: scale(.99); }
.coach-dashboard-module.drop-before::before,.coach-dashboard-module.drop-after::after { content: ''; position: absolute; left: 14px; right: 14px; z-index: 4; height: 4px; border-radius: 3px; background: var(--coach-accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--coach-accent) 15%,transparent); }
.coach-dashboard-module.drop-before::before { top: -9px; }
.coach-dashboard-module.drop-after::after { bottom: -9px; }
@media (max-width: 900px) {
    .coach-visual-appearance { grid-template-columns: 1fr; }
    .coach-visual-choice-group { border-right: 0; border-bottom: 1px solid var(--coach-line); }
    .coach-visual-choice-group:last-child { border-bottom: 0; }
}
@media (max-width: 680px) {
    .coach-visual-editor-head { padding: 17px; }
    .coach-visual-editor-actions { width: calc(100% - 24px); bottom: 12px; display: grid; grid-template-columns: 1fr .75fr 1fr; }
    .coach-visual-editor-actions .coach-button { min-width: 0; padding-inline: 7px; font-size: 8px; }
    .coach-hidden-modules { align-items: flex-start; flex-wrap: wrap; }
    .coach-hidden-modules > span { flex-basis: 100%; }
    .coach-dashboard-module { padding-top: 49px; }
    .coach-dashboard-module-tools { min-height: 49px; }
    .coach-dashboard-module-tools small { display: none; }
    .coach-dashboard-module-actions .coach-icon-button { width: 29px; height: 29px; }
    .coach-dashboard-module-actions .coach-button { min-height: 29px; padding: 5px 7px; font-size: 7px; }
}


/* Guided Programs and custom video exercise builder */
.coach-program-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.coach-program-summary-card { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 18px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-program-summary-card small { color: var(--coach-muted); font: 700 7px/1.2 ui-monospace,monospace; letter-spacing: .7px; }
.coach-program-summary-card strong { grid-row: 1/3; grid-column: 2; align-self: center; color: var(--coach-accent); font-size: 27px; font-weight: 600; }
.coach-program-summary-card span { color: var(--coach-muted); font-size: 9px; }
.coach-skill-studio { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.9fr) auto; align-items: center; gap: 28px; margin-bottom: 24px; padding: 27px; overflow: hidden; border-radius: 12px; background: linear-gradient(120deg,#173128,#244d3d); color: #f6fbf7; box-shadow: inset 0 0 0 1px #ffffff12; }
.coach-skill-studio-copy h2 { max-width: 560px; margin: 2px 0 8px; font-size: clamp(21px,2vw,29px); font-weight: 580; letter-spacing: -.7px; }
.coach-skill-studio-copy > p:last-child { max-width: 590px; margin: 0; color: #bed0c5; font-size: 10px; line-height: 1.65; }
.coach-skill-studio .coach-kicker { color: #8fd2aa; }
.coach-skill-steps { display: grid; gap: 10px; }
.coach-skill-step { display: grid; grid-template-columns: 25px 76px 1fr; align-items: center; gap: 9px; }
.coach-skill-step > span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #8bc6a0; border-radius: 50%; color: #9de3b7; font-size: 8px; }
.coach-skill-step strong { font-size: 9px; }
.coach-skill-step small { color: #a9bfb2; font-size: 8px; }
.coach-skill-studio-actions { display: grid; justify-items: stretch; gap: 8px; min-width: 190px; }
.coach-skill-studio-actions small { color: #9fb3a8; font-size: 7px; text-align: center; }
.coach-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 0 0 10px; }
.coach-section-heading > div { font-size: 13px; font-weight: 650; }
.coach-section-heading > span { color: var(--coach-muted); font-size: 8px; }
.coach-program-list-head { margin-top: 25px; }
.coach-skill-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.coach-skill-card { min-width: 0; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-skill-visual { position: relative; height: 108px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 50%,#345546,#172b22 68%); color: #8cd2a7; }
.coach-skill-person { z-index: 1; font-size: 43px; transform: rotate(45deg); }
.coach-mesh-lines { position: absolute; font-size: 74px; opacity: .18; }
.coach-skill-visual b { position: absolute; top: 9px; right: 9px; padding: 4px 6px; border-radius: 4px; background: #b8ecc8; color: #19482c; font: 750 6px/1 ui-monospace,monospace; letter-spacing: .6px; }
.coach-skill-copy { display: grid; gap: 5px; padding: 13px 13px 10px; }
.coach-skill-copy small { overflow: hidden; color: var(--coach-accent); font: 700 7px/1.2 ui-monospace,monospace; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.coach-skill-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.coach-skill-copy span { overflow: hidden; color: var(--coach-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.coach-skill-card > .coach-button { width: calc(100% - 26px); margin: 0 13px 13px; }
.coach-skill-new { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 15px; border: 1px dashed var(--coach-line); border-radius: 9px; background: transparent; color: var(--coach-muted); text-align: center; }
.coach-skill-new > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 50%; color: var(--coach-accent); font-size: 18px; }
.coach-skill-new strong { color: var(--coach-ink); font-size: 10px; }
.coach-skill-new small { font-size: 8px; }
.coach-program-status { grid-column: 1/4; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; }
.coach-program-status i { width: 7px; height: 7px; border-radius: 50%; background: #b9c0bb; }
.coach-program-status i.is-live { background: #43a565; box-shadow: 0 0 0 3px #43a5651f; }
.coach-program-status span { font-size: 8px; font-weight: 700; }
.coach-program-status small { color: var(--coach-muted); font-size: 7px; }
.coach-skill-dialog-guide { display: grid; grid-template-columns: 24px 1fr 22px 24px 1fr 22px 24px 1fr; align-items: center; gap: 5px; padding: 10px; border-radius: 7px; background: var(--coach-soft); }
.coach-skill-dialog-guide > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--coach-accent); color: #fff; font-size: 7px; }
.coach-skill-dialog-guide > div { font-size: 7px; font-weight: 700; }
.coach-skill-dialog-guide > i { height: 1px; background: var(--coach-line); }
.coach-skill-file { min-height: 112px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--coach-line); border-radius: 8px; background: var(--coach-bg); cursor: pointer; }
.coach-skill-file.has-file { border-color: var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 7%,var(--coach-surface)); }
.coach-skill-file > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--coach-soft); color: var(--coach-accent); font-size: 17px; }
.coach-skill-file > div { display: grid; gap: 6px; }
.coach-skill-file strong { font-size: 10px; }
.coach-skill-file small { color: var(--coach-muted); font-size: 8px; }
.coach-skill-file input { grid-column: 1/3; width: 100%; color: var(--coach-muted); font-size: 8px; }
.coach-builder-overview { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 12px; padding: 22px 24px; border-radius: 10px; background: linear-gradient(120deg,#d7eadc,#edf5ef); color: #18382a; }
.coach-builder-overview h2 { margin: 2px 0 6px; font-size: 22px; font-weight: 580; }
.coach-builder-overview p:last-child { margin: 0; color: #567063; font-size: 9px; }
.coach-program-readiness { width: min(310px,34%); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.coach-program-readiness span { font: 700 7px/1.2 ui-monospace,monospace; letter-spacing: .7px; }
.coach-program-readiness strong { font-size: 13px; }
.coach-program-readiness i { grid-column: 1/3; height: 6px; overflow: hidden; border-radius: 6px; background: #bdd1c2; }
.coach-program-readiness i::after { content: ''; display: block; width: var(--program-progress); height: 100%; border-radius: inherit; background: var(--coach-accent); }
.coach-program-readiness small { grid-column: 1/3; color: #627a6e; font-size: 7px; }
.coach-weekbar { min-height: 58px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-weekbar > span { color: var(--coach-muted); font: 700 7px/1 ui-monospace,monospace; letter-spacing: .8px; }
.coach-weekbar > select { width: auto; min-width: 180px; }
.coach-weekbar > div { display: flex; gap: 6px; margin-left: auto; }
.coach-builder-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(285px,.36fr); align-items: start; gap: 14px; }
.coach-builder-timeline { min-width: 0; display: grid; gap: 12px; }
.coach-program-session { overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-program-session-head { min-height: 64px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--coach-line); background: color-mix(in srgb,var(--coach-soft) 56%,var(--coach-surface)); }
.coach-session-day { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; background: var(--coach-accent); color: #fff; font: 700 7px/1 ui-monospace,monospace; }
.coach-program-session-head > div { display: grid; gap: 4px; }
.coach-program-session-head strong { font-size: 11px; }
.coach-program-session-head small { color: var(--coach-muted); font-size: 8px; }
.coach-program-exercise { min-height: 78px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--coach-line); }
.coach-exercise-number { color: var(--coach-muted); font: 8px/1 ui-monospace,monospace; }
.coach-exercise-copy { min-width: 0; display: grid; gap: 5px; }
.coach-exercise-copy > div { display: flex; align-items: center; gap: 7px; }
.coach-exercise-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.coach-exercise-copy b { padding: 3px 4px; border-radius: 3px; background: #d9eee0; color: #24633f; font: 750 6px/1 ui-monospace,monospace; }
.coach-exercise-copy span { color: var(--coach-accent); font-size: 8px; font-weight: 650; }
.coach-exercise-copy small { overflow: hidden; color: var(--coach-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coach-program-session-note { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 11px 16px; background: var(--coach-bg); }
.coach-program-session-note span { color: var(--coach-muted); font: 700 7px/1.4 ui-monospace,monospace; }
.coach-program-session-note p { margin: 0; color: var(--coach-muted); font-size: 8px; }
.coach-builder-library { position: sticky; top: 82px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-builder-library-head { padding: 18px; border-bottom: 1px solid var(--coach-line); }
.coach-builder-library-head h2 { margin: 2px 0 6px; font-size: 17px; }
.coach-builder-library-head > p:last-child { margin: 0; color: var(--coach-muted); font-size: 8px; line-height: 1.5; }
.coach-library-label { min-height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--coach-bg); color: var(--coach-muted); font: 700 7px/1.2 ui-monospace,monospace; letter-spacing: .6px; }
.coach-library-row { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 11px; border-top: 1px solid var(--coach-line); }
.coach-library-skill-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; background: var(--coach-soft); color: var(--coach-accent); font: 700 7px/1 ui-monospace,monospace; }
.coach-library-row > div { min-width: 0; display: grid; gap: 4px; }
.coach-library-row strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coach-library-row small { overflow: hidden; color: var(--coach-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1050px) {
    .coach-skill-studio { grid-template-columns: 1fr 1fr; }
    .coach-skill-studio-actions { grid-column: 1/3; grid-template-columns: auto 1fr; align-items: center; }
    .coach-skill-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .coach-program-summary,.coach-skill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .coach-builder-layout { grid-template-columns: 1fr; }
    .coach-builder-library { position: static; }
}
@media (max-width: 680px) {
    .coach-program-summary { grid-template-columns: 1fr; }
    .coach-skill-studio { grid-template-columns: 1fr; gap: 20px; padding: 21px; }
    .coach-skill-studio-actions { grid-column: auto; grid-template-columns: 1fr; }
    .coach-skill-step { grid-template-columns: 25px 70px 1fr; }
    .coach-skill-grid { grid-template-columns: 1fr 1fr; }
    .coach-skill-visual { height: 88px; }
    .coach-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .coach-builder-overview { align-items: flex-start; flex-direction: column; }
    .coach-program-readiness { width: 100%; }
    .coach-weekbar { align-items: stretch; flex-wrap: wrap; }
    .coach-weekbar > span { align-self: center; }
    .coach-weekbar > select { flex: 1; min-width: 130px; }
    .coach-weekbar > div { width: 100%; margin-left: 0; }
    .coach-weekbar > div .coach-button { flex: 1; }
    .coach-program-session-head { grid-template-columns: 38px minmax(0,1fr); }
    .coach-program-session-head > .coach-text-button { grid-column: 2; justify-self: start; }
    .coach-program-exercise { grid-template-columns: 24px minmax(0,1fr); }
    .coach-program-exercise > .coach-button { grid-column: 2; justify-self: start; }
    .coach-exercise-copy small { white-space: normal; }
    .coach-skill-dialog-guide { grid-template-columns: 22px 1fr 22px 1fr 22px 1fr; }
    .coach-skill-dialog-guide > i { display: none; }
}


/* Detailed guided program setup */
.coach-program-wizard { width: min(920px,calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: hidden; }
.coach-program-wizard-card { height: min(820px,calc(100dvh - 30px)); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 12px; background: var(--coach-surface); }
.coach-program-wizard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 24px 15px; }
.coach-program-wizard-head h2 { margin: 0; font-size: 25px; font-weight: 600; }
.coach-program-wizard-progress { display: grid; grid-template-columns: repeat(4,1fr); padding: 0 24px 16px; border-bottom: 1px solid var(--coach-line); }
.coach-program-wizard-step { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--coach-muted); }
.coach-program-wizard-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 35px; right: 9px; height: 1px; background: var(--coach-line); }
.coach-program-wizard-step > span { z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--coach-line); border-radius: 50%; background: var(--coach-surface); font: 700 7px/1 ui-monospace,monospace; }
.coach-program-wizard-step > strong { overflow: hidden; padding-right: 10px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coach-program-wizard-step.is-active { color: var(--coach-accent); }
.coach-program-wizard-step.is-active > span { border-color: var(--coach-accent); box-shadow: inset 0 0 0 2px var(--coach-surface),inset 0 0 0 8px color-mix(in srgb,var(--coach-accent) 22%,var(--coach-surface)); }
.coach-program-wizard-step.is-complete > span { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
.coach-program-wizard-step.is-complete:not(:last-child)::after { background: var(--coach-accent); }
.coach-program-wizard-body { min-height: 0; display: grid; align-content: start; gap: 12px; padding: 20px 24px 28px; overflow-y: auto; scrollbar-gutter: stable; background: var(--coach-bg); }
.coach-program-wizard-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--coach-line); background: var(--coach-surface); box-shadow: 0 -8px 22px color-mix(in srgb,var(--coach-ink) 5%,transparent); }
.coach-program-wizard-actions > .coach-button:nth-last-child(2) { margin-left: auto; }
.coach-setup-intro { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; margin-bottom: 2px; }
.coach-setup-intro > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--coach-accent); color: #fff; font: 700 9px/1 ui-monospace,monospace; }
.coach-setup-intro h3 { margin: 0; font-size: 17px; }
.coach-setup-intro p { margin: 5px 0 0; color: var(--coach-muted); font-size: 9px; line-height: 1.5; }
.coach-setup-section { padding: 17px; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-setup-section-head { margin-bottom: 13px; }
.coach-setup-section-head h3 { margin: 0; font-size: 11px; }
.coach-setup-section-head p { margin: 5px 0 0; color: var(--coach-muted); font-size: 8px; }
.coach-setup-fields,.coach-setup-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.coach-setup-fields > .coach-field:last-child:nth-child(3) { grid-column: 1/3; }
.coach-setup-field-grid .coach-field { min-width: 0; }
.coach-setup-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.coach-setup-choice-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.coach-setup-choice-grid.equipment { grid-template-columns: repeat(4,minmax(0,1fr)); }
.coach-setup-choice { min-height: 72px; display: grid; grid-template-columns: 32px minmax(0,1fr) 19px; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-bg); color: var(--coach-ink); text-align: left; }
.coach-setup-choice:hover { background: var(--coach-soft); }
.coach-setup-choice.is-selected { border-color: var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 8%,var(--coach-surface)); box-shadow: inset 0 0 0 1px var(--coach-accent); }
.coach-setup-choice-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; background: var(--coach-soft); color: var(--coach-accent); font: 700 8px/1 ui-monospace,monospace; }
.coach-setup-choice > div { min-width: 0; display: grid; gap: 5px; }
.coach-setup-choice strong { font-size: 9px; }
.coach-setup-choice small { color: var(--coach-muted); font-size: 7px; line-height: 1.35; }
.coach-setup-choice > i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 50%; color: transparent; font-size: 8px; font-style: normal; }
.coach-setup-choice.is-selected > i { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
.coach-setup-inline-label { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 16px 0 8px; }
.coach-setup-inline-label strong { font-size: 9px; }
.coach-setup-inline-label span { color: var(--coach-muted); font-size: 7px; }
.coach-setup-number-choices { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.coach-setup-number { min-height: 38px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-bg); color: var(--coach-muted); font-size: 10px; }
.coach-setup-number.is-selected { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
.coach-setup-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.coach-setup-day { min-height: 42px; border: 1px solid var(--coach-line); border-radius: 7px; background: var(--coach-bg); color: var(--coach-muted); font: 700 7px/1 ui-monospace,monospace; }
.coach-setup-day.is-selected { border-color: var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 11%,var(--coach-surface)); color: var(--coach-accent); box-shadow: inset 0 0 0 1px var(--coach-accent); }
.coach-setup-toggles { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 13px 0; }
.coach-setup-toggle { min-width: 0; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 8px; padding: 11px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-bg); }
.coach-setup-toggle input { width: 15px; height: 15px; accent-color: var(--coach-accent); }
.coach-setup-toggle > div { display: grid; gap: 4px; }
.coach-setup-toggle strong { font-size: 8px; }
.coach-setup-toggle small { color: var(--coach-muted); font-size: 7px; line-height: 1.45; }
.coach-setup-review { overflow: hidden; border: 1px solid color-mix(in srgb,var(--coach-accent) 40%,var(--coach-line)); border-radius: 10px; background: var(--coach-surface); }
.coach-setup-review > header { display: grid; gap: 5px; padding: 18px; background: linear-gradient(120deg,color-mix(in srgb,var(--coach-accent) 12%,var(--coach-surface)),var(--coach-surface)); }
.coach-setup-review > header > div { font-size: 16px; font-weight: 650; }
.coach-setup-review > header > span { color: var(--coach-muted); font-size: 9px; }
.coach-setup-review-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.coach-setup-review-grid > div { min-width: 0; display: grid; gap: 6px; padding: 13px 15px; border-top: 1px solid var(--coach-line); border-right: 1px solid var(--coach-line); }
.coach-setup-review-grid > div:nth-child(4n) { border-right: 0; }
.coach-setup-review-grid small { color: var(--coach-muted); font: 700 6px/1.2 ui-monospace,monospace; letter-spacing: .6px; }
.coach-setup-review-grid strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.coach-setup-review-note { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 12px 15px; border-top: 1px solid #e9cda9; background: #fff8ed; color: #68451d; }
.coach-setup-review-note > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #f3dbb9; font-weight: 700; }
.coach-setup-review-note > div { display: grid; gap: 4px; }
.coach-setup-review-note strong { font-size: 8px; }
.coach-setup-review-note p { margin: 0; font-size: 8px; }
.coach-setup-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.coach-setup-results > div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 12px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-bg); }
.coach-setup-results > div > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; background: var(--coach-soft); color: var(--coach-accent); font: 700 7px/1 ui-monospace,monospace; }
.coach-setup-results > div > div { display: grid; gap: 4px; }
.coach-setup-results strong { font-size: 8px; }
.coach-setup-results small { color: var(--coach-muted); font-size: 7px; line-height: 1.4; }
.coach-program-blueprint { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-program-blueprint-head { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border-bottom: 1px solid var(--coach-line); }
.coach-program-blueprint-head > div { font-size: 10px; font-weight: 700; }
.coach-program-blueprint-facts { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.coach-program-blueprint-facts > div { min-width: 0; display: grid; gap: 5px; padding: 12px 14px; border-right: 1px solid var(--coach-line); }
.coach-program-blueprint-facts > div:last-child { border-right: 0; }
.coach-program-blueprint-facts small { color: var(--coach-muted); font: 700 6px/1.2 ui-monospace,monospace; letter-spacing: .5px; }
.coach-program-blueprint-facts strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.coach-program-guardrail { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid #ead7bc; background: #fff9f0; color: #6b4923; }
.coach-program-guardrail > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f5dfbd; font-size: 9px; font-weight: 700; }
.coach-program-guardrail > div { display: grid; gap: 3px; }
.coach-program-guardrail small { font: 700 6px/1 ui-monospace,monospace; letter-spacing: .6px; }
.coach-program-guardrail strong { font-size: 8px; }
@media (max-width: 820px) {
    .coach-setup-choice-grid.three,.coach-setup-choice-grid.equipment { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .coach-setup-toggles { grid-template-columns: 1fr; }
    .coach-setup-review-grid { grid-template-columns: repeat(2,1fr); }
    .coach-setup-review-grid > div:nth-child(2n) { border-right: 0; }
    .coach-program-blueprint-facts { grid-template-columns: repeat(3,1fr); }
    .coach-program-blueprint-facts > div:nth-child(3n) { border-right: 0; }
}
@media (max-width: 600px) {
    .coach-program-wizard { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
    .coach-program-wizard-card { height: calc(100dvh - 18px); }
    .coach-program-wizard-head { padding: 17px 16px 12px; }
    .coach-program-wizard-head h2 { font-size: 20px; }
    .coach-program-wizard-progress { padding: 0 16px 13px; }
    .coach-program-wizard-step { justify-content: center; }
    .coach-program-wizard-step > strong { display: none; }
    .coach-program-wizard-step:not(:last-child)::after { left: calc(50% + 18px); right: calc(-50% + 18px); }
    .coach-program-wizard-body { padding: 16px; }
    .coach-program-wizard-actions { padding: 11px 13px; }
    .coach-program-wizard-actions .coach-button { min-width: 0; padding-inline: 10px; font-size: 8px; }
    .coach-setup-fields,.coach-setup-field-grid,.coach-setup-choice-grid,.coach-setup-choice-grid.three,.coach-setup-choice-grid.equipment,.coach-setup-results { grid-template-columns: 1fr; }
    .coach-setup-fields > .coach-field:last-child:nth-child(3) { grid-column: auto; }
    .coach-setup-days { grid-template-columns: repeat(4,1fr); }
    .coach-setup-choice { min-height: 62px; }
    .coach-setup-review-grid { grid-template-columns: 1fr 1fr; }
    .coach-program-blueprint-facts { grid-template-columns: 1fr 1fr; }
    .coach-program-blueprint-facts > div:nth-child(3n) { border-right: 1px solid var(--coach-line); }
    .coach-program-blueprint-facts > div:nth-child(2n) { border-right: 0; }
}


/* Complete program lifecycle controls */
.coach-program-menu-trigger { position: relative; z-index: 2; }
.coach-program-menu { position: absolute; top: 54px; right: 12px; z-index: 12; width: 190px; overflow: hidden; padding: 5px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); box-shadow: 0 16px 44px #13251c2b; }
.coach-program-menu-item { width: 100%; min-height: 38px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 7px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--coach-ink); text-align: left; }
.coach-program-menu-item:hover { background: var(--coach-soft); }
.coach-program-menu-item > span { color: var(--coach-accent); font-size: 12px; text-align: center; }
.coach-program-menu-item > strong { font-size: 8px; }
.coach-program-menu-item.is-danger { color: #9a493d; }
.coach-program-menu-item.is-danger > span { color: #b75547; }
.coach-program-archive { margin-top: 18px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-program-archive > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; cursor: pointer; list-style: none; }
.coach-program-archive > summary::-webkit-details-marker { display: none; }
.coach-program-archive > summary > span { font-size: 10px; font-weight: 700; }
.coach-program-archive > summary > span::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--coach-accent); transition: transform .15s; }
.coach-program-archive[open] > summary > span::before { transform: rotate(90deg); }
.coach-program-archive > summary small { color: var(--coach-muted); font-size: 8px; }
.coach-program-archive-list { border-top: 1px solid var(--coach-line); }
.coach-program-archive-row { min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--coach-line); }
.coach-program-archive-row:last-child { border-bottom: 0; }
.coach-program-archive-row > div:first-child { min-width: 0; flex: 1; display: grid; gap: 5px; }
.coach-program-archive-row strong { font-size: 9px; }
.coach-program-archive-row span { overflow: hidden; color: var(--coach-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coach-program-archive-row > div:last-child { display: flex; gap: 6px; }
.coach-button-danger { border-color: #e3c4bf; background: #fff4f2; color: #9b4437; }
.coach-program-confirm { grid-column: 1/-1; display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 11px; padding: 14px; border: 1px solid #ead0cb; border-radius: 8px; background: #fff6f4; color: #743f37; }
.coach-program-confirm > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #f1d8d3; font-weight: 750; }
.coach-program-confirm p { margin: 0; font-size: 9px; line-height: 1.5; }
.coach-program-assignment-list { grid-column: 1/-1; max-height: 360px; overflow-y: auto; border: 1px solid var(--coach-line); border-radius: 8px; }
.coach-program-assignment { min-height: 62px; display: grid; grid-template-columns: 18px 34px 1fr; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--coach-line); cursor: pointer; }
.coach-program-assignment:last-child { border-bottom: 0; }
.coach-program-assignment:hover { background: var(--coach-soft); }
.coach-program-assignment > input { width: 15px; height: 15px; accent-color: var(--coach-accent); }
.coach-program-assignment > div { min-width: 0; display: grid; gap: 4px; }
.coach-program-assignment strong { font-size: 9px; }
.coach-program-assignment small { overflow: hidden; color: var(--coach-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.coach-program-session-actions { display: flex!important; align-items: center; gap: 10px!important; }
.coach-program-session-actions .is-danger { color: #a1483b; }
.coach-exercise-actions { display: flex; align-items: center; gap: 4px; }
.coach-exercise-actions .coach-icon-button { width: 29px; height: 29px; }
.coach-remove-button { color: #a1483b; }
.coach-remove-button:hover { border-color: #dfbdb6; background: #fff3f1; }
@media (max-width: 680px) {
    .coach-program-menu { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; padding: 8px; }
    .coach-program-menu-item { min-height: 45px; }
    .coach-program-archive-row { align-items: flex-start; flex-direction: column; }
    .coach-program-archive-row > div:last-child { width: 100%; }
    .coach-program-archive-row > div:last-child .coach-button { flex: 1; }
    .coach-program-session-actions { grid-column: 2; justify-self: start; }
    .coach-program-exercise { grid-template-columns: 24px minmax(0,1fr); }
    .coach-exercise-actions { grid-column: 2; justify-self: start; flex-wrap: wrap; }
}


/* Base programs and client-specific modifications */
.coach-program-modified-badge { width: max-content; max-width: 100%; display: inline-flex!important; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid color-mix(in srgb,#7756a8 25%,var(--coach-line)); border-radius: 10px; background: #f1ebfa; color: #65458f!important; font: 700 6px/1 ui-monospace,monospace!important; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.coach-program-modified-badge b { color: #805eb0; font-size: 8px; }
.coach-client-program-value { min-width: 0; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.coach-client-program-value > span:first-child { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.coach-client-program-value .coach-program-modified-badge { flex: 0 0 auto; }
.coach-client-card-program { min-height: 24px; display: flex; align-items: center; gap: 6px; margin: 1px 0 10px; color: var(--coach-muted); font-size: 8px; }
.coach-client-card-program > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-client-stat-program { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.coach-client-plan-actions { display: flex; align-items: center; gap: 12px; }
.coach-builder-kicker-line { display: flex; align-items: center; gap: 9px; }
.coach-builder-kicker-line .coach-kicker { margin: 0; }
.coach-builder-overview.is-personalized { background: linear-gradient(120deg,#ebe3f5,#f6f1fa); color: #39274e; }
.coach-builder-overview.is-personalized p:last-child { color: #725f84; }
.coach-builder-overview.is-personalized .coach-program-readiness small { color: #725f84; }
.coach-personalized-notice { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border: 1px solid #d8c9e8; border-radius: 9px; background: #f7f3fb; color: #4d3866; }
.coach-personalized-notice > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #e8dcf3; color: #75549a; font-size: 16px; }
.coach-personalized-notice > div { display: grid; gap: 4px; }
.coach-personalized-notice strong { font-size: 9px; }
.coach-personalized-notice p { margin: 0; color: #766686; font-size: 8px; line-height: 1.5; }
.coach-program-assignees { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-program-assignees-head { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 15px; border-bottom: 1px solid var(--coach-line); }
.coach-program-assignees-head > div { font-size: 10px; font-weight: 700; }
.coach-program-assignees-head > span { color: var(--coach-muted); font-size: 8px; }
.coach-program-assignee-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.coach-program-assignee { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 13px; border-right: 1px solid var(--coach-line); border-bottom: 1px solid var(--coach-line); }
.coach-program-assignee:nth-child(2n) { border-right: 0; }
.coach-program-assignee > div { min-width: 0; display: grid; gap: 4px; }
.coach-program-assignee > div > div { min-width: 0; display: flex; align-items: center; gap: 6px; }
.coach-program-assignee strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.coach-program-assignee small { overflow: hidden; color: var(--coach-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.coach-program-base-badge { padding: 4px 5px; border-radius: 8px; background: var(--coach-soft); color: var(--coach-muted); font: 700 6px/1 ui-monospace,monospace; letter-spacing: .4px; }
.coach-program-assignees-empty { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; color: var(--coach-muted); }
.coach-program-assignees-empty > span { color: var(--coach-accent); font-size: 15px; }
.coach-program-assignees-empty p { margin: 0; font-size: 8px; }
.coach-program-assignment-name { display: flex!important; align-items: center; gap: 6px!important; }
@media (max-width: 680px) {
    .coach-client-program-value { align-items: flex-start; flex-direction: column; }
    .coach-client-plan-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
    .coach-builder-kicker-line { align-items: flex-start; flex-direction: column; }
    .coach-program-assignee-list { grid-template-columns: 1fr; }
    .coach-program-assignee { border-right: 0; }
    .coach-program-assignees-head { grid-template-columns: 1fr auto; }
    .coach-program-assignees-head > span { grid-column: 1; }
    .coach-program-assignees-head > .coach-text-button { grid-column: 2; grid-row: 1/3; }
}
/* Detailed client context, journals, and longitudinal records */
.coach-client-context .coach-panel-head > div { display: grid; gap: 4px; }
.coach-client-context .coach-panel-head strong { font-size: 11px; }
.coach-client-context .coach-panel-head small { color: var(--coach-muted); font-size: 8px; font-weight: 400; }
.coach-context-grid { display: grid; grid-template-columns: 1fr 1fr; }
.coach-context-item { min-width: 0; min-height: 82px; padding: 15px 18px; border-right: 1px solid var(--coach-line); border-bottom: 1px solid var(--coach-line); }
.coach-context-item:nth-child(2n) { border-right: 0; }
.coach-context-item:last-child { grid-column: 1/-1; border-right: 0; border-bottom: 0; }
.coach-context-item small { display: block; margin-bottom: 7px; color: var(--coach-muted); font: 700 7px/1.2 ui-monospace,monospace; letter-spacing: .55px; text-transform: uppercase; }
.coach-context-item p { margin: 0; font-size: 9px; line-height: 1.55; }
.coach-field-wide { grid-column: 1/-1!important; }
.coach-records-workspace { margin-top: 12px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-records-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--coach-line); background: linear-gradient(115deg,var(--coach-surface),var(--coach-soft)); }
.coach-records-header h2 { margin: 2px 0 7px; font-size: 21px; font-weight: 620; }
.coach-records-header > div:first-child > p:last-child { margin: 0; color: var(--coach-muted); font-size: 9px; line-height: 1.5; }
.coach-records-header-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.coach-records-shell { min-height: 470px; display: grid; grid-template-columns: 210px minmax(0,1fr); }
.coach-records-sidebar { padding: 16px 10px; border-right: 1px solid var(--coach-line); background: color-mix(in srgb,var(--coach-soft) 52%,var(--coach-surface)); }
.coach-records-sidebar-label { display: block; padding: 0 10px 10px; color: var(--coach-muted); font: 700 7px/1 ui-monospace,monospace; letter-spacing: .8px; }
.coach-records-nav { width: 100%; min-height: 39px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--coach-ink); text-align: left; }
.coach-records-nav:hover { background: var(--coach-surface); }
.coach-records-nav.is-active { background: var(--coach-surface); box-shadow: 0 1px 0 #00000008,0 0 0 1px var(--coach-line); }
.coach-records-nav > span { color: var(--coach-accent); font-size: 12px; text-align: center; }
.coach-records-nav > strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.coach-records-nav > small { min-width: 20px; padding: 3px 5px; border-radius: 9px; background: var(--coach-soft); color: var(--coach-muted); font-size: 7px; text-align: center; }
.coach-records-sidebar-section { display: flex; align-items: center; justify-content: space-between; margin: 16px 5px 6px 10px; }
.coach-records-sidebar-section > small { color: var(--coach-muted); font: 700 7px/1 ui-monospace,monospace; letter-spacing: .8px; }
.coach-records-sidebar-section .coach-icon-button { width: 25px; height: 25px; }
.coach-records-main { min-width: 0; }
.coach-records-toolbar { display: flex; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--coach-line); }
.coach-records-toolbar .coach-search { flex: 1; width: auto; }
.coach-records-toolbar .coach-select { width: 170px; }
.coach-records-collection-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--coach-line); }
.coach-records-collection-head > div:first-child { display: grid; gap: 4px; }
.coach-records-collection-head strong { font-size: 11px; }
.coach-records-collection-head small { color: var(--coach-muted); font-size: 8px; line-height: 1.4; }
.coach-records-collection-actions { display: flex; gap: 12px; }
.coach-text-button.is-danger { color: #a1483b; }
.coach-record-feed { padding: 0 18px 20px; }
.coach-record-card { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--coach-line); }
.coach-record-card:last-child { border-bottom: 0; }
.coach-record-card.is-pinned { background: linear-gradient(90deg,color-mix(in srgb,var(--coach-accent) 7%,transparent),transparent 55%); }
.coach-record-rail { display: flex; justify-content: center; }
.coach-record-rail > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid color-mix(in srgb,var(--coach-accent) 30%,var(--coach-line)); border-radius: 9px; background: color-mix(in srgb,var(--coach-accent) 9%,var(--coach-surface)); color: var(--coach-accent); font: 750 9px/1 ui-monospace,monospace; }
.coach-record-body { min-width: 0; }
.coach-record-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coach-record-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.coach-record-type { padding: 4px 6px; border-radius: 4px; background: var(--coach-soft); color: var(--coach-ink); font: 700 7px/1 ui-monospace,monospace; text-transform: uppercase; letter-spacing: .35px; }
.coach-record-meta time { color: var(--coach-muted); font-size: 8px; }
.coach-record-pinned { color: var(--coach-accent); font: 700 7px/1 ui-monospace,monospace; text-transform: uppercase; }
.coach-record-actions { display: flex; gap: 10px; opacity: .72; }
.coach-record-card:hover .coach-record-actions { opacity: 1; }
.coach-record-body h3 { margin: 9px 0 7px; font-size: 13px; font-weight: 650; }
.coach-record-copy { max-width: 800px; margin: 0; color: var(--coach-muted); font-size: 9px; line-height: 1.7; white-space: pre-wrap; }
.coach-record-related { width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 6px; margin-top: 11px; padding: 7px 9px; border: 1px solid var(--coach-line); border-radius: 6px; background: var(--coach-soft); font-size: 8px; }
.coach-record-related > span:first-child { color: var(--coach-accent); }
.coach-record-related > span:last-child { overflow: hidden; color: var(--coach-muted); text-overflow: ellipsis; white-space: nowrap; }
.coach-record-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.coach-record-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.coach-record-tags span { padding: 4px 6px; border-radius: 9px; background: var(--coach-soft); color: var(--coach-muted); font-size: 7px; }
.coach-record-visibility { display: inline-flex; align-items: center; gap: 5px; color: var(--coach-muted); font-size: 7px; white-space: nowrap; }
.coach-record-visibility b { color: #8d8f8d; font-size: 9px; }
.coach-record-visibility.is-shared b { color: var(--coach-accent); }
.coach-record-feed > .coach-empty { min-height: 300px; }
.coach-record-feed > .coach-empty .coach-button { margin-top: 10px; }
.coach-record-remove-warning { grid-column: 1/-1; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--coach-line); border-radius: 8px; background: var(--coach-soft); }
.coach-record-remove-warning > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--coach-surface); color: var(--coach-accent); }
.coach-record-remove-warning p { margin: 0; font-size: 9px; line-height: 1.5; }
.coach-record-remove-warning.is-danger { border-color: #ead0cb; background: #fff6f4; color: #743f37; }
.coach-record-remove-warning.is-danger > span { background: #f1d8d3; color: #9b4437; }
@media (max-width: 900px) {
    .coach-records-shell { grid-template-columns: 175px minmax(0,1fr); }
}
@media (max-width: 680px) {
    .coach-context-grid { grid-template-columns: 1fr; }
    .coach-context-item,.coach-context-item:nth-child(2n),.coach-context-item:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--coach-line); }
    .coach-context-item:last-child { border-bottom: 0; }
    .coach-records-header { align-items: flex-start; flex-direction: column; padding: 19px 16px; }
    .coach-records-header-actions { width: 100%; }
    .coach-records-header-actions .coach-button { flex: 1; }
    .coach-records-shell { display: block; }
    .coach-records-sidebar { display: flex; gap: 6px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--coach-line); }
    .coach-records-sidebar-label,.coach-records-sidebar-section { display: none; }
    .coach-records-nav { min-width: max-content; width: auto; grid-template-columns: 18px auto auto; }
    .coach-records-toolbar { flex-direction: column; }
    .coach-records-toolbar .coach-select { width: 100%; }
    .coach-records-collection-head { align-items: flex-start; flex-direction: column; }
    .coach-record-card { grid-template-columns: 31px minmax(0,1fr); gap: 8px; }
    .coach-record-rail > span { width: 27px; height: 27px; }
    .coach-record-card-top { align-items: flex-start; flex-direction: column; }
    .coach-record-actions { width: 100%; opacity: 1; }
    .coach-record-footer { align-items: flex-start; flex-direction: column; }
}


/* Customized client goals and milestone tracking */
.coach-goals-panel { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--coach-line); border-radius: 10px; background: var(--coach-surface); }
.coach-goals-head { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 23px; border-bottom: 1px solid var(--coach-line); background: linear-gradient(120deg,color-mix(in srgb,var(--coach-accent) 7%,var(--coach-surface)),var(--coach-surface)); }
.coach-goals-head h2 { margin: 2px 0 6px; font-size: 20px; font-weight: 620; }
.coach-goals-head > div:first-child > p:last-child { margin: 0; color: var(--coach-muted); font-size: 9px; line-height: 1.5; }
.coach-goals-head-actions { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.coach-goals-head-actions > span { color: var(--coach-muted); font-size: 8px; }
.coach-goal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; }
.coach-goal-card { min-width: 0; overflow: hidden; padding: 17px; border: 1px solid var(--coach-line); border-radius: 9px; background: var(--coach-surface); }
.coach-goal-card.is-primary { grid-column: 1/-1; border-color: color-mix(in srgb,var(--coach-accent) 40%,var(--coach-line)); background: linear-gradient(120deg,color-mix(in srgb,var(--coach-accent) 6%,var(--coach-surface)),var(--coach-surface) 54%); }
.coach-goal-card.is-complete { background: color-mix(in srgb,var(--coach-accent) 5%,var(--coach-surface)); }
.coach-goal-card.is-paused { opacity: .8; }
.coach-goal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coach-goal-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coach-goal-badges > span { padding: 4px 6px; border-radius: 9px; font: 700 6px/1 ui-monospace,monospace; letter-spacing: .35px; text-transform: uppercase; }
.coach-goal-category { background: var(--coach-soft); color: var(--coach-muted); }
.coach-goal-primary-badge { background: color-mix(in srgb,var(--coach-accent) 15%,var(--coach-surface)); color: var(--coach-accent); }
.coach-goal-status { border: 1px solid var(--coach-line); color: var(--coach-muted); }
.is-complete .coach-goal-status { border-color: #b8d8c0; background: #eaf6ed; color: #377349; }
.coach-goal-card-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.coach-goal-title { margin: 13px 0 15px; }
.coach-goal-title h3 { margin: 0 0 6px; font-size: 15px; font-weight: 650; }
.coach-goal-title p { max-width: 760px; margin: 0; color: var(--coach-muted); font-size: 9px; line-height: 1.55; }
.coach-goal-measure { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; padding: 12px 13px; border-radius: 7px; background: var(--coach-soft); }
.coach-goal-measure > div:first-child { display: grid; gap: 5px; }
.coach-goal-measure small { color: var(--coach-muted); font: 700 7px/1 ui-monospace,monospace; letter-spacing: .45px; text-transform: uppercase; }
.coach-goal-measure strong { font-size: 10px; }
.coach-goal-measure > b { color: var(--coach-accent); font-size: 15px; }
.coach-goal-progress { grid-column: 1/-1; height: 5px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb,var(--coach-line) 75%,transparent); }
.coach-goal-progress i { display: block; height: 100%; border-radius: inherit; background: var(--coach-accent); transition: width .25s ease; }
.coach-goal-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 11px; border: 1px solid var(--coach-line); border-radius: 7px; }
.coach-goal-facts > div { min-width: 0; display: grid; gap: 5px; padding: 10px; border-right: 1px solid var(--coach-line); }
.coach-goal-facts > div:last-child { border: 0; }
.coach-goal-facts small { color: var(--coach-muted); font: 700 6px/1 ui-monospace,monospace; letter-spacing: .4px; text-transform: uppercase; }
.coach-goal-facts strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coach-goal-strategy { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--coach-accent); background: color-mix(in srgb,var(--coach-accent) 5%,var(--coach-surface)); }
.coach-goal-strategy > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--coach-soft); color: var(--coach-accent); }
.coach-goal-strategy p { margin: 0; color: var(--coach-muted); font-size: 8px; line-height: 1.5; }
.coach-goal-strategy > small { color: var(--coach-muted); font: 700 6px/1 ui-monospace,monospace; letter-spacing: .45px; }
.coach-goal-milestones { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--coach-line); }
.coach-goal-milestones > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; }
.coach-goal-milestones > div:first-child strong { font-size: 9px; }
.coach-goal-milestones > div:first-child small { color: var(--coach-muted); font-size: 7px; }
.coach-goal-milestone { width: 100%; min-height: 36px; display: grid; grid-template-columns: 21px 1fr; align-items: center; gap: 7px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--coach-ink); text-align: left; }
.coach-goal-milestone:hover { background: var(--coach-soft); }
.coach-goal-milestone > span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--coach-line); border-radius: 50%; font-size: 7px; }
.coach-goal-milestone > strong { font-size: 8px; font-weight: 550; }
.coach-goal-milestone.is-complete > span { border-color: var(--coach-accent); background: var(--coach-accent); color: #fff; }
.coach-goal-milestone.is-complete > strong { color: var(--coach-muted); text-decoration: line-through; }
.coach-goal-dialog { width: min(760px,calc(100% - 28px)); }
.coach-goal-dialog .coach-dialog-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
.coach-goal-dialog .coach-dialog-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.coach-goal-form-section { grid-column: 1/-1; margin: 8px 0 -2px; padding: 9px 0 3px; border-top: 1px solid var(--coach-line); color: var(--coach-accent); font: 750 7px/1 ui-monospace,monospace; letter-spacing: .7px; text-transform: uppercase; }
.coach-goal-form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.coach-goal-dialog [data-goal-tracking][hidden] { display: none!important; }
@media (max-width: 760px) {
    .coach-goal-grid { grid-template-columns: 1fr; }
    .coach-goal-card.is-primary { grid-column: auto; }
    .coach-goal-facts { grid-template-columns: 1fr 1fr; }
    .coach-goal-facts > div:nth-child(2) { border-right: 0; }
    .coach-goal-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--coach-line); }
    .coach-goals-head { align-items: flex-start; flex-direction: column; }
    .coach-goals-head-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) {
    .coach-goal-card-top { align-items: flex-start; flex-direction: column; }
    .coach-goal-card-actions { width: 100%; flex-wrap: wrap; }
    .coach-goal-strategy { grid-template-columns: 29px 1fr; }
    .coach-goal-strategy > small { grid-column: 2; grid-row: 1; }
    .coach-goal-strategy > div { grid-column: 2; }
    .coach-goal-dialog .coach-dialog-fields { grid-template-columns: 1fr; }
}


/* Client portal, real calendars, administration, messaging, and billing */
.coach-client-portal{min-height:100%;background:var(--coach-bg,#f4f3ef);color:var(--coach-ink)}
.coach-client-portal .coach-role-topbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:13px clamp(18px,4vw,52px);border-bottom:1px solid var(--coach-line);background:color-mix(in srgb,var(--coach-surface) 94%,transparent);backdrop-filter:blur(14px)}
.coach-client-nav{display:flex;justify-content:center;gap:5px;overflow-x:auto}
.coach-client-nav-item,.coach-client-detail-tab{padding:9px 12px;border:0;border-radius:7px;background:transparent;color:var(--coach-muted);font:700 8px/1 ui-monospace,monospace;letter-spacing:.45px;text-transform:uppercase;white-space:nowrap}
.coach-client-nav-item:hover,.coach-client-detail-tab:hover{background:var(--coach-soft);color:var(--coach-ink)}
.coach-client-nav-item.is-active,.coach-client-detail-tab.is-active{background:var(--coach-accent);color:#fff}
.coach-client-content{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:34px 0 70px}
.coach-client-today-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px;padding:28px;border:1px solid color-mix(in srgb,var(--coach-accent) 32%,var(--coach-line));border-radius:12px;background:linear-gradient(120deg,color-mix(in srgb,var(--coach-accent) 13%,var(--coach-surface)),var(--coach-surface))}
.coach-client-today-hero h2{margin:5px 0 8px;font-size:clamp(22px,3vw,34px)}.coach-client-today-hero p,.coach-client-today-hero small{color:var(--coach-muted)}.coach-client-today-hero>div:last-child{display:flex;gap:9px;flex-wrap:wrap}
.coach-client-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.coach-client-home-card{display:flex;min-height:190px;flex-direction:column;padding:21px;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface)}.coach-client-home-card>small{color:var(--coach-accent);font:750 7px/1 ui-monospace,monospace;letter-spacing:.55px}.coach-client-home-card h3{margin:15px 0 7px;font-size:16px}.coach-client-home-card p{flex:1;margin:0 0 14px;color:var(--coach-muted);font-size:9px;line-height:1.55}
.coach-client-mini-progress{position:relative;height:21px;margin:7px 0 12px;border-radius:11px;background:var(--coach-soft);overflow:hidden}.coach-client-mini-progress i{display:block;height:100%;background:color-mix(in srgb,var(--coach-accent) 55%,transparent)}.coach-client-mini-progress span{position:absolute;inset:0;display:grid;place-items:center;font:750 7px ui-monospace,monospace}
.coach-client-week-strip,.coach-client-shared-records,.coach-client-progress-chart,.coach-client-progress-goals{overflow:hidden;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface)}.coach-client-workout-row{width:100%;display:grid;grid-template-columns:120px 1fr 110px 70px;align-items:center;gap:12px;padding:14px 18px;border:0;border-top:1px solid var(--coach-line);background:transparent;color:var(--coach-ink);text-align:left}.coach-client-workout-row:hover{background:var(--coach-soft)}.coach-client-workout-row time,.coach-client-workout-row span{color:var(--coach-muted);font-size:8px}.coach-client-workout-row b{color:var(--coach-accent);font:700 7px ui-monospace,monospace;text-transform:uppercase}.coach-client-workout-row.is-complete{opacity:.72}
.coach-client-workout-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:13px;padding:17px 20px;border:1px solid var(--coach-line);border-radius:9px;background:var(--coach-surface)}.coach-client-workout-intro>div{display:grid;gap:5px}.coach-client-workout-intro small,.coach-client-workout-intro span{color:var(--coach-muted);font-size:8px}
.coach-client-exercise-list{display:grid;gap:10px}.coach-client-exercise-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:15px;padding:18px;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface)}.coach-exercise-number{font:600 20px ui-monospace,monospace;color:color-mix(in srgb,var(--coach-accent) 70%,var(--coach-muted))}.coach-client-exercise-card h3{margin:0 0 5px;font-size:15px}.coach-client-exercise-card strong{font-size:9px}.coach-client-exercise-card p{margin:6px 0 0;color:var(--coach-muted);font-size:8px}.coach-client-exercise-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.coach-upload-inline{cursor:pointer}
.coach-client-workout-finish{display:grid;grid-template-columns:1fr minmax(220px,2fr) 120px auto;align-items:center;gap:12px;margin-top:14px;padding:20px;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface)}.coach-client-workout-finish h3{margin:0 0 4px}.coach-client-workout-finish p{margin:0;color:var(--coach-muted);font-size:8px}.coach-client-workout-finish textarea{min-height:58px}
.coach-client-3d-dialog{width:min(900px,calc(100% - 24px))}.coach-client-3d-stage{position:relative;height:min(52vh,470px);overflow:hidden;border-radius:9px;background:#0b1711}.coach-client-3d-stage canvas{width:100%;height:100%}.coach-client-3d-controls{display:flex;align-items:end;gap:14px;margin-top:13px}.coach-client-3d-controls .coach-field{flex:1}
.coach-client-calendar-toolbar,.coach-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 13px;padding:10px 13px;border:1px solid var(--coach-line);border-radius:9px;background:var(--coach-surface)}.coach-client-calendar-toolbar h2,.coach-calendar-toolbar h2{min-width:190px;margin:0;font-size:16px;text-align:center}.coach-calendar-toolbar>div{display:flex;align-items:center;gap:8px}.coach-calendar-modes{padding:3px;border-radius:8px;background:var(--coach-soft)}
.coach-client-month-grid,.coach-month-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-line);gap:1px;overflow:hidden}.coach-client-calendar-weekday,.coach-calendar-weekday{padding:10px;background:var(--coach-soft);color:var(--coach-muted);font:750 7px ui-monospace,monospace;text-align:center}.coach-client-calendar-day,.coach-calendar-cell{min-height:132px;padding:9px;background:var(--coach-surface);overflow:hidden}.coach-client-calendar-day.is-empty,.coach-calendar-cell.is-empty{background:color-mix(in srgb,var(--coach-soft) 65%,var(--coach-surface))}.coach-client-calendar-day.is-today,.coach-calendar-cell.is-today{box-shadow:inset 0 0 0 2px var(--coach-accent)}.coach-client-calendar-day>b,.coach-calendar-cell>b{display:block;margin-bottom:7px;font:700 9px ui-monospace,monospace}.coach-client-calendar-event,.coach-calendar-cell .coach-calendar-event{width:100%;display:grid;gap:2px;margin:4px 0;padding:7px;border:0;border-radius:6px;background:color-mix(in srgb,var(--coach-accent) 11%,var(--coach-surface));color:var(--coach-ink);text-align:left}.coach-client-calendar-event strong,.coach-calendar-cell .coach-calendar-event strong{overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.coach-client-calendar-event span,.coach-client-calendar-event time,.coach-calendar-cell .coach-calendar-event span,.coach-calendar-cell .coach-calendar-event time{color:var(--coach-muted);font-size:6px}.coach-client-calendar-event.is-complete,.coach-calendar-event.is-workout{background:#e8f3e9;color:#346343}.coach-client-calendar-event.is-session{background:#e8eef8;color:#375b83}
.coach-calendar-upcoming{margin-top:14px;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface);overflow:hidden}.coach-calendar-upcoming-row{display:grid;grid-template-columns:75px 1fr auto auto;align-items:center;gap:14px;padding:13px 17px;border-top:1px solid var(--coach-line)}.coach-calendar-upcoming-row>time{color:var(--coach-muted);font:700 7px ui-monospace,monospace}.coach-calendar-upcoming-row>div{display:grid;gap:4px}.coach-calendar-upcoming-row span{color:var(--coach-muted);font-size:8px}
.coach-client-goals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.coach-client-goal-card{padding:22px;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface)}.coach-client-goal-card h2{margin:11px 0 7px}.coach-client-goal-card>p{color:var(--coach-muted);font-size:9px;line-height:1.55}.coach-client-goal-milestones{margin-top:15px}.coach-client-shared-records>article{display:grid;gap:5px;padding:15px 18px;border-top:1px solid var(--coach-line)}.coach-client-shared-records small,.coach-client-shared-records p{color:var(--coach-muted);font-size:8px}.coach-client-shared-records p{margin:0;line-height:1.55}
.coach-client-journal-privacy{display:flex;align-items:center;gap:11px;margin-bottom:13px;padding:13px 16px;border:1px solid #cce0d0;border-radius:9px;background:#edf6ef}.coach-client-journal-privacy span{font:800 7px ui-monospace,monospace}.coach-client-journal-privacy p{margin:0;font-size:8px}.coach-client-journal-list{display:grid;gap:10px}.coach-client-journal-card{display:grid;grid-template-columns:1fr 2fr auto;gap:18px;padding:19px;border:1px solid var(--coach-line);border-radius:10px;background:var(--coach-surface)}.coach-client-journal-card>div{display:grid;align-content:start;gap:6px}.coach-client-journal-card time,.coach-client-journal-card p{color:var(--coach-muted);font-size:8px;line-height:1.55}
.coach-client-message-thread{overflow:hidden;border:1px solid var(--coach-line);border-radius:11px;background:var(--coach-surface)}.coach-client-message-list{height:min(55vh,560px);overflow-y:auto;display:flex;flex-direction:column;gap:9px;padding:22px}.coach-client-message{max-width:min(72%,620px);padding:12px 14px;border-radius:10px;background:var(--coach-soft)}.coach-client-message.client{align-self:flex-end;background:color-mix(in srgb,var(--coach-accent) 16%,var(--coach-surface))}.coach-client-message p{margin:5px 0;font-size:9px;line-height:1.5}.coach-client-message small,.coach-client-message time{color:var(--coach-muted);font-size:6px}.coach-client-message-composer{display:grid;grid-template-columns:auto 1fr auto;gap:9px;padding:13px;border-top:1px solid var(--coach-line)}.coach-message-attachment,.coach-message-link{display:block;margin-top:6px;padding:6px 8px;border:1px solid var(--coach-line);border-radius:5px;background:transparent;color:var(--coach-accent);font:700 6px ui-monospace,monospace}
.coach-client-progress-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:13px}.coach-client-progress-stats article{display:grid;gap:9px;padding:18px;border:1px solid var(--coach-line);border-radius:9px;background:var(--coach-surface)}.coach-client-progress-stats small{color:var(--coach-muted);font:700 7px ui-monospace,monospace}.coach-client-progress-stats strong{font-size:24px}.coach-progress-bars{height:230px;display:flex;align-items:end;gap:14px;padding:20px}.coach-progress-bars>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:end;gap:7px;text-align:center}.coach-progress-bars i{display:block;min-height:4px;border-radius:5px 5px 0 0;background:var(--coach-accent)}.coach-progress-bars small{color:var(--coach-muted);font-size:7px}.coach-client-progress-goals{margin-top:13px}.coach-client-progress-goals>div:not(.coach-panel-head){display:grid;grid-template-columns:220px 1fr;align-items:center;gap:15px;padding:13px 17px;border-top:1px solid var(--coach-line)}
.coach-client-detail-tabs{display:flex;gap:5px;margin:12px 0;padding:5px;border:1px solid var(--coach-line);border-radius:9px;background:var(--coach-surface);overflow-x:auto}.coach-client-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.coach-client-overview-grid>.coach-panel{margin:0}.coach-client-overview-goal{padding-bottom:18px}.coach-client-overview-goal>h2,.coach-client-overview-goal>p,.coach-client-overview-goal>.coach-client-mini-progress{margin-left:18px;margin-right:18px}.coach-client-overview-goal>p{color:var(--coach-muted);font-size:8px}.coach-client-recent-record{display:grid;gap:5px;padding:12px 17px;border-top:1px solid var(--coach-line)}.coach-client-recent-record small,.coach-client-recent-record p{margin:0;color:var(--coach-muted);font-size:8px;line-height:1.45}.coach-personalized-notice{margin:10px 14px;padding:9px 11px;border-radius:6px;background:#fff3d7;color:#755817;font:700 7px ui-monospace,monospace}.coach-client-session-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 17px;border-top:1px solid var(--coach-line)}.coach-client-session-row>div{display:grid;gap:4px}.coach-client-session-row small,.coach-client-session-row span{color:var(--coach-muted);font-size:7px}
.coach-client-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.coach-client-admin-grid>.coach-panel{margin:0}.coach-admin-row{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:11px 16px;border-top:1px solid var(--coach-line)}.coach-admin-row small{color:var(--coach-muted);font:700 7px ui-monospace,monospace}.coach-admin-row strong{font-size:8px;text-align:right}.coach-admin-actions{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px}.coach-admin-danger{grid-column:1/-1;border-color:#e2c8c1}.coach-admin-danger>p{margin:0;padding:0 16px;color:var(--coach-muted);font-size:8px}.coach-dialog-warning{padding:12px;border-radius:7px;background:#fff1ee;color:#8c4235}
.coach-conversation-meta{display:grid;justify-items:end;gap:5px}.coach-unread-badge{min-width:18px;height:18px;display:grid;place-items:center;border-radius:10px;background:var(--coach-accent);color:#fff;font:700 7px ui-monospace,monospace}.coach-thread-head>div{display:flex;align-items:center;gap:9px}.coach-thread-head>div>div{display:grid;gap:3px}.coach-thread-head small{color:var(--coach-muted);font-size:7px}.coach-messages{overflow-y:auto}.coach-messages .coach-message{display:grid;gap:5px}.coach-messages .coach-message p{margin:0}.coach-messages .coach-message time{opacity:.65;font-size:6px}.coach-message-tools{display:flex;gap:8px;padding:10px 13px;border-top:1px solid var(--coach-line);background:var(--coach-soft)}.coach-message-tools select{max-width:280px}.coach-composer-rich{grid-template-columns:auto 1fr auto}.coach-composer-rich textarea{resize:none}
.coach-billing-dialog{width:min(900px,calc(100% - 24px))}.coach-billing-notice{margin:12px 0;padding:12px 14px;border-radius:8px;background:#fff3d7;color:#755817;font-size:8px}.coach-billing-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.coach-billing-plan{display:grid;align-content:start;gap:9px;padding:22px;border:1px solid var(--coach-line);border-radius:11px}.coach-billing-plan.is-current{box-shadow:inset 0 0 0 2px var(--coach-accent)}.coach-billing-plan>small{color:var(--coach-accent);font:750 7px ui-monospace,monospace}.coach-billing-plan h3{margin:0;font-size:18px}.coach-billing-plan>strong{font-size:28px}.coach-billing-plan p,.coach-billing-plan span{color:var(--coach-muted);font-size:8px}.coach-billing-plan span:before{content:'OK  ';color:var(--coach-accent);font-weight:800}.coach-billing-plan .coach-button{margin-top:8px}.coach-billing-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;border-top:1px solid var(--coach-line)}.coach-billing-footer span{color:var(--coach-muted);font-size:7px}
@media(max-width:900px){.coach-client-portal .coach-role-topbar{grid-template-columns:1fr auto}.coach-client-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start}.coach-client-home-grid,.coach-client-goals-grid,.coach-client-overview-grid,.coach-client-admin-grid{grid-template-columns:1fr}.coach-client-workout-finish{grid-template-columns:1fr 1fr}.coach-client-workout-finish>div,.coach-client-workout-finish>textarea{grid-column:1/-1}.coach-client-calendar-day,.coach-calendar-cell{min-height:105px;padding:6px}.coach-client-calendar-event span,.coach-calendar-cell .coach-calendar-event span{display:none}.coach-client-journal-card{grid-template-columns:1fr}.coach-admin-danger{grid-column:auto}}
@media(max-width:680px){.coach-client-content{width:min(100% - 20px,1180px);padding-top:20px}.coach-client-portal .coach-role-topbar{gap:10px;padding:11px}.coach-client-portal .coach-role-topbar>.coach-button{font-size:0}.coach-client-portal .coach-role-topbar>.coach-button:after{content:'Switch';font-size:7px}.coach-client-today-hero{align-items:flex-start;flex-direction:column;padding:20px}.coach-client-home-grid,.coach-client-progress-stats,.coach-billing-plans{grid-template-columns:1fr}.coach-client-workout-row{grid-template-columns:90px 1fr}.coach-client-workout-row span,.coach-client-workout-row b{display:none}.coach-client-exercise-card{grid-template-columns:32px 1fr}.coach-client-exercise-actions{grid-column:2;justify-content:flex-start}.coach-client-workout-finish{grid-template-columns:1fr}.coach-client-workout-finish>*{grid-column:1/-1}.coach-client-month-grid,.coach-month-calendar{min-width:720px}.coach-client-calendar-toolbar+*,.coach-calendar-toolbar+*{overflow-x:auto}.coach-client-calendar-toolbar,.coach-calendar-toolbar{align-items:flex-start;flex-direction:column}.coach-calendar-upcoming-row{grid-template-columns:60px 1fr}.coach-calendar-upcoming-row>.coach-text-button,.coach-calendar-upcoming-row>.coach-button{grid-column:2}.coach-client-message-composer,.coach-composer-rich{grid-template-columns:1fr}.coach-message-tools{align-items:stretch;flex-direction:column}.coach-message-tools select{max-width:none}.coach-client-progress-goals>div:not(.coach-panel-head){grid-template-columns:1fr}.coach-client-3d-controls,.coach-billing-footer{align-items:stretch;flex-direction:column}}

.coach-remote-participants{position:absolute;right:14px;bottom:74px;z-index:4;display:flex;max-width:46%;gap:8px;overflow-x:auto}.coach-remote-video-tile{position:relative;width:190px;aspect-ratio:16/10;flex:0 0 auto;overflow:hidden;border:2px solid rgba(255,255,255,.8);border-radius:9px;background:#0b1711;box-shadow:0 8px 25px rgba(0,0,0,.25)}.coach-remote-video-tile video{width:100%;height:100%;object-fit:cover}.coach-remote-video-tile span{position:absolute;left:7px;bottom:6px;padding:4px 6px;border-radius:4px;background:rgba(0,0,0,.62);color:#fff;font:700 6px ui-monospace,monospace}@media(max-width:680px){.coach-remote-participants{right:8px;bottom:70px;max-width:62%}.coach-remote-video-tile{width:130px}}


/* Active membership and retained read-only coaching access */
.coach-membership-gate{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin:14px 24px 0;padding:13px 15px;border:1px solid #e7c887;border-radius:9px;background:linear-gradient(105deg,#fff7e4,#fffdf8);color:#644c1b}
.coach-membership-gate>div{display:grid;gap:3px}.coach-membership-gate strong{font-size:10px}.coach-membership-gate span{font-size:8px;line-height:1.45}.coach-membership-lock{display:grid;width:36px;height:36px;place-items:center;border-radius:50%;background:#f3dfae;font:800 6px ui-monospace,monospace;letter-spacing:.4px}
.coach-plan.is-read-only{border-color:#ddc789;background:color-mix(in srgb,#fff3d7 45%,var(--coach-surface))}.coach-plan.is-read-only .coach-plan-badge{background:#8b6b28;color:#fff}
.coach-billing-single{grid-template-columns:minmax(0,560px);justify-content:center}.coach-billing-single .coach-billing-plan{min-height:0}
@media(max-width:680px){.coach-membership-gate{grid-template-columns:auto 1fr;margin:10px 10px 0}.coach-membership-gate>.coach-button{grid-column:1/-1;width:100%}}
