/* The coach dashboard, in the app's own look (the 26 Oct tokens): Carbon, two solid surfaces above it, Barlow,
   secondary text in ink2 (passes 4.5:1 on every surface), the reference blue for anything that is "last time" or
   "the target", Volt only as a signal (a record set, a beat, a target met, the day you're reading, the one main
   action on a screen). Dark only. */
:root { --carbon: #0a0a0a; --volt: #c8ff00; --white: #fff; --ash: #888; --ink2: #9a9a9a; --ref: #7fa7cf; --card: #161616; --surface2: #222; --fill: #2e2e2e; --field: #222; --line: rgba(255,255,255,.12); --red: #ff453a; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--carbon); color: var(--white); font: 17px/1.4 Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.num, .tabular { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: 'Barlow Condensed', Barlow, sans-serif; font-weight: 700; margin: 0; line-height: 1.05; }
h1 { font-size: 36px; }
h1.brand { display: flex; align-items: center; gap: 12px; }
h1.brand img { height: 28px; width: auto; display: block; } /* Extollo's mark (brand/extollo-mark.svg), the cap height of Coach */
h2 { font-size: 22px; margin-top: 28px; margin-bottom: 10px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.top .who { color: var(--ink2); font-size: 15px; }
.sub { color: var(--ink2); }
.hint { color: var(--ink2); font-size: 14px; line-height: 1.4; }
.card { background: var(--card); border-radius: 20px; padding: 16px; }
.grid { display: grid; gap: 10px; }
.clients { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.client { cursor: pointer; display: flex; flex-direction: column; gap: 8px; border: 0; text-align: left; }
.client:hover { background: #1c1c1c; }
.client.warnc { box-shadow: inset 3px 0 0 var(--ref); }
.client .name { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 24px; }
.client .uname { color: var(--ash); font-size: 15px; margin-left: 8px; font-family: Barlow; font-weight: 400; }
.flags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--ink2); }
.flags .warn { color: var(--white); }
.shares { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 600; border: 0; color: var(--white); }
.chip.on { background: var(--white); color: var(--carbon); }
.chip.quiet { background: transparent; border: 1px solid var(--line); color: var(--ink2); font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--fill); color: var(--white); font-weight: 600; cursor: pointer; }
.btn:hover { background: #333; }
.btn.primary { background: var(--volt); color: var(--carbon); }
.btn.primary:hover { background: #d4ff33; }
.btn.link { background: transparent; color: var(--ash); padding: 0 6px; font-weight: 400; font-size: 15px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 15px; }
.field { width: 100%; min-height: 48px; border-radius: 12px; border: 0; background: var(--field); padding: 10px 14px; color: var(--white); outline: none; }
.field:focus { box-shadow: 0 0 0 1px var(--white) inset; }
.field.num { text-align: right; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 24px; }
label.lab { display: block; color: var(--ink2); font-size: 15px; margin: 14px 0 6px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: 20px; padding: 16px 18px; }
.tile .big { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 40px; line-height: 1; }
.tile .big.date { font-size: 28px; line-height: 40px; white-space: nowrap; }
.tile .big small { font-size: 16px; color: var(--ink2); font-family: Barlow; font-weight: 400; margin-left: 4px; }
.tile .lab { color: var(--ink2); font-size: 13px; margin-top: 8px; }
.tile .delta { font-size: 15px; margin-top: 6px; color: var(--ref); }
.tile .delta.plain { color: var(--white); }
.tabs { display: flex; gap: 4px; margin: 20px 0 4px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--white); }
.tabs button.on { background: var(--white); color: var(--carbon); }
.two { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.chart { width: 100%; height: auto; display: block; }
.seg { display: inline-flex; background: var(--fill); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--ink2); min-height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--white); color: var(--carbon); }
.list .item { padding: 12px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: 0; padding-top: 0; }
/* Workouts: one row each (the chevron, the name, the date), a line of its exercises and beats, and the log once opened. */
.wk .whead { display: flex; align-items: baseline; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--white); padding: 4px 0; text-align: left; cursor: pointer; border-radius: 8px; }
.wk .whead:hover .chev { color: var(--white); }
.wk .chev { color: var(--ink2); width: 14px; font-size: 14px; flex: none; }
.wk .title { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 22px; flex: 1; }
.wk .when { color: var(--ink2); font-size: 15px; white-space: nowrap; }
.wk .line { display: flex; gap: 12px; font-size: 15px; color: var(--ink2); padding-left: 24px; margin-top: 2px; min-width: 0; }
.wk .line .exs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk .line .beats { color: var(--white); white-space: nowrap; }
.wk .line .beats.all { color: var(--volt); font-weight: 600; }
.wk .note { color: var(--ink2); font-style: italic; font-size: 15px; margin-top: 2px; padding-left: 24px; }
.wk .log { margin: 10px 0 4px 24px; padding: 4px 14px 10px; background: var(--surface2); border-radius: 12px; }
.ex { margin-top: 10px; }
.ex .exname { font-weight: 600; }
.ex .machine { color: var(--ink2); font-size: 14px; margin-left: 6px; font-weight: 400; }
.sets { color: var(--white); font-variant-numeric: tabular-nums; font-size: 15px; margin-top: 2px; }
.sets .warm { color: var(--ink2); }
.sets .rec { color: var(--volt); font-weight: 600; }
.sets .sep { color: var(--ink2); margin: 0 6px; }
/* The log view: Set · Last time · Today · Result, the app's columns. Pictures live in the programme builder only. */
.thumb { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; flex: none; }
.thumb.big { width: 56px; height: 56px; border-radius: 10px; }
.thumb.none { background: transparent; display: inline-block; }
.cols { display: grid; grid-template-columns: 36px 1.2fr 1.2fr 1fr; gap: 0 12px; align-items: baseline; font-variant-numeric: tabular-nums; font-size: 15px; padding: 3px 0; }
.cols.head { color: var(--ink2); font-size: 13px; margin-top: 6px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.cols.warm { color: var(--ink2); }
.cols .last { color: var(--ref); }
.cols .rec { color: var(--volt); font-weight: 600; }
.cols .res-beat { color: var(--volt); font-weight: 600; }
.cols .res-matched { color: var(--ref); } /* Matched is in the reference blue (18 Nov 2026), the colour of last time */
.cols .res-missed, .cols .none { color: var(--ink2); }
.cols .sep { color: var(--ink2); margin: 0 4px; }
.setnote { color: var(--ink2); font-style: italic; font-size: 14px; padding: 0 0 4px 48px; }
.quiet { color: var(--ink2); font-size: 14px; margin-top: 4px; }
/* Food by day: the chart picks the day; the day's slots sit on surface2 rows. */
.chart.pick .bar { cursor: pointer; }
.chart.pick .bar:hover rect:last-child { opacity: .8; }
.slot { margin-top: 12px; }
.slothead { display: flex; justify-content: space-between; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 10px; margin-top: 4px; font-size: 15px; background: var(--surface2); border-radius: 10px; }
.entry .amt { color: var(--ink2); }
.results button.withpic { display: flex; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--volt); margin-left: 4px; vertical-align: middle; }
.ci .date { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 20px; }
.ci .bw { color: var(--ref); font-size: 15px; margin-left: 8px; font-family: Barlow; font-weight: 400; }
.ci .text { margin-top: 4px; }
.bars { display: grid; grid-template-columns: 110px 1fr 140px; gap: 10px 12px; align-items: center; font-size: 15px; white-space: nowrap; }
.bars .track { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.bars .fillbar { height: 100%; background: var(--white); border-radius: 3px; }
.bars .fillbar.p { background: #ff7b6b; } .bars .fillbar.c { background: #5cc8ff; } .bars .fillbar.f { background: #c99bff; }
.bars .mdot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.bars .fig { text-align: right; font-variant-numeric: tabular-nums; }
.bars .fig.met { color: var(--volt); font-weight: 600; }
.bars .fig .tgt { color: var(--ref); }
.plan-items .pi { display: grid; grid-template-columns: 56px 1fr auto auto auto auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-items .pnote { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.plan-items .pnote .field { min-height: 40px; }
.notebtn { margin-left: 6px; min-height: 28px; }
.noteform { margin: 8px 0 4px; }
.noteform .field { background: var(--card); }
.plan-items .pi:first-child { border-top: 0; }
.plan-items .pi .pname { font-weight: 600; }
.plan-items .pi .pmach { color: var(--ink2); font-size: 14px; }
.plan-items input.mini { width: 64px; min-height: 40px; text-align: right; }
.results { max-height: 260px; overflow: auto; background: var(--card); border-radius: 12px; margin-top: 6px; }
.results button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--white); padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.results button:first-child { border-top: 0; }
.results button:hover { background: #1c1c1c; }
.results .g { color: var(--ink2); font-size: 14px; margin-left: 8px; }
.msg { margin-top: 12px; color: var(--ink2); }
.msg.err { color: var(--white); }
.empty { color: var(--ink2); padding: 8px 0; }
.foot { margin-top: 40px; color: var(--ink2); font-size: 14px; }
.narrow { max-width: 420px; }

/* The hub (25 Nov 2026, design/coach-hub/README.md): from 900px the sections and the clients sit down the left,
   sticky, each section with what's waiting in it; narrower, the sections are a row of chips and a client's page has a
   back link to the section you came from. Counts are White, not Volt: nothing here is a beat. */
.hub { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.hside { display: none; }
.hmain { padding: 16px 16px 120px; min-width: 0; max-width: 1200px; }
.htop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.htop h1.brand { font-size: 28px; } .htop h1.brand img { height: 22px; }
.hback { margin-bottom: 4px; text-decoration: none; }
.secs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
.secs .chip { white-space: nowrap; text-decoration: none; min-height: 40px; }
.secs .chip .n { color: var(--ink2); font-variant-numeric: tabular-nums; }
.secs .chip.on .n { color: var(--carbon); }
.htitle { font-size: 36px; margin: 6px 0 4px; }
.date { color: var(--ink2); font-size: 15px; }
.waiting { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 44px; line-height: 1; margin: 6px 0 4px; }
.waiting small { font-family: Barlow; font-weight: 400; font-size: 17px; color: var(--ink2); margin-left: 8px; }
.needs { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.need { background: var(--card); border-radius: 20px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.need .nm { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 24px; line-height: 1.1; }
.need .since { color: var(--ink2); font-size: 14px; margin-left: 10px; font-family: Barlow; font-weight: 400; white-space: nowrap; }
.need .reasons { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--white); }
.need .reasons .ok { color: var(--ink2); }
.need .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.need .acts .btn { text-decoration: none; }
.cnote { background: var(--surface2); border-radius: 12px; padding: 12px 14px; color: var(--white); white-space: pre-line; }
.cnote .when { color: var(--ink2); font-size: 14px; display: block; margin-bottom: 4px; white-space: normal; }
.cnote .bwv { color: var(--white); }
.clear { color: var(--ink2); font-size: 15px; margin-top: 24px; }
.undo { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; background: var(--fill); border-radius: 999px; padding: 6px 6px 6px 20px; display: flex; align-items: center; gap: 16px; font-size: 15px; white-space: nowrap; box-shadow: 0 0 0 1px var(--line); z-index: 5; }
@media (min-width: 900px) {
  .hub { grid-template-columns: 248px minmax(0, 1fr); }
  .hside { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 12px; border-right: 1px solid var(--line); }
  .hside h1.brand { font-size: 28px; padding: 0 12px 18px; } .hside h1.brand img { height: 22px; }
  .hnav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink2); font-weight: 600; text-decoration: none; }
  .hnav .ico { width: 20px; height: 20px; stroke: var(--ash); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .hnav .n { margin-left: auto; font-variant-numeric: tabular-nums; }
  .hnav:hover, .hclient:hover { color: var(--white); }
  .hnav.on { background: var(--card); color: var(--white); }
  .hpeople { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
  .hlab { color: var(--ink2); font-size: 13px; padding: 0 12px 6px; }
  .hclient { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hclient.on { background: var(--card); color: var(--white); }
  .hfoot { margin-top: auto; padding: 16px 12px 0; color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; }
  .hfoot .btn.link { min-height: 32px; padding: 0; font-size: 14px; }
  .hmain { padding: 28px 40px 120px; }
  .htop, .secs, .hback { display: none; }
  .waiting { font-size: 56px; }
  .need { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .need .acts { grid-column: 2; grid-row: 1 / span 2; align-self: start; flex-wrap: nowrap; }
  .need .cnote { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .clients { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .wide-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .wide-two h2 { margin-top: 28px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
}

/* How it's going (11 Nov 2026): a small table of the coaching reads, then lines; and exercise by exercise. */
.volt { color: var(--volt); }
.of { color: var(--ink2); font-family: Barlow, system-ui, sans-serif; font-weight: 400; font-size: 14px; }
table.going { width: 100%; border-collapse: collapse; }
table.going th { text-align: left; font-weight: 400; color: var(--ink2); font-size: 14px; padding: 6px 8px 6px 0; }
table.going thead th { padding-bottom: 8px; }
table.going tbody th { color: var(--white); font-size: 16px; white-space: nowrap; }
table.going td { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 22px; padding: 8px 8px 8px 0; border-top: 1px solid var(--line); white-space: nowrap; }
table.going tbody th { border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); font-size: 16px; }
.kv > span:first-child { color: var(--ink2); font-size: 14px; padding-top: 2px; }
.exb { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.exb .exn { min-width: 0; } .exb .exn strong { font-weight: 600; }
.exb .exf { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 22px; white-space: nowrap; }
.exb .exl { text-align: right; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 20px; white-space: nowrap; }
.exb .exl .hint { font-family: Barlow, system-ui, sans-serif; font-weight: 400; }
.exb .warn { color: var(--white); }
.fillbar.beat { background: var(--volt); }
@media (max-width: 600px) {
  table.going td { font-size: 18px; } table.going .of { display: block; font-size: 12px; } table.going .pc { display: none; } table.going tbody th { white-space: normal; font-size: 15px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .exb { grid-template-columns: minmax(0, 1fr) 70px; } .exb .track { display: none; } .exb .exl { grid-column: 1 / -1; text-align: left; }
}
.exb .track { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.exb .fillbar { height: 100%; border-radius: 3px; }
