/* GROUND coach screen, Track 2 (18.11.2026). Look and layout follow 2026-11-18-coach-track-screen-mockup.html.
   Uses the app's own colour tokens from styles.css (dark and light). Everything is namespaced .cs- so nothing else changes. */
body.cs-on #page, body.cs-on #mainNav { display: none; }
body.cs-on { overflow: hidden; }
#coachRoot[hidden] { display: none; }
#coachRoot { position: fixed; inset: 0; z-index: 8; background: var(--bg); color: var(--ink); font-family: var(--f-body); }
#coachRoot button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#coachRoot input, #coachRoot select, #coachRoot textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--field-line); border-radius: var(--r-s); padding: 6px 10px; min-height: 40px; width: 100%; }
#coachRoot input:disabled { opacity: .45; border-style: dashed; }
#coachRoot :focus-visible { outline: 2px solid var(--c-load); outline-offset: 2px; }
.cs-num { font-family: var(--f-num); }
.cs-hint { font-size: 14px; color: var(--muted); }

.cs-app { display: grid; grid-template-columns: 304px minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr); height: 100%; }
.cs-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.cs-logo { font-weight: 900; letter-spacing: .1em; font-size: 18px; display: flex; align-items: center; gap: 10px; direction: ltr; }
.cs-logo .logo { width: 30px; height: 30px; }
.cs-track { font-size: 12px; font-weight: 600; padding: 3px 10px; border: 1px solid var(--line2); border-radius: var(--r-s); color: var(--ink-2); white-space: nowrap; }
.cs-sp { flex: 1; }
.cs-btn { min-height: 40px; padding: 6px 16px; border: 1px solid var(--line2) !important; border-radius: var(--r-s); font-weight: 600; font-size: 14px; background: var(--surface) !important; white-space: nowrap; }
.cs-btn:hover { background: var(--surface2) !important; }
.cs-btn.pri { background: var(--c-load) !important; color: var(--on-accent) !important; border-color: var(--c-load) !important; }
.cs-btn.sm { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.cs-btn.danger { color: var(--c-pain); }
.cs-btn.ghost { border-color: transparent !important; background: transparent !important; }

.cs-clients { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg2); }
.cs-clients .hd { padding: 14px 14px 8px; }
.cs-seg { display: flex; gap: 4px; margin-top: 10px; }
.cs-seg button { flex: 1; padding: 8px 6px; border-radius: var(--r-s); font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent !important; }
.cs-seg button.on { background: var(--surface2); color: var(--ink); border-color: var(--line2) !important; }
.cs-seg .n { font-size: 17px; margin-inline-start: 4px; }
.cs-clist { overflow: auto; flex: 1; padding: 4px 8px 12px; }
.cs-crow { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: start; padding: 10px; border-radius: var(--r-m); border: 1px solid transparent !important; }
.cs-crow:hover { background: var(--surface); }
.cs-crow.on { background: var(--surface); border-color: var(--line2) !important; }
.cs-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.cs-crow .nm { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.cs-crow .sub { font-size: 14px; color: var(--muted); }
.cs-crow .wk { font-family: var(--f-num); font-size: 20px; text-align: end; line-height: 1; }
.cs-crow .wk small { display: block; font-family: var(--f-body); font-size: 12px; color: var(--muted); }
.cs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; background: var(--muted); }
.cs-dot.ok { background: var(--c-load); } .cs-dot.warn { background: var(--c-game); } .cs-dot.bad { background: var(--c-pain); }

.cs-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.cs-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.cs-head { display: flex; align-items: center; gap: 14px; padding: 14px 24px 0; flex-wrap: wrap; }
.cs-head h1 { font-size: 26px; font-weight: 800; line-height: 1.1; margin: 0; }
.cs-head .meta { color: var(--muted); font-size: 14px; }
.cs-tabs { display: flex; gap: 2px; padding: 10px 24px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cs-tabs button { padding: 10px 14px; font-size: 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent !important; white-space: nowrap; }
.cs-tabs button.on { color: var(--ink); border-bottom-color: var(--c-load) !important; }
.cs-body { overflow: auto; padding: 20px 24px 40px; flex: 1; min-height: 0; }
.cs-empty { padding: 40px 24px; color: var(--muted); max-width: 480px; }

.cs-cbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cs-cbar h2 { font-size: 18px; font-weight: 600; margin: 0; }
.cs-dows, .cs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cs-dows { margin-bottom: 4px; } .cs-dows div { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.cs-wkhd { display: flex; align-items: center; gap: 8px 18px; margin: 14px 0 5px; font-size: 14px; color: var(--muted); flex-wrap: wrap; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
.cs-wkhd .wt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-wkhd .wt b { color: var(--ink); font-weight: 600; font-size: 16px; }
.cs-wkhd .dt { font-size: 14px; }
.cs-wkhd .ws { display: flex; align-items: center; gap: 4px 14px; flex: 1; min-width: 220px; flex-wrap: wrap; }
.cs-wkhd .ws b { color: var(--ink); font-size: 20px; font-weight: 500; margin-inline-end: 2px; }
.cs-wkhd .vbar { flex: 1; min-width: 80px; max-width: 220px; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.cs-wkhd .vbar i { display: block; height: 100%; border-radius: 4px; }
.cs-wkhd .wd { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; flex-wrap: wrap; }
.cs-phbar { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: stretch; gap: 8px; margin-bottom: 10px; }
.cs-phl { font-size: 14px; font-weight: 600; color: var(--muted); align-self: center; }
.cs-phs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cs-ph { min-height: 44px; border-radius: var(--r-s); padding: 4px 10px; text-align: start; display: flex; flex-direction: column; justify-content: center; min-width: 0; border: 1px solid transparent !important; background: var(--ph-soft) !important; border-inline-start: 5px solid var(--ph) !important; }
.cs-ph b { font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ph small { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ph:hover { border-color: var(--ph) !important; }
.cs-ph.empty { border: 1px dashed var(--line2) !important; border-inline-start: 1px dashed var(--line2) !important; background: transparent !important; color: var(--muted); align-items: center; font-size: 14px; font-weight: 600; }
.cs-ph.empty:hover { color: var(--ink); background: var(--surface) !important; }
.c0 { --ph: var(--c-load); --ph-soft: var(--c-load-soft); } .c1 { --ph: var(--c-recover); --ph-soft: var(--c-recover-soft); }
.c2 { --ph: var(--c-game); --ph-soft: var(--c-game-soft); } .c3 { --ph: var(--c-rest); --ph-soft: var(--c-rest-soft); }
.cs-phchip { font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: var(--r-s); background: var(--ph-soft); color: var(--ink); border: 1px solid var(--ph); }
.cs-lab { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.cs-sws { display: flex; gap: 10px; margin: 4px 0 8px; }
.cs-sw { position: relative; cursor: pointer; }
.cs-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.cs-sw span { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--ph); border: 3px solid transparent; }
.cs-sw input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg) inset; }
.cs-sw input:focus-visible + span { outline: 2px solid var(--c-load); outline-offset: 2px; }
.cs-day { min-height: 104px; min-width: 0; background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--r-s); padding: 6px; display: flex; flex-direction: column; gap: 5px; text-align: start; align-items: stretch; }
.cs-day:hover { border-color: var(--line2) !important; }
.cs-day.today { border-color: var(--c-load) !important; box-shadow: inset 0 0 0 1px var(--c-load); }
.cs-day.over { background: var(--c-load-soft); border-color: var(--c-load) !important; }
.cs-day.past { background: var(--bg2); }
.cs-day .dn { font-family: var(--f-num); font-size: 16px; color: var(--muted); display: flex; justify-content: space-between; }
.cs-day .add { opacity: 0; font-size: 12px; font-family: var(--f-body); }
.cs-day:hover .add, .cs-day:focus-visible .add { opacity: 1; }
.cs-chip { display: block; width: 100%; text-align: start; border-radius: var(--r-s); padding: 5px 7px; font-size: 14px; font-weight: 600; border-inline-start: 4px solid var(--c-load) !important; background: var(--c-load-soft) !important; cursor: grab; line-height: 1.25; }
.cs-chip.k-rec { border-inline-start-color: var(--c-recover) !important; background: var(--c-recover-soft) !important; }
.cs-chip.k-game { border-inline-start-color: var(--c-game) !important; background: var(--c-game-soft) !important; }
.cs-chip.missed { border-inline-start-color: var(--c-pain) !important; background: var(--c-pain-soft) !important; }
.cs-chip.dragging { opacity: .4; }
.cs-chip .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chip .m { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.cs-chip .bls { display: flex; gap: 3px; flex-wrap: wrap; margin: 2px 0; align-items: center; }
.cs-chip .bk { font-family: var(--f-num); font-size: 12px; line-height: 1; min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line2); color: var(--ink); }
.cs-chip .bk i { font-style: normal; font-size: 12px; color: var(--muted); }
.cs-chip .dr { font-size: 12px; font-weight: 600; color: var(--c-game); margin-inline-start: 2px; }
.cs-chip.draft { outline: 1px dashed var(--c-game); outline-offset: -2px; }
.cs-st { font-weight: 600; } .cs-st.done { color: var(--c-load); } .cs-st.missed { color: var(--c-pain); } .cs-st.partial { color: var(--c-game); }

.cs-lib { width: 300px; border-inline-start: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; }
.cs-lib.closed { display: none; }
.cs-lib .hd { padding: 14px; }
.cs-lib h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.cs-lib .list { overflow: auto; padding: 0 10px 14px; flex: 1; min-height: 0; }
.cs-li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 6px; background: var(--surface); cursor: grab; font-size: 14px; }
.cs-li:hover { border-color: var(--line2); }
.cs-li .g { color: var(--muted); letter-spacing: -2px; }
.cs-li .s { font-size: 12px; color: var(--muted); }
.cs-li .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-li .plus { border: 1px solid var(--line2) !important; border-radius: var(--r-s); width: 32px; height: 32px; font-weight: 600; flex: none; }
.cs-li .plus:hover { background: var(--c-load) !important; color: var(--on-accent); border-color: var(--c-load) !important; }
.cs-tag { font-size: 12px; padding: 1px 7px; border-radius: var(--r-s); border: 1px solid var(--line2); color: var(--ink-2); white-space: nowrap; }
.cs-libtabs { display: flex; gap: 4px; margin-bottom: 8px; }
.cs-libtabs button { flex: 1; padding: 7px; border-radius: var(--r-s); font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent !important; }
.cs-libtabs button.on { background: var(--surface2); color: var(--ink); border-color: var(--line2) !important; }

.cs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cs-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.cs-kpi .v { font-family: var(--f-num); font-size: 44px; line-height: 1; } .cs-kpi .v small { font-size: 20px; color: var(--muted); }
.cs-kpi .l { font-size: 14px; color: var(--muted); margin-top: 4px; }
.cs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.cs-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-card th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.cs-card td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.cs-insight { border-inline-start: 4px solid var(--c-game); background: var(--c-game-soft); padding: 10px 14px; border-radius: var(--r-s); margin-bottom: 16px; font-size: 16px; }
.cs-insight.ok { border-color: var(--c-load); background: var(--c-load-soft); }
.cs-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; }
.cs-bars > div { text-align: center; }
.cs-bars .bar { border-radius: 4px 4px 0 0; min-height: 6px; }

.cs-ov { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; z-index: 20; padding: 3vh 3vw; }
.cs-ov.show { display: block; }
#csD { z-index: 30; }
.cs-modal { background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-m); height: 100%; display: flex; flex-direction: column; max-width: 1280px; margin: 0 auto; overflow: hidden; }
.cs-modal.small { height: auto; max-height: 90vh; max-width: 560px; margin-top: 8vh; overflow: auto; }
.cs-mh { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg2); flex-wrap: wrap; }
.cs-mh input.title { font-size: 20px; font-weight: 600; width: 280px; max-width: 100%; background: transparent; border-color: transparent; padding-inline: 6px; }
.cs-mh input.title:hover, .cs-mh input.title:focus { border-color: var(--field-line); }
.cs-mh select, .cs-mh input[type=date] { width: auto; }
.cs-mb { flex: 1; display: grid; grid-template-columns: 280px minmax(0, 1fr) 312px; min-height: 0; }
.cs-mb .cs-lib { width: auto; border-inline-start: 0; border-inline-end: 1px solid var(--line); }
.cs-bld { overflow: auto; padding: 18px 24px 40px; }
.cs-rule { font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line2); border-radius: var(--r-s); padding: 8px 12px; margin-bottom: 14px; }
.cs-err { font-size: 14px; color: var(--c-pain); background: var(--c-pain-soft); border-radius: var(--r-s); padding: 8px 12px; margin-bottom: 12px; }
.cs-ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 10px; }
.cs-ex.over { border-color: var(--c-load); background: var(--c-load-soft); }
.cs-ex .r1 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cs-ex .hdl { cursor: grab; color: var(--muted); font-size: 18px; padding: 0 4px; user-select: none; }
.cs-ex .ix { font-family: var(--f-num); font-size: 22px; color: var(--muted); width: 24px; }
.cs-ex .en { font-weight: 600; font-size: 16px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-ex .ib { width: 32px; height: 32px; border: 1px solid var(--line) !important; border-radius: var(--r-s); font-size: 14px; flex: none; }
.cs-ex .ib:hover { background: var(--surface2); }
.cs-ex .ib:disabled { opacity: .3; cursor: default; }
.cs-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cs-fields label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; font-weight: 600; }
.cs-fields input { text-align: center; font-family: var(--f-num); font-size: 20px; min-height: 40px; }
.cs-fields select { min-height: 40px; }
.cs-note { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.cs-note input { font-size: 14px; }
.cs-dg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 6px 0 12px; }
.cs-dg label { display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line2); border-radius: var(--r-s); padding: 8px 0; cursor: pointer; font-family: var(--f-num); font-size: 17px; }
.cs-dg label.has { border-color: var(--c-game); color: var(--c-game); }
.cs-dg input { width: auto; min-height: 0; }
.cs-dmb { padding: 16px 20px 20px; }
.cs-dmb h3 { margin: 0 0 10px; font-size: 18px; }
.cs-dmb .cs-li { cursor: pointer; }
.cs-checks label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 16px; }
.cs-checks input { width: auto; min-height: 0; }
.cs-toast { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: var(--r-s); font-weight: 600; z-index: 40; display: none; max-width: 90vw; }

@media (max-width: 1100px) {
  .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-two { grid-template-columns: 1fr; }
  .cs-lib { width: 240px; } .cs-mb { grid-template-columns: 240px minmax(0, 1fr); } .cs-phone { display: none; } .cs-mb.pv { grid-template-columns: 240px minmax(0, 1fr) 312px; } .cs-mb.pv .cs-phone { display: flex; } .cs-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phone: one column. The client list is the first screen; opening a client shows the client, the library moves under the calendar. */
@media (max-width: 800px) {
  .cs-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr); }
  .cs-top { padding: 0 12px; gap: 8px; } .cs-track { display: none; }
  .cs-clients, .cs-main { grid-column: 1; grid-row: 2; }
  .cs-app.pick .cs-main { display: none; } .cs-app:not(.pick) .cs-clients { display: none; }
  .cs-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; overflow: auto; }
  .cs-pane { display: block; } .cs-body { overflow: visible; }
  .cs-lib { width: auto; border-inline-start: 0; border-top: 1px solid var(--line); max-height: 60vh; }
  .cs-head, .cs-tabs, .cs-body { padding-inline: 12px; }
  .cs-head h1 { font-size: 22px; }
  .cs-week, .cs-dows { gap: 3px; } .cs-day { min-height: 76px; padding: 3px; } .cs-chip { padding: 3px 4px; font-size: 12px; } .cs-chip .m { display: none; }
  .cs-ov { padding: 0; } .cs-modal { border-radius: 0; border: 0; } .cs-modal.small { margin-top: 0; max-height: 100vh; border-radius: 0; }
  .cs-mb, .cs-mb.pv { grid-template-columns: minmax(0, 1fr); overflow: auto; display: block; } .cs-mb.pv .cs-phone { display: flex; width: auto; border-inline-start: 0; border-top: 1px solid var(--line); } .cs-mb .cs-lib { max-height: 40vh; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .cs-bld { padding: 14px 12px 40px; overflow: visible; } .cs-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-kpis { gap: 8px; } .cs-kpi .v { font-size: 34px; }
  .cs-mh { padding: 10px 12px; } .cs-mh input.title { width: 100%; }
}

/* ---------- builder: blocks, outline, athlete preview (18.11.2026) ---------- */
.cs-blk { border: 1px solid var(--line2); border-radius: var(--r-m); padding: 8px 10px 2px; margin-bottom: 14px; background: var(--bg2); }
.cs-blk.cur { border-color: var(--c-load); }
.cs-blk.flash, .cs-ex.flash { animation: csflash 1.1s ease-out; }
@keyframes csflash { 0% { box-shadow: 0 0 0 3px var(--c-load); } 100% { box-shadow: 0 0 0 3px transparent; } }
.cs-blk .bh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cs-blk .bl { width: 34px; height: 34px; border-radius: 8px; background: var(--c-load); color: var(--on-accent); display: grid; place-items: center; font-family: var(--f-num); font-size: 22px; font-weight: 600; flex: none; }
.cs-blk .bn { flex: 1; min-width: 160px; font-weight: 600; }
.cs-blk .ib { width: 32px; height: 32px; border: 1px solid var(--line) !important; border-radius: var(--r-s); font-size: 14px; flex: none; }
.cs-blk .ib:disabled { opacity: .3; }
.cs-blk .cs-ex { background: var(--surface); }
.cs-blk .cs-btn[aria-pressed=true] { border-color: var(--c-load) !important; color: var(--c-load); }
.cs-note { grid-template-columns: minmax(0, 1fr) 96px 96px; }
.cs-bbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.cs-bbar kbd, .cs-hint kbd { font-family: var(--f-num); font-size: 12px; border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; margin-inline-start: 6px; color: var(--muted); }
.cs-ol { display: flex; align-items: center; gap: 8px; width: 100%; text-align: start; padding: 7px 8px; border-radius: var(--r-s); font-size: 14px; min-height: 36px; }
.cs-ol:hover { background: var(--surface2); }
.cs-ol.b { font-weight: 600; margin-top: 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.cs-ol:not(.b) { padding-inline-start: 24px; color: var(--ink-2); }
.cs-ol .l { font-family: var(--f-num); font-size: 16px; font-weight: 600; color: var(--c-load); min-width: 26px; }
.cs-ol .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-ol .n { color: var(--muted); }
.cs-pvbtn { display: none; }
.cs-phone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px; border-inline-start: 1px solid var(--line); background: var(--bg2); overflow: auto; min-height: 0; }
.cs-phone-t { font-size: 14px; font-weight: 600; color: var(--muted); }
.cs-phone-in { width: 100%; max-width: 288px; border: 7px solid var(--line2); border-radius: var(--r-m); background: var(--bg); padding: 14px 12px 12px; pointer-events: none; user-select: none; }
.cs-phone-h { display: grid; text-align: center; margin-bottom: 10px; }
.cs-phone-h b { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; } .cs-phone-h small { font-size: 14px; color: var(--ink-2); }
.cs-phone-in .pg-meta { gap: 4px 14px; margin-bottom: 10px; font-size: 12px; } .cs-phone-in .pg-meta b { font-size: 24px; }
.cs-phone-in .pl-stack { gap: 10px; }
.cs-phone-in .pl-row { min-height: 52px; padding: 6px 10px; grid-template-columns: 34px 1fr auto; gap: 8px; border-top: 1px solid var(--line); }
.cs-phone-in .pl-rn bdi { font-size: 14px; } .cs-phone-in .pl-rx b { font-size: 20px; }
.cs-phone-in .pl-blk-h { padding: 8px 10px; } .cs-phone-in .pl-blk-h b { font-size: 14px; } .cs-phone-in .pl-blk-s { font-size: 12px; }
.cs-phone-go { min-height: 52px; margin-top: 12px; font-size: 18px; opacity: .85; }
@media (max-width: 1100px) { .cs-pvbtn { display: inline-flex; align-items: center; } .cs-phone { border-inline-start: 1px solid var(--line); } }
@media (max-width: 800px) {
  .cs-wkhd { padding: 6px 8px; } .cs-wkhd .ws { min-width: 0; flex-basis: 100%; } .cs-wkhd .wd { margin-inline-start: 0; flex-basis: 100%; }
  .cs-phbar { grid-template-columns: minmax(0, 1fr); gap: 2px; } .cs-phl { display: none; }
  .cs-ph { padding: 3px 6px; min-height: 40px; } .cs-ph small { display: none; } .cs-ph b { font-size: 14px; }
  .cs-chip .bls { margin: 1px 0; } .cs-chip .bk { min-width: 14px; height: 14px; font-size: 12px; padding: 0 2px; } .cs-chip .dr { display: none; }
  .cs-note { grid-template-columns: minmax(0, 1fr) 1fr; } .cs-note input { grid-column: 1 / -1; }
  .cs-blk .bn { min-width: 0; flex-basis: calc(100% - 50px); } .cs-blk .bh .cs-btn { flex: 1; }
  .cs-phone { padding: 14px 8px; } .cs-bbar .cs-hint { display: none; }
  .cs-ex .r1 { flex-wrap: wrap; } .cs-ex .r1 .en { order: 5; flex-basis: 100%; } .cs-ex .r1 .ix { width: auto; }
}
#coachRoot .cs-mh input.title { width: 280px; max-width: 100%; }
#coachRoot .cs-mh select { width: auto; min-width: 120px; }
#coachRoot .cs-blk input.bn { width: auto; }
@media (max-width: 800px) { #coachRoot .cs-mh input.title { width: 100%; } #coachRoot .cs-mh select { flex: 1; } }
.cs-athnote { margin-top: 8px; padding: 8px 12px; border-inline-start: 4px solid var(--c-recover); background: var(--c-recover-soft); border-radius: var(--r-s); font-size: 14px; }
.cs-athnote b { display: block; font-size: 12px; color: var(--ink-2); }
.cs-chip .cm { font-size: 12px; font-weight: 600; color: var(--c-recover); margin-inline-start: 2px; }
@media (max-width: 800px) { .cs-chip .cm { display: none; } }

/* Bring in clients (bulk invite) and the pending list */
.cs-invbtn { width: 100%; margin-bottom: 10px; }
.cs-seg button { padding: 8px 4px; font-size: 14px; white-space: nowrap; } .cs-seg .n { font-size: 16px; margin-inline-start: 2px; }
.cs-prow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cs-prow .grow { flex: 1; min-width: 150px; } .cs-prow .nm { font-weight: 600; } .cs-prow .sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.cs-prow .acts { display: flex; gap: 6px; }
.cs-pend { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--c-load); border: 1px dashed var(--c-load); border-radius: var(--r-s); padding: 1px 8px; }
.cs-modal.small.wide { max-width: 720px; }
.cs-lbl { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
#csInvText { min-height: 160px; line-height: 1.5; resize: vertical; }
.cs-invact { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.cs-invlist { display: grid; gap: 10px; margin-top: 12px; }
.cs-inv { border: 1px solid var(--line2); border-radius: var(--r-m); padding: 10px 12px; background: var(--surface); }
.cs-inv.skip { opacity: .8; border-style: dashed; }
.cs-inv .ih { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.cs-inv .s { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.cs-inv .lnk { font-family: var(--f-num); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; margin-top: 6px; text-align: left; }
.cs-tag { font-size: 12px; font-weight: 600; border-radius: var(--r-s); padding: 2px 10px; border: 1px solid var(--line2); }
.cs-tag.ok { color: var(--c-recover); border-color: var(--c-recover); } .cs-tag.warn { color: var(--c-load); border-color: var(--c-load); } .cs-tag.bad { color: var(--c-pain); border-color: var(--c-pain); }

/* Client groups */
.cs-invbtn + .cs-invbtn { margin-top: -2px; }
.cs-gf { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs-gf button { min-height: 32px; padding: 3px 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--line2) !important; border-radius: var(--r-s); background: var(--surface) !important; }
.cs-gf button[aria-pressed=true] { background: var(--c-load) !important; color: var(--on-accent) !important; border-color: var(--c-load) !important; }
.cs-gchip { display: inline-block; margin-inline-start: 6px; font-size: 12px; font-weight: 600; border-radius: var(--r-s); padding: 1px 8px; border: 1px solid var(--c-recover); color: var(--c-recover); vertical-align: middle; white-space: nowrap; }
.cs-gchip.g-boys { border-color: var(--c-load); color: var(--c-load); } .cs-gchip.g-gug { border-color: var(--c-game); color: var(--c-game); }
.cs-gtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cs-gtabs button { min-height: 40px; padding: 6px 12px; font-size: 14px; font-weight: 600; border: 1px solid var(--line2) !important; border-radius: var(--r-s); background: var(--surface) !important; }
.cs-gtabs button[aria-selected=true] { background: var(--c-load) !important; color: var(--on-accent) !important; border-color: var(--c-load) !important; }
.cs-ghead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.cs-ghead .cs-btn:disabled { opacity: .5; cursor: not-allowed; }
.cs-gres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs-tag.wait { color: var(--muted); border-style: dashed; }
a.cs-btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
a.cs-btn.pri { color: var(--on-accent) !important; }
#csGrpText { min-height: 90px; line-height: 1.5; resize: vertical; }

/* sport tag + group assignment (19.11.2026) */
.cs-sport { display: inline-block; margin-inline-start: 6px; font-size: 12px; font-weight: 600; border-radius: var(--r-s); padding: 1px 8px; border: 1px solid var(--c-recover); color: var(--c-recover); vertical-align: middle; white-space: nowrap; }
.cs-tact { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .cs-tact .cs-btn { min-height: 32px; padding: 3px 10px; font-size: 12px; }
.cs-tli { align-items: flex-start; }
.cs-sf button { min-height: 32px; }
.cs-bsport { width: auto; min-height: 36px; font-size: 14px; }
.cs-ghbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-gstat { border: 1px solid var(--line2); border-radius: var(--r-s); padding: 10px 12px; margin: 6px 0; font-size: 16px; background: var(--surface); }
.cs-gstat.warn { border-color: var(--c-load); } .cs-gstat .s { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.cs-gchk label { justify-content: flex-start; align-items: flex-start; } .cs-gchk label input { flex: none; width: 22px !important; height: 22px !important; min-height: 0 !important; margin: 1px 0 0; }
.cs-dg label input { flex: none; width: 20px !important; height: 20px !important; min-height: 0 !important; }

/* Client list bar, option C "scoreboard" (19.11.2026): big number tabs, group chips, search, two actions. */
.cs-clients .cs-bar { padding: 0 0 10px; }
.cs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#coachRoot .cs-tiles button { border-radius: 0; padding: 10px 2px 8px; min-height: 76px; display: grid; justify-items: center; align-content: center; color: var(--muted); border-inline-start: 1px solid var(--line); }
#coachRoot .cs-tiles button:first-child { border-inline-start: 0; }
.cs-tiles .n { font-size: 40px; line-height: .95; font-weight: 600; color: var(--ink); }
.cs-tiles small { font-size: 14px; font-weight: 600; }
#coachRoot .cs-tiles button.on { box-shadow: inset 0 3px 0 var(--c-load); color: var(--ink); background: var(--surface); }
.cs-tiles button.on .n { color: var(--c-load); }
#coachRoot .cs-tiles button:focus-visible { outline-offset: -3px; }
.cs-clients .cs-bar > :not(.cs-tiles) { margin-inline: 14px; }
.cs-clients .cs-gf { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 12px; margin-bottom: 0; padding-block: 3px; }
.cs-clients .cs-gf::-webkit-scrollbar { display: none; }
#coachRoot .cs-gf button { flex: none; min-height: 44px; padding: 0 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.cs-gf .n { font-size: 16px; font-weight: 500; color: var(--muted); }
.cs-gf button[aria-pressed=true] .n { color: var(--on-accent); }
.cs-fld { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 0 14px; border-radius: var(--r-m); background: var(--surface); border: 1.5px solid var(--field-line); color: var(--muted); }
#coachRoot .cs-fld input { border: 0; background: none; min-height: 44px; padding: 0; flex: 1; min-width: 0; outline: none; }
.cs-fld:focus-within { outline: 2px solid var(--c-load); outline-offset: 2px; border-color: transparent; }
.cs-fld svg, .cs-acts svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-acts { display: flex; gap: 8px; margin-top: 8px; }
#coachRoot .cs-acts .cs-btn { flex: 1; width: auto; margin: 0; min-height: 48px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; border-radius: var(--r-m); }

/* Group plan (19.11.2026) */
.cs-gpbtn { margin-top: 10px; width: 100%; justify-content: center; gap: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.cs-gpbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-chip .pb { font-size: 12px; font-weight: 600; color: var(--muted); }
.cs-gpm { margin-top: 18px; }
.cs-gpbl > div { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cs-gpbl .bk { font-family: var(--f-num); min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--bg); border: 1px solid var(--line2); }
@media (max-width: 800px) { .cs-chip .pb { display: none; } }
.cs-chip.gp .t { white-space: normal; overflow-wrap: break-word; hyphens: manual; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
@media (max-width: 800px) { .cs-chip.gp { padding: 3px 2px; } .cs-chip.gp .t { font-size: 12px; line-height: 1.15; -webkit-line-clamp: 6; } }
/* Group join link and QR (19.11.2026) */
.cs-join { margin: 12px 0; padding: 12px; border: 1px solid var(--line2); border-radius: var(--r-m); display: grid; gap: 10px; }
.cs-join .cs-ghead { margin: 0; }
.cs-joincount { font-size: 18px; font-weight: 600; color: var(--c-load); font-variant-numeric: tabular-nums; }
.cs-jstat { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cs-jqr { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: start; }
.cs-qrbox { background: #fff; border-radius: 8px; padding: 0; width: 200px; height: 200px; line-height: 0; }
.cs-qrbox svg { width: 100%; height: 100%; display: block; }
.cs-jinfo { display: grid; gap: 8px; min-width: 0; }
.cs-jinfo .lnk { overflow-wrap: anywhere; font-size: 12px; }
.cs-jwho { display: grid; gap: 4px; }
.cs-jrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line2); }
@media (max-width: 520px) { .cs-jqr { grid-template-columns: 1fr; justify-items: center; } .cs-jinfo { width: 100%; } }

/* template edit (19.11.2026): pencil beside + and ×, 44px touch targets, title as a real button, builder notices, read-only exercises in the group-plan chip dialog */
.cs-li .plus { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cs-li .plus::after { content: ''; position: absolute; inset: -6px; }
.cs-li .plus.pen svg { display: block; }
.cs-ttl { all: unset; box-sizing: border-box; font-weight: 600; cursor: pointer; color: inherit; border-bottom: 1px dashed var(--line2); overflow-wrap: anywhere; }
.cs-ttl:hover { color: var(--c-load); } .cs-ttl:focus-visible { outline: 2px solid var(--c-load); outline-offset: 2px; }
.cs-warn { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--c-recover); border-radius: var(--r-s); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.cs-gpbl .gb { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); } .cs-gpbl .gb:last-child { border-bottom: 0; }
.cs-gpbl .gbh { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cs-gpbl .gx { display: flex; align-items: baseline; gap: 8px; padding: 4px 0 4px 0; padding-inline-start: 30px; font-size: 14px; }
.cs-gpbl .gx .ix { font-family: var(--f-num); color: var(--muted); min-width: 24px; }
.cs-gpbl .gx .gn { flex: 1; min-width: 0; overflow-wrap: anywhere; } .cs-gpbl .gx .gn small { display: block; color: var(--muted); font-size: 12px; }
.cs-gpbl .gx .gr { white-space: nowrap; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.cs-phone-dlg { border-inline-start: 0; background: transparent; padding: 4px 0; max-height: 60vh; }

/* New template entry (19.11.2026) */
.cs-newtpl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; margin: 0 0 10px; font-weight: 600; }
.cs-lib .hd h3 { margin-bottom: 8px; }
.cs-tli[data-sel] { border-color: var(--c-load); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-load) 45%, transparent); background: color-mix(in srgb, var(--c-load) 10%, var(--bg2)); }
.cs-mobonly { display: none !important; }
@media (max-width: 800px) { .cs-mobonly { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-height: 44px; } #csNewTplBtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; } }

/* New exercise from the builder + per-side flag (19.11.2026) */
.cs-qrow { display: flex; flex-direction: column; gap: 6px; } .cs-qrow input { width: 100%; min-width: 0; }
.cs-addex { min-height: 44px; font-size: 14px; padding: 0 10px; width: 100%; }
.cs-noex { text-align: center; padding: 8px 0; } .cs-noex .cs-btn { min-height: 44px; margin-top: 6px; white-space: normal; }
.cs-mine { color: var(--c-load); font-weight: 600; }
.cs-xpats { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-xp { display: inline-flex; } .cs-xp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-xp span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r-s); font-size: 14px; cursor: pointer; }
.cs-xp input:checked + span { background: var(--c-load); color: var(--on-accent); border-color: var(--c-load); font-weight: 600; }
.cs-xp input:focus-visible + span, .cs-xw input:focus-visible { outline: 2px solid var(--c-load); outline-offset: 2px; }
.cs-xw { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 2px; min-height: 44px; cursor: pointer; }
.cs-xw input { margin-top: 2px; } .cs-xw span { display: grid; } .cs-xw small { color: var(--muted); font-size: 14px; }
.cs-xprev { display: flex; gap: 10px; align-items: center; margin-top: 6px; min-height: 24px; } .cs-xprev img { border-radius: var(--r-s); border: 1px solid var(--line2); }
#coachRoot .cs-xw input[type=checkbox] { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; }
#coachRoot .cs-xp input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.cs-xp { position: relative; }
.cs-note { grid-template-columns: minmax(0, 1fr) 96px 96px auto; }
.cs-sidebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r-s); font-size: 16px; font-weight: 600; justify-self: stretch; background: transparent; color: var(--ink); cursor: pointer; }
.cs-sidebtn .bx { width: 20px; height: 20px; border: 2px solid var(--line2); border-radius: var(--r-s); display: inline-block; position: relative; }
.cs-sidebtn[aria-pressed="true"] { border-color: var(--c-load); } .cs-sidebtn[aria-pressed="true"] .bx { background: var(--c-load); border-color: var(--c-load); }
.cs-sidebtn[aria-pressed="true"] .bx::after { content: ''; position: absolute; inset: 2px 5px 5px 5px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.cs-ex.side { border-color: var(--c-load); }
.cs-sidesum { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--c-load); }
@media (max-width: 800px) { .cs-note { grid-template-columns: minmax(0, 1fr) 1fr; } .cs-sidebtn { grid-column: 1 / -1; } }

/* ===== Minimal skin (22.11.2026) =====
   One quiet accent instead of volt fills, smaller type, thinner weights, tighter corners. Looks like a calm work tool (after Relay).
   --c-load is the accent every fill and outline above already uses, so re-pointing it here restyles the whole screen at once.
   The volt green stays only where it carries meaning: status dots, "done", the first phase. */
#coachRoot {
  --volt: #4E6A00; --volt-soft: rgba(78,106,0,.13);
  --c-load: #1B1D21; --c-load-soft: rgba(14,15,17,.06); --on-accent: #FFFFFF;
  --r-s: 8px; --r-m: 8px; --r-l: 12px;
  font-size: 14px; line-height: 1.45; letter-spacing: 0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #coachRoot { --volt: #C9E43A; --volt-soft: rgba(212,242,60,.12); --c-load: #ECEDEA; --c-load-soft: rgba(255,255,255,.07); --on-accent: #0E0F11; } }
:root[data-theme="dark"] #coachRoot { --volt: #C9E43A; --volt-soft: rgba(212,242,60,.12); --c-load: #ECEDEA; --c-load-soft: rgba(255,255,255,.07); --on-accent: #0E0F11; }

#coachRoot input, #coachRoot select, #coachRoot textarea { min-height: 34px; padding: 4px 10px; font-size: 14px; border-color: var(--line2); background: transparent; }
#coachRoot :focus-visible { outline: 1px solid var(--ink-2); outline-offset: 1px; }
.cs-hint { font-size: 12px; }

.cs-app { grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); }
.cs-top { padding: 0 16px; background: var(--bg); gap: 12px; }
.cs-logo { font-size: 14px; font-weight: 700; letter-spacing: .12em; gap: 8px; }
.cs-logo .logo { width: 22px; height: 22px; }
.cs-track { font-size: 12px; font-weight: 500; padding: 2px 8px; border-color: var(--line); color: var(--muted); }

.cs-btn { min-height: 32px; padding: 4px 12px; font-size: 14px; font-weight: 500; border-color: var(--line2) !important; background: transparent !important; }
.cs-btn:hover { background: var(--c-load-soft) !important; }
.cs-btn.pri { background: var(--c-load) !important; color: var(--on-accent) !important; border-color: var(--c-load) !important; font-weight: 600; }
.cs-btn.pri:hover { opacity: .88; }
.cs-btn.sm { min-height: 26px; padding: 2px 8px; font-size: 12px; }

.cs-clients { background: var(--bg); }
.cs-clients .hd { padding: 12px 12px 6px; }
.cs-seg { gap: 2px; margin-top: 8px; }
.cs-seg button { padding: 6px 4px; font-size: 12px; font-weight: 500; border-radius: var(--r-s); }
.cs-seg button.on { background: var(--c-load-soft); border-color: transparent !important; font-weight: 600; }
.cs-seg .n { font-size: 14px; font-weight: 600; }
.cs-clist { padding: 2px 6px 10px; }
.cs-crow { grid-template-columns: 28px 1fr auto; gap: 8px; padding: 7px 8px; border-radius: var(--r-s); }
.cs-crow:hover { background: var(--c-load-soft); }
.cs-crow.on { background: var(--c-load-soft); border-color: transparent !important; }
.cs-av { width: 28px; height: 28px; font-size: 12px; font-weight: 600; background: var(--surface2); }
.cs-crow .nm { font-size: 14px; font-weight: 500; }
.cs-crow .sub { font-size: 12px; }
.cs-crow .wk { font-size: 16px; }
.cs-crow .wk small { font-size: 12px; }
.cs-dot { width: 6px; height: 6px; margin-inline-end: 4px; }
.cs-dot.ok { background: var(--volt); }

.cs-head { padding: 12px 20px 0; gap: 10px; }
.cs-head h1 { font-size: 18px; font-weight: 600; }
.cs-head .meta { font-size: 12px; }
.cs-tabs { padding: 8px 20px 0; gap: 0; }
.cs-tabs button { padding: 7px 12px; font-size: 14px; font-weight: 500; border-bottom-width: 1.5px !important; }
.cs-tabs button.on { font-weight: 600; }
.cs-body { padding: 16px 20px 32px; }
.cs-cbar h2 { font-size: 16px; font-weight: 600; }
.cs-dows div { font-size: 12px; font-weight: 500; }
.cs-wkhd { font-size: 12px; background: transparent; padding: 5px 8px; }
.cs-wkhd .wt b { font-size: 14px; font-weight: 600; }
.cs-wkhd .ws b { font-size: 16px; font-weight: 500; }
.cs-wkhd .vbar { height: 5px; }
.cs-phl { font-size: 12px; font-weight: 500; }
.cs-ph { min-height: 36px; border-inline-start-width: 3px !important; }
.cs-ph b { font-size: 14px; font-weight: 600; }
.cs-ph small { font-size: 12px; }
.c0 { --ph: var(--volt); --ph-soft: var(--volt-soft); }
.cs-chip { font-size: 12px; font-weight: 500; padding: 4px 6px; }
.cs-st { font-weight: 600; } .cs-st.done { color: var(--volt); }
.cs-empty { font-size: 14px; padding: 32px 20px; }
.cs-joincount { font-size: 16px; font-weight: 600; color: var(--ink); }
.cs-mine { color: var(--ink); }
/* minimal skin, part 2: tiles, cards, chips, calendar */
.cs-tiles .n { font-size: 24px; font-weight: 500; }
.cs-tiles small { font-size: 12px; font-weight: 500; }
#coachRoot .cs-tiles button { min-height: 56px; padding: 8px 2px 6px; }
#coachRoot .cs-tiles button.on { box-shadow: inset 0 -1.5px 0 var(--c-load); background: transparent; }
.cs-tiles button.on .n { color: var(--ink); }
.cs-gf button { min-height: 26px; padding: 1px 10px; font-size: 12px; font-weight: 500; background: transparent !important; border-radius: var(--r-s); }
.cs-gf button[aria-pressed=true] { font-weight: 600; }
.cs-gf .n { font-size: 12px; }
.cs-gchip, .cs-sport, .cs-tag { font-size: 12px; font-weight: 500; padding: 0 7px; }
.cs-bsport { min-height: 30px; font-size: 12px; }
.cs-day { min-height: 92px; padding: 5px; gap: 4px; background: transparent; }
.cs-day.today { border-color: var(--ink-2) !important; box-shadow: none; }
.cs-day.over { background: var(--c-load-soft); border-color: var(--ink-2) !important; }
.cs-day.past { background: transparent; opacity: .75; }
.cs-day .dn { font-size: 12px; }
.cs-kpis { gap: 8px; margin-bottom: 12px; }
.cs-kpi { padding: 10px 12px; background: transparent; }
.cs-kpi .v { font-size: 26px; font-weight: 500; } .cs-kpi .v small { font-size: 14px; }
.cs-kpi .l { font-size: 12px; }
.cs-card { padding: 12px; margin-bottom: 12px; background: transparent; }
.cs-card h3, .cs-lib h3 { font-size: 14px; font-weight: 600; }
.cs-card table { font-size: 14px; } .cs-card th { font-size: 12px; font-weight: 500; } .cs-card td { padding: 7px 8px; }
.cs-lib { width: 264px; background: var(--bg); } .cs-lib .hd { padding: 12px; }
.cs-libtabs button { font-size: 12px; font-weight: 500; padding: 5px; }
.cs-libtabs button.on { background: var(--c-load-soft); border-color: transparent !important; font-weight: 600; }
.cs-bld { padding: 14px 20px 32px; }
.cs-blk .bl { width: 26px; height: 26px; font-size: 14px; }
/* minimal skin, part 3: on a computer the touch-sized controls shrink too; on a phone they keep their size */
@media (min-width: 801px) {
  #coachRoot .cs-gf button { min-height: 28px; padding: 0 10px; font-size: 12px; }
  .cs-fld { min-height: 34px; margin-top: 8px; padding: 0 10px; border-width: 1px; border-color: var(--line2); background: transparent; }
  #coachRoot .cs-fld input { min-height: 30px; }
  #coachRoot .cs-acts .cs-btn { min-height: 34px; font-size: 14px; }
  .cs-invbtn { margin-bottom: 6px; } .cs-gpbtn { min-height: 34px; font-size: 14px; }
  .cs-newtpl { min-height: 34px; font-size: 14px; font-weight: 600; }
  .cs-addex { min-height: 34px; font-size: 14px; }
  .cs-noex .cs-btn { min-height: 34px; }
  .cs-xp span { min-height: 30px; font-size: 14px; }
  .cs-ph { min-height: 36px; }
}

/* ===== Calmer lists and the library as a drawer (22.11.2026) ===== */
/* Client rows: name, one quiet line, one number. */
.cs-crow { grid-template-columns: 28px 1fr auto; padding: 8px; }
.cs-crow .wk { font-size: 12px; color: var(--muted); font-family: var(--f-num); }
.cs-crow.on .wk { color: var(--ink); }
.cs-crow .sub { font-size: 12px; display: flex; align-items: center; }
.cs-crow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-clients .hd { padding-bottom: 4px; }

/* The library opens over the calendar from the edge, and closes again. It no longer squeezes the page. */
.cs-main { position: relative; }
#csLib.cs-lib { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: 6; width: min(340px, 92%); background: var(--bg2); border-inline-start: 1px solid var(--line2); box-shadow: 0 0 40px rgba(0,0,0,.35); }
#csLib.cs-lib.closed { display: none; }
.cs-lhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cs-lhead h3 { margin: 0 !important; }
.cs-lclose { font-size: 18px; line-height: 1; min-height: 28px !important; padding: 0 8px !important; }
#csBm .cs-lhead { display: none; }

/* Library cards: one line for the title, one muted line under it, actions only when you point at it. */
.cs-li { padding: 8px 10px; gap: 8px; margin-bottom: 4px; font-size: 14px; background: transparent; cursor: default; }
.cs-li[draggable="true"] { cursor: grab; }
.cs-li .g { display: none; }
.cs-ttl { border-bottom: 0; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ttl:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-li .grow { overflow: hidden; }
.cs-li b { font-weight: 500; }
.cs-sport { all: unset; font-size: 12px; color: var(--muted); margin-inline-start: 0; }
.cs-sport::before { content: ' · '; }
.cs-tli .grow > .cs-ttl { margin-bottom: 1px; }
.cs-tli .s { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.cs-tact { margin-top: 4px; gap: 4px; }
.cs-tact .cs-btn { min-height: 24px; padding: 1px 8px; font-size: 12px; border-color: transparent !important; color: var(--muted); }
.cs-tact .cs-btn:hover { color: var(--ink); }
.cs-li .plus { width: 26px; height: 26px; border-color: transparent !important; font-weight: 500; color: var(--muted); }
.cs-li .plus.pen svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .cs-tli .cs-tact, .cs-li .plus { opacity: 0; transition: opacity .12s; }
  .cs-tli:hover .cs-tact, .cs-tli:focus-within .cs-tact, .cs-tli[data-sel] .cs-tact,
  .cs-li:hover .plus, .cs-li:focus-within .plus, .cs-li[data-sel] .plus { opacity: 1; }
  .cs-tli .cs-tact { max-height: 0; overflow: hidden; margin: 0; }
  .cs-tli:hover .cs-tact, .cs-tli:focus-within .cs-tact { max-height: 40px; margin-top: 4px; }
}
.cs-tli[data-sel] { box-shadow: none; border-color: var(--ink-2); background: var(--c-load-soft); }
/* Filter and tab pills in the library become quiet text tabs. */
.cs-sf { gap: 2px !important; margin-bottom: 6px !important; }
.cs-sf button { border: 0 !important; border-radius: var(--r-s) !important; background: transparent !important; color: var(--muted); font-size: 12px; min-height: 24px !important; padding: 0 8px !important; }
.cs-sf button[aria-pressed=true] { background: var(--c-load-soft) !important; color: var(--ink) !important; border-color: transparent !important; }
.cs-qrow { gap: 6px; }
/* Client filter chips (groups): same quiet tabs. */
#csGf, .cs-clients .cs-gf { gap: 2px; margin-top: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cs-clients .cs-gf button { border: 0 !important; border-radius: var(--r-s) !important; color: var(--muted); padding: 0 8px !important; white-space: nowrap; }
.cs-clients .cs-gf button[aria-pressed=true] { background: var(--c-load-soft) !important; color: var(--ink) !important; border-color: transparent !important; font-weight: 600; }
.cs-clients .cs-gf .n { color: inherit; font-size: 12px; margin-inline-start: 3px; }
.cs-clients .cs-fld { margin-top: 6px; }
.cs-ttl { unicode-bidi: plaintext; text-align: start; max-width: 100%; }
.cs-sport::before { content: none; }
.cs-tli .cs-sport { display: inline; }
.cs-tli .cs-sport::after { content: ' · '; }
@media (max-width: 800px) {
  #csLib.cs-lib { position: fixed; inset: 44px 0 0 0; width: auto; z-index: 20; border-inline-start: 0; }
  .cs-tact { flex-wrap: nowrap; } .cs-tact .cs-btn { white-space: nowrap; }
}
/* The two action buttons under the search: they wrap onto a second row instead of spilling out of the column. */
.cs-acts { flex-wrap: wrap; gap: 6px; }
#coachRoot .cs-acts .cs-btn { flex: 1 1 auto; min-width: 0; padding: 0 10px; gap: 6px; }
.cs-acts svg { width: 16px; height: 16px; }

/* ===== What the athlete did in one workout (22.11.2026) ===== */
.cs-clk { cursor: pointer; } .cs-clk:hover td { background: var(--c-load-soft); }
.cs-wh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cs-wh h2 { margin: 0; font-size: 17px; font-weight: 600; }
.cs-wh .cs-hint { margin: 2px 0 0; }
.cs-wsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.cs-wst { border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.cs-wst b { font-size: 20px; font-weight: 500; line-height: 1.1; }
.cs-wst span { font-size: 12px; color: var(--muted); }
.cs-wst small { font-size: 12px; color: var(--ink-2); }
.cs-wbody { display: grid; gap: 10px; max-height: 58vh; overflow: auto; padding-inline-end: 2px; }
.cs-wx { border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; }
.cs-wx.swapped { border-color: var(--c-game); }
.cs-wxh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
.cs-wxh b { font-size: 14px; font-weight: 600; unicode-bidi: plaintext; }
.cs-wl { font-family: var(--f-num); font-size: 12px; color: var(--muted); border: 1px solid var(--line2); border-radius: var(--r-s); min-width: 20px; text-align: center; padding: 0 4px; }
.cs-swapped { font-size: 12px; font-weight: 600; color: var(--c-game); border: 1px solid var(--c-game); border-radius: var(--r-s); padding: 0 8px; }
.cs-orig, .cs-wp { font-size: 12px; color: var(--muted); }
.cs-wp { margin-inline-start: auto; }
.cs-sets { width: 100%; border-collapse: collapse; font-size: 14px; max-width: 420px; }
.cs-sets th { text-align: start; font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px 8px 4px 0; }
.cs-sets td { padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.cs-sets small { color: var(--muted); font-size: 12px; }
.cs-prev { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.cs-prev b { color: var(--ink); font-weight: 500; }
.cs-prev .up { color: var(--volt); font-weight: 600; } .cs-prev .down { color: var(--c-game); font-weight: 600; }
.cs-wc { margin: 8px 0 0; padding: 6px 10px; border-inline-start: 2px solid var(--c-game); background: var(--c-load-soft); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 14px; }
.cs-wc span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 1px; }

/* ===== Phone fix (22.11.2026): the minimal skin above reset the one-column phone layout, so the client screen kept a hidden 272px column.
   This block comes last and restores the phone rules at the skin's scale. ===== */
@media (max-width: 800px) {
  .cs-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); }
  .cs-top { padding: 0 12px; gap: 8px; }
  .cs-head, .cs-tabs, .cs-body { padding-inline: 12px; }
  .cs-body { padding-block: 14px 28px; }
  .cs-day { min-height: 76px; padding: 3px; }
  .cs-lib { width: auto; }
  .cs-bld { padding-inline: 12px; }
}

/* Video tag, link field and the weight switch on each exercise in the builder (22.11.2026) */
.cs-vtag { font-size: 12px; font-weight: 500; border-radius: var(--r-s); padding: 0 8px; border: 1px solid var(--line2); white-space: nowrap; color: var(--ink2); }
.cs-vtag.ok { color: var(--volt); border-color: var(--volt); }
.cs-vtag.no { color: var(--c-game); border-color: var(--c-game); }
.cs-xt { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; min-height: 30px; }
.cs-vid { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; flex: 1 1 260px; min-width: 0; }
.cs-lk { all: unset; box-sizing: border-box; cursor: pointer; font-size: 12px; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; padding: 2px 0; }
.cs-lk:hover { color: var(--ink); }
.cs-lk:focus-visible { outline: 1px solid var(--ink2); outline-offset: 2px; }
.cs-vid .cs-vin { flex: 1 1 180px; min-width: 0; min-height: 30px; font-size: 12px; padding: 2px 8px; }
.cs-wtbtn { font-size: 12px; }
.cs-wtbtn { min-height: 28px; padding: 0 10px; font-weight: 500; gap: 6px; }
.cs-wtbtn .bx { width: 14px; height: 14px; border-width: 1.5px; border-radius: 4px; }
.cs-wtbtn[aria-pressed="true"] .bx::after { inset: 1px 3px 3px 3px; }

/* Hints beside a client in the list (23.11.2026) */
.cs-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cs-flag { font-size: 12px; line-height: 1.5; padding: 0 7px; border-radius: var(--r-s); border: 1px solid var(--line2, rgba(128,128,128,.4)); color: var(--ink2, inherit); white-space: nowrap; }
.cs-flag.f-sick, .cs-flag.f-tired3 { border-color: currentColor; font-weight: 600; }

/* Staff access log table (23.11.2026) */
.cs-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-tbl th, .cs-tbl td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--line2, rgba(128,128,128,.3)); vertical-align: top; }
.cs-tbl th { font-weight: 600; color: var(--muted, inherit); position: sticky; top: 0; background: var(--bg, canvas); }

/* ===== Today tab (24.11.2026, the approved dark concept) =====
   Flat panels with a hairline, one accent (volt) for the live data, amber (--c-game) only for what needs attention. Works in both themes: every colour is a token. */
.cs-td { display: flex; flex-direction: column; gap: 18px; max-width: 1040px; }
.cs-stmt { display: flex; align-items: flex-start; gap: 24px; }
.cs-stmt .grow { flex: 1; min-width: 0; }
.cs-stmt h2 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 600; letter-spacing: 0; max-width: 640px; }
.cs-stmt h2 em { font-style: normal; color: var(--volt); }
.cs-stmt h2 em.w { color: var(--c-game); }
.cs-stmt h2 span { color: var(--muted); font-weight: 500; }
.cs-ring { position: relative; width: 78px; height: 78px; flex: none; }
.cs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.cs-ring .v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.cs-ring .v b { font: 500 24px var(--f-num); direction: ltr; }
.cs-ring .v small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cs-pn { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-s); min-width: 0; }
.cs-pn > h3 { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cs-lg { margin-inline-start: auto; font-weight: 400; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cs-lg i { display: inline-block; width: 14px; border-top: 2px solid var(--volt); }
.cs-lg i.d { border-top: 2px dashed var(--muted); margin-inline-start: 8px; }
.cs-wm { display: grid; grid-template-columns: repeat(5, 1fr); }
.cs-wm > div { padding: 14px 16px; border-inline-start: 1px solid var(--line); }
.cs-wm > div:first-child { border-inline-start: 0; }
.cs-wm .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.cs-wm .v { direction: ltr; display: flex; justify-content: flex-end; align-items: baseline; gap: 4px; margin: 6px 0 10px; }
.cs-wm .v b { font: 500 42px/1 var(--f-num); }
.cs-wm .v small { font: 500 15px var(--f-num); color: var(--muted); }
.cs-wm .dl { font-size: 12px; color: var(--muted); margin-top: 9px; }
.cs-wm .hot .v b { color: var(--c-game); }
.cs-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; direction: ltr; }
.cs-seg i { height: 4px; border-radius: 1px; background: var(--track); }
.cs-seg i.on { background: var(--ink); }
.cs-wm .hot .cs-seg i.on { background: var(--c-game); }
.cs-rpe { width: 100%; height: 190px; display: block; }
.cs-pn .in { padding: 14px 16px 8px; }
.cs-ins { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.cs-ins b { color: var(--ink); font-weight: 600; }
.cs-td .cs-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.cs-wkr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 16px 4px; text-align: center; }
.cs-wkr div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 0 7px; font-size: 12px; color: var(--muted); }
.cs-wkr div b { display: block; font: 500 14px/1.3 var(--f-num); color: var(--ink); margin-top: 3px; }
.cs-wkr .dn { background: var(--surface2); }
.cs-wkr .now { border-color: var(--volt); }
.cs-wkr .now b { color: var(--volt); }
.cs-wkr .gm b { color: var(--c-game); }
.cs-rows { padding: 8px 16px 14px; display: grid; gap: 11px; }
.cs-rows .r { display: grid; grid-template-columns: 70px 1fr 56px; gap: 12px; align-items: center; font-size: 14px; }
.cs-rows .k { color: var(--muted); font-size: 12px; }
.cs-rows .t { height: 3px; background: var(--track); border-radius: 2px; overflow: hidden; }
.cs-rows .t i { display: block; height: 100%; background: var(--ink); }
.cs-rows .n { font: 500 15px var(--f-num); text-align: end; direction: ltr; }
.cs-list .it { display: flex; gap: 11px; align-items: flex-start; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.cs-list .it:first-child { border-top: 0; }
.cs-list .it b { color: var(--ink); font-weight: 500; }
.cs-list .mk { width: 6px; height: 6px; border-radius: 1px; background: var(--c-game); flex: none; margin-top: 8px; }
.cs-list .mk.q { background: var(--muted); }
.cs-wt { padding: 4px 8px 8px; overflow-x: auto; }
@media (max-width: 900px) { .cs-wm { grid-template-columns: repeat(2, 1fr); } .cs-td .cs-two { grid-template-columns: 1fr; } .cs-stmt h2 { font-size: 22px; } }

/* Hide the client list (24.11.2026): the work area takes the whole width. On a phone the screen already shows one pane at a time, so this does nothing there. */
@media (min-width: 801px) { .cs-app.no-side { grid-template-columns: minmax(0, 1fr); } .cs-app.no-side .cs-clients { display: none; } }
/* Custom groups dialog */
.cs-cglist { max-height: 42vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); margin-top: 6px; }
.cs-cgrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.cs-cgrow:first-child { border-top: 0; }
.cs-cgrow input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; }
.cs-cgrow .nm { font-size: 14px; }
.cs-cgrow small { color: var(--muted); font-size: 12px; }
#csGp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
#csGp > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
#csGp .cs-gpbtn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 6px; }
.cs-clients { min-width: 0; overflow-x: hidden; }
.cs-cgrow input { accent-color: var(--volt); }

/* ===== Unslop fixes (Designer, 28.11.2026). Audit: design/unslop-audit-2026-11-28/audit.md =====
   Scale 12 / 14 / 16 / 18 (no 10, 11, 11.5, 13, 15), weights 400/500/600, radii 8 and 12, one note style.
   Look only: no copy, no behaviour. */

/* Header track label: plain text, 14px, no pill */
.cs-track { border: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* Client list: group chips keep a readable counter in the pressed state too; the row counter is 14px; the activity dot is larger (the text next to it says the same) */
#coachRoot .cs-clients .cs-gf button .n { color: inherit; font-size: 12px; }
#coachRoot .cs-clients .cs-gf button[aria-pressed=true] .n { color: var(--ink); }
.cs-crow .wk { font-size: 14px; }
.cs-dot { width: 8px; height: 8px; }

/* Calendar: block tags keep their set count (12px), the empty "+ step" and empty days lose the dashed frame but stay visible */
.cs-chip .bk { height: 20px; padding: 0 5px; gap: 3px; border-radius: var(--r-s); }
.cs-chip .bk i { font-size: 12px; }
.cs-ph.empty { border: 0 !important; border-inline-start: 0 !important; background: transparent !important; }
.cs-ph.empty:hover { background: var(--surface) !important; }
.cs-day:not(:has(.cs-chip)) { border-color: transparent !important; }
.cs-day:not(:has(.cs-chip)):hover, .cs-day:not(:has(.cs-chip)).today, .cs-day:not(:has(.cs-chip)).over { border-color: var(--line2) !important; }
@media (hover: none) { .cs-day:not(:has(.cs-chip)) { border-color: var(--line) !important; } }

/* Template builder: one note style (raised surface, 1px line, 72 characters wide). Dashed stays only for the drag area. */
.cs-rule, .cs-warn { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink-2); font-size: 14px; max-width: 72ch; padding: 8px 12px; margin: 0 0 10px; }
.cs-li .plus { width: 32px; height: 32px; }
.cs-ex .ib, .cs-blk .ib { display: inline-grid; place-items: center; color: var(--muted); }
.cs-ex .ib:hover, .cs-blk .ib:hover { color: var(--ink); }

/* Tests: the main action sits next to the sub tabs, not at the far edge; main tabs and sub tabs are two different levels */
.te-top .cs-sp { display: none; }
.te-top .cs-btn.pri { min-height: 32px; padding: 4px 12px; font-size: 14px; }
#coachRoot .cs-tabs button { font-weight: 600; }
#coachRoot .te-seg button { font-size: 12px; font-weight: 500; min-height: 28px; padding: 4px 10px; }
#coachRoot .te-seg button.on { font-weight: 600; background: var(--c-load-soft); }

/* Groups and invitations: legal-weight explanations are 14px and a readable line length; one control height; status tags 12px, radius 8, colour by meaning */
#csDm .cs-hint, .cs-join .cs-hint, .cs-modal .cs-hint { font-size: 14px; max-width: 60ch; line-height: 1.55; }
.cs-gtabs { gap: 0; border-bottom: 1px solid var(--line); margin: 8px 0 12px; }
#coachRoot .cs-gtabs button { min-height: 36px; padding: 4px 14px; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0; background: transparent !important; color: var(--muted); font-weight: 500; }
#coachRoot .cs-gtabs button[aria-selected=true] { background: transparent !important; color: var(--ink) !important; font-weight: 600; border-bottom-color: var(--ink) !important; }
.cs-ghbtns .cs-btn, .cs-ghead .cs-btn, .cs-invact .cs-btn { min-height: 36px; font-size: 14px; }
.cs-tag { border-radius: var(--r-s); }
.cs-tag.ok { color: var(--volt); border-color: var(--volt); }
.cs-tag.warn { color: var(--ink-2); border-color: var(--line2); }
.cs-btn.sm { min-height: 32px; padding: 4px 10px; }
#coachRoot .cs-gf button, #coachRoot .cs-clients .cs-gf button { min-height: 32px; }
.te-top .te-seg { display: flex; gap: 4px; direction: rtl; }
#coachRoot .te-top .te-seg button { flex: none; }
/* "missed" status text: 4.5:1 in the light theme too */
.cs-st.missed { color: color-mix(in srgb, var(--c-pain) 72%, var(--ink)); }
:where(#coachRoot) :where(b, strong) { font-weight: 600; }
:where(#coachRoot) :where(h1, h2, h3, h4, th) { font-weight: 600; }

/* ===== Different reps per set (28.11.2026): one quiet toggle under the exercise numbers, and one small input per set when it is on. New classes only. ===== */
.cs-perset { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cs-perset .cs-persetbtn { min-height: 36px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.cs-perset .cs-persetbtn[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.cs-setrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.cs-setc { display: grid; gap: 3px; width: 64px; }
.cs-setc span { font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; }
.cs-setc input { text-align: center; font-family: var(--f-num); font-size: 18px; min-height: 40px; padding: 4px 6px; }

/* ===== The athlete's program library, coach view (28.11.2026). New classes only: .cs-lb*. ===== */
.cs-lbmini { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.cs-lbmini.none { color: color-mix(in srgb, var(--c-pain) 72%, var(--ink)); font-weight: 600; }
#coachRoot .cs-lbchip { border-style: dashed !important; font-weight: 500; }
#coachRoot .cs-lbchip[aria-pressed=true] { border-style: solid !important; }
.cs-lb .cs-card { margin-bottom: 12px; }
.cs-lbsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cs-lbsum > div { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; display: grid; gap: 2px; }
.cs-lbsum b { font-family: var(--f-num); font-size: 24px; font-weight: 500; line-height: 1.1; }
.cs-lbsum span { font-size: 12px; color: var(--muted); font-weight: 500; }
.cs-lbnote { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink-2); font-size: 14px; max-width: 72ch; padding: 10px 14px; margin-bottom: 12px; }
.cs-lbnote.none { border-color: color-mix(in srgb, var(--c-pain) 55%, var(--line)); }
.cs-lbnote b { color: var(--ink); font-weight: 600; }
.cs-lblist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.cs-lbrow { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cs-lbrow:first-child { border-top: 0; }
.cs-lbrow .d { font-size: 14px; color: var(--ink-2); }
.cs-lbrow .t { display: grid; gap: 2px; min-width: 0; }
.cs-lbrow .t b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.cs-lbrow .t small { font-size: 12px; color: var(--muted); }
.cs-lbrow .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cs-lbrow .acts { display: flex; gap: 6px; }
.cs-lbrow.draft .t b { color: var(--ink-2); font-weight: 500; }
.cs-lbst { font-size: 12px; font-weight: 600; border: 1px solid var(--line2); border-radius: var(--r-s); padding: 2px 10px; white-space: nowrap; color: var(--ink-2); }
.cs-lbst.done { color: var(--volt); border-color: var(--volt); }
.cs-lbst.inProgress { color: var(--ink); }
@media (max-width: 800px) {
  .cs-lbsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-lbrow { grid-template-columns: minmax(0, 1fr) auto; }
  .cs-lbrow .d { grid-column: 1; } .cs-lbrow .t { grid-column: 1 / -1; } .cs-lbrow .tags { grid-column: 1 / -1; } .cs-lbrow .acts { grid-column: 1 / -1; }
}
#coachRoot .cs-lbchip[aria-pressed=true] { background: var(--surface2) !important; color: var(--ink) !important; border-color: var(--ink) !important; }
#coachRoot .cs-lbchip .n { font-weight: 600; margin-inline-start: 4px; }

/* ===== Adding programs to the athlete's library (28.11.2026). New classes only: .cs-lbtop, .cs-ap*. ===== */
.cs-lbtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cs-lbtop h3 { margin: 0; }
.cs-aplist { display: grid; gap: 6px; margin: 10px 0 12px; max-height: min(46vh, 380px); overflow-y: auto; }
.cs-aprow { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; }
.cs-aprow:has(input:checked) { border-color: var(--ink); background: var(--surface2); }
.cs-aprow input { width: 20px; height: 20px; min-height: 0; }
.cs-aprow .t { display: grid; gap: 2px; min-width: 0; }
.cs-aprow .t b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.cs-aprow .t small { font-size: 12px; color: var(--muted); }
.cs-apacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-apacts .cs-btn[disabled] { opacity: .5; cursor: default; }
.cs-apsay { font-size: 16px; line-height: 1.5; margin: 10px 0; max-width: 60ch; }
.cs-apsay b { font-weight: 600; }
.cs-aplisted { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.cs-aplisted li { border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 10px; background: var(--surface2); overflow-wrap: anywhere; }
.cs-aplisted.ok li { border-color: var(--volt); }
.cs-lbrow .t b, .cs-aprow .t b, .cs-aprow .t small { display: block; text-align: right; }

/* Group day analytics (1.12.2026) */
.cs-gptabs { display: flex; gap: 6px; margin: 8px 0 12px; }
.cs-anh { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }
.cs-anscroll { overflow-x: auto; }
.cs-antbl { width: 100%; }
.cs-antbl td, .cs-antbl th { text-align: start; padding: 6px 10px 6px 0; }
.cs-anlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); }
.cs-anrow { border-top: 1px solid var(--line); }
.cs-anrow:first-child { border-top: 0; }
.cs-anrow > summary, .cs-anflat .sm { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.cs-anrow > summary::-webkit-details-marker { display: none; }
.cs-anrow > summary::before { content: '›'; color: var(--muted); transition: transform .15s; }
.cs-anrow[open] > summary::before { transform: rotate(90deg); }
.cs-anflat .sm { cursor: default; padding-inline-start: 26px; }
.cs-anm { color: var(--ink-2); font-size: 13px; margin-inline-start: auto; }
.cs-anrow .cs-wbody { padding: 4px 14px 12px; }
