/**
 * Miles & Mountains — coach dashboard styles, slice 1.
 *
 * Taken from mockup v7 (coach-dashboard-mockup-v7.html), which uses the athlete
 * app's own tokens and components (spec § 11b, D41); colours are
 * MM_Color_Constants.md's. Font size and weight are written out in full: no
 * `font:` shorthand (the athlete app's `font: … inherit` is invalid CSS that
 * browsers drop). The mockup's own chrome (its option bar, the width frames,
 * the athlete-phone pictures) is left out; the coach page's additions are at
 * the end.
 */
  /* ===== The app's own tokens and components (index.html, ui 2.21beta) ===== */
  :root {
    --ink:#12202e; --muted:#5d7183; --line:#dfe6ec; --bg:#f4f7f9; --card:#fff;
    --accent:#003A63; --link:#2f5d86; --accent-d:#24486a; --focus:#1177D1;
    --filled:#00A368; --good:#00674E; --warn:#99231f; --bad:#a8302a; --dd:#57758b;
    --select:#7a4bab;
    --amb-bg:#fff6e0; --amb-bd:#e8c36a; --amb-ink:#5a3d00; --amb-btn:#8a5a00;
    --red-bg:#fbedeb; --red-bd:#e2b5ae;
  }
  * { box-sizing:border-box; }
  body { margin:0; background:#e9edf1; color:var(--ink);
         font-size:16px; line-height:1.45; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
  button { font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; cursor:pointer; }

  header.top { background:var(--accent) url('https://static.wixstatic.com/media/59abde_f9812a970d9c4a0cb24c73809f42f8be~mv2.png') center bottom/cover no-repeat;
    color:#fff; padding:12px 16px; min-height:58px; display:flex; align-items:center; gap:12px; }
  header.top img { height:36px; width:auto; display:block; }
  header.top .brand { font-size:15px; font-weight:700; letter-spacing:-.2px; }
  header.top .who { margin-left:auto; font-size:14px; font-weight:700; text-align:right; }
  .pagetitle { background:#2b2b2b; color:#fff; padding:6px 16px; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
  .wfocus { background:var(--accent-d); color:#fff; padding:4px 16px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; font-weight:700; }
  .tag { display:inline-block; font-size:10px; line-height:14px; letter-spacing:.05em; font-weight:700; padding:2px 8px; border-radius:20px; white-space:nowrap; vertical-align:middle; }
  .tag.today { background:#2b2b2b; color:#fff !important; box-shadow:0 0 0 1.5px #fff; }
  .tag.done { background:var(--accent); color:#fff; }
  .tag.wait { background:#854F0B; color:#fff !important; }
  .tag.comment { background:#00674E; color:#fff; }
  .tag.edit { background:var(--select); color:#fff; }
  .badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:20px; white-space:nowrap; }
  .badge.tierA { background:#ba36ff; color:#fff; }
  .badge.tierB { background:#db97ff; color:#3d0a57; }
  .badge.tierC { background:#f4e0ff; color:#4a2360; }
  .badge.race  { background:#ece3f4; color:#4a2360; }
  .wknav { display:flex; align-items:center; gap:8px; padding:4px 12px; background:#fff; border-bottom:1px solid var(--line); }
  .wknav.now { background:#e2ecf6; border-bottom-color:#b9cee3; }
  .wknav button { border:1px solid var(--line); background:#fff; color:var(--accent); border-radius:8px; padding:7px 10px; font-weight:700; font-size:12px; line-height:1; white-space:nowrap; }
  .wknav.now button { border-color:#b9cee3; }
  .wknav button[disabled] { opacity:.35; cursor:default; }
  .wknav .range { flex:1; min-width:0; text-align:center; white-space:nowrap; }
  .wknav .range .rel { font-size:12.5px; font-weight:800; color:var(--ink); line-height:1.2; }
  .wknav .range .dts { font-size:11.5px; font-weight:600; color:#8b98a3; line-height:1.2; }
  .wknav.now .range .rel { color:var(--accent); }
  .wknav.now .range .dts { color:#5f7d97; }
  .wktot { display:flex; align-items:center; justify-content:space-between; gap:6px; white-space:nowrap; padding:7px 14px; font-size:12.5px; line-height:1.3;
    background:#e2ecf6; color:#24486a; border-top:1.5px solid #94abc2; border-bottom:1.5px solid #94abc2; }
  .wktot b { font-weight:800; color:var(--accent); }
  .wktot .vs { flex:0 0 1px; height:13px; background:#b4c2ce; }
  .wktot span:not(.vs) { flex:1 1 0; text-align:center; }
  .note { border-radius:12px; padding:12px 14px; margin-bottom:10px; }
  .note.mine { background:#e6f1f9; border:1.5px solid #006ebb; }
  .note.coach { background:#e8f6ef; border:1.5px solid #57bb8a; }
  .note .hd { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:5px; }
  .note.mine .hd { color:#00548d; } .note.coach .hd { color:#2f7c58; }
  .note .bd { font-size:14px; white-space:pre-wrap; }
  .flagcard { background:#eef7f2; border:1px solid var(--good); border-radius:10px; padding:10px 11px; margin:0 0 8px; }
  .flagcard .ft { font-size:15px; font-weight:800; color:var(--good); margin-bottom:3px; }
  .flagcard .fb { font-size:13.5px; line-height:1.45; }
  .flagcard .fbtns { display:flex; gap:8px; margin-top:9px; }
  .flagcard .fbtn { flex:1 1 0; border-radius:8px; padding:9px 4px; font-size:14px; font-weight:600; }
  .flagcard .fbtn.go { background:var(--good); color:#fff; border:1.5px solid var(--good); }
  .flagcard .fbtn.no { background:#fff; color:var(--good); border:1.5px solid var(--good); }
  .seg { display:inline-flex; border:1.5px solid var(--select); border-radius:20px; overflow:hidden; }
  .seg button { border:0; background:#fff; color:var(--select); padding:6px 14px; font-weight:700; font-size:11.5px; line-height:1.3; letter-spacing:.06em; text-transform:uppercase; }
  .seg button.on { background:var(--select); color:#fff; }
  .seg.navy { border-color:var(--accent); } .seg.navy button { color:var(--accent); } .seg.navy button.on { background:var(--accent); color:#fff; }
  .day { display:flex; gap:10px; align-items:flex-start; padding:4px 14px; border-bottom:1px solid var(--line); }
  .day .dcol { flex:0 0 50px; font-size:12px; line-height:1.3; }
  .day .dcol b { display:block; font-weight:700; }
  .day .dcol span { color:rgba(0,0,0,.55); }
  .day .body { flex:1; min-width:0; }
  .day .type { font-size:13px; font-weight:700; }
  .day .desc { font-size:12px; line-height:1.3; color:rgba(0,0,0,.68); }
  .day.sel { outline:3px solid var(--select); outline-offset:-3px; }

  /* ===== Coach app ===== */
  .cnav { display:flex; gap:4px; background:#fff; border-bottom:1px solid var(--line); padding:0 12px; overflow-x:auto; }
  .cnav button { border:0; background:none; padding:11px 12px 9px; font-size:13.5px; font-weight:700; color:var(--muted); border-bottom:3px solid transparent; white-space:nowrap; }
  .cnav button.on { color:var(--accent); border-bottom-color:var(--accent); }
  .cnav .sp { flex:1; }
  .cnav .fresh { align-self:center; font-size:11.5px; color:var(--muted); white-space:nowrap; }
  .pad { padding:16px; }
  .thead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
  .ann { flex:1; min-width:240px; background:#d3eadf; border:1px solid #8fc3ab; color:#0a3326; border-radius:8px; padding:6px 10px; font-size:12.5px; }
  .ann b { font-weight:800; }
  .laylab { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }

  .grid { display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
  .stage.w-wide .grid { grid-template-columns:repeat(auto-fill,minmax(400px,1fr)); }
  .stage.w-wide .split .grid { grid-template-columns:repeat(auto-fill,minmax(400px,1fr)); }
  .stage.w-lap .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stage.w-phone .grid { grid-template-columns:1fr; }
  .split { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:16px; align-items:start; }
  .split .grid { grid-template-columns:1fr; }
  .stage.w-phone .split, .stage.w-lap .split { grid-template-columns:1fr; }

  .acard { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
  .acard .ah { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--line); }
  .acard .ah .t { font-size:14px; font-weight:800; color:var(--accent); flex:1; }
  .acard .ah .n { font-size:12px; font-weight:800; min-width:22px; text-align:center; padding:1px 7px; border-radius:20px; background:#e2ecf6; color:var(--accent); }
  .acard .ah .n.red { background:var(--warn); color:#fff; }
  .acard .ah .n.amb { background:var(--amb-btn); color:#fff; }
  .acard .ah select { font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:12px; border:1px solid var(--line); border-radius:6px; padding:2px 4px; color:var(--accent); background:#fff; }
  .acard.empty .ah { border-bottom:0; }
  .acard.empty .ah .t { color:var(--good); font-weight:700; font-size:13.5px; }
  .arow { padding:9px 12px; border-bottom:1px solid #eef2f5; border-left:4px solid transparent; }
  .arow:last-child { border-bottom:0; }
  .arow.red { border-left-color:var(--warn); background:var(--red-bg); }
  .arow.amb { border-left-color:var(--amb-bd); background:var(--amb-bg); }
  .arow.grey { border-left-color:#c2ccd4; }
  .arow .l1 { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
  .nm { font-weight:800; font-size:14px; color:var(--ink); cursor:pointer; }
  .nm:hover { text-decoration:underline; }
  .arow .wh { font-size:12.5px; color:var(--muted); }
  .arow .ms { font-size:13px; margin-top:3px; line-height:1.4; }
  .arow .ctx { font-size:12px; color:#5f7d97; margin-top:4px; line-height:1.4; }
  .arow .acts { display:flex; gap:6px; margin-top:7px; flex-wrap:wrap; }
  /* Buttons follow the athlete app: primary = filled navy (Save, popup confirm),
     secondary = navy outline (.btnlink), quiet = the popup's quiet button
     (#33546f text, #5f7d97 border, MM_Color_Constants item 10). One size. */
  .abtn { border:1.5px solid var(--accent); background:#fff; color:var(--accent); border-radius:8px; padding:6px 12px; font-size:13px; font-weight:700; line-height:1.2; white-space:nowrap; }
  .abtn.go { background:var(--accent); color:#fff; }
  .abtn.quiet { border-color:#5f7d97; color:#33546f; font-weight:600; }
  .abtn:active { filter:brightness(.95); }
  .snz { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:7px; padding:7px; background:#f6f8fa; border-radius:8px; font-size:12px; }
  .snz input { font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:12px; border:1px solid var(--line); border-radius:6px; padding:4px 6px; flex:1; min-width:120px; }
  .afoot { font-size:12px; color:var(--muted); padding:7px 12px; border-top:1px solid var(--line); background:#fafbfc; }
  .afoot a { color:var(--link); cursor:pointer; text-decoration:underline; }
  .bar4 { display:inline-flex; gap:2px; vertical-align:middle; margin-left:4px; }
  .bar4 i { display:inline-block; width:9px; border-radius:2px; background:#94abc2; }
  .bar4 i.hot { background:var(--amb-btn); } .bar4 i.cold { background:#5f7d97; }
  .fat { display:inline-block; font-size:10.5px; font-weight:700; padding:1px 6px; border-radius:10px; white-space:nowrap; }
  .q { background:#fff; border-left:3px solid #006ebb; padding:4px 8px; margin-top:4px; font-size:13px; border-radius:0 6px 6px 0; }

  /* roster */
  .rtools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
  .rtools input, .rtools select { font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:13px; border:1px solid var(--line); border-radius:8px; padding:6px 9px; background:#fff; }
  .rtools input[type=text] { flex:1; min-width:160px; }
  table.ro { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; font-size:13px; }
  table.ro th { text-align:left; font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); font-weight:800; padding:8px 10px; background:#f6f8fa; border-bottom:1px solid var(--line); white-space:nowrap; }
  table.ro td { padding:8px 10px; border-bottom:1px solid #eef2f5; vertical-align:middle; }
  table.ro tr:last-child td { border-bottom:0; }
  table.ro tr.paused td { color:#9aa8b4; }
  .lk { display:inline-flex; width:22px; height:22px; border-radius:5px; align-items:center; justify-content:center; font-size:10px; font-weight:800; color:#fff; margin-right:3px; text-decoration:none; }
  .lk.s { background:#fc4c02; } .lk.g { background:#1a1a1a; } .lk.c { background:#0057b8; }
  .chip { display:inline-block; font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:10px; margin:1px 2px 1px 0; white-space:nowrap; }
  .chip.red { background:var(--warn); color:#fff; } .chip.amb { background:var(--amb-bg); color:var(--amb-ink); border:1px solid var(--amb-bd); }
  .chip.blu { background:#e2ecf6; color:var(--accent); } .chip.grn { background:#e8f4ee; color:#0d3d2e; }
  .stage.w-phone table.ro .hp { display:none; }

  /* athlete page */
  .ahead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 16px; background:#fff; border-bottom:1px solid var(--line); }
  .ahead .an { font-size:20px; font-weight:800; }
  .ahead select { font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:13px; border:1px solid var(--line); border-radius:8px; padding:5px 8px; }
  .ahead .sp { flex:1; }
  .fbanner { margin:12px 16px 0; background:var(--amb-bg); border:1px solid var(--amb-bd); border-radius:10px; padding:10px 12px; color:var(--amb-ink); font-size:13px; display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
  .fbanner .ft { font-weight:800; font-size:14.5px; }
  .fbanner .dots { display:flex; gap:3px; margin-top:6px; }
  .fbanner .dots i { width:16px; height:16px; border-radius:4px; display:inline-block; }
  .fbanner .dots span { font-size:10px; color:var(--muted); margin-right:4px; align-self:center; }
  .fbanner .rules { flex:1; min-width:240px; }
  .fbanner .rules div { margin-top:2px; }
  .ecols { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; align-items:start; padding:16px; }
  .stage.w-lap .ecols, .stage.w-phone .ecols { grid-template-columns:1fr; }
  .ebox { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
  .estate { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 12px; font-size:12.5px; border-bottom:1px solid var(--line); }
  .estate.draft { background:#f3eefa; color:#4a2a6e; }
  .estate.pub { background:#e8f4ee; color:#0d3d2e; }
  .estate.pending { background:var(--amb-bg); color:var(--amb-ink); }
  .estate .sp { flex:1; }
  .etools { display:flex; gap:6px; flex-wrap:wrap; align-items:center; padding:8px 12px; border-bottom:1px solid var(--line); background:#fafbfc; }
  .etools .hint { font-size:11.5px; color:var(--muted); }
  .focusin { display:flex; align-items:center; gap:8px; background:var(--accent-d); padding:5px 12px; }
  .focusin span { color:#fff; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
  .focusin input { flex:1; font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:12.5px; border:0; border-radius:5px; padding:4px 7px; background:#3a5d7f; color:#fff; text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
  table.ed { width:100%; border-collapse:collapse; font-size:12.5px; table-layout:fixed; }
  table.ed th { font-size:10px; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); font-weight:800; text-align:left; padding:6px; background:#f6f8fa; border-bottom:1px solid var(--line); }
  table.ed td { border-bottom:1px solid var(--line); border-right:1px solid rgba(0,0,0,.05); padding:0; vertical-align:top; }
  table.ed tr.sel td:first-child { box-shadow:inset 4px 0 0 var(--select); }
  table.ed tr.sel td { background-image:linear-gradient(rgba(122,75,171,.07),rgba(122,75,171,.07)); }
  table.ed td.dl { padding:5px 6px; font-size:12px; line-height:1.25; cursor:pointer; user-select:none; }
  table.ed td.dl b { display:block; }
  table.ed td.dl .dsub { color:rgba(0,0,0,.55); display:block; }
  table.ed input, table.ed textarea { width:100%; font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:12.5px; border:0; background:transparent; padding:6px; color:inherit; resize:none; }
  table.ed input[data-f="t"] { font-weight:700; }
  table.ed textarea { min-height:44px; line-height:1.3; }
  table.ed input:focus, table.ed textarea:focus { outline:2px solid var(--focus); outline-offset:-2px; background:#fff; color:var(--ink); }
  table.ed input[data-f="dur"]::placeholder { color:rgba(0,0,0,.5); font-weight:400; }
  table.ed tr.dk input[data-f="dur"]::placeholder { color:rgba(255,255,255,.75); }
  table.ed textarea { overflow:hidden; }
  table.ed input[data-f="dur"] { font-weight:700; }
  table.ed td.act { padding:4px; text-align:center; position:relative; }
  .mini { border:1.5px solid var(--accent); background:#fff; color:var(--accent); border-radius:8px; padding:4px 8px; font-size:11.5px; font-weight:700; margin:1px; white-space:nowrap; }
  tr.chg td.dl b::after { content:'changed'; display:inline-block; margin-left:4px; font-size:9px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; background:var(--amb-btn); color:#fff; border-radius:8px; padding:1px 5px; vertical-align:middle; }
  .pop { position:absolute; right:4px; top:30px; z-index:20; width:320px; background:#fff; border:1px solid #b9cde3; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.16); text-align:left; padding:6px; color:var(--ink); }
  .pop .ph { font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); padding:6px 6px 3px; }
  .pop button { display:block; width:100%; text-align:left; border:0; background:none; padding:6px; border-radius:6px; font-size:12.5px; }
  .pop button:hover { background:#eef4f8; }
  .pop button small { display:block; color:var(--muted); font-size:11px; }
  .side h3 { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 6px; }
  .side .sbox { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:12px; font-size:13px; }
  .cmp { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; padding:2px 0; }
  .cmp b { color:var(--accent); white-space:nowrap; }
  .kbd { display:inline-block; font-weight:700; font-size:11px; line-height:1; font-family:ui-monospace,Menlo,monospace; border:1px solid #c2ccd4; border-bottom-width:2px; border-radius:4px; padding:2px 5px; background:#fff; color:var(--ink); }
  .klist { font-size:12.5px; } .klist div { display:flex; justify-content:space-between; gap:8px; padding:3px 0; border-bottom:1px solid #eef2f5; }

  /* coaching view */
  .cview { padding:16px; }
  .cwrap { overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:12px; }
  table.cv { width:100%; min-width:1080px; border-collapse:collapse; font-size:12.5px; table-layout:fixed; }
  table.cv th { font-size:10px; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); font-weight:800; text-align:left; padding:6px 8px; background:#f6f8fa; border-bottom:1px solid var(--line); position:sticky; top:0; }
  table.cv td { padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; line-height:1.35; }
  table.cv tr.wkh td { background:#e2ecf6; color:var(--accent); font-weight:800; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; padding:6px 10px; border-bottom:1.5px solid #94abc2; }
  table.cv tr.wkh td span { color:#5f7d97; font-weight:600; text-transform:none; letter-spacing:0; margin-left:6px; }
  table.cv tr.wkh.up td { background:#f3eefa; color:#4a2a6e; border-bottom-color:#cdb8e4; }
  table.cv td.dc { cursor:pointer; font-size:12px; }
  table.cv td.dc b { display:block; font-size:12.5px; }
  table.cv td.dc .rel { color:rgba(0,0,0,.6); }
  table.cv td.dc:hover { text-decoration:underline; }
  table.cv td.wo { border-left:5px solid transparent; }
  table.cv td.wo .ty { font-weight:800; font-size:12px; }
  table.cv td.wo .de { white-space:pre-wrap; color:#33414e; }
  table.cv .tm { font-size:12px; white-space:nowrap; }
  table.cv .tm .pl { color:#7d8f9e; } table.cv .tm .ac { font-weight:800; }
  table.cv .ath { white-space:pre-wrap; }
  table.cv .ath.none { color:#c2ccd4; }
  table.cv .fl { display:inline-block; font-size:9.5px; font-weight:800; letter-spacing:.05em; background:var(--good); color:#fff; border-radius:8px; padding:1px 6px; margin-bottom:2px; text-transform:uppercase; }
  table.cv textarea { width:100%; min-height:40px; font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:12.5px; border:1.5px solid #b8d9c9; background:#f3faf6; border-radius:6px; padding:5px; resize:vertical; }
  table.cv textarea:focus { outline:none; border-color:var(--good); background:#fff; }
  table.cv tr.isToday td { background:#fbf9ff; }
  table.cv tr.isToday td, table.ed tr.isToday td { border-top:2.5px solid #2b2b2b; border-bottom:2.5px solid #2b2b2b; }
  table.cv tr.isToday td:first-child, table.ed tr.isToday td:first-child { border-left:2.5px solid #2b2b2b; }
  table.cv tr.isToday td:last-child, table.ed tr.isToday td:last-child { border-right:2.5px solid #2b2b2b; }

  .modal { position:fixed; inset:0; background:rgba(8,20,32,.45); z-index:80; display:flex; align-items:center; justify-content:center; padding:16px; }
  .modal .box { background:#fff; border-radius:14px; max-width:560px; width:100%; max-height:88vh; overflow:auto; padding:16px 18px; box-shadow:0 12px 40px rgba(0,0,0,.25); }
  .modal h2 { font-size:17px; margin:0 0 4px; color:var(--accent); }
  .modal .mrow { display:flex; gap:8px; align-items:flex-start; font-size:13px; padding:6px 0; border-bottom:1px solid #eef2f5; }
  .modal .mrow .d { flex:0 0 120px; font-weight:800; color:var(--accent); font-size:12.5px; }
  .modal .mrow.skip { color:#9aa8b4; }
  .modal .mb { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
  .lib .lf { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
  .lib .lf input { flex:1; min-width:160px; font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:13px; border:1px solid var(--line); border-radius:8px; padding:6px 9px; }
  .lib .le { border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin-bottom:6px; display:flex; gap:10px; align-items:flex-start; border-left:5px solid #f6b26b; }
  .lib .le .tx { flex:1; min-width:0; font-size:12.5px; }
  .lib .le .tx b { font-size:13.5px; }
  .lib .le .tx pre { margin:3px 0 0; font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; white-space:pre-wrap; color:#33414e; }
  .lib .le .tm { font-size:12px; color:var(--muted); white-space:nowrap; }
  .fchipf { border:1.5px solid #5f7d97; background:#fff; border-radius:20px; padding:4px 11px; font-size:12px; font-weight:600; color:#33546f; }
  .fchipf.on { background:var(--accent); color:#fff; border-color:var(--accent); }
  .setrow { display:flex; align-items:center; gap:6px; font-size:13px; margin:6px 0; }
  .setrow .k { flex:1; }
  .step { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
  .step button { border:0; background:#f6f8fa; width:26px; height:26px; font-weight:800; color:var(--accent); }
  .step span { min-width:54px; text-align:center; font-weight:800; font-size:12.5px; }
  .setrow select { font-family:inherit; font-size:inherit; font-weight:inherit; line-height:inherit; font-size:12.5px; border:1px solid var(--line); border-radius:6px; padding:3px; }
  .sethd { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:14px 0 2px; }
  .toast { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); background:#1f2a35; color:#fff; padding:10px 16px; border-radius:10px; font-size:13px; z-index:90; box-shadow:0 6px 20px rgba(0,0,0,.25); max-width:90vw; }
  .toast a { color:#9fd3bd; margin-left:8px; cursor:pointer; text-decoration:underline; }

  /* v3 */
  .tc { display:inline-flex; align-items:center; gap:4px; cursor:pointer; vertical-align:middle; margin:2px 0 0; outline:none; }
  .tci { width:19px; height:19px; border-radius:50%; background:#d98e00; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.25); flex:0 0 auto; }
  .tc:focus .tci { box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--focus); }
  .tcw { font-size:10.5px; font-weight:700; color:#5a3d00; background:#fff6e0; border:1px solid #e8c36a; border-radius:8px; padding:0 6px; max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #tip { position:fixed; z-index:95; max-width:280px; background:#fff6e0; border:1.5px solid #d98e00; color:#3d2a00; border-radius:10px; padding:8px 10px; font-size:13px; line-height:1.4; box-shadow:0 6px 18px rgba(0,0,0,.18); display:none; }
  #tip b { display:block; font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:#8a5a00; margin-bottom:2px; }
  .pop { position:fixed; right:auto; top:0; max-height:70vh; overflow:auto; z-index:70; }
  .pop .ph.sub { padding-top:8px; } .pop .none { font-size:12px; color:var(--muted); padding:2px 6px 6px; }
  .wsec { margin-bottom:14px; }
  .wsec.prev { opacity:.62; } .wsec.prev:hover { opacity:.9; }
  .wsec .wknav { justify-content:center; }
  .estate.done { background:#eef2f5; color:#5d7183; }
  .rocell { padding:6px; white-space:pre-wrap; font-size:12.5px; min-height:30px; } .rocell.b { font-weight:700; } .rocell.gr { color:rgba(0,0,0,.5); }
  .fro { color:#fff; font-size:12.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
  .edspacer { height:240px; font-size:11.5px; color:#a3b0bb; padding-top:10px; }
  .cvtools { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); margin-bottom:8px; }
  .cvsec { margin-bottom:14px; }
  .cvh { position:sticky; left:0; display:inline-block; background:#e2ecf6; color:var(--accent); font-weight:800; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; padding:6px 10px; border-radius:8px 8px 0 0; border:1px solid #b9cee3; border-bottom:0; }
  .cvh span { color:#5f7d97; font-weight:600; text-transform:none; letter-spacing:0; margin-left:6px; }
  .cvh.up { background:#f3eefa; color:#4a2a6e; border-color:#cdb8e4; }
  .cvh .xtnote { color:#8a5a00; }
  .cwrap { background:transparent !important; border:0 !important; padding-bottom:4px; }
  table.cv { min-width:0 !important; background:#fff; border:1px solid var(--line); }
  table.cv th { position:relative; }
  .rz { position:absolute; right:-4px; top:0; bottom:0; width:9px; cursor:col-resize; z-index:2; }
  .rz::after { content:''; position:absolute; left:4px; top:5px; bottom:5px; width:1.5px; background:#c2ccd4; }
  .rz:hover::after { background:var(--focus); width:3px; left:3px; }
  table.cv td.dc .dlink { cursor:pointer; display:block; } table.cv td.dc .dlink:hover { text-decoration:underline; }
  table.cv td.dc:hover { text-decoration:none; }
  table.cv .tm b { font-weight:800; }
  .cvfoot { font-size:11.5px; color:var(--muted); margin-top:4px; }
  .mrow.tcrow { background:#fff6e0; border-radius:6px; padding:6px; }
  /* v4 */
  .okstrip { background:#e8f4ee; border:1px solid #b8d9c9; color:#0d3d2e; border-radius:8px; padding:6px 10px; font-size:12.5px; margin:-4px 0 12px; }
  .okstrip .okt { font-weight:800; color:var(--good); }
  table.ed td.dl { position:relative; }
  table.ed td.dl.hastc { padding-bottom:28px; }
  .tc.wide { position:absolute; left:6px; bottom:6px; width:206px; z-index:3; display:flex; }
  .tc.wide .tcw { max-width:none; flex:1; min-width:0; font-size:11px; padding:1px 7px; }
  table.cv td.dc .tc { display:flex; margin-top:3px; }
  table.cv td.dc .tcw { max-width:64px; }
  /* v5: on the athlete page the header, athlete bar and banner stay put; the weeks scroll */
  .stage.shell { height:100vh; display:flex; flex-direction:column; }
  .stage.shell > header, .stage.shell > .cnav, .stage.shell > .ahead, .stage.shell > .fbanner { flex:none; }
  .stage.shell > .abody { flex:1; min-height:0; }
  .stage.shell .ecols { height:100%; padding:0 16px; align-items:stretch; }
  .stage.shell .epane { overflow:auto; height:100%; padding:16px 4px 0 0; }
  .stage.shell .side { overflow:auto; height:100%; padding-top:16px; }
  .stage.shell .cview { height:100%; overflow:auto; }
  .stage.shell .pad { overflow:auto; }
  .fbanner.slim { align-items:center; flex-wrap:nowrap; padding:7px 12px; gap:10px; }
  .fbanner.slim .ft { font-size:13.5px; white-space:nowrap; }
  .fbanner.slim .abtn { white-space:nowrap; flex:none; }
  .fbanner.slim .why { font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .fbanner.slim .dots { display:flex; gap:3px; margin:0; }
  .fbanner.slim .dots i { width:12px; height:12px; border-radius:3px; display:inline-block; }
  .stage.shell table.cv th { position:sticky; top:0; z-index:4; box-shadow:0 1px 0 var(--line); }
  table.cv tr.flash td { animation:flash 2.2s ease-out; }
  @keyframes flash { 0%,30% { background:#fff1c2; } 100% { background:transparent; } }
  table.cv textarea, table.ed textarea { overflow:hidden; resize:none; }
  /* v6: tools bars stay put in both views; open on this week */
  .stage.shell .emain { display:flex; flex-direction:column; height:100%; min-height:0; padding-top:12px; }
  .stage.shell .etoolbar { flex:none; margin-bottom:10px; }
  .stage.shell .epane { flex:1; min-height:0; height:auto; overflow:auto; padding:0 4px 0 0; position:relative; }
  .stage.shell .side { padding-top:12px; }
  .stage.shell .cview { height:100%; overflow:hidden; display:flex; flex-direction:column; padding:12px 16px 8px; }
  .cvtools.ebox { padding:7px 12px; margin-bottom:10px; flex:none; }
  .stage.shell .cwrap { flex:1; min-height:0; overflow:auto; position:relative; }
  .cvfoot { flex:none; }
  /* v7 */
  .ftags { display:inline-flex; gap:4px; margin-left:2px; }
  .ftag { font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:10px; background:#e2ecf6; color:var(--accent); }
  .ftag.inj { background:#fbedeb; color:var(--warn); border:1px solid #e2b5ae; }
  .q.clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .q.full { margin-top:6px; }
  .q .qf { display:block; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#5f7d97; margin-bottom:2px; }
  a.more { display:inline-block; font-size:12px; font-weight:700; color:var(--link); cursor:pointer; margin-top:3px; text-decoration:underline; }
  .chip.grnb { background:var(--good); color:#fff; }
  .wkflex { display:flex; align-items:stretch; }
  .wkflex table.ed { flex:1; min-width:0; }
  .wkbar { flex:0 0 78px; background:#e2ecf6; border-right:1.5px solid #94abc2; display:flex; flex-direction:column; gap:10px; padding:10px 6px; color:#24486a; }
  .wkb span { display:block; font-size:9.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:#5f7d97; }
  .wkb b { display:block; font-size:13.5px; font-weight:800; color:var(--accent); }
  .wkb i { display:block; font-style:normal; font-size:11px; color:#5f7d97; }
  .wktot.wkhead { margin-top:0; }
  .cvsec .wktot.wkhead { border-radius:0; }
  .wkcmp { font-size:11.5px; color:#5f7d97; padding:5px 12px; background:#fafbfc; border-top:1px solid var(--line); }

/* ===== Coach page additions (slice 1) ===== */
  .stage { margin:0 auto; background:var(--bg); max-width:1900px; min-height:100vh; }
  .stage.shell { overflow:hidden; }
  /* Later slices' parts: shown, greyed, and inert (Josh, 19 Oct). */
  .abtn[disabled], .mini[disabled], .seg button[disabled], .inert button, .inert select { opacity:.45; cursor:not-allowed; }
  .acard.inert { opacity:.75; }
  .acard.inert .ah .t { color:var(--muted); }
  .acard.inert .soon { font-size:12.5px; color:var(--muted); padding:9px 12px; line-height:1.4; }
  .soonchip { display:inline-block; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:10px; background:#eef2f5; color:#5d7183; white-space:nowrap; }
  .setinert { opacity:.6; }
  .cnav .fresh.bad { color:var(--warn); font-weight:700; }
  .loading { padding:24px; text-align:center; color:var(--muted); font-size:14px; }
  .errbox { background:var(--red-bg); border:1px solid var(--red-bd); color:var(--warn); border-radius:10px; padding:12px 14px; font-size:13.5px; margin-bottom:12px; }
  table.cv .jtext { white-space:pre-wrap; min-height:40px; font-size:12.5px; border:1.5px solid #b8d9c9; background:#f3faf6; border-radius:6px; padding:5px; color:#33414e; }
  table.cv .jtext.none { color:#a3b0bb; }
  .cvh .chk { display:inline-block; margin-left:8px; font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; background:var(--amb-bg); color:var(--amb-ink); border:1px solid var(--amb-bd); border-radius:8px; padding:0 6px; }
  .cvnone { font-size:12.5px; color:var(--muted); background:#fff; border:1px solid var(--line); padding:10px 12px; }
  .setrow input[type=text] { flex:1.4; font-family:inherit; font-size:12.5px; border:1px solid var(--line); border-radius:6px; padding:4px 7px; min-width:0; }
  .setrow .own { font-size:10.5px; font-weight:700; color:var(--select); margin-left:4px; }
  .lkerr { color:var(--warn); font-size:12px; min-height:16px; margin-top:2px; }
  .chip.cp { background:#eef2f5; color:#5d7183; }
  .chip.pur { background:#f3eefa; color:#4a2a6e; }
  /* Demo mode only: the busy / quiet switch sits in the tab bar, out of the way. */
  .demobar { display:flex; align-items:center; gap:6px; align-self:center; background:#1f2a35; color:#dfe6ec;
    border-radius:10px; padding:4px 6px; font-size:12px; margin-right:12px; white-space:nowrap; }
  .demobar .lab { font-size:10.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#9fb0bf; margin-right:2px; }
  .demobar button { border:1px solid #4a5b6b; background:#2b3846; color:#dfe6ec; border-radius:16px; padding:3px 10px; font-size:12px; font-weight:600; font-family:inherit; }
  .demobar button.on { background:#fff; color:#1f2a35; border-color:#fff; }
  .signin { max-width:420px; margin:12vh auto 0; background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; text-align:center; }
  .signin h2 { font-size:18px; color:var(--accent); margin:0 0 8px; }
  .signin p { font-size:14px; color:var(--muted); margin:0 0 6px; }
