/* All styles scoped to the opt-in trainer layout. */
.compact-coach .main{max-width:none!important;padding:20px 26px!important}.compact-coach .topbar{padding-bottom:12px!important;margin-bottom:0!important}.compact-coach .client-header{margin:16px 0 10px!important;padding:0!important;gap:12px!important}.compact-coach .client-header h1{font-size:25px!important}.compact-coach .client-header .large,.compact-coach .client-header .eyebrow,.compact-coach .client-header p{display:none}.compact-coach .client-tabs{margin:10px 0!important}.compact-coach .coach-plan-top,.compact-coach .session-title-label{margin:8px 0!important}.compact-coach .coach-plan-top h2,.compact-coach .coach-plan-top p{display:none}.compact-coach .plan-day-tabs{margin:12px 0!important;gap:5px}.compact-coach .btn{padding:7px 10px!important;font-size:12px!important}.compact-coach .plan-sheet{padding:0!important;border-radius:4px!important}.compact-coach .trainer-table-heading{display:grid!important;grid-template-columns:1.1fr .65fr 1.4fr!important;padding-left:32px;background:var(--surface,#f3f3f3);font-size:11px}.compact-coach .trainer-table-heading span{padding:9px!important}.compact-coach .trainer-exercise-block{margin:0!important;border:0!important;border-bottom:1px solid var(--line,#ddd)!important;border-radius:0!important;display:flex;overflow:visible!important;background:transparent!important}.compact-coach .compact-handle{flex:0 0 32px;display:flex;flex-direction:column;align-items:center;padding-top:7px;border-right:1px solid var(--line,#ddd);color:var(--muted)}.compact-coach .compact-handle button{cursor:grab;touch-action:none;border:0;background:transparent;color:inherit;font-size:22px;padding:0 5px}.compact-coach .compact-handle small{font-size:9px}.compact-coach .compact-block-content{flex:1;min-width:0}.compact-coach .plan-grid-row{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.65fr) minmax(0,1.4fr)!important;padding:0!important;border:0!important}.compact-coach .plan-grid-row>div,.compact-coach .plan-grid-row>label{padding:5px 8px!important;min-width:0;border:0!important;border-right:1px solid var(--line,#ddd)!important;display:block!important}.compact-coach .plan-grid-row textarea[data-field]{font-size:12px!important;line-height:1.45!important;padding:2px 0!important;min-height:22px!important;resize:none!important;overflow:hidden!important;border:0!important;background:transparent!important;margin:0!important;width:100%!important;font-weight:400!important}.compact-coach .compact-name{display:flex;align-items:flex-start;gap:7px}.compact-coach .compact-name input{width:13px!important;height:13px!important;flex-shrink:0;margin:5px 0}.compact-coach .compact-name textarea{flex:1;min-width:0}.compact-coach [data-plan-video-preview] .btn{padding:2px 0!important;border:0!important;background:transparent!important;text-align:left;white-space:normal;font-size:10px!important;display:block}.compact-coach .plan-film{margin:2px 0!important;padding:0!important;font-size:10px!important}.compact-coach .plan-film input{font-size:11px;padding:5px}.compact-coach .compact-add{font-size:10px!important;padding:2px 8px!important;opacity:.55}.compact-coach .compact-add:hover{opacity:1}.compact-coach .exercise-block-heading{margin:0!important;padding:7px 9px!important;border:0!important;border-bottom:1px solid var(--line)!important}.compact-coach .exercise-block-heading h3{font-size:12px!important;margin:0 0 5px!important}.compact-coach .block-settings{gap:8px!important}.compact-coach .block-settings label{font-size:10px!important;gap:2px!important}.compact-coach .block-settings input{padding:3px 5px!important;font-size:11px!important}.compact-coach .block-settings p{font-size:10px;padding:0}.compact-coach .compact-plus{font-size:10px;padding:2px 9px;border-top:1px dashed var(--line);color:var(--muted)}.compact-coach .copy-toolbar{padding:7px 8px!important;margin:0!important;font-size:11px;gap:10px}.compact-coach #compact-clipboard{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:5px 8px;border-top:1px solid var(--line);font-size:11px}.compact-coach #compact-clipboard select{width:auto;padding:4px;font-size:11px}.compact-coach #compact-clipboard button{font-size:11px}.compact-coach .new-row{padding:8px!important}.compact-coach .session-title{font-size:15px!important;padding:5px 8px!important}.compact-coach .session-title-label{font-size:10px!important;padding:0 8px}.compact-person-tabs{display:flex;overflow:auto;gap:4px;padding:8px 0;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;background:var(--bg,#f6f6f6)}.compact-person-tabs>span{display:flex;flex-shrink:0;border:1px solid var(--line);border-radius:5px 5px 0 0}.compact-person-tabs>span.active{border-bottom:3px solid var(--ink);background:var(--surface,#fff)}.compact-person-tabs button{border:0;background:transparent;color:inherit;padding:8px;font:inherit;font-size:12px;cursor:pointer}.compact-coach .drop-before{box-shadow:0 -3px #8f8f8f!important}.compact-coach .drop-after{box-shadow:0 3px #8f8f8f!important}.compact-coach #account-status{font-size:10px!important;padding:3px!important;margin:4px 0!important}@media(max-width:720px){.compact-coach .main{padding:12px!important}.compact-coach .plan-sheet{overflow:auto}.compact-coach .trainer-table-heading,.compact-coach .compact-block{min-width:680px}.compact-coach .client-header h1{font-size:20px!important}}
body:has(.compact-coach) #install-bar{display:none}body:has(.compact-coach){padding-top:0!important}.compact-coach .topbar{min-height:48px!important;padding:4px 0!important}.compact-coach .client-header{margin:7px 0!important}.compact-coach .client-header h1{font-size:21px!important;margin:4px 0!important}.compact-coach .client-tabs button{padding:8px 0!important;font-size:11px!important}.compact-coach .plan-day-tabs{margin:6px 0!important}.compact-coach .session-title-label{display:flex!important;align-items:center;gap:12px;margin:3px 0!important;background:transparent!important;color:var(--ink)!important;border:0!important;min-height:0!important}.compact-coach .session-title-label input{color:var(--ink)!important;width:auto}.compact-coach .compact-block-content{position:relative}.compact-coach .compact-add{position:absolute;right:5px;bottom:1px;opacity:0;pointer-events:none;background:var(--bg);border:1px solid var(--line);border-radius:3px}.compact-coach .compact-block:hover .compact-add,.compact-coach .compact-block:focus-within .compact-add{opacity:1;pointer-events:auto}.compact-coach .plan-exercise-cell{position:relative}.compact-coach [data-plan-video-preview]{display:inline-block;margin-right:9px}.compact-coach .plan-film{display:inline-block;vertical-align:top}.compact-coach .plan-film[open]{display:block}.compact-coach [data-plan-video-preview] .btn{font-weight:400!important}.compact-coach .copy-toolbar{border:0!important;background:transparent!important}.compact-coach .copy-toolbar #copy-exercises{display:none}.compact-coach .plan-grid-row{min-height:44px}.compact-coach .compact-person-tabs{top:0}
.compact-coach .plan-film summary{padding:0!important;line-height:14px!important;font-size:10px!important}.compact-coach .compact-name .text-btn{padding:1px!important;line-height:18px}.compact-coach .plan-grid-row>div,.compact-coach .plan-grid-row>label{padding-top:3px!important;padding-bottom:3px!important}
.compact-coach .compact-person-tabs{padding:3px 0}.compact-coach .compact-person-tabs button{padding:5px 8px}.compact-coach .client-tabs{margin:3px 0!important}.compact-coach #account-status{margin:0!important;padding:1px!important}.compact-coach .copy-toolbar,.compact-coach #compact-clipboard{display:inline-flex!important;padding:4px 8px!important;border:0!important;vertical-align:middle}.compact-coach .trainer-table-heading span{padding:6px 9px!important}.compact-coach .main{padding-top:8px!important}
.compact-coach .copy-toolbar,.compact-coach #compact-clipboard{display:none!important}.compact-coach .compact-shortcuts{font-size:10px;color:var(--muted);margin:5px 8px 8px}.compact-coach .block-selected{background:rgba(150,150,150,.14)!important;outline:1px solid rgba(128,128,128,.5);outline-offset:-1px}.compact-coach .paste-anchor{border-bottom:2px solid #959595!important}.compact-coach .compact-block:focus{outline:2px solid #959595;outline-offset:-2px}.compact-coach .compact-name [data-delete]{opacity:0}.compact-coach .compact-block:hover [data-delete],.compact-coach .compact-block:focus-within [data-delete]{opacity:1}.compact-coach .compact-name input[type=checkbox]{display:none!important}
.compact-coach .plan-grid-row>[data-cell]{position:relative;cursor:cell}.compact-coach .plan-grid-row>[data-cell].cell-selected{background:rgba(146,146,146,.18)!important;outline:1px solid #969696;outline-offset:-1px}.compact-coach .plan-grid-row>[data-cell]:focus{outline:2px solid #969696;outline-offset:-2px}.compact-coach textarea[readonly]{cursor:cell!important;user-select:none}.compact-coach textarea:not([readonly]){cursor:text!important}

.trainer-space{display:flex;align-items:center;gap:8px;font-size:12px}.trainer-space select{max-width:240px;padding:7px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px}
.compact-coach .plan-grid-row>.plan-exercise-cell,.compact-coach .plan-grid-row>label,.compact-coach .plan-grid-row>.plan-cues{grid-column:auto!important;grid-row:auto!important}
@media(min-width:721px){.compact-coach .trainer-table-heading,.compact-coach .trainer-exercise-block.compact-block{min-width:0!important;width:100%!important}}
.compact-coach .shared-dose-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.65fr) minmax(0,1.4fr);align-items:stretch}
.compact-coach .shared-dose-grid .plan-grid-row{display:contents!important}
.compact-coach .shared-dose-grid .plan-grid-row>.plan-exercise-cell{grid-column:1!important;grid-row:var(--exercise-row)!important;border-bottom:1px solid var(--line)!important}
.compact-coach .shared-dose-grid .plan-grid-row>.plan-cues{grid-column:3!important;grid-row:var(--exercise-row)!important;border-bottom:1px solid var(--line)!important}
.compact-coach .shared-dose-grid .plan-grid-row>label{display:none!important}
.compact-coach .shared-dose-grid .plan-grid-row[data-shared-row="0"]>label{display:block!important;grid-column:2!important;grid-row:1 / span var(--block-count)!important;border-bottom:1px solid var(--line)!important}
.compact-coach .shared-dose-grid .plan-grid-row[data-shared-row="0"]>label textarea{min-height:100px!important}
.shared-student-dose{white-space:pre-wrap;line-height:1.7}
.compact-coach .multi-materials[open]{display:block}.material-link-row{padding:7px 0;border-bottom:1px solid var(--line)}.material-link-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:11px}.compact-coach .material-link-row input{display:block;width:100%;min-width:0;margin:4px 0;padding:5px;font-size:11px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}.compact-coach .material-link-row .text-btn,.compact-coach [data-add-material]{font-size:10px;padding:4px 0}

.compact-coach .shared-note-grid .plan-grid-row>.plan-cues{display:none!important}.compact-coach .shared-note-grid .plan-grid-row[data-shared-row="0"]>.plan-cues{display:block!important;grid-column:3!important;grid-row:1 / span var(--block-count)!important}
/* Open plan tabs: explicit contrast in both themes, restrained active state. */
.compact-person-tabs>span{color:var(--ink);background:transparent}
.compact-person-tabs>span.active{background:#e9e9e9;color:#252525;border-bottom-color:#707070}
.compact-person-tabs>span.active button{color:inherit}
.compact-person-tabs>span.active button:first-child{font-weight:700}
html[data-theme="dark"] .compact-person-tabs>span.active{background:#323232;color:#f1f1f1;border-color:#5d5d5d;border-bottom-color:#afafaf}
.compact-person-tabs button:focus-visible{outline:2px solid #989898;outline-offset:-3px;border-radius:3px}

html[data-theme="dark"] .compact-person-tabs>span.active{background:#282828;color:#f0f0f0;border-color:#414141;border-bottom-color:#afafaf}
html[data-theme="dark"] .coach-layout :is(.btn,.person-avatar,.avatar){background:#292929!important;color:#ededed!important;border-color:#414141!important}
html[data-theme="dark"] .coach-layout .plan-day-tabs button{background:#242424!important;color:#c6c6c6!important;border:1px solid #3b3b3b!important;box-shadow:none}
html[data-theme="dark"] .coach-layout .plan-day-tabs button.active{background:#303030!important;color:#f1f1f1!important;border-bottom:2px solid #afafaf!important}
html[data-theme="dark"] .coach-layout .client-item.selected{background:#292929!important;color:#f0f0f0!important;border-color:#444!important;border-left:3px solid #afafaf!important}
html[data-theme="dark"] .coach-layout .client-item.selected .client-info small{color:#aaa!important}
html[data-theme="dark"] .coach-layout .client-item.selected .person-avatar{background:#3a3a3a!important;color:#eee!important}
html[data-theme="dark"] .sidebar #coach-organizer-open{background:#292929!important;color:#eee!important}
html[data-theme="dark"] .account :is(button,.avatar){background:#292929!important;color:#eee!important;border-color:#414141!important}

/* Notion-style trainer editor: scoped away from the student view. */
.compact-coach .ne-editor{--ne-col1:34%;--ne-col2:33%;--ne-line:#d3d3d3;--ne-bg:#fff;--ne-head:#f4f4f4;--ne-ink:#232323;color:var(--ne-ink);font-size:13px}
html[data-theme="dark"] .compact-coach .ne-editor{--ne-line:#383838;--ne-bg:#191919;--ne-head:#222;--ne-ink:#ededed}
.compact-coach .ne-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.compact-coach .ne-toolbar>span{font-weight:700;margin-right:auto}
.compact-coach .ne-editor button{font:inherit;color:inherit;cursor:pointer}
.compact-coach .ne-toolbar button,.compact-coach .ne-menu button{border:1px solid var(--ne-line);background:var(--ne-head);border-radius:4px;padding:5px 9px}
.compact-coach .ne-toolbar button:disabled{opacity:.35;cursor:default}
.compact-coach .ne-hint{font-size:11px;opacity:.55;margin:4px 0 22px}
.compact-coach .ne-day{border:0;background:none;margin:0 0 18px;padding:0;overflow:visible}
.compact-coach .ne-day>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:7px 0;font-weight:600;list-style:none}
.compact-coach .ne-day>summary::-webkit-details-marker{display:none}
.compact-coach .ne-day>summary:before{content:'▸';font-size:14px}
.compact-coach .ne-day[open]>summary:before{content:'▾'}
.compact-coach .ne-day>summary input{width:min(80%,480px);background:transparent!important;border:0!important;color:inherit!important;box-shadow:none!important;font:inherit;padding:3px 4px;border-radius:0;min-height:0}
.compact-coach .ne-day>summary button{margin-left:auto;background:none;border:0;padding:2px 8px}
.compact-coach .ne-table{margin-left:20px;border-top:1px solid var(--ne-line);border-left:1px solid var(--ne-line)}
.compact-coach .ne-head,.compact-coach .ne-row.plan-grid-row{display:grid!important;grid-template-columns:var(--ne-col1) var(--ne-col2) minmax(0,1fr)!important;gap:0!important;position:relative;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--ne-bg)!important;box-shadow:none!important;align-items:stretch!important}
.compact-coach .ne-head>span{background:var(--ne-head);position:relative;font-size:11px;font-weight:700;padding:7px 8px;border-right:1px solid var(--ne-line);border-bottom:1px solid var(--ne-line)}
.compact-coach .ne-head i{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:3}
.compact-coach .ne-row .ne-cell{position:relative;min-width:0;min-height:29px;padding:5px 8px!important;border:0;border-right:1px solid var(--ne-line)!important;border-bottom:1px solid var(--ne-line)!important;line-height:1.45;background:transparent!important;outline:0;cursor:cell;user-select:none;overflow-wrap:anywhere}
.compact-coach .ne-row .ne-cell.ne-selected{background:rgba(75,145,215,.13)!important;box-shadow:inset 0 0 0 1px #5687b7}
.compact-coach .ne-text{min-height:18px;white-space:pre-wrap;font-size:13px;line-height:1.45;outline:0;letter-spacing:normal;font-weight:400;text-transform:none}
.compact-coach .ne-text.ne-editing{user-select:text;cursor:text;min-height:22px}
.compact-coach .ne-name a{color:inherit;font-weight:600;text-decoration:underline;text-decoration-color:#888;text-underline-offset:3px}
.compact-coach .ne-name a:before{content:'▶';display:inline-block;font-size:9px;color:#fff;background:#ed2545;border-radius:3px;padding:0 3px;line-height:12px;margin-right:4px;text-decoration:none}
.compact-coach .ne-plus{line-height:15px;opacity:.7}
.compact-coach .ne-handle{position:absolute;left:-23px;top:3px;width:20px;height:23px;opacity:0;border:0;background:transparent!important;padding:0;cursor:grab!important;z-index:2}
.compact-coach .ne-row:hover .ne-handle,.compact-coach .ne-handle:focus{opacity:.65}
.compact-coach .ne-kind{float:right;width:23px!important;min-height:18px!important;height:20px!important;padding:0!important;border:0!important;border-radius:3px;font-size:10px!important;opacity:.45;color:inherit!important;background:var(--ne-head)!important;cursor:pointer}
.compact-coach .ne-kind:focus,.compact-coach .ne-kind:hover{width:90px!important;opacity:1}
.compact-coach .ne-cell textarea[hidden]{display:none!important}
.compact-coach .ne-photo{float:right;opacity:0;border:0;background:none!important;padding:0 3px;font-size:12px!important}
.compact-coach .ne-cell:hover .ne-photo,.compact-coach .ne-photo:focus{opacity:.6}
.compact-coach .ne-note-label{display:block;opacity:.55;font-size:10px;margin-top:5px}
.compact-coach .ne-add{width:100%;height:25px;text-align:left;border:0;border-bottom:1px solid var(--ne-line);border-right:1px solid var(--ne-line);background:transparent!important;padding:2px 8px;opacity:.5}
.compact-coach .ne-before:before,.compact-coach .ne-after:after{content:'';position:absolute;left:0;right:0;height:3px;background:#5687b7;z-index:4}
.compact-coach .ne-before:before{top:0}.compact-coach .ne-after:after{bottom:0}
.compact-coach .ne-table .plan-note-pictures{margin:5px 0}
@media(max-width:760px){.compact-coach .ne-day{overflow-x:auto}.compact-coach .ne-table{min-width:700px}.compact-coach .ne-handle{opacity:.6}.compact-coach .ne-photo{opacity:.6}.compact-coach .ne-hint{line-height:1.5}}
.compact-coach .ne-row.plan-grid-row{min-height:29px!important}
.compact-coach .ne-note-part{position:relative}
.compact-coach .ne-photo{position:absolute;right:1px;bottom:0;float:none;line-height:18px}
.compact-coach .ne-row .plan-cues{display:block!important}
.compact-coach .ne-row .ne-cell{box-sizing:border-box}
